| ; Generator: Google Tint Compiler; 1 |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| %3 = OpTypeFunction %void |
| %_ptr_Function_int = OpTypePointer Function %int |
| %int_0 = OpConstant %int 0 |
| %int_2 = OpConstant %int 2 |
| %int_1 = OpConstant %int 1 |
| %main = OpFunction %void None %3 |
| %i = OpVariable %_ptr_Function_int Function |
| %14 = OpLoad %int %i None |
| %15 = OpSLessThan %bool %14 %int_2 |
| OpSelectionMerge %18 None |
| OpBranchConditional %15 %18 %19 |
| %20 = OpLoad %int %i None |
| OpSelectionMerge %25 None |
| OpSwitch %20 %21 0 %22 1 %23 2 %24 |
| %26 = OpLoad %int %i None |
| %27 = OpIAdd %int %26 %int_1 |