| ; SPIR-V | 
 | ; Version: 1.3 | 
 | ; Generator: Google Tint Compiler; 0 | 
 | ; Bound: 87 | 
 | ; Schema: 0 | 
 |                OpCapability Shader | 
 |                OpMemoryModel Logical GLSL450 | 
 |                OpEntryPoint GLCompute %compute_main "compute_main" %local_invocation_index_1_param_1 | 
 |                OpExecutionMode %compute_main LocalSize 1 1 1 | 
 |                OpName %local_invocation_index_1_param_1 "local_invocation_index_1_param_1" | 
 |                OpName %local_invocation_index_1 "local_invocation_index_1" | 
 |                OpName %S_atomic "S_atomic" | 
 |                OpMemberName %S_atomic 0 "x" | 
 |                OpMemberName %S_atomic 1 "a" | 
 |                OpMemberName %S_atomic 2 "y" | 
 |                OpName %wg "wg" | 
 |                OpName %tint_zero_workgroup_memory "tint_zero_workgroup_memory" | 
 |                OpName %local_idx "local_idx" | 
 |                OpName %idx_1 "idx_1" | 
 |                OpName %compute_main_inner "compute_main_inner" | 
 |                OpName %local_invocation_index_2 "local_invocation_index_2" | 
 |                OpName %idx "idx" | 
 |                OpName %compute_main_1 "compute_main_1" | 
 |                OpName %compute_main_inner_1 "compute_main_inner_1" | 
 |                OpName %local_invocation_index_1_param "local_invocation_index_1_param" | 
 |                OpName %compute_main "compute_main" | 
 |                OpDecorate %local_invocation_index_1_param_1 BuiltIn LocalInvocationIndex | 
 |                OpMemberDecorate %S_atomic 0 Offset 0 | 
 |                OpMemberDecorate %S_atomic 1 Offset 4 | 
 |                OpMemberDecorate %S_atomic 2 Offset 8 | 
 |                OpDecorate %_arr_S_atomic_uint_10 ArrayStride 12 | 
 |        %uint = OpTypeInt 32 0 | 
 | %_ptr_Input_uint = OpTypePointer Input %uint | 
 | %local_invocation_index_1_param_1 = OpVariable %_ptr_Input_uint Input | 
 | %_ptr_Private_uint = OpTypePointer Private %uint | 
 |           %6 = OpConstantNull %uint | 
 | %local_invocation_index_1 = OpVariable %_ptr_Private_uint Private %6 | 
 |         %int = OpTypeInt 32 1 | 
 |    %S_atomic = OpTypeStruct %int %uint %uint | 
 |     %uint_10 = OpConstant %uint 10 | 
 | %_arr_S_atomic_uint_10 = OpTypeArray %S_atomic %uint_10 | 
 | %_ptr_Workgroup__arr_S_atomic_uint_10 = OpTypePointer Workgroup %_arr_S_atomic_uint_10 | 
 |          %wg = OpVariable %_ptr_Workgroup__arr_S_atomic_uint_10 Workgroup | 
 |        %void = OpTypeVoid | 
 |          %13 = OpTypeFunction %void %uint | 
 | %_ptr_Function_uint = OpTypePointer Function %uint | 
 |        %bool = OpTypeBool | 
 |      %uint_0 = OpConstant %uint 0 | 
 | %_ptr_Workgroup_int = OpTypePointer Workgroup %int | 
 |          %34 = OpConstantNull %int | 
 |      %uint_2 = OpConstant %uint 2 | 
 |      %uint_1 = OpConstant %uint 1 | 
 | %_ptr_Workgroup_uint = OpTypePointer Workgroup %uint | 
 | %_ptr_Workgroup_uint_0 = OpTypePointer Workgroup %uint | 
 |    %uint_264 = OpConstant %uint 264 | 
 |       %int_4 = OpConstant %int 4 | 
 |          %73 = OpTypeFunction %void | 
 | %tint_zero_workgroup_memory = OpFunction %void None %13 | 
 |   %local_idx = OpFunctionParameter %uint | 
 |          %17 = OpLabel | 
 |       %idx_1 = OpVariable %_ptr_Function_uint Function %6 | 
 |                OpStore %idx_1 %local_idx | 
 |                OpBranch %20 | 
 |          %20 = OpLabel | 
 |                OpLoopMerge %21 %22 None | 
 |                OpBranch %23 | 
 |          %23 = OpLabel | 
 |          %25 = OpLoad %uint %idx_1 | 
 |          %26 = OpULessThan %bool %25 %uint_10 | 
 |          %24 = OpLogicalNot %bool %26 | 
 |                OpSelectionMerge %28 None | 
 |                OpBranchConditional %24 %29 %28 | 
 |          %29 = OpLabel | 
 |                OpBranch %21 | 
 |          %28 = OpLabel | 
 |          %30 = OpLoad %uint %idx_1 | 
 |          %33 = OpAccessChain %_ptr_Workgroup_int %wg %30 %uint_0 | 
 |                OpStore %33 %34 | 
 |          %40 = OpAccessChain %_ptr_Workgroup_uint %wg %30 %uint_1 | 
 |                OpAtomicStore %40 %uint_2 %uint_0 %6 | 
 |          %42 = OpAccessChain %_ptr_Workgroup_uint_0 %wg %30 %uint_2 | 
 |                OpStore %42 %6 | 
 |                OpBranch %22 | 
 |          %22 = OpLabel | 
 |          %43 = OpLoad %uint %idx_1 | 
 |          %44 = OpIAdd %uint %43 %uint_1 | 
 |                OpStore %idx_1 %44 | 
 |                OpBranch %20 | 
 |          %21 = OpLabel | 
 |                OpControlBarrier %uint_2 %uint_2 %uint_264 | 
 |                OpReturn | 
 |                OpFunctionEnd | 
 | %compute_main_inner = OpFunction %void None %13 | 
 | %local_invocation_index_2 = OpFunctionParameter %uint | 
 |          %49 = OpLabel | 
 |         %idx = OpVariable %_ptr_Function_uint Function %6 | 
 |                OpStore %idx %6 | 
 |                OpStore %idx %local_invocation_index_2 | 
 |                OpBranch %51 | 
 |          %51 = OpLabel | 
 |                OpLoopMerge %52 %53 None | 
 |                OpBranch %54 | 
 |          %54 = OpLabel | 
 |          %56 = OpLoad %uint %idx | 
 |          %57 = OpULessThan %bool %56 %uint_10 | 
 |          %55 = OpLogicalNot %bool %57 | 
 |                OpSelectionMerge %58 None | 
 |                OpBranchConditional %55 %59 %58 | 
 |          %59 = OpLabel | 
 |                OpBranch %52 | 
 |          %58 = OpLabel | 
 |          %60 = OpLoad %uint %idx | 
 |          %61 = OpAccessChain %_ptr_Workgroup_int %wg %60 %uint_0 | 
 |                OpStore %61 %34 | 
 |          %64 = OpAccessChain %_ptr_Workgroup_uint %wg %60 %uint_1 | 
 |                OpAtomicStore %64 %uint_2 %uint_0 %6 | 
 |          %65 = OpAccessChain %_ptr_Workgroup_uint_0 %wg %60 %uint_2 | 
 |                OpStore %65 %6 | 
 |                OpBranch %53 | 
 |          %53 = OpLabel | 
 |          %66 = OpLoad %uint %idx | 
 |          %67 = OpIAdd %uint %66 %uint_1 | 
 |                OpStore %idx %67 | 
 |                OpBranch %51 | 
 |          %52 = OpLabel | 
 |                OpControlBarrier %uint_2 %uint_2 %uint_264 | 
 |          %72 = OpAccessChain %_ptr_Workgroup_uint %wg %int_4 %uint_1 | 
 |                OpAtomicStore %72 %uint_2 %uint_0 %uint_1 | 
 |                OpReturn | 
 |                OpFunctionEnd | 
 | %compute_main_1 = OpFunction %void None %73 | 
 |          %75 = OpLabel | 
 |          %76 = OpLoad %uint %local_invocation_index_1 | 
 |          %77 = OpFunctionCall %void %compute_main_inner %76 | 
 |                OpReturn | 
 |                OpFunctionEnd | 
 | %compute_main_inner_1 = OpFunction %void None %13 | 
 | %local_invocation_index_1_param = OpFunctionParameter %uint | 
 |          %80 = OpLabel | 
 |          %81 = OpFunctionCall %void %tint_zero_workgroup_memory %local_invocation_index_1_param | 
 |                OpStore %local_invocation_index_1 %local_invocation_index_1_param | 
 |          %82 = OpFunctionCall %void %compute_main_1 | 
 |                OpReturn | 
 |                OpFunctionEnd | 
 | %compute_main = OpFunction %void None %73 | 
 |          %84 = OpLabel | 
 |          %86 = OpLoad %uint %local_invocation_index_1_param_1 | 
 |          %85 = OpFunctionCall %void %compute_main_inner_1 %86 | 
 |                OpReturn | 
 |                OpFunctionEnd |