| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 35 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" | |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 | |
| OpName %f "f" | |
| OpName %return_value "return_value" | |
| OpName %continue_execution "continue_execution" | |
| OpName %i "i" | |
| OpName %unused_entry_point "unused_entry_point" | |
| %int = OpTypeInt 32 1 | |
| %3 = OpTypeFunction %int | |
| %_ptr_Function_int = OpTypePointer Function %int | |
| %7 = OpConstantNull %int | |
| %bool = OpTypeBool | |
| %_ptr_Function_bool = OpTypePointer Function %bool | |
| %true = OpConstantTrue %bool | |
| %int_1 = OpConstant %int 1 | |
| %int_4 = OpConstant %int 4 | |
| %false = OpConstantFalse %bool | |
| %void = OpTypeVoid | |
| %33 = OpTypeFunction %void | |
| %f = OpFunction %int None %3 | |
| %4 = OpLabel | |
| %return_value = OpVariable %_ptr_Function_int Function %7 | |
| %continue_execution = OpVariable %_ptr_Function_bool Function | |
| %i = OpVariable %_ptr_Function_int Function %7 | |
| OpStore %continue_execution %true | |
| OpBranch %15 | |
| %15 = OpLabel | |
| OpLoopMerge %16 %14 None | |
| OpBranch %13 | |
| %13 = OpLabel | |
| %17 = OpLoad %int %i None | |
| %18 = OpIAdd %int %17 %int_1 | |
| OpStore %i %18 None | |
| %20 = OpLoad %int %i None | |
| %21 = OpSGreaterThan %bool %20 %int_4 | |
| OpSelectionMerge %23 None | |
| OpBranchConditional %21 %24 %23 | |
| %24 = OpLabel | |
| %25 = OpLoad %int %i None | |
| OpStore %continue_execution %false None | |
| OpStore %return_value %25 None | |
| OpBranch %23 | |
| %23 = OpLabel | |
| %27 = OpLoad %bool %continue_execution None | |
| OpSelectionMerge %28 None | |
| OpBranchConditional %27 %29 %28 | |
| %29 = OpLabel | |
| OpBranch %14 | |
| %28 = OpLabel | |
| OpBranch %16 | |
| %14 = OpLabel | |
| OpBranch %15 | |
| %16 = OpLabel | |
| %30 = OpLoad %int %return_value None | |
| OpReturnValue %30 | |
| OpFunctionEnd | |
| %unused_entry_point = OpFunction %void None %33 | |
| %34 = OpLabel | |
| OpReturn | |
| OpFunctionEnd |