; LLVM IR from HandmadeMath/HandmadeMath :: test/hmm_test.ll (Z31_hmt_test_QuaternionOps_InverseP21hmt_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> }
%struct.hmt_testresult_struct = type { i32, i32 }
%struct.anon.18 = type { %union.anon.19, float }
%union.anon.19 = type { %union.HMM_Vec3 }
%union.HMM_Vec3 = type { %struct.anon.3 }
%struct.anon.3 = type { float, float, float }
%struct.anon.20 = type { float, float, float }

@.str.15 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [34 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 @_Z31_hmt_test_QuaternionOps_InverseP21hmt_testresult_struct(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.HMM_Quat, align 16
  %4 = alloca %union.HMM_Quat, align 16
  %5 = alloca %union.HMM_Quat, align 16
  %6 = alloca %union.HMM_Quat, align 16
  %7 = alloca %union.HMM_Quat, align 16
  %8 = alloca %union.HMM_Quat, align 16
  %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
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %3) #6
  %17 = call { double, double } @_ZL5HMM_Qffff(float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 4.000000e+00)
  %18 = getelementptr inbounds %union.HMM_Quat, ptr %3, i32 0, i32 0
  %19 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %20 = extractvalue { double, double } %17, 0
  store double %20, ptr %19, align 16
  %21 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %22 = extractvalue { double, double } %17, 1
  store double %22, ptr %21, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %5, ptr align 16 %3, i64 16, i1 false), !tbaa.struct !9
  %23 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 0
  %24 = load double, ptr %23, align 16
  %25 = getelementptr inbounds { double, double }, ptr %5, i32 0, i32 1
  %26 = load double, ptr %25, align 8
  %27 = call { double, double } @_ZL8HMM_InvQ8HMM_Quat(double %24, double %26)
  %28 = getelementptr inbounds %union.HMM_Quat, ptr %4, i32 0, i32 0
  %29 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %30 = extractvalue { double, double } %27, 0
  store double %30, ptr %29, align 16
  %31 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %32 = extractvalue { double, double } %27, 1
  store double %32, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %7, ptr align 16 %3, i64 16, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %8, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !9
  %33 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %34 = load double, ptr %33, align 16
  %35 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %36 = load double, ptr %35, align 8
  %37 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %38 = load double, ptr %37, align 16
  %39 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %40 = load double, ptr %39, align 8
  %41 = call { double, double } @_ZL8HMM_MulQ8HMM_QuatS_(double %34, double %36, double %38, double %40)
  %42 = getelementptr inbounds %union.HMM_Quat, ptr %6, i32 0, i32 0
  %43 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 0
  %44 = extractvalue { double, double } %41, 0
  store double %44, ptr %43, align 16
  %45 = getelementptr inbounds { double, double }, ptr %42, i32 0, i32 1
  %46 = extractvalue { double, double } %41, 1
  store double %46, ptr %45, align 8
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %47, i32 0, i32 0
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = add nsw i32 %49, 1
  store i32 %50, ptr %48, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %51 = getelementptr inbounds %struct.anon.18, ptr %6, i32 0, i32 0
  %52 = getelementptr inbounds %struct.anon.20, ptr %51, i32 0, i32 0
  %53 = load float, ptr %52, align 16, !tbaa !10
  store float %53, ptr %9, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  %54 = load float, ptr %9, align 4, !tbaa !14
  %55 = fsub float %54, 0.000000e+00
  store float %55, ptr %10, align 4, !tbaa !14
  %56 = load float, ptr %10, align 4, !tbaa !14
  %57 = fcmp olt float %56, 0xBE80000000000000
  br i1 %57, label %61, label %58

58:                                               ; preds = %1
  %59 = load float, ptr %10, align 4, !tbaa !14
  %60 = fcmp olt float 0x3E80000000000000, %59
  br i1 %60, label %61, label %72

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

72:                                               ; preds = %61, %58
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #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 !11
  %76 = add nsw i32 %75, 1
  store i32 %76, ptr %74, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  %77 = getelementptr inbounds %struct.anon.18, ptr %6, i32 0, i32 0
  %78 = getelementptr inbounds %struct.anon.20, ptr %77, i32 0, i32 1
  %79 = load float, ptr %78, align 4, !tbaa !10
  store float %79, ptr %11, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %80 = load float, ptr %11, align 4, !tbaa !14
  %81 = fsub float %80, 0.000000e+00
  store float %81, ptr %12, align 4, !tbaa !14
  %82 = load float, ptr %12, align 4, !tbaa !14
  %83 = fcmp olt float %82, 0xBE80000000000000
  br i1 %83, label %87, label %84

84:                                               ; preds = %72
  %85 = load float, ptr %12, align 4, !tbaa !14
  %86 = fcmp olt float 0x3E80000000000000, %85
  br i1 %86, label %87, label %98

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 11)
  %93 = load float, ptr %11, align 4, !tbaa !14
  %94 = fpext float %93 to double
  %95 = load float, ptr %12, align 4, !tbaa !14
  %96 = fpext float %95 to double
  %97 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 0.000000e+00, double noundef %94, double noundef %96)
  br label %98

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

110:                                              ; preds = %98
  %111 = load float, ptr %14, align 4, !tbaa !14
  %112 = fcmp olt float 0x3E80000000000000, %111
  br i1 %112, label %113, label %124

113:                                              ; preds = %110, %98
  %114 = load ptr, ptr %2, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %114, i32 0, i32 1
  %116 = load i32, ptr %115, align 4, !tbaa !16
  %117 = add nsw i32 %116, 1
  store i32 %117, ptr %115, align 4, !tbaa !16
  %118 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 12)
  %119 = load float, ptr %13, align 4, !tbaa !14
  %120 = fpext float %119 to double
  %121 = load float, ptr %14, align 4, !tbaa !14
  %122 = fpext float %121 to double
  %123 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 0.000000e+00, double noundef %120, double noundef %122)
  br label %124

124:                                              ; preds = %113, %110
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  %125 = load ptr, ptr %2, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %125, i32 0, i32 0
  %127 = load i32, ptr %126, align 4, !tbaa !11
  %128 = add nsw i32 %127, 1
  store i32 %128, ptr %126, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %129 = getelementptr inbounds %struct.anon.18, ptr %6, i32 0, i32 1
  %130 = load float, ptr %129, align 4, !tbaa !10
  store float %130, ptr %15, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  %131 = load float, ptr %15, align 4, !tbaa !14
  %132 = fsub float %131, 1.000000e+00
  store float %132, ptr %16, align 4, !tbaa !14
  %133 = load float, ptr %16, align 4, !tbaa !14
  %134 = fcmp olt float %133, 0xBE80000000000000
  br i1 %134, label %138, label %135

135:                                              ; preds = %124
  %136 = load float, ptr %16, align 4, !tbaa !14
  %137 = fcmp olt float 0x3E80000000000000, %136
  br i1 %137, label %138, label %149

138:                                              ; preds = %135, %124
  %139 = load ptr, ptr %2, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.hmt_testresult_struct, ptr %139, i32 0, i32 1
  %141 = load i32, ptr %140, align 4, !tbaa !16
  %142 = add nsw i32 %141, 1
  store i32 %142, ptr %140, align 4, !tbaa !16
  %143 = call i32 (ptr, ...) @printf(ptr noundef @.str.15, i32 noundef 13)
  %144 = load float, ptr %15, align 4, !tbaa !14
  %145 = fpext float %144 to double
  %146 = load float, ptr %16, align 4, !tbaa !14
  %147 = fpext float %146 to double
  %148 = call i32 (ptr, ...) @printf(ptr noundef @.str.18, double noundef 1.000000e+00, double noundef %145, double noundef %147)
  br label %149

149:                                              ; preds = %138, %135
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %3) #6
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL8HMM_InvQ8HMM_Quat(double, double) #5

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

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 = !{i64 0, i64 16, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTS21hmt_testresult_struct", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !7, i64 0}
!16 = !{!12, !13, 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.18 = external hidden unnamed_addr constant [34 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 { double, double } @_ZL5HMM_Qffff(float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z31_hmt_test_QuaternionOps_InverseP21hmt_testresult_struct(ptr nocapture noundef %0) local_unnamed_addr #2 {
  %2 = tail call { double, double } @_ZL5HMM_Qffff(float noundef 1.000000e+00, float noundef 2.000000e+00, float noundef 3.000000e+00, float noundef 4.000000e+00)
  %3 = extractvalue { double, double } %2, 0
  %4 = extractvalue { double, double } %2, 1
  %5 = tail call { double, double } @_ZL8HMM_InvQ8HMM_Quat(double %3, double %4)
  %6 = extractvalue { double, double } %5, 0
  %7 = extractvalue { double, double } %5, 1
  %8 = tail call { double, double } @_ZL8HMM_MulQ8HMM_QuatS_(double %3, double %4, double %6, double %7)
  %9 = extractvalue { double, double } %8, 0
  %10 = extractvalue { double, double } %8, 1
  %11 = load i32, ptr %0, align 4, !tbaa !5
  %12 = add nsw i32 %11, 1
  store i32 %12, ptr %0, align 4, !tbaa !5
  %13 = bitcast double %9 to i64
  %14 = trunc i64 %13 to i32
  %15 = bitcast i32 %14 to float
  %16 = tail call float @llvm.fabs.f32(float %15)
  %or.cond = fcmp ogt float %16, 0x3E80000000000000
  %17 = lshr i64 %13, 32
  %18 = trunc nuw i64 %17 to i32
  %19 = bitcast i32 %18 to float
  %20 = bitcast double %10 to i64
  %21 = trunc i64 %20 to i32
  %22 = bitcast i32 %21 to float
  %23 = lshr i64 %20, 32
  %24 = trunc nuw i64 %23 to i32
  %25 = bitcast i32 %24 to float
  br i1 %or.cond, label %26, label %33

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

33:                                               ; preds = %1, %26
  %34 = phi i32 [ %12, %1 ], [ %.pre, %26 ]
  %35 = add nsw i32 %34, 1
  store i32 %35, ptr %0, align 4, !tbaa !5
  %36 = tail call float @llvm.fabs.f32(float %19)
  %or.cond3 = fcmp ogt float %36, 0x3E80000000000000
  br i1 %or.cond3, label %37, label %44

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

44:                                               ; preds = %33, %37
  %45 = phi i32 [ %35, %33 ], [ %.pre46, %37 ]
  %46 = add nsw i32 %45, 1
  store i32 %46, ptr %0, align 4, !tbaa !5
  %47 = tail call float @llvm.fabs.f32(float %22)
  %or.cond5 = fcmp ogt float %47, 0x3E80000000000000
  br i1 %or.cond5, label %48, label %55

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

55:                                               ; preds = %44, %48
  %56 = phi i32 [ %46, %44 ], [ %.pre47, %48 ]
  %57 = add nsw i32 %56, 1
  store i32 %57, ptr %0, align 4, !tbaa !5
  %58 = fadd float %25, -1.000000e+00
  %59 = tail call float @llvm.fabs.f32(float %58)
  %or.cond7 = fcmp ogt float %59, 0x3E80000000000000
  br i1 %or.cond7, label %60, label %68

60:                                               ; preds = %55
  %61 = getelementptr inbounds i8, ptr %0, i64 4
  %62 = load i32, ptr %61, align 4, !tbaa !10
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %61, align 4, !tbaa !10
  %64 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15, i32 noundef 13)
  %65 = fpext float %25 to double
  %66 = fpext float %58 to double
  %67 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18, double noundef 1.000000e+00, double noundef %65, double noundef %66)
  br label %68

68:                                               ; preds = %55, %60
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL8HMM_InvQ8HMM_Quat(double, double) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare hidden { double, double } @_ZL8HMM_MulQ8HMM_QuatS_(double, double, double, double) local_unnamed_addr #1

; 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"="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 #2 = { 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 #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 = { 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: BDCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass