| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 52 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" |
| OpExecutionMode %main OriginUpperLeft |
| OpName %var_1 "var_1" |
| OpName %main_1 "main_1" |
| OpName %guard10 "guard10" |
| OpName %main "main" |
| %uint = OpTypeInt 32 0 |
| %_ptr_Private_uint = OpTypePointer Private %uint |
| %4 = OpConstantNull %uint |
| %var_1 = OpVariable %_ptr_Private_uint Private %4 |
| %void = OpTypeVoid |
| %5 = OpTypeFunction %void |
| %uint_1 = OpConstant %uint 1 |
| %bool = OpTypeBool |
| %true = OpConstantTrue %bool |
| %_ptr_Function_bool = OpTypePointer Function %bool |
| %14 = OpConstantNull %bool |
| %false = OpConstantFalse %bool |
| %uint_2 = OpConstant %uint 2 |
| %uint_3 = OpConstant %uint 3 |
| %uint_4 = OpConstant %uint 4 |
| %uint_5 = OpConstant %uint 5 |
| %uint_6 = OpConstant %uint 6 |
| %uint_7 = OpConstant %uint 7 |
| %uint_8 = OpConstant %uint 8 |
| %main_1 = OpFunction %void None %5 |
| %8 = OpLabel |
| %guard10 = OpVariable %_ptr_Function_bool Function %14 |
| OpStore %var_1 %uint_1 |
| OpStore %guard10 %true |
| OpSelectionMerge %16 None |
| OpBranchConditional %false %17 %18 |
| %17 = OpLabel |
| OpStore %var_1 %uint_2 |
| OpSelectionMerge %20 None |
| OpBranchConditional %true %21 %22 |
| %21 = OpLabel |
| OpBranch %20 |
| %22 = OpLabel |
| OpStore %guard10 %false |
| OpBranch %20 |
| %20 = OpLabel |
| %23 = OpLoad %bool %guard10 |
| OpSelectionMerge %24 None |
| OpBranchConditional %23 %25 %24 |
| %25 = OpLabel |
| OpStore %var_1 %uint_3 |
| OpBranch %24 |
| %24 = OpLabel |
| OpBranch %16 |
| %18 = OpLabel |
| %27 = OpLoad %bool %guard10 |
| OpSelectionMerge %28 None |
| OpBranchConditional %27 %29 %28 |
| %29 = OpLabel |
| OpStore %var_1 %uint_4 |
| OpSelectionMerge %31 None |
| OpBranchConditional %true %32 %31 |
| %32 = OpLabel |
| OpStore %guard10 %false |
| OpBranch %31 |
| %31 = OpLabel |
| %33 = OpLoad %bool %guard10 |
| OpSelectionMerge %34 None |
| OpBranchConditional %33 %35 %34 |
| %35 = OpLabel |
| OpStore %var_1 %uint_5 |
| OpBranch %34 |
| %34 = OpLabel |
| OpBranch %28 |
| %28 = OpLabel |
| OpBranch %16 |
| %16 = OpLabel |
| %37 = OpLoad %bool %guard10 |
| OpSelectionMerge %38 None |
| OpBranchConditional %37 %39 %38 |
| %39 = OpLabel |
| OpStore %var_1 %uint_6 |
| OpSelectionMerge %41 None |
| OpBranchConditional %false %42 %43 |
| %42 = OpLabel |
| OpBranch %41 |
| %43 = OpLabel |
| OpStore %guard10 %false |
| OpBranch %41 |
| %41 = OpLabel |
| %44 = OpLoad %bool %guard10 |
| OpSelectionMerge %45 None |
| OpBranchConditional %44 %46 %45 |
| %46 = OpLabel |
| OpStore %var_1 %uint_7 |
| OpStore %guard10 %false |
| OpBranch %45 |
| %45 = OpLabel |
| OpBranch %38 |
| %38 = OpLabel |
| OpStore %var_1 %uint_8 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %5 |
| %50 = OpLabel |
| %51 = OpFunctionCall %void %main_1 |
| OpReturn |
| OpFunctionEnd |