module {
  func.func @main(%x: tensor<2x7xf32>, %target: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) {
    %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32>
    %v1 = stablehlo.subtract %x, %target : tensor<2x7xf32>
    %v2 = stablehlo.abs %v1 : tensor<2x7xf32>
    %v3 = stablehlo.constant dense<1.00000000000000000e+00> : tensor<2x7xf32>
    %v4 = stablehlo.minimum %v2, %v3 : tensor<2x7xf32>
    %v5 = stablehlo.constant dense<5.00000000000000000e-01> : tensor<2x7xf32>
    %v6 = stablehlo.multiply %v5, %v4 : tensor<2x7xf32>
    %v7 = stablehlo.multiply %v6, %v4 : tensor<2x7xf32>
    %v8 = stablehlo.add %v7, %v2 : tensor<2x7xf32>
    %v9 = stablehlo.subtract %v8, %v4 : tensor<2x7xf32>
    %v10 = stablehlo.negate %v3 : tensor<2x7xf32>
    %v11 = stablehlo.maximum %v1, %v10 : tensor<2x7xf32>
    %v12 = stablehlo.minimum %v11, %v3 : tensor<2x7xf32>
    return %v9, %v12 : tensor<2x7xf32>, tensor<2x7xf32>
  }
}
