#include <metal_stdlib>

using namespace metal;
uint subgroupInclusiveMul_89437b() {
  uint res = simd_prefix_inclusive_product(1u);
  return res;
}

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

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

