; LLVM IR from ThePhysicsGuys/Physics3D :: tests/mathTests.ll (Z41quaternionFromRotationVecToRotationMatrixv)

; 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"

%class.TolerantAssertComparer.12 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"class.P3D::Matrix.6" = type { [9 x double] }
%"struct.P3D::Vector" = type { %union.anon.16 }
%union.anon.16 = type { [3 x double] }
%struct.TolerantAssertBuilder = type { i32, double }
%"struct.P3D::Quaternion" = type { double, %union.anon.41 }
%union.anon.41 = type { %struct.anon.42 }
%struct.anon.42 = type { double, double, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8

; 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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW15__testInterface() #3

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #4

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.12) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(72)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.6") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6

; Function Attrs: mustprogress uwtable
define dso_local void @_Z41quaternionFromRotationVecToRotationMatrixv() #6 personality ptr @__gxx_personality_v0 {
  %1 = alloca double, align 8
  %2 = alloca i32, align 4
  %3 = alloca double, align 8
  %4 = alloca double, align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %class.TolerantAssertComparer, align 8
  %7 = alloca %class.TolerantAssertComparer.12, align 8
  %8 = alloca %struct.TolerantAssertBuilder, align 8
  %9 = alloca %"class.P3D::Matrix.6", align 8
  %10 = alloca %"struct.P3D::Quaternion", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"class.P3D::Matrix.6", align 8
  %13 = alloca %"struct.P3D::Vector", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #7
  store double -1.250000e+00, ptr %1, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %65, %0
  %17 = load double, ptr %1, align 8, !tbaa !5
  %18 = fcmp olt double %17, 1.500000e+00
  br i1 %18, label %20, label %19

19:                                               ; preds = %16
  store i32 2, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %68

20:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #7
  store double -1.350000e+00, ptr %3, align 8, !tbaa !5
  br label %21

21:                                               ; preds = %61, %20
  %22 = load double, ptr %3, align 8, !tbaa !5
  %23 = fcmp olt double %22, 1.500000e+00
  br i1 %23, label %25, label %24

24:                                               ; preds = %21
  store i32 5, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  br label %64

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #7
  store double -1.550000e+00, ptr %4, align 8, !tbaa !5
  br label %26

26:                                               ; preds = %57, %25
  %27 = load double, ptr %4, align 8, !tbaa !5
  %28 = fcmp olt double %27, 1.500000e+00
  br i1 %28, label %30, label %29

29:                                               ; preds = %26
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  br label %60

30:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  %31 = load double, ptr %1, align 8, !tbaa !5
  %32 = load double, ptr %3, align 8, !tbaa !5
  %33 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef %31, double noundef %32, double noundef %33) #7
  br label %34

34:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %8, i32 noundef 413, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D33rotationQuaternionFromRotationVecIdEENS_10QuaternionIT_EENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Quaternion") align 8 %10, ptr noundef byval(%"struct.P3D::Vector") align 8 %11)
  call void @_ZN3P3D28rotationMatrixFromQuaternionIdEENS_6MatrixIT_Lm3ELm3EEERKNS_10QuaternionIS2_EE(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %10)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.12) align 8 %7, ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(72) %9)
  call void @llvm.lifetime.start.p0(i64 72, ptr %12) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %5, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %12, ptr noundef byval(%"struct.P3D::Vector") align 8 %13)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(72) %12)
  %35 = getelementptr inbounds %class.TolerantAssertComparer, ptr %6, i32 0, i32 1
  %36 = load ptr, ptr %35, align 8, !tbaa !11
  %37 = load i8, ptr %36, align 1, !tbaa !15, !range !17, !noundef !18
  %38 = trunc i8 %37 to i1
  %39 = xor i1 %38, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  br i1 %39, label %40, label %53

40:                                               ; preds = %34
  %41 = call ptr @_ZTW15__testInterface()
  %42 = getelementptr inbounds %class.TestInterface, ptr %41, i32 0, i32 1
  %43 = load i8, ptr %42, align 8, !tbaa !19, !range !17, !noundef !18
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %46

45:                                               ; preds = %40
  br label %46

46:                                               ; preds = %45, %40
  %47 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %47, i32 noundef 413, ptr noundef @.str.4)
          to label %48 unwind label %49

48:                                               ; preds = %46
  call void @__cxa_throw(ptr %47, ptr @_ZTI14AssertionError, ptr null) #8
  unreachable

49:                                               ; preds = %46
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %14, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %15, align 4
  call void @__cxa_free_exception(ptr %47) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #7
  br label %69

53:                                               ; preds = %34
  %54 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %54)
  br label %55

55:                                               ; preds = %53
  br label %56

56:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %57

57:                                               ; preds = %56
  %58 = load double, ptr %4, align 8, !tbaa !5
  %59 = fadd double %58, 1.000000e-01
  store double %59, ptr %4, align 8, !tbaa !5
  br label %26, !llvm.loop !22

60:                                               ; preds = %29
  br label %61

61:                                               ; preds = %60
  %62 = load double, ptr %3, align 8, !tbaa !5
  %63 = fadd double %62, 1.000000e-01
  store double %63, ptr %3, align 8, !tbaa !5
  br label %21, !llvm.loop !24

64:                                               ; preds = %24
  br label %65

65:                                               ; preds = %64
  %66 = load double, ptr %1, align 8, !tbaa !5
  %67 = fadd double %66, 1.000000e-01
  store double %67, ptr %1, align 8, !tbaa !5
  br label %16, !llvm.loop !25

68:                                               ; preds = %19
  ret void

69:                                               ; preds = %49
  %70 = load ptr, ptr %14, align 8
  %71 = load i32, ptr %15, align 4
  %72 = insertvalue { ptr, i32 } poison, ptr %70, 0
  %73 = insertvalue { ptr, i32 } %72, i32 %71, 1
  resume { ptr, i32 } %73
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D28rotationMatrixFromQuaternionIdEENS_6MatrixIT_Lm3ELm3EEERKNS_10QuaternionIS2_EE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.6") align 8, ptr noundef nonnull align 8 dereferenceable(32)) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D33rotationQuaternionFromRotationVecIdEENS_10QuaternionIT_EENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Quaternion") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind 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 = { uwtable "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 = { "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 nounwind 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 = { 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 #7 = { nounwind }
attributes #8 = { noreturn }

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 24, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTS22TolerantAssertComparerIbdE", !13, i64 0, !14, i64 8, !6, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!20, !16, i64 8}
!20 = !{!"_ZTS13TestInterface", !21, i64 0, !16, i64 8}
!21 = !{!"long", !7, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}


; 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"

%class.TolerantAssertComparer.12 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"class.P3D::Matrix.6" = type { [9 x double] }
%"struct.P3D::Vector" = type { %union.anon.16 }
%union.anon.16 = type { [3 x double] }
%struct.TolerantAssertBuilder = type { i32, double }
%"struct.P3D::Quaternion" = type { double, %union.anon.41 }
%union.anon.41 = type { %struct.anon.42 }
%struct.anon.42 = type { double, double, double }

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8

; 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: mustprogress nounwind uwtable
declare dso_local void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: uwtable
declare hidden noundef ptr @_ZTW15__testInterface() local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr) local_unnamed_addr

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.12) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, double noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.6") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z41quaternionFromRotationVecToRotationMatrixv() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.P3D::Vector", align 8
  %2 = alloca %class.TolerantAssertComparer, align 8
  %3 = alloca %class.TolerantAssertComparer.12, align 8
  %4 = alloca %struct.TolerantAssertBuilder, align 8
  %5 = alloca %"class.P3D::Matrix.6", align 8
  %6 = alloca %"struct.P3D::Quaternion", align 8
  %7 = alloca %"class.P3D::Matrix.6", align 8
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  br label %.preheader12

.preheader12:                                     ; preds = %0, %10
  %.015 = phi double [ -1.250000e+00, %0 ], [ %11, %10 ]
  br label %.preheader

9:                                                ; preds = %10
  ret void

.preheader:                                       ; preds = %.preheader12, %13
  %.01114 = phi double [ -1.350000e+00, %.preheader12 ], [ %14, %13 ]
  br label %16

10:                                               ; preds = %13
  %11 = fadd double %.015, 1.000000e-01
  %12 = fcmp olt double %11, 1.500000e+00
  br i1 %12, label %.preheader12, label %9, !llvm.loop !5

13:                                               ; preds = %26
  %14 = fadd double %.01114, 1.000000e-01
  %15 = fcmp olt double %14, 1.500000e+00
  br i1 %15, label %.preheader, label %10, !llvm.loop !7

16:                                               ; preds = %.preheader, %26
  %.01013 = phi double [ -1.550000e+00, %.preheader ], [ %27, %26 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #6
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef %.015, double noundef %.01114, double noundef %.01013) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %4, i32 noundef 413, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #6
  call void @_ZN3P3D33rotationQuaternionFromRotationVecIdEENS_10QuaternionIT_EENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Quaternion") align 8 %6, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %1)
  call void @_ZN3P3D28rotationMatrixFromQuaternionIdEENS_6MatrixIT_Lm3ELm3EEERKNS_10QuaternionIS2_EE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %6)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.12) align 8 %3, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(72) %5)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %7) #6
  call void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %7, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %1)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(72) %7)
  %17 = load ptr, ptr %8, align 8, !tbaa !8
  %18 = load i8, ptr %17, align 1, !tbaa !15, !range !17, !noundef !18
  %19 = trunc nuw i8 %18 to i1
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #6
  %20 = call ptr @_ZTW15__testInterface()
  br i1 %19, label %26, label %21

21:                                               ; preds = %16
  %22 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %22, i32 noundef 413, ptr noundef nonnull @.str.4)
          to label %23 unwind label %24

23:                                               ; preds = %21
  call void @__cxa_throw(ptr nonnull %22, ptr nonnull @_ZTI14AssertionError, ptr null) #7
  unreachable

24:                                               ; preds = %21
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  resume { ptr, i32 } %25

26:                                               ; preds = %16
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %20)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #6
  %27 = fadd double %.01013, 1.000000e-01
  %28 = fcmp olt double %27, 1.500000e+00
  br i1 %28, label %16, label %13, !llvm.loop !19
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D28rotationMatrixFromQuaternionIdEENS_6MatrixIT_Lm3ELm3EEERKNS_10QuaternionIS2_EE(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.6") align 8, ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D33rotationQuaternionFromRotationVecIdEENS_10QuaternionIT_EENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Quaternion") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) local_unnamed_addr #5

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind 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 = { uwtable "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 = { "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 nounwind 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 = { 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 }
attributes #7 = { noreturn }

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !13, i64 8}
!9 = !{!"_ZTS22TolerantAssertComparerIbdE", !10, i64 0, !13, i64 8, !14, i64 16}
!10 = !{!"int", !11, i64 0}
!11 = !{!"omnipotent char", !12, i64 0}
!12 = !{!"Simple C++ TBAA"}
!13 = !{!"any pointer", !11, i64 0}
!14 = !{!"double", !11, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !11, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = distinct !{!19, !6}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,SROAPass,SimplifyCFGPass