#include <metal_stdlib>

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

void select_78be5f() {
  float3 res = select(float3(), float3(), bool());
}

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

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

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

