#include <metal_stdlib>

using namespace metal;
half subgroupMul_2941a2() {
  half arg_0 = 1.0h;
  half res = simd_product(arg_0);
  return res;
}

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

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

