| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 132 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" %tint_symbol_1 |
| OpExecutionMode %main OriginUpperLeft |
| OpName %x_GLF_color "x_GLF_color" |
| OpName %buf1 "buf1" |
| OpMemberName %buf1 0 "x_GLF_uniform_int_values" |
| OpName %x_8 "x_8" |
| OpName %buf0 "buf0" |
| OpMemberName %buf0 0 "x_GLF_uniform_float_values" |
| OpName %x_10 "x_10" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %main_1 "main_1" |
| OpName %f0 "f0" |
| OpName %s1 "s1" |
| OpName %f1 "f1" |
| OpName %x_72 "x_72" |
| OpName %x_73_phi "x_73_phi" |
| OpName %x_62 "x_62" |
| OpName %x_71 "x_71" |
| OpName %x_63_phi "x_63_phi" |
| OpName %x_72_phi "x_72_phi" |
| OpName %main_out "main_out" |
| OpMemberName %main_out 0 "x_GLF_color_1" |
| OpName %tint_symbol_2 "tint_symbol_2" |
| OpName %tint_symbol "tint_symbol" |
| OpName %main "main" |
| OpDecorate %buf1 Block |
| OpMemberDecorate %buf1 0 Offset 0 |
| OpDecorate %_arr_int_uint_2 ArrayStride 16 |
| OpDecorate %x_8 NonWritable |
| OpDecorate %x_8 DescriptorSet 0 |
| OpDecorate %x_8 Binding 1 |
| OpDecorate %buf0 Block |
| OpMemberDecorate %buf0 0 Offset 0 |
| OpDecorate %_arr_float_uint_1 ArrayStride 16 |
| OpDecorate %x_10 NonWritable |
| OpDecorate %x_10 DescriptorSet 0 |
| OpDecorate %x_10 Binding 0 |
| OpDecorate %tint_symbol_1 Location 0 |
| OpMemberDecorate %main_out 0 Offset 0 |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %_ptr_Private_v4float = OpTypePointer Private %v4float |
| %5 = OpConstantNull %v4float |
| %x_GLF_color = OpVariable %_ptr_Private_v4float Private %5 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_int_uint_2 = OpTypeArray %int %uint_2 |
| %buf1 = OpTypeStruct %_arr_int_uint_2 |
| %_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1 |
| %x_8 = OpVariable %_ptr_Uniform_buf1 Uniform |
| %uint_1 = OpConstant %uint 1 |
| %_arr_float_uint_1 = OpTypeArray %float %uint_1 |
| %buf0 = OpTypeStruct %_arr_float_uint_1 |
| %_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0 |
| %x_10 = OpVariable %_ptr_Uniform_buf0 Uniform |
| %_ptr_Output_v4float = OpTypePointer Output %v4float |
| %tint_symbol_1 = OpVariable %_ptr_Output_v4float Output %5 |
| %void = OpTypeVoid |
| %20 = OpTypeFunction %void |
| %_ptr_Function_float = OpTypePointer Function %float |
| %26 = OpConstantNull %float |
| %bool = OpTypeBool |
| %_ptr_Function_bool = OpTypePointer Function %bool |
| %32 = OpConstantNull %bool |
| %float_10 = OpConstant %float 10 |
| %float_9_99999997en07 = OpConstant %float 9.99999997e-07 |
| %float_0x1_b38fb8pn127 = OpConstant %float 0x1.b38fb8p-127 |
| %float_0 = OpConstant %float 0 |
| %float_1 = OpConstant %float 1 |
| %float_0_99000001 = OpConstant %float 0.99000001 |
| %float_0_00999999978 = OpConstant %float 0.00999999978 |
| %uint_0 = OpConstant %uint 0 |
| %int_1 = OpConstant %int 1 |
| %_ptr_Uniform_int = OpTypePointer Uniform %int |
| %int_0 = OpConstant %int 0 |
| %main_out = OpTypeStruct %v4float |
| %120 = OpTypeFunction %void %main_out |
| %main_1 = OpFunction %void None %20 |
| %23 = OpLabel |
| %f0 = OpVariable %_ptr_Function_float Function %26 |
| %s1 = OpVariable %_ptr_Function_float Function %26 |
| %f1 = OpVariable %_ptr_Function_float Function %26 |
| %x_72 = OpVariable %_ptr_Function_bool Function %32 |
| %x_73_phi = OpVariable %_ptr_Function_bool Function %32 |
| %x_62 = OpVariable %_ptr_Function_bool Function %32 |
| %x_71 = OpVariable %_ptr_Function_bool Function %32 |
| %x_63_phi = OpVariable %_ptr_Function_bool Function %32 |
| %x_72_phi = OpVariable %_ptr_Function_bool Function %32 |
| %36 = OpFRem %float %float_10 %float_9_99999997en07 |
| OpStore %f0 %36 |
| OpStore %s1 %float_0x1_b38fb8pn127 |
| %38 = OpLoad %float %s1 |
| %40 = OpFOrdEqual %bool %38 %float_0 |
| OpSelectionMerge %41 None |
| OpBranchConditional %40 %42 %41 |
| %42 = OpLabel |
| OpStore %s1 %float_1 |
| OpBranch %41 |
| %41 = OpLabel |
| %48 = OpLoad %float %s1 |
| %49 = OpFRem %float %float_10 %48 |
| OpStore %f1 %49 |
| %50 = OpLoad %float %f1 |
| %51 = OpLoad %float %s1 |
| %52 = OpIsInf %bool %50 |
| OpSelectionMerge %53 None |
| OpBranchConditional %52 %53 %54 |
| %54 = OpLabel |
| %55 = OpFOrdEqual %bool %51 %float_1 |
| OpBranch %53 |
| %53 = OpLabel |
| %56 = OpPhi %bool %52 %41 %55 %54 |
| OpStore %x_73_phi %56 |
| %57 = OpLogicalNot %bool %56 |
| OpSelectionMerge %58 None |
| OpBranchConditional %57 %59 %58 |
| %59 = OpLabel |
| %60 = OpLoad %float %f0 |
| %61 = OpLoad %float %f1 |
| %62 = OpFOrdEqual %bool %60 %61 |
| OpStore %x_63_phi %62 |
| %63 = OpLogicalNot %bool %62 |
| OpSelectionMerge %64 None |
| OpBranchConditional %63 %65 %64 |
| %65 = OpLabel |
| %66 = OpLoad %float %f0 |
| %67 = OpLoad %float %f0 |
| %69 = OpFOrdGreaterThan %bool %66 %float_0_99000001 |
| OpSelectionMerge %70 None |
| OpBranchConditional %69 %71 %70 |
| %71 = OpLabel |
| %73 = OpFOrdLessThan %bool %67 %float_0_00999999978 |
| OpBranch %70 |
| %70 = OpLabel |
| %74 = OpPhi %bool %69 %65 %73 %71 |
| OpStore %x_62 %74 |
| %75 = OpLoad %bool %x_62 |
| OpStore %x_63_phi %75 |
| OpBranch %64 |
| %64 = OpLabel |
| %76 = OpLoad %bool %x_63_phi |
| OpStore %x_72_phi %76 |
| %77 = OpLogicalNot %bool %76 |
| OpSelectionMerge %78 None |
| OpBranchConditional %77 %79 %78 |
| %79 = OpLabel |
| %80 = OpLoad %float %f1 |
| %81 = OpLoad %float %f1 |
| %82 = OpFOrdGreaterThan %bool %80 %float_0_99000001 |
| OpSelectionMerge %83 None |
| OpBranchConditional %82 %84 %83 |
| %84 = OpLabel |
| %85 = OpFOrdLessThan %bool %81 %float_0_00999999978 |
| OpBranch %83 |
| %83 = OpLabel |
| %86 = OpPhi %bool %82 %79 %85 %84 |
| OpStore %x_71 %86 |
| %87 = OpLoad %bool %x_71 |
| OpStore %x_72_phi %87 |
| OpBranch %78 |
| %78 = OpLabel |
| %88 = OpLoad %bool %x_72_phi |
| OpStore %x_72 %88 |
| %89 = OpLoad %bool %x_72 |
| OpStore %x_73_phi %89 |
| OpBranch %58 |
| %58 = OpLabel |
| %90 = OpLoad %bool %x_73_phi |
| %91 = OpLoad %float %f1 |
| OpSelectionMerge %92 None |
| OpBranchConditional %90 %92 %93 |
| %93 = OpLabel |
| %94 = OpFOrdEqual %bool %91 %float_10 |
| OpBranch %92 |
| %92 = OpLabel |
| %95 = OpPhi %bool %90 %58 %94 %93 |
| OpSelectionMerge %96 None |
| OpBranchConditional %95 %97 %98 |
| %97 = OpLabel |
| %102 = OpAccessChain %_ptr_Uniform_int %x_8 %uint_0 %int_1 |
| %103 = OpLoad %int %102 |
| %105 = OpAccessChain %_ptr_Uniform_int %x_8 %uint_0 %int_0 |
| %106 = OpLoad %int %105 |
| %107 = OpAccessChain %_ptr_Uniform_int %x_8 %uint_0 %int_0 |
| %108 = OpLoad %int %107 |
| %109 = OpAccessChain %_ptr_Uniform_int %x_8 %uint_0 %int_1 |
| %110 = OpLoad %int %109 |
| %111 = OpConvertSToF %float %103 |
| %112 = OpConvertSToF %float %106 |
| %113 = OpConvertSToF %float %108 |
| %114 = OpConvertSToF %float %110 |
| %115 = OpCompositeConstruct %v4float %111 %112 %113 %114 |
| OpStore %x_GLF_color %115 |
| OpBranch %96 |
| %98 = OpLabel |
| %116 = OpAccessChain %_ptr_Uniform_int %x_8 %uint_0 %int_0 |
| %117 = OpLoad %int %116 |
| %118 = OpConvertSToF %float %117 |
| %119 = OpCompositeConstruct %v4float %118 %118 %118 %118 |
| OpStore %x_GLF_color %119 |
| OpBranch %96 |
| %96 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_symbol_2 = OpFunction %void None %120 |
| %tint_symbol = OpFunctionParameter %main_out |
| %124 = OpLabel |
| %125 = OpCompositeExtract %v4float %tint_symbol 0 |
| OpStore %tint_symbol_1 %125 |
| OpReturn |
| OpFunctionEnd |
| %main = OpFunction %void None %20 |
| %127 = OpLabel |
| %128 = OpFunctionCall %void %main_1 |
| %130 = OpLoad %v4float %x_GLF_color |
| %131 = OpCompositeConstruct %main_out %130 |
| %129 = OpFunctionCall %void %tint_symbol_2 %131 |
| OpReturn |
| OpFunctionEnd |