#include <metal_stdlib>

using namespace metal;
int subgroupExclusiveMul_a23002() {
  int res = simd_prefix_exclusive_product(1);
  return res;
}

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

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

