module {
  func.func @main(%first: tensor<2x7xf32>, %second: tensor<2x7xf32>, %count1: tensor<2x7xf32>, %count2: tensor<2x7xf32>) -> (tensor<2x7xf32>, tensor<2x7xf32>) {
    %v0 = stablehlo.constant dense<0.00000000000000000e+00> : tensor<2x7xf32>
    %v1 = stablehlo.add %count1, %count2 : tensor<2x7xf32>
    %v2 = stablehlo.multiply %first, %count1 : tensor<2x7xf32>
    %v3 = stablehlo.multiply %second, %count2 : tensor<2x7xf32>
    %v4 = stablehlo.add %v2, %v3 : tensor<2x7xf32>
    %v5 = stablehlo.constant dense<1.00000000000000000e+00> : tensor<2x7xf32>
    %v6 = stablehlo.maximum %v1, %v5 : tensor<2x7xf32>
    %v7 = stablehlo.divide %v4, %v6 : tensor<2x7xf32>
    return %v7, %v1 : tensor<2x7xf32>, tensor<2x7xf32>
  }
}
