#include <metal_stdlib>

using namespace metal;
void round_f665b5() {
  half4 arg_0 = half4(0.0h);
  half4 res = rint(arg_0);
}

struct tint_symbol {
  float4 value [[position]];
};

float4 vertex_main_inner() {
  round_f665b5();
  return float4(0.0f);
}

vertex tint_symbol vertex_main() {
  float4 const inner_result = vertex_main_inner();
  tint_symbol wrapper_result = {};
  wrapper_result.value = inner_result;
  return wrapper_result;
}

fragment void fragment_main() {
  round_f665b5();
  return;
}

kernel void compute_main() {
  round_f665b5();
  return;
}

