; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z34_hmt_test_QuaternionOps_QuatToMat4P21hmt_testresult_struct)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%union.HMM_Quat = type { <4 x float> }
%union.HMM_Mat4 = type { [4 x %union.HMM_Vec4] }
%union.HMM_Vec4 = type { <4 x float> }
%struct.hmt_testresult_struct = type { i32, i32 }

@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

declare i32 @printf(ptr noundef, ...) #2

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL5HMM_Qffff(float noundef, float noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z34_hmt_test_QuaternionOps_QuatToMat4P21hmt_testresult_struct(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca %union.HMM_Quat, align 16
  %5 = alloca %union.HMM_Mat4, align 16
  %6 = alloca %union.HMM_Quat, align 16
  %7 = alloca float, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca float, align 4
  %12 = alloca float, align 4
  %13 = alloca float, align 4
  %14 = alloca float, align 4
  %15 = alloca float, align 4
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca float, align 4
  %23 = alloca float, align 4
  %24 = alloca float, align 4
  %25 = alloca float, align 4
  %26 = alloca float, align 4
  %27 = alloca float, align 4
  %28 = alloca float, align 4
  %29 = alloca float, align 4
  %30 = alloca float, align 4
  %31 = alloca float, align 4
  %32 = alloca float, align 4
  %33 = alloca float, align 4
  %34 = alloca float, align 4
  %35 = alloca float, align 4
  %36 = alloca float, align 4
  %37 = alloca float, align 4
  %38 = alloca float, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #6
  store float 0x3F50624DE0000000, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  %39 = call { double, double } @_ZL5HMM_Qffff(float noundef 0x3FE6A09EE0000000, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FE6A09EE0000000)
  %40 = getelementptr inbounds %union.HMM_Quat, ptr %4, i32 0, i32 0
  %41 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 0
  %42 = extractvalue { double, double } %39, 0
  store double %42, ptr %41, align 16
  %43 = getelementptr inbounds { double, double }, ptr %40, i32 0, i32 1
  %44 = extractvalue { double, double } %39, 1
  store double %44, ptr %43, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %6, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !11
  %45 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %46 = load double, ptr %45, align 16
  %47 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %48 = load double, ptr %47, align 8
  call void @_ZL9HMM_QToM48HMM_Quat(ptr dead_on_unwind writable sret(%union.HMM_Mat4) align 16 %5, double %46, double %48)
  %49 = load ptr, ptr %2, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %49, i32 0, i32 0
  %51 = load i32, ptr %50, align 4, !tbaa !13
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr %50, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #6
  %53 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %54 = getelementptr inbounds [4 x float], ptr %53, i64 0, i64 0
  %55 = load float, ptr %54, align 16, !tbaa !12
  store float %55, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #6
  %56 = load float, ptr %7, align 4, !tbaa !9
  %57 = fsub float %56, 1.000000e+00
  store float %57, ptr %8, align 4, !tbaa !9
  %58 = load float, ptr %8, align 4, !tbaa !9
  %59 = fcmp olt float %58, 0xBF50624DE0000000
  br i1 %59, label %63, label %60

60:                                               ; preds = %1
  %61 = load float, ptr %8, align 4, !tbaa !9
  %62 = fcmp olt float 0x3F50624DE0000000, %61
  br i1 %62, label %63, label %72

63:                                               ; preds = %60, %1
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %64, i32 0, i32 1
  %66 = load i32, ptr %65, align 4, !tbaa !16
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %65, align 4, !tbaa !16
  %68 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 117)
  %69 = load float, ptr %7, align 4, !tbaa !9
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 1.000000e+00, double noundef %70)
  br label %72

72:                                               ; preds = %63, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #6
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %73, i32 0, i32 0
  %75 = load i32, ptr %74, align 4, !tbaa !13
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %74, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %77 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %78 = getelementptr inbounds [4 x float], ptr %77, i64 0, i64 1
  %79 = load float, ptr %78, align 4, !tbaa !12
  store float %79, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %80 = load float, ptr %9, align 4, !tbaa !9
  %81 = fsub float %80, 0.000000e+00
  store float %81, ptr %10, align 4, !tbaa !9
  %82 = load float, ptr %10, align 4, !tbaa !9
  %83 = fcmp olt float %82, 0xBF50624DE0000000
  br i1 %83, label %87, label %84

84:                                               ; preds = %72
  %85 = load float, ptr %10, align 4, !tbaa !9
  %86 = fcmp olt float 0x3F50624DE0000000, %85
  br i1 %86, label %87, label %96

87:                                               ; preds = %84, %72
  %88 = load ptr, ptr %2, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %88, i32 0, i32 1
  %90 = load i32, ptr %89, align 4, !tbaa !16
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %89, align 4, !tbaa !16
  %92 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 118)
  %93 = load float, ptr %9, align 4, !tbaa !9
  %94 = fpext float %93 to double
  %95 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %94)
  br label %96

96:                                               ; preds = %87, %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  %97 = load ptr, ptr %2, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 4, !tbaa !13
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %98, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %101 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %102 = getelementptr inbounds [4 x float], ptr %101, i64 0, i64 2
  %103 = load float, ptr %102, align 8, !tbaa !12
  store float %103, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %104 = load float, ptr %11, align 4, !tbaa !9
  %105 = fsub float %104, 0.000000e+00
  store float %105, ptr %12, align 4, !tbaa !9
  %106 = load float, ptr %12, align 4, !tbaa !9
  %107 = fcmp olt float %106, 0xBF50624DE0000000
  br i1 %107, label %111, label %108

108:                                              ; preds = %96
  %109 = load float, ptr %12, align 4, !tbaa !9
  %110 = fcmp olt float 0x3F50624DE0000000, %109
  br i1 %110, label %111, label %120

111:                                              ; preds = %108, %96
  %112 = load ptr, ptr %2, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %112, i32 0, i32 1
  %114 = load i32, ptr %113, align 4, !tbaa !16
  %115 = add nsw i32 %114, 1
  store i32 %115, ptr %113, align 4, !tbaa !16
  %116 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 119)
  %117 = load float, ptr %11, align 4, !tbaa !9
  %118 = fpext float %117 to double
  %119 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %118)
  br label %120

120:                                              ; preds = %111, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  %121 = load ptr, ptr %2, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %121, i32 0, i32 0
  %123 = load i32, ptr %122, align 4, !tbaa !13
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %122, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %125 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 0
  %126 = getelementptr inbounds [4 x float], ptr %125, i64 0, i64 3
  %127 = load float, ptr %126, align 4, !tbaa !12
  store float %127, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %128 = load float, ptr %13, align 4, !tbaa !9
  %129 = fsub float %128, 0.000000e+00
  store float %129, ptr %14, align 4, !tbaa !9
  %130 = load float, ptr %14, align 4, !tbaa !9
  %131 = fcmp olt float %130, 0xBF50624DE0000000
  br i1 %131, label %135, label %132

132:                                              ; preds = %120
  %133 = load float, ptr %14, align 4, !tbaa !9
  %134 = fcmp olt float 0x3F50624DE0000000, %133
  br i1 %134, label %135, label %144

135:                                              ; preds = %132, %120
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 4, !tbaa !16
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %137, align 4, !tbaa !16
  %140 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 120)
  %141 = load float, ptr %13, align 4, !tbaa !9
  %142 = fpext float %141 to double
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %142)
  br label %144

144:                                              ; preds = %135, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %145 = load ptr, ptr %2, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 4, !tbaa !13
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %146, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %149 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 1
  %150 = getelementptr inbounds [4 x float], ptr %149, i64 0, i64 0
  %151 = load float, ptr %150, align 16, !tbaa !12
  store float %151, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %152 = load float, ptr %15, align 4, !tbaa !9
  %153 = fsub float %152, 0.000000e+00
  store float %153, ptr %16, align 4, !tbaa !9
  %154 = load float, ptr %16, align 4, !tbaa !9
  %155 = fcmp olt float %154, 0xBF50624DE0000000
  br i1 %155, label %159, label %156

156:                                              ; preds = %144
  %157 = load float, ptr %16, align 4, !tbaa !9
  %158 = fcmp olt float 0x3F50624DE0000000, %157
  br i1 %158, label %159, label %168

159:                                              ; preds = %156, %144
  %160 = load ptr, ptr %2, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !16
  %163 = add nsw i32 %162, 1
  store i32 %163, ptr %161, align 4, !tbaa !16
  %164 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 122)
  %165 = load float, ptr %15, align 4, !tbaa !9
  %166 = fpext float %165 to double
  %167 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %166)
  br label %168

168:                                              ; preds = %159, %156
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %169 = load ptr, ptr %2, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %169, i32 0, i32 0
  %171 = load i32, ptr %170, align 4, !tbaa !13
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %170, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %173 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 1
  %174 = getelementptr inbounds [4 x float], ptr %173, i64 0, i64 1
  %175 = load float, ptr %174, align 4, !tbaa !12
  store float %175, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %176 = load float, ptr %17, align 4, !tbaa !9
  %177 = fsub float %176, 0.000000e+00
  store float %177, ptr %18, align 4, !tbaa !9
  %178 = load float, ptr %18, align 4, !tbaa !9
  %179 = fcmp olt float %178, 0xBF50624DE0000000
  br i1 %179, label %183, label %180

180:                                              ; preds = %168
  %181 = load float, ptr %18, align 4, !tbaa !9
  %182 = fcmp olt float 0x3F50624DE0000000, %181
  br i1 %182, label %183, label %192

183:                                              ; preds = %180, %168
  %184 = load ptr, ptr %2, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %184, i32 0, i32 1
  %186 = load i32, ptr %185, align 4, !tbaa !16
  %187 = add nsw i32 %186, 1
  store i32 %187, ptr %185, align 4, !tbaa !16
  %188 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 123)
  %189 = load float, ptr %17, align 4, !tbaa !9
  %190 = fpext float %189 to double
  %191 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %190)
  br label %192

192:                                              ; preds = %183, %180
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  %193 = load ptr, ptr %2, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %193, i32 0, i32 0
  %195 = load i32, ptr %194, align 4, !tbaa !13
  %196 = add nsw i32 %195, 1
  store i32 %196, ptr %194, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #6
  %197 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 1
  %198 = getelementptr inbounds [4 x float], ptr %197, i64 0, i64 2
  %199 = load float, ptr %198, align 8, !tbaa !12
  store float %199, ptr %19, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #6
  %200 = load float, ptr %19, align 4, !tbaa !9
  %201 = fsub float %200, 1.000000e+00
  store float %201, ptr %20, align 4, !tbaa !9
  %202 = load float, ptr %20, align 4, !tbaa !9
  %203 = fcmp olt float %202, 0xBF50624DE0000000
  br i1 %203, label %207, label %204

204:                                              ; preds = %192
  %205 = load float, ptr %20, align 4, !tbaa !9
  %206 = fcmp olt float 0x3F50624DE0000000, %205
  br i1 %206, label %207, label %216

207:                                              ; preds = %204, %192
  %208 = load ptr, ptr %2, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %208, i32 0, i32 1
  %210 = load i32, ptr %209, align 4, !tbaa !16
  %211 = add nsw i32 %210, 1
  store i32 %211, ptr %209, align 4, !tbaa !16
  %212 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 124)
  %213 = load float, ptr %19, align 4, !tbaa !9
  %214 = fpext float %213 to double
  %215 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 1.000000e+00, double noundef %214)
  br label %216

216:                                              ; preds = %207, %204
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #6
  %217 = load ptr, ptr %2, align 8, !tbaa !5
  %218 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %217, i32 0, i32 0
  %219 = load i32, ptr %218, align 4, !tbaa !13
  %220 = add nsw i32 %219, 1
  store i32 %220, ptr %218, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %221 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 1
  %222 = getelementptr inbounds [4 x float], ptr %221, i64 0, i64 3
  %223 = load float, ptr %222, align 4, !tbaa !12
  store float %223, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #6
  %224 = load float, ptr %21, align 4, !tbaa !9
  %225 = fsub float %224, 0.000000e+00
  store float %225, ptr %22, align 4, !tbaa !9
  %226 = load float, ptr %22, align 4, !tbaa !9
  %227 = fcmp olt float %226, 0xBF50624DE0000000
  br i1 %227, label %231, label %228

228:                                              ; preds = %216
  %229 = load float, ptr %22, align 4, !tbaa !9
  %230 = fcmp olt float 0x3F50624DE0000000, %229
  br i1 %230, label %231, label %240

231:                                              ; preds = %228, %216
  %232 = load ptr, ptr %2, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %232, i32 0, i32 1
  %234 = load i32, ptr %233, align 4, !tbaa !16
  %235 = add nsw i32 %234, 1
  store i32 %235, ptr %233, align 4, !tbaa !16
  %236 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 125)
  %237 = load float, ptr %21, align 4, !tbaa !9
  %238 = fpext float %237 to double
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %238)
  br label %240

240:                                              ; preds = %231, %228
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  %241 = load ptr, ptr %2, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %241, i32 0, i32 0
  %243 = load i32, ptr %242, align 4, !tbaa !13
  %244 = add nsw i32 %243, 1
  store i32 %244, ptr %242, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  %245 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 2
  %246 = getelementptr inbounds [4 x float], ptr %245, i64 0, i64 0
  %247 = load float, ptr %246, align 16, !tbaa !12
  store float %247, ptr %23, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  %248 = load float, ptr %23, align 4, !tbaa !9
  %249 = fsub float %248, 0.000000e+00
  store float %249, ptr %24, align 4, !tbaa !9
  %250 = load float, ptr %24, align 4, !tbaa !9
  %251 = fcmp olt float %250, 0xBF50624DE0000000
  br i1 %251, label %255, label %252

252:                                              ; preds = %240
  %253 = load float, ptr %24, align 4, !tbaa !9
  %254 = fcmp olt float 0x3F50624DE0000000, %253
  br i1 %254, label %255, label %264

255:                                              ; preds = %252, %240
  %256 = load ptr, ptr %2, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 4, !tbaa !16
  %259 = add nsw i32 %258, 1
  store i32 %259, ptr %257, align 4, !tbaa !16
  %260 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 127)
  %261 = load float, ptr %23, align 4, !tbaa !9
  %262 = fpext float %261 to double
  %263 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %262)
  br label %264

264:                                              ; preds = %255, %252
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  %265 = load ptr, ptr %2, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %265, i32 0, i32 0
  %267 = load i32, ptr %266, align 4, !tbaa !13
  %268 = add nsw i32 %267, 1
  store i32 %268, ptr %266, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  %269 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 2
  %270 = getelementptr inbounds [4 x float], ptr %269, i64 0, i64 1
  %271 = load float, ptr %270, align 4, !tbaa !12
  store float %271, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #6
  %272 = load float, ptr %25, align 4, !tbaa !9
  %273 = fsub float %272, -1.000000e+00
  store float %273, ptr %26, align 4, !tbaa !9
  %274 = load float, ptr %26, align 4, !tbaa !9
  %275 = fcmp olt float %274, 0xBF50624DE0000000
  br i1 %275, label %279, label %276

276:                                              ; preds = %264
  %277 = load float, ptr %26, align 4, !tbaa !9
  %278 = fcmp olt float 0x3F50624DE0000000, %277
  br i1 %278, label %279, label %288

279:                                              ; preds = %276, %264
  %280 = load ptr, ptr %2, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %280, i32 0, i32 1
  %282 = load i32, ptr %281, align 4, !tbaa !16
  %283 = add nsw i32 %282, 1
  store i32 %283, ptr %281, align 4, !tbaa !16
  %284 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 128)
  %285 = load float, ptr %25, align 4, !tbaa !9
  %286 = fpext float %285 to double
  %287 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef -1.000000e+00, double noundef %286)
  br label %288

288:                                              ; preds = %279, %276
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %289 = load ptr, ptr %2, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %289, i32 0, i32 0
  %291 = load i32, ptr %290, align 4, !tbaa !13
  %292 = add nsw i32 %291, 1
  store i32 %292, ptr %290, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  %293 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 2
  %294 = getelementptr inbounds [4 x float], ptr %293, i64 0, i64 2
  %295 = load float, ptr %294, align 8, !tbaa !12
  store float %295, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #6
  %296 = load float, ptr %27, align 4, !tbaa !9
  %297 = fsub float %296, 0.000000e+00
  store float %297, ptr %28, align 4, !tbaa !9
  %298 = load float, ptr %28, align 4, !tbaa !9
  %299 = fcmp olt float %298, 0xBF50624DE0000000
  br i1 %299, label %303, label %300

300:                                              ; preds = %288
  %301 = load float, ptr %28, align 4, !tbaa !9
  %302 = fcmp olt float 0x3F50624DE0000000, %301
  br i1 %302, label %303, label %312

303:                                              ; preds = %300, %288
  %304 = load ptr, ptr %2, align 8, !tbaa !5
  %305 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %304, i32 0, i32 1
  %306 = load i32, ptr %305, align 4, !tbaa !16
  %307 = add nsw i32 %306, 1
  store i32 %307, ptr %305, align 4, !tbaa !16
  %308 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 129)
  %309 = load float, ptr %27, align 4, !tbaa !9
  %310 = fpext float %309 to double
  %311 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %310)
  br label %312

312:                                              ; preds = %303, %300
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  %313 = load ptr, ptr %2, align 8, !tbaa !5
  %314 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %313, i32 0, i32 0
  %315 = load i32, ptr %314, align 4, !tbaa !13
  %316 = add nsw i32 %315, 1
  store i32 %316, ptr %314, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %317 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 2
  %318 = getelementptr inbounds [4 x float], ptr %317, i64 0, i64 3
  %319 = load float, ptr %318, align 4, !tbaa !12
  store float %319, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %320 = load float, ptr %29, align 4, !tbaa !9
  %321 = fsub float %320, 0.000000e+00
  store float %321, ptr %30, align 4, !tbaa !9
  %322 = load float, ptr %30, align 4, !tbaa !9
  %323 = fcmp olt float %322, 0xBF50624DE0000000
  br i1 %323, label %327, label %324

324:                                              ; preds = %312
  %325 = load float, ptr %30, align 4, !tbaa !9
  %326 = fcmp olt float 0x3F50624DE0000000, %325
  br i1 %326, label %327, label %336

327:                                              ; preds = %324, %312
  %328 = load ptr, ptr %2, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %328, i32 0, i32 1
  %330 = load i32, ptr %329, align 4, !tbaa !16
  %331 = add nsw i32 %330, 1
  store i32 %331, ptr %329, align 4, !tbaa !16
  %332 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 130)
  %333 = load float, ptr %29, align 4, !tbaa !9
  %334 = fpext float %333 to double
  %335 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %334)
  br label %336

336:                                              ; preds = %327, %324
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  %337 = load ptr, ptr %2, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %337, i32 0, i32 0
  %339 = load i32, ptr %338, align 4, !tbaa !13
  %340 = add nsw i32 %339, 1
  store i32 %340, ptr %338, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %341 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 3
  %342 = getelementptr inbounds [4 x float], ptr %341, i64 0, i64 0
  %343 = load float, ptr %342, align 16, !tbaa !12
  store float %343, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %344 = load float, ptr %31, align 4, !tbaa !9
  %345 = fsub float %344, 0.000000e+00
  store float %345, ptr %32, align 4, !tbaa !9
  %346 = load float, ptr %32, align 4, !tbaa !9
  %347 = fcmp olt float %346, 0xBF50624DE0000000
  br i1 %347, label %351, label %348

348:                                              ; preds = %336
  %349 = load float, ptr %32, align 4, !tbaa !9
  %350 = fcmp olt float 0x3F50624DE0000000, %349
  br i1 %350, label %351, label %360

351:                                              ; preds = %348, %336
  %352 = load ptr, ptr %2, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %352, i32 0, i32 1
  %354 = load i32, ptr %353, align 4, !tbaa !16
  %355 = add nsw i32 %354, 1
  store i32 %355, ptr %353, align 4, !tbaa !16
  %356 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 132)
  %357 = load float, ptr %31, align 4, !tbaa !9
  %358 = fpext float %357 to double
  %359 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %358)
  br label %360

360:                                              ; preds = %351, %348
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  %361 = load ptr, ptr %2, align 8, !tbaa !5
  %362 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %361, i32 0, i32 0
  %363 = load i32, ptr %362, align 4, !tbaa !13
  %364 = add nsw i32 %363, 1
  store i32 %364, ptr %362, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %365 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 3
  %366 = getelementptr inbounds [4 x float], ptr %365, i64 0, i64 1
  %367 = load float, ptr %366, align 4, !tbaa !12
  store float %367, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %368 = load float, ptr %33, align 4, !tbaa !9
  %369 = fsub float %368, 0.000000e+00
  store float %369, ptr %34, align 4, !tbaa !9
  %370 = load float, ptr %34, align 4, !tbaa !9
  %371 = fcmp olt float %370, 0xBF50624DE0000000
  br i1 %371, label %375, label %372

372:                                              ; preds = %360
  %373 = load float, ptr %34, align 4, !tbaa !9
  %374 = fcmp olt float 0x3F50624DE0000000, %373
  br i1 %374, label %375, label %384

375:                                              ; preds = %372, %360
  %376 = load ptr, ptr %2, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %376, i32 0, i32 1
  %378 = load i32, ptr %377, align 4, !tbaa !16
  %379 = add nsw i32 %378, 1
  store i32 %379, ptr %377, align 4, !tbaa !16
  %380 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 133)
  %381 = load float, ptr %33, align 4, !tbaa !9
  %382 = fpext float %381 to double
  %383 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %382)
  br label %384

384:                                              ; preds = %375, %372
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  %385 = load ptr, ptr %2, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %385, i32 0, i32 0
  %387 = load i32, ptr %386, align 4, !tbaa !13
  %388 = add nsw i32 %387, 1
  store i32 %388, ptr %386, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  %389 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 3
  %390 = getelementptr inbounds [4 x float], ptr %389, i64 0, i64 2
  %391 = load float, ptr %390, align 8, !tbaa !12
  store float %391, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %392 = load float, ptr %35, align 4, !tbaa !9
  %393 = fsub float %392, 0.000000e+00
  store float %393, ptr %36, align 4, !tbaa !9
  %394 = load float, ptr %36, align 4, !tbaa !9
  %395 = fcmp olt float %394, 0xBF50624DE0000000
  br i1 %395, label %399, label %396

396:                                              ; preds = %384
  %397 = load float, ptr %36, align 4, !tbaa !9
  %398 = fcmp olt float 0x3F50624DE0000000, %397
  br i1 %398, label %399, label %408

399:                                              ; preds = %396, %384
  %400 = load ptr, ptr %2, align 8, !tbaa !5
  %401 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %400, i32 0, i32 1
  %402 = load i32, ptr %401, align 4, !tbaa !16
  %403 = add nsw i32 %402, 1
  store i32 %403, ptr %401, align 4, !tbaa !16
  %404 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 134)
  %405 = load float, ptr %35, align 4, !tbaa !9
  %406 = fpext float %405 to double
  %407 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %406)
  br label %408

408:                                              ; preds = %399, %396
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  %409 = load ptr, ptr %2, align 8, !tbaa !5
  %410 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %409, i32 0, i32 0
  %411 = load i32, ptr %410, align 4, !tbaa !13
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %410, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %413 = getelementptr inbounds [4 x [4 x float]], ptr %5, i64 0, i64 3
  %414 = getelementptr inbounds [4 x float], ptr %413, i64 0, i64 3
  %415 = load float, ptr %414, align 4, !tbaa !12
  store float %415, ptr %37, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  %416 = load float, ptr %37, align 4, !tbaa !9
  %417 = fsub float %416, 1.000000e+00
  store float %417, ptr %38, align 4, !tbaa !9
  %418 = load float, ptr %38, align 4, !tbaa !9
  %419 = fcmp olt float %418, 0xBF50624DE0000000
  br i1 %419, label %423, label %420

420:                                              ; preds = %408
  %421 = load float, ptr %38, align 4, !tbaa !9
  %422 = fcmp olt float 0x3F50624DE0000000, %421
  br i1 %422, label %423, label %432

423:                                              ; preds = %420, %408
  %424 = load ptr, ptr %2, align 8, !tbaa !5
  %425 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %424, i32 0, i32 1
  %426 = load i32, ptr %425, align 4, !tbaa !16
  %427 = add nsw i32 %426, 1
  store i32 %427, ptr %425, align 4, !tbaa !16
  %428 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 135)
  %429 = load float, ptr %37, align 4, !tbaa !9
  %430 = fpext float %429 to double
  %431 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 1.000000e+00, double noundef %430)
  br label %432

432:                                              ; preds = %423, %420
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL9HMM_QToM48HMM_Quat(ptr dead_on_unwind noalias writable sret(%union.HMM_Mat4) align 16, double, double) #5

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{i64 0, i64 16, !12}
!12 = !{!7, !7, i64 0}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS21hmt_testresult_struct", !15, i64 0, !15, i64 4}
!15 = !{!"int", !7, i64 0}
!16 = !{!14, !15, i64 4}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%union.HMM_Mat4 = type { [4 x %union.HMM_Vec4] }
%union.HMM_Vec4 = type { <4 x float> }

@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL5HMM_Qffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z34_hmt_test_QuaternionOps_QuatToMat4P21hmt_testresult_struct(ptr nocapture noundef %0) local_unnamed_addr #3 {
  %2 = alloca %union.HMM_Mat4, align 16
  %3 = tail call { double, double } @_ZL5HMM_Qffff(float noundef 0x3FE6A09EE0000000, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 0x3FE6A09EE0000000)
  %4 = extractvalue { double, double } %3, 0
  %5 = extractvalue { double, double } %3, 1
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  call void @_ZL9HMM_QToM48HMM_Quat(ptr dead_on_unwind nonnull writable sret(%union.HMM_Mat4) align 16 %2, double %4, double %5)
  %6 = load i32, ptr %0, align 4, !tbaa !5
  %7 = add nsw i32 %6, 1
  store i32 %7, ptr %0, align 4, !tbaa !5
  %8 = load float, ptr %2, align 16, !tbaa !10
  %9 = fadd float %8, -1.000000e+00
  %10 = call float @llvm.fabs.f32(float %9)
  %or.cond = fcmp ogt float %10, 0x3F50624DE0000000
  br i1 %or.cond, label %11, label %18

11:                                               ; preds = %1
  %12 = getelementptr inbounds i8, ptr %0, i64 4
  %13 = load i32, ptr %12, align 4, !tbaa !11
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %12, align 4, !tbaa !11
  %15 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 117)
  %16 = fpext float %8 to double
  %17 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 1.000000e+00, double noundef %16)
  %.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %18

18:                                               ; preds = %1, %11
  %19 = phi i32 [ %7, %1 ], [ %.pre, %11 ]
  %20 = add nsw i32 %19, 1
  store i32 %20, ptr %0, align 4, !tbaa !5
  %21 = getelementptr inbounds i8, ptr %2, i64 4
  %22 = load float, ptr %21, align 4, !tbaa !10
  %23 = call float @llvm.fabs.f32(float %22)
  %or.cond3 = fcmp ogt float %23, 0x3F50624DE0000000
  br i1 %or.cond3, label %24, label %31

24:                                               ; preds = %18
  %25 = getelementptr inbounds i8, ptr %0, i64 4
  %26 = load i32, ptr %25, align 4, !tbaa !11
  %27 = add nsw i32 %26, 1
  store i32 %27, ptr %25, align 4, !tbaa !11
  %28 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 118)
  %29 = fpext float %22 to double
  %30 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %29)
  %.pre128 = load i32, ptr %0, align 4, !tbaa !5
  br label %31

31:                                               ; preds = %18, %24
  %32 = phi i32 [ %20, %18 ], [ %.pre128, %24 ]
  %33 = add nsw i32 %32, 1
  store i32 %33, ptr %0, align 4, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %2, i64 8
  %35 = load float, ptr %34, align 8, !tbaa !10
  %36 = call float @llvm.fabs.f32(float %35)
  %or.cond5 = fcmp ogt float %36, 0x3F50624DE0000000
  br i1 %or.cond5, label %37, label %44

37:                                               ; preds = %31
  %38 = getelementptr inbounds i8, ptr %0, i64 4
  %39 = load i32, ptr %38, align 4, !tbaa !11
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %38, align 4, !tbaa !11
  %41 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 119)
  %42 = fpext float %35 to double
  %43 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %42)
  %.pre129 = load i32, ptr %0, align 4, !tbaa !5
  br label %44

44:                                               ; preds = %31, %37
  %45 = phi i32 [ %33, %31 ], [ %.pre129, %37 ]
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %0, align 4, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %2, i64 12
  %48 = load float, ptr %47, align 4, !tbaa !10
  %49 = call float @llvm.fabs.f32(float %48)
  %or.cond7 = fcmp ogt float %49, 0x3F50624DE0000000
  br i1 %or.cond7, label %50, label %57

50:                                               ; preds = %44
  %51 = getelementptr inbounds i8, ptr %0, i64 4
  %52 = load i32, ptr %51, align 4, !tbaa !11
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !11
  %54 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 120)
  %55 = fpext float %48 to double
  %56 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %55)
  %.pre130 = load i32, ptr %0, align 4, !tbaa !5
  br label %57

57:                                               ; preds = %44, %50
  %58 = phi i32 [ %46, %44 ], [ %.pre130, %50 ]
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %0, align 4, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %2, i64 16
  %61 = load float, ptr %60, align 16, !tbaa !10
  %62 = call float @llvm.fabs.f32(float %61)
  %or.cond9 = fcmp ogt float %62, 0x3F50624DE0000000
  br i1 %or.cond9, label %63, label %70

63:                                               ; preds = %57
  %64 = getelementptr inbounds i8, ptr %0, i64 4
  %65 = load i32, ptr %64, align 4, !tbaa !11
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %64, align 4, !tbaa !11
  %67 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 122)
  %68 = fpext float %61 to double
  %69 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %68)
  %.pre131 = load i32, ptr %0, align 4, !tbaa !5
  br label %70

70:                                               ; preds = %57, %63
  %71 = phi i32 [ %59, %57 ], [ %.pre131, %63 ]
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %0, align 4, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %2, i64 20
  %74 = load float, ptr %73, align 4, !tbaa !10
  %75 = call float @llvm.fabs.f32(float %74)
  %or.cond11 = fcmp ogt float %75, 0x3F50624DE0000000
  br i1 %or.cond11, label %76, label %83

76:                                               ; preds = %70
  %77 = getelementptr inbounds i8, ptr %0, i64 4
  %78 = load i32, ptr %77, align 4, !tbaa !11
  %79 = add nsw i32 %78, 1
  store i32 %79, ptr %77, align 4, !tbaa !11
  %80 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 123)
  %81 = fpext float %74 to double
  %82 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %81)
  %.pre132 = load i32, ptr %0, align 4, !tbaa !5
  br label %83

83:                                               ; preds = %70, %76
  %84 = phi i32 [ %72, %70 ], [ %.pre132, %76 ]
  %85 = add nsw i32 %84, 1
  store i32 %85, ptr %0, align 4, !tbaa !5
  %86 = getelementptr inbounds i8, ptr %2, i64 24
  %87 = load float, ptr %86, align 8, !tbaa !10
  %88 = fadd float %87, -1.000000e+00
  %89 = call float @llvm.fabs.f32(float %88)
  %or.cond13 = fcmp ogt float %89, 0x3F50624DE0000000
  br i1 %or.cond13, label %90, label %97

90:                                               ; preds = %83
  %91 = getelementptr inbounds i8, ptr %0, i64 4
  %92 = load i32, ptr %91, align 4, !tbaa !11
  %93 = add nsw i32 %92, 1
  store i32 %93, ptr %91, align 4, !tbaa !11
  %94 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 124)
  %95 = fpext float %87 to double
  %96 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 1.000000e+00, double noundef %95)
  %.pre133 = load i32, ptr %0, align 4, !tbaa !5
  br label %97

97:                                               ; preds = %83, %90
  %98 = phi i32 [ %85, %83 ], [ %.pre133, %90 ]
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %0, align 4, !tbaa !5
  %100 = getelementptr inbounds i8, ptr %2, i64 28
  %101 = load float, ptr %100, align 4, !tbaa !10
  %102 = call float @llvm.fabs.f32(float %101)
  %or.cond15 = fcmp ogt float %102, 0x3F50624DE0000000
  br i1 %or.cond15, label %103, label %110

103:                                              ; preds = %97
  %104 = getelementptr inbounds i8, ptr %0, i64 4
  %105 = load i32, ptr %104, align 4, !tbaa !11
  %106 = add nsw i32 %105, 1
  store i32 %106, ptr %104, align 4, !tbaa !11
  %107 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 125)
  %108 = fpext float %101 to double
  %109 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %108)
  %.pre134 = load i32, ptr %0, align 4, !tbaa !5
  br label %110

110:                                              ; preds = %97, %103
  %111 = phi i32 [ %99, %97 ], [ %.pre134, %103 ]
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %0, align 4, !tbaa !5
  %113 = getelementptr inbounds i8, ptr %2, i64 32
  %114 = load float, ptr %113, align 16, !tbaa !10
  %115 = call float @llvm.fabs.f32(float %114)
  %or.cond17 = fcmp ogt float %115, 0x3F50624DE0000000
  br i1 %or.cond17, label %116, label %123

116:                                              ; preds = %110
  %117 = getelementptr inbounds i8, ptr %0, i64 4
  %118 = load i32, ptr %117, align 4, !tbaa !11
  %119 = add nsw i32 %118, 1
  store i32 %119, ptr %117, align 4, !tbaa !11
  %120 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 127)
  %121 = fpext float %114 to double
  %122 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %121)
  %.pre135 = load i32, ptr %0, align 4, !tbaa !5
  br label %123

123:                                              ; preds = %110, %116
  %124 = phi i32 [ %112, %110 ], [ %.pre135, %116 ]
  %125 = add nsw i32 %124, 1
  store i32 %125, ptr %0, align 4, !tbaa !5
  %126 = getelementptr inbounds i8, ptr %2, i64 36
  %127 = load float, ptr %126, align 4, !tbaa !10
  %128 = fadd float %127, 1.000000e+00
  %129 = call float @llvm.fabs.f32(float %128)
  %or.cond19 = fcmp ogt float %129, 0x3F50624DE0000000
  br i1 %or.cond19, label %130, label %137

130:                                              ; preds = %123
  %131 = getelementptr inbounds i8, ptr %0, i64 4
  %132 = load i32, ptr %131, align 4, !tbaa !11
  %133 = add nsw i32 %132, 1
  store i32 %133, ptr %131, align 4, !tbaa !11
  %134 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 128)
  %135 = fpext float %127 to double
  %136 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef -1.000000e+00, double noundef %135)
  %.pre136 = load i32, ptr %0, align 4, !tbaa !5
  br label %137

137:                                              ; preds = %123, %130
  %138 = phi i32 [ %125, %123 ], [ %.pre136, %130 ]
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %0, align 4, !tbaa !5
  %140 = getelementptr inbounds i8, ptr %2, i64 40
  %141 = load float, ptr %140, align 8, !tbaa !10
  %142 = call float @llvm.fabs.f32(float %141)
  %or.cond21 = fcmp ogt float %142, 0x3F50624DE0000000
  br i1 %or.cond21, label %143, label %150

143:                                              ; preds = %137
  %144 = getelementptr inbounds i8, ptr %0, i64 4
  %145 = load i32, ptr %144, align 4, !tbaa !11
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %144, align 4, !tbaa !11
  %147 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 129)
  %148 = fpext float %141 to double
  %149 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %148)
  %.pre137 = load i32, ptr %0, align 4, !tbaa !5
  br label %150

150:                                              ; preds = %137, %143
  %151 = phi i32 [ %139, %137 ], [ %.pre137, %143 ]
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %0, align 4, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %2, i64 44
  %154 = load float, ptr %153, align 4, !tbaa !10
  %155 = call float @llvm.fabs.f32(float %154)
  %or.cond23 = fcmp ogt float %155, 0x3F50624DE0000000
  br i1 %or.cond23, label %156, label %163

156:                                              ; preds = %150
  %157 = getelementptr inbounds i8, ptr %0, i64 4
  %158 = load i32, ptr %157, align 4, !tbaa !11
  %159 = add nsw i32 %158, 1
  store i32 %159, ptr %157, align 4, !tbaa !11
  %160 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 130)
  %161 = fpext float %154 to double
  %162 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %161)
  %.pre138 = load i32, ptr %0, align 4, !tbaa !5
  br label %163

163:                                              ; preds = %150, %156
  %164 = phi i32 [ %152, %150 ], [ %.pre138, %156 ]
  %165 = add nsw i32 %164, 1
  store i32 %165, ptr %0, align 4, !tbaa !5
  %166 = getelementptr inbounds i8, ptr %2, i64 48
  %167 = load float, ptr %166, align 16, !tbaa !10
  %168 = call float @llvm.fabs.f32(float %167)
  %or.cond25 = fcmp ogt float %168, 0x3F50624DE0000000
  br i1 %or.cond25, label %169, label %176

169:                                              ; preds = %163
  %170 = getelementptr inbounds i8, ptr %0, i64 4
  %171 = load i32, ptr %170, align 4, !tbaa !11
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %170, align 4, !tbaa !11
  %173 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 132)
  %174 = fpext float %167 to double
  %175 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %174)
  %.pre139 = load i32, ptr %0, align 4, !tbaa !5
  br label %176

176:                                              ; preds = %163, %169
  %177 = phi i32 [ %165, %163 ], [ %.pre139, %169 ]
  %178 = add nsw i32 %177, 1
  store i32 %178, ptr %0, align 4, !tbaa !5
  %179 = getelementptr inbounds i8, ptr %2, i64 52
  %180 = load float, ptr %179, align 4, !tbaa !10
  %181 = call float @llvm.fabs.f32(float %180)
  %or.cond27 = fcmp ogt float %181, 0x3F50624DE0000000
  br i1 %or.cond27, label %182, label %189

182:                                              ; preds = %176
  %183 = getelementptr inbounds i8, ptr %0, i64 4
  %184 = load i32, ptr %183, align 4, !tbaa !11
  %185 = add nsw i32 %184, 1
  store i32 %185, ptr %183, align 4, !tbaa !11
  %186 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 133)
  %187 = fpext float %180 to double
  %188 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %187)
  %.pre140 = load i32, ptr %0, align 4, !tbaa !5
  br label %189

189:                                              ; preds = %176, %182
  %190 = phi i32 [ %178, %176 ], [ %.pre140, %182 ]
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %0, align 4, !tbaa !5
  %192 = getelementptr inbounds i8, ptr %2, i64 56
  %193 = load float, ptr %192, align 8, !tbaa !10
  %194 = call float @llvm.fabs.f32(float %193)
  %or.cond29 = fcmp ogt float %194, 0x3F50624DE0000000
  br i1 %or.cond29, label %195, label %202

195:                                              ; preds = %189
  %196 = getelementptr inbounds i8, ptr %0, i64 4
  %197 = load i32, ptr %196, align 4, !tbaa !11
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %196, align 4, !tbaa !11
  %199 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 134)
  %200 = fpext float %193 to double
  %201 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %200)
  %.pre141 = load i32, ptr %0, align 4, !tbaa !5
  br label %202

202:                                              ; preds = %189, %195
  %203 = phi i32 [ %191, %189 ], [ %.pre141, %195 ]
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %0, align 4, !tbaa !5
  %205 = getelementptr inbounds i8, ptr %2, i64 60
  %206 = load float, ptr %205, align 4, !tbaa !10
  %207 = fadd float %206, -1.000000e+00
  %208 = call float @llvm.fabs.f32(float %207)
  %or.cond31 = fcmp ogt float %208, 0x3F50624DE0000000
  br i1 %or.cond31, label %209, label %216

209:                                              ; preds = %202
  %210 = getelementptr inbounds i8, ptr %0, i64 4
  %211 = load i32, ptr %210, align 4, !tbaa !11
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %210, align 4, !tbaa !11
  %213 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 135)
  %214 = fpext float %206 to double
  %215 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 1.000000e+00, double noundef %214)
  br label %216

216:                                              ; preds = %202, %209
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @_ZL9HMM_QToM48HMM_Quat(ptr dead_on_unwind noalias writable sret(%union.HMM_Mat4) align 16, double, double) local_unnamed_addr #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTS21hmt_testresult_struct", !7, i64 0, !7, i64 4}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!8, !8, i64 0}
!11 = !{!6, !7, i64 4}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass