; SPIR-V | |
; Version: 1.3 | |
; Generator: Google Tint Compiler; 0 | |
; Bound: 28 | |
; Schema: 0 | |
OpCapability Shader | |
OpMemoryModel Logical GLSL450 | |
OpEntryPoint GLCompute %f "f" | |
OpExecutionMode %f LocalSize 1 1 1 | |
OpName %f "f" | |
OpName %i "i" | |
%void = OpTypeVoid | |
%1 = OpTypeFunction %void | |
%int = OpTypeInt 32 1 | |
%int_0 = OpConstant %int 0 | |
%_ptr_Function_int = OpTypePointer Function %int | |
%9 = OpConstantNull %int | |
%int_4 = OpConstant %int 4 | |
%bool = OpTypeBool | |
%int_1 = OpConstant %int 1 | |
%f = OpFunction %void None %1 | |
%4 = OpLabel | |
%i = OpVariable %_ptr_Function_int Function %9 | |
OpStore %i %int_0 | |
OpBranch %10 | |
%10 = OpLabel | |
OpLoopMerge %11 %12 None | |
OpBranch %13 | |
%13 = OpLabel | |
%15 = OpLoad %int %i | |
%17 = OpSLessThan %bool %15 %int_4 | |
%14 = OpLogicalNot %bool %17 | |
OpSelectionMerge %19 None | |
OpBranchConditional %14 %20 %19 | |
%20 = OpLabel | |
OpBranch %11 | |
%19 = OpLabel | |
%22 = OpLoad %int %i | |
OpSelectionMerge %21 None | |
OpSwitch %22 %23 0 %24 | |
%24 = OpLabel | |
OpBranch %12 | |
%23 = OpLabel | |
OpBranch %21 | |
%21 = OpLabel | |
OpBranch %12 | |
%12 = OpLabel | |
%25 = OpLoad %int %i | |
%27 = OpIAdd %int %25 %int_1 | |
OpStore %i %27 | |
OpBranch %10 | |
%11 = OpLabel | |
OpReturn | |
OpFunctionEnd |