1#include <metal_stdlib> 2#include <simd/simd.h> 3 4using namespace metal; 5 6constant float4 _21 = {}; 7 8struct main0_out 9{ 10 float4 FragColor [[color(0)]]; 11}; 12 13struct main0_in 14{ 15 int counter [[user(locn0)]]; 16}; 17 18fragment main0_out main0(main0_in in [[stage_in]]) 19{ 20 main0_out out = {}; 21 float4 _24; 22 _24 = _21; 23 float4 _33; 24 for (;;) 25 { 26 if (in.counter == 10) 27 { 28 _33 = float4(10.0); 29 break; 30 } 31 else 32 { 33 _33 = float4(30.0); 34 break; 35 } 36 } 37 out.FragColor = _33; 38 return out; 39} 40 41