blob: 69248ffac7528e6f21acf248ec1303b41180b170 [file] [log] [blame]
; SPIR-V
; Version: 1.3
; Generator: Google Tint Compiler; 0
; Bound: 34
; 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
%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
OpStore %guard10 %false
OpBranch %16
%18 = OpLabel
%20 = OpLoad %bool %guard10
OpSelectionMerge %21 None
OpBranchConditional %20 %22 %21
%22 = OpLabel
OpStore %var_1 %uint_3
OpSelectionMerge %24 None
OpBranchConditional %true %25 %24
%25 = OpLabel
OpStore %guard10 %false
OpBranch %24
%24 = OpLabel
%26 = OpLoad %bool %guard10
OpSelectionMerge %27 None
OpBranchConditional %26 %28 %27
%28 = OpLabel
OpStore %var_1 %uint_4
OpStore %guard10 %false
OpBranch %27
%27 = OpLabel
OpBranch %21
%21 = OpLabel
OpBranch %16
%16 = OpLabel
OpStore %var_1 %uint_5
OpReturn
OpFunctionEnd
%main = OpFunction %void None %5
%32 = OpLabel
%33 = OpFunctionCall %void %main_1
OpReturn
OpFunctionEnd