#include <metal_stdlib>
using namespace metal;
struct VertexOutput {
  float4 pos;
};
struct vertex_main_outputs {
  float4 VertexOutput_pos [[position]];
};

void sin_68d3ab() {
  float2 res = float2(1.0f);
}
fragment void fragment_main() {
  sin_68d3ab();
}
kernel void compute_main() {
  sin_68d3ab();
}
VertexOutput vertex_main_inner() {
  VertexOutput out = {};
  out.pos = float4(0.0f);
  sin_68d3ab();
  return out;
}
vertex vertex_main_outputs vertex_main() {
  return vertex_main_outputs{.VertexOutput_pos=vertex_main_inner().pos};
}
