#include <metal_stdlib>

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

void any_0e3e58() {
  bool res = any(bool2());
}

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

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

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

