#include <metal_stdlib>

using namespace metal;
int subgroupInclusiveMul_9a54ec() {
  int res = simd_prefix_inclusive_product(1);
  return res;
}

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

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

