#include <metal_stdlib>

using namespace metal;
int2 subgroupInclusiveMul_e713f5() {
  int2 arg_0 = int2(1);
  int2 res = simd_prefix_inclusive_product(arg_0);
  return res;
}

fragment void fragment_main(device int2* tint_symbol [[buffer(0)]]) {
  *(tint_symbol) = subgroupInclusiveMul_e713f5();
  return;
}

kernel void compute_main(device int2* tint_symbol_1 [[buffer(0)]]) {
  *(tint_symbol_1) = subgroupInclusiveMul_e713f5();
  return;
}

