| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 0 |
| ; Bound: 37 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %unused_entry_point "unused_entry_point" |
| OpExecutionMode %unused_entry_point LocalSize 1 1 1 |
| OpName %t "t" |
| OpName %unused_entry_point "unused_entry_point" |
| OpName %tint_ftoi "tint_ftoi" |
| OpName %v "v" |
| OpName %m "m" |
| OpName %f "f" |
| OpName %v_0 "v" |
| %float = OpTypeFloat 32 |
| %_ptr_Private_float = OpTypePointer Private %float |
| %4 = OpConstantNull %float |
| %t = OpVariable %_ptr_Private_float Private %4 |
| %void = OpTypeVoid |
| %5 = OpTypeFunction %void |
| %int = OpTypeInt 32 1 |
| %9 = OpTypeFunction %int %float |
| %float_2_14748352e_09 = OpConstant %float 2.14748352e+09 |
| %bool = OpTypeBool |
| %float_n2_14748365e_09 = OpConstant %float -2.14748365e+09 |
| %int_n2147483648 = OpConstant %int -2147483648 |
| %int_2147483647 = OpConstant %int 2147483647 |
| %24 = OpTypeFunction %float |
| %float_1 = OpConstant %float 1 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %36 = OpConstantNull %int |
| %unused_entry_point = OpFunction %void None %5 |
| %8 = OpLabel |
| OpReturn |
| OpFunctionEnd |
| %tint_ftoi = OpFunction %int None %9 |
| %v = OpFunctionParameter %float |
| %13 = OpLabel |
| %16 = OpFOrdLessThan %bool %v %float_2_14748352e_09 |
| %20 = OpFOrdLessThan %bool %v %float_n2_14748365e_09 |
| %22 = OpConvertFToS %int %v |
| %18 = OpSelect %int %20 %int_n2147483648 %22 |
| %14 = OpSelect %int %16 %18 %int_2147483647 |
| OpReturnValue %14 |
| OpFunctionEnd |
| %m = OpFunction %float None %24 |
| %26 = OpLabel |
| OpStore %t %float_1 |
| %29 = OpLoad %float %t |
| OpReturnValue %29 |
| OpFunctionEnd |
| %f = OpFunction %void None %5 |
| %31 = OpLabel |
| %v_0 = OpVariable %_ptr_Function_int Function %36 |
| %32 = OpFunctionCall %float %m |
| %33 = OpFunctionCall %int %tint_ftoi %32 |
| OpStore %v_0 %33 |
| OpReturn |
| OpFunctionEnd |