#include <metal_stdlib>

using namespace metal;
int4 subgroupInclusiveMul_517979() {
  int4 res = simd_prefix_inclusive_product(int4(1));
  return res;
}

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

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

