#include <metal_stdlib>

using namespace metal;
struct tint_symbol {
  float4 value [[position]];
};

void select_a2860e() {
  int4 res = select(int4(), int4(), bool4());
}

vertex tint_symbol vertex_main() {
  select_a2860e();
  tint_symbol const tint_symbol_1 = {.value=float4()};
  return tint_symbol_1;
}

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

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

