; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z45_hmt_test_QuaternionOps_RotateVectorAxisAngleP21hmt_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_Vec3 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float, 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 { <2 x float>, float } @_ZL6HMM_V3fff(float noundef, float noundef, float noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z45_hmt_test_QuaternionOps_RotateVectorAxisAngleP21hmt_testresult_struct(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.HMM_Vec3, align 4
  %4 = alloca { <2 x float>, float }, align 8
  %5 = alloca float, align 4
  %6 = alloca %union.HMM_Vec3, align 4
  %7 = alloca %union.HMM_Vec3, align 4
  %8 = alloca { <2 x float>, float }, align 8
  %9 = alloca %union.HMM_Vec3, align 4
  %10 = alloca { <2 x float>, float }, align 4
  %11 = alloca { <2 x float>, float }, align 4
  %12 = alloca { <2 x float>, float }, align 8
  %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 %union.HMM_Vec3, align 4
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca float, align 4
  %22 = alloca %union.HMM_Vec3, align 4
  %23 = alloca %union.HMM_Vec3, align 4
  %24 = alloca { <2 x float>, float }, align 8
  %25 = alloca %union.HMM_Vec3, align 4
  %26 = alloca { <2 x float>, float }, align 4
  %27 = alloca { <2 x float>, float }, align 4
  %28 = alloca { <2 x float>, float }, align 8
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %3) #6
  %35 = call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %36 = getelementptr inbounds %union.HMM_Vec3, ptr %3, i32 0, i32 0
  store { <2 x float>, float } %35, ptr %4, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %36, ptr align 8 %4, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #6
  store float 0x3FF921FB60000000, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %6) #6
  %37 = call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %38 = getelementptr inbounds %union.HMM_Vec3, ptr %7, i32 0, i32 0
  store { <2 x float>, float } %37, ptr %8, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %38, ptr align 8 %8, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %9, ptr align 4 %3, i64 12, i1 false), !tbaa.struct !11
  %39 = load float, ptr %5, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %10, ptr align 4 %7, i64 12, i1 false)
  %40 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 0
  %41 = load <2 x float>, ptr %40, align 4
  %42 = getelementptr inbounds { <2 x float>, float }, ptr %10, i32 0, i32 1
  %43 = load float, ptr %42, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %11, ptr align 4 %9, i64 12, i1 false)
  %44 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 0
  %45 = load <2 x float>, ptr %44, align 4
  %46 = getelementptr inbounds { <2 x float>, float }, ptr %11, i32 0, i32 1
  %47 = load float, ptr %46, align 4
  %48 = call { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_LH8HMM_Vec3S_f(<2 x float> %41, float %43, <2 x float> %45, float %47, float noundef %39)
  %49 = getelementptr inbounds %union.HMM_Vec3, ptr %6, i32 0, i32 0
  store { <2 x float>, float } %48, ptr %12, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 8 %12, i64 12, i1 false)
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %50, i32 0, i32 0
  %52 = load i32, ptr %51, align 4, !tbaa !13
  %53 = add nsw i32 %52, 1
  store i32 %53, ptr %51, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %54 = getelementptr inbounds %struct.anon.3, ptr %6, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !12
  store float %55, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %56 = load float, ptr %13, align 4, !tbaa !9
  %57 = fsub float %56, 0.000000e+00
  store float %57, ptr %14, align 4, !tbaa !9
  %58 = load float, ptr %14, align 4, !tbaa !9
  %59 = fcmp olt float %58, 0xBF50624DE0000000
  br i1 %59, label %63, label %60

60:                                               ; preds = %1
  %61 = load float, ptr %14, 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 263)
  %69 = load float, ptr %13, align 4, !tbaa !9
  %70 = fpext float %69 to double
  %71 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %70)
  br label %72

72:                                               ; preds = %63, %60
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #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 %15) #6
  %77 = getelementptr inbounds %struct.anon.3, ptr %6, i32 0, i32 1
  %78 = load float, ptr %77, align 4, !tbaa !12
  store float %78, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %79 = load float, ptr %15, align 4, !tbaa !9
  %80 = fsub float %79, 0.000000e+00
  store float %80, ptr %16, align 4, !tbaa !9
  %81 = load float, ptr %16, align 4, !tbaa !9
  %82 = fcmp olt float %81, 0xBF50624DE0000000
  br i1 %82, label %86, label %83

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

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

95:                                               ; preds = %86, %83
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  %96 = load ptr, ptr %2, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %96, i32 0, i32 0
  %98 = load i32, ptr %97, align 4, !tbaa !13
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %97, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #6
  %100 = getelementptr inbounds %struct.anon.3, ptr %6, i32 0, i32 2
  %101 = load float, ptr %100, align 4, !tbaa !12
  store float %101, ptr %17, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #6
  %102 = load float, ptr %17, align 4, !tbaa !9
  %103 = fsub float %102, 1.000000e+00
  store float %103, ptr %18, align 4, !tbaa !9
  %104 = load float, ptr %18, align 4, !tbaa !9
  %105 = fcmp olt float %104, 0xBF50624DE0000000
  br i1 %105, label %109, label %106

106:                                              ; preds = %95
  %107 = load float, ptr %18, align 4, !tbaa !9
  %108 = fcmp olt float 0x3F50624DE0000000, %107
  br i1 %108, label %109, label %118

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

118:                                              ; preds = %109, %106
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %3) #6
  call void @llvm.lifetime.start.p0(i64 12, ptr %19) #6
  %119 = call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %120 = getelementptr inbounds %union.HMM_Vec3, ptr %19, i32 0, i32 0
  store { <2 x float>, float } %119, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %120, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  store float 0x3FE921FB60000000, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 12, ptr %22) #6
  %121 = call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %122 = getelementptr inbounds %union.HMM_Vec3, ptr %23, i32 0, i32 0
  store { <2 x float>, float } %121, ptr %24, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %122, ptr align 8 %24, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %19, i64 12, i1 false), !tbaa.struct !11
  %123 = load float, ptr %21, align 4, !tbaa !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %23, i64 12, i1 false)
  %124 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 0
  %125 = load <2 x float>, ptr %124, align 4
  %126 = getelementptr inbounds { <2 x float>, float }, ptr %26, i32 0, i32 1
  %127 = load float, ptr %126, align 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %25, i64 12, i1 false)
  %128 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 0
  %129 = load <2 x float>, ptr %128, align 4
  %130 = getelementptr inbounds { <2 x float>, float }, ptr %27, i32 0, i32 1
  %131 = load float, ptr %130, align 4
  %132 = call { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_RH8HMM_Vec3S_f(<2 x float> %125, float %127, <2 x float> %129, float %131, float noundef %123)
  %133 = getelementptr inbounds %union.HMM_Vec3, ptr %22, i32 0, i32 0
  store { <2 x float>, float } %132, ptr %28, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %133, ptr align 8 %28, i64 12, i1 false)
  %134 = load ptr, ptr %2, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %134, i32 0, i32 0
  %136 = load i32, ptr %135, align 4, !tbaa !13
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %135, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #6
  %138 = getelementptr inbounds %struct.anon.3, ptr %22, i32 0, i32 0
  %139 = load float, ptr %138, align 4, !tbaa !12
  store float %139, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  %140 = load float, ptr %29, align 4, !tbaa !9
  %141 = fsub float %140, 0.000000e+00
  store float %141, ptr %30, align 4, !tbaa !9
  %142 = load float, ptr %30, align 4, !tbaa !9
  %143 = fcmp olt float %142, 0xBF50624DE0000000
  br i1 %143, label %147, label %144

144:                                              ; preds = %118
  %145 = load float, ptr %30, align 4, !tbaa !9
  %146 = fcmp olt float 0x3F50624DE0000000, %145
  br i1 %146, label %147, label %156

147:                                              ; preds = %144, %118
  %148 = load ptr, ptr %2, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %148, i32 0, i32 1
  %150 = load i32, ptr %149, align 4, !tbaa !16
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %149, align 4, !tbaa !16
  %152 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 271)
  %153 = load float, ptr %29, align 4, !tbaa !9
  %154 = fpext float %153 to double
  %155 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0.000000e+00, double noundef %154)
  br label %156

156:                                              ; preds = %147, %144
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #6
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 4, !tbaa !13
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %158, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  %161 = getelementptr inbounds %struct.anon.3, ptr %22, i32 0, i32 1
  %162 = load float, ptr %161, align 4, !tbaa !12
  store float %162, ptr %31, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %32) #6
  %163 = load float, ptr %31, align 4, !tbaa !9
  %164 = fsub float %163, 0xBFE6A12300000000
  store float %164, ptr %32, align 4, !tbaa !9
  %165 = load float, ptr %32, align 4, !tbaa !9
  %166 = fcmp olt float %165, 0xBF50624DE0000000
  br i1 %166, label %170, label %167

167:                                              ; preds = %156
  %168 = load float, ptr %32, align 4, !tbaa !9
  %169 = fcmp olt float 0x3F50624DE0000000, %168
  br i1 %169, label %170, label %179

170:                                              ; preds = %167, %156
  %171 = load ptr, ptr %2, align 8, !tbaa !5
  %172 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %171, i32 0, i32 1
  %173 = load i32, ptr %172, align 4, !tbaa !16
  %174 = add nsw i32 %173, 1
  store i32 %174, ptr %172, align 4, !tbaa !16
  %175 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 272)
  %176 = load float, ptr %31, align 4, !tbaa !9
  %177 = fpext float %176 to double
  %178 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0xBFE6A12300000000, double noundef %177)
  br label %179

179:                                              ; preds = %170, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  %180 = load ptr, ptr %2, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %180, i32 0, i32 0
  %182 = load i32, ptr %181, align 4, !tbaa !13
  %183 = add nsw i32 %182, 1
  store i32 %183, ptr %181, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  %184 = getelementptr inbounds %struct.anon.3, ptr %22, i32 0, i32 2
  %185 = load float, ptr %184, align 4, !tbaa !12
  store float %185, ptr %33, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  %186 = load float, ptr %33, align 4, !tbaa !9
  %187 = fsub float %186, 0x3FE6A12300000000
  store float %187, ptr %34, align 4, !tbaa !9
  %188 = load float, ptr %34, align 4, !tbaa !9
  %189 = fcmp olt float %188, 0xBF50624DE0000000
  br i1 %189, label %193, label %190

190:                                              ; preds = %179
  %191 = load float, ptr %34, align 4, !tbaa !9
  %192 = fcmp olt float 0x3F50624DE0000000, %191
  br i1 %192, label %193, label %202

193:                                              ; preds = %190, %179
  %194 = load ptr, ptr %2, align 8, !tbaa !5
  %195 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %194, i32 0, i32 1
  %196 = load i32, ptr %195, align 4, !tbaa !16
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %195, align 4, !tbaa !16
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 273)
  %199 = load float, ptr %33, align 4, !tbaa !9
  %200 = fpext float %199 to double
  %201 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, double noundef 0x3FE6A12300000000, double noundef %200)
  br label %202

202:                                              ; preds = %193, %190
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %19) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_LH8HMM_Vec3S_f(<2 x float>, float, <2 x float>, float, float noundef) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_RH8HMM_Vec3S_f(<2 x float>, float, <2 x float>, float, float noundef) #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"="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 = { mustprogress uwtable "min-legal-vector-width"="64" "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"="64" "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 12, !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"

@.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: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZL6HMM_V3fff(float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z45_hmt_test_QuaternionOps_RotateVectorAxisAngleP21hmt_testresult_struct(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = tail call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 0.000000e+00, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %.fca.0.extract73 = extractvalue { <2 x float>, float } %2, 0
  %.fca.1.extract74 = extractvalue { <2 x float>, float } %2, 1
  %3 = tail call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %.fca.0.extract64 = extractvalue { <2 x float>, float } %3, 0
  %.fca.1.extract65 = extractvalue { <2 x float>, float } %3, 1
  %4 = tail call { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_LH8HMM_Vec3S_f(<2 x float> %.fca.0.extract64, float %.fca.1.extract65, <2 x float> %.fca.0.extract73, float %.fca.1.extract74, float noundef 0x3FF921FB60000000)
  %.fca.0.extract54 = extractvalue { <2 x float>, float } %4, 0
  %.fca.1.extract55 = extractvalue { <2 x float>, float } %4, 1
  %5 = load i32, ptr %0, align 4, !tbaa !5
  %6 = add nsw i32 %5, 1
  store i32 %6, ptr %0, align 4, !tbaa !5
  %.sroa.070.0.vec.extract = extractelement <2 x float> %.fca.0.extract54, i64 0
  %7 = tail call float @llvm.fabs.f32(float %.sroa.070.0.vec.extract)
  %or.cond = fcmp ogt float %7, 0x3F50624DE0000000
  br i1 %or.cond, label %8, label %15

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 4
  %10 = load i32, ptr %9, align 4, !tbaa !10
  %11 = add nsw i32 %10, 1
  store i32 %11, ptr %9, align 4, !tbaa !10
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 263)
  %13 = fpext float %.sroa.070.0.vec.extract to double
  %14 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %13)
  %.pre = load i32, ptr %0, align 4, !tbaa !5
  br label %15

15:                                               ; preds = %1, %8
  %16 = phi i32 [ %6, %1 ], [ %.pre, %8 ]
  %17 = add nsw i32 %16, 1
  store i32 %17, ptr %0, align 4, !tbaa !5
  %.sroa.070.4.vec.extract = extractelement <2 x float> %.fca.0.extract54, i64 1
  %18 = tail call float @llvm.fabs.f32(float %.sroa.070.4.vec.extract)
  %or.cond3 = fcmp ogt float %18, 0x3F50624DE0000000
  br i1 %or.cond3, label %19, label %26

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 4
  %21 = load i32, ptr %20, align 4, !tbaa !10
  %22 = add nsw i32 %21, 1
  store i32 %22, ptr %20, align 4, !tbaa !10
  %23 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 264)
  %24 = fpext float %.sroa.070.4.vec.extract to double
  %25 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %24)
  %.pre91 = load i32, ptr %0, align 4, !tbaa !5
  br label %26

26:                                               ; preds = %15, %19
  %27 = phi i32 [ %17, %15 ], [ %.pre91, %19 ]
  %28 = add nsw i32 %27, 1
  store i32 %28, ptr %0, align 4, !tbaa !5
  %29 = fadd float %.fca.1.extract55, -1.000000e+00
  %30 = tail call float @llvm.fabs.f32(float %29)
  %or.cond5 = fcmp ogt float %30, 0x3F50624DE0000000
  br i1 %or.cond5, label %31, label %38

31:                                               ; preds = %26
  %32 = getelementptr inbounds i8, ptr %0, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !10
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %32, align 4, !tbaa !10
  %35 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 265)
  %36 = fpext float %.fca.1.extract55 to double
  %37 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 1.000000e+00, double noundef %36)
  br label %38

38:                                               ; preds = %26, %31
  %39 = tail call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
  %.fca.0.extract37 = extractvalue { <2 x float>, float } %39, 0
  %.fca.1.extract38 = extractvalue { <2 x float>, float } %39, 1
  %40 = tail call { <2 x float>, float } @_ZL6HMM_V3fff(float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.000000e+00)
  %.fca.0.extract29 = extractvalue { <2 x float>, float } %40, 0
  %.fca.1.extract30 = extractvalue { <2 x float>, float } %40, 1
  %41 = tail call { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_RH8HMM_Vec3S_f(<2 x float> %.fca.0.extract29, float %.fca.1.extract30, <2 x float> %.fca.0.extract37, float %.fca.1.extract38, float noundef 0x3FE921FB60000000)
  %.fca.0.extract = extractvalue { <2 x float>, float } %41, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %41, 1
  %42 = load i32, ptr %0, align 4, !tbaa !5
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %0, align 4, !tbaa !5
  %.sroa.035.0.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 0
  %44 = tail call float @llvm.fabs.f32(float %.sroa.035.0.vec.extract)
  %or.cond7 = fcmp ogt float %44, 0x3F50624DE0000000
  br i1 %or.cond7, label %45, label %52

45:                                               ; preds = %38
  %46 = getelementptr inbounds i8, ptr %0, i64 4
  %47 = load i32, ptr %46, align 4, !tbaa !10
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %46, align 4, !tbaa !10
  %49 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 271)
  %50 = fpext float %.sroa.035.0.vec.extract to double
  %51 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0.000000e+00, double noundef %50)
  %.pre92 = load i32, ptr %0, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %38, %45
  %53 = phi i32 [ %43, %38 ], [ %.pre92, %45 ]
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %0, align 4, !tbaa !5
  %.sroa.035.4.vec.extract = extractelement <2 x float> %.fca.0.extract, i64 1
  %55 = fadd float %.sroa.035.4.vec.extract, 0x3FE6A12300000000
  %56 = tail call float @llvm.fabs.f32(float %55)
  %or.cond9 = fcmp ogt float %56, 0x3F50624DE0000000
  br i1 %or.cond9, label %57, label %64

57:                                               ; preds = %52
  %58 = getelementptr inbounds i8, ptr %0, i64 4
  %59 = load i32, ptr %58, align 4, !tbaa !10
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %58, align 4, !tbaa !10
  %61 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 272)
  %62 = fpext float %.sroa.035.4.vec.extract to double
  %63 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0xBFE6A12300000000, double noundef %62)
  %.pre93 = load i32, ptr %0, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %52, %57
  %65 = phi i32 [ %54, %52 ], [ %.pre93, %57 ]
  %66 = add nsw i32 %65, 1
  store i32 %66, ptr %0, align 4, !tbaa !5
  %67 = fadd float %.fca.1.extract, 0xBFE6A12300000000
  %68 = tail call float @llvm.fabs.f32(float %67)
  %or.cond11 = fcmp ogt float %68, 0x3F50624DE0000000
  br i1 %or.cond11, label %69, label %76

69:                                               ; preds = %64
  %70 = getelementptr inbounds i8, ptr %0, i64 4
  %71 = load i32, ptr %70, align 4, !tbaa !10
  %72 = add nsw i32 %71, 1
  store i32 %72, ptr %70, align 4, !tbaa !10
  %73 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 273)
  %74 = fpext float %.fca.1.extract to double
  %75 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, double noundef 0x3FE6A12300000000, double noundef %74)
  br label %76

76:                                               ; preds = %64, %69
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_LH8HMM_Vec3S_f(<2 x float>, float, <2 x float>, float, float noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { <2 x float>, float } @_ZL24HMM_RotateV3AxisAngle_RH8HMM_Vec3S_f(<2 x float>, float, <2 x float>, float, float noundef) local_unnamed_addr #3

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

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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"="64" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 = !{!6, !7, i64 4}


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