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

; 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::Quaternion" = type { double, %union.anon.41 }
%union.anon.41 = type { %struct.anon.42 }
%struct.anon.42 = type { double, double, double }
%struct.TolerantAssertBuilder = type { i32, 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 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() #2

declare ptr @__cxa_allocate_exception(i64)

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)

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)) #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)) #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)) #5 align 2

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

; 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)) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_Z30interchanceQuaternionAndMatrixv() #5 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 %"class.P3D::Matrix.6", align 8
  %6 = alloca %"struct.P3D::Quaternion", align 8
  %7 = alloca %"class.P3D::Matrix.6", align 8
  %8 = alloca %class.TolerantAssertComparer, align 8
  %9 = alloca %class.TolerantAssertComparer.12, align 8
  %10 = alloca %struct.TolerantAssertBuilder, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #6
  store double -1.250000e+00, ptr %1, align 8, !tbaa !5
  br label %13

13:                                               ; preds = %62, %0
  %14 = load double, ptr %1, align 8, !tbaa !5
  %15 = fcmp olt double %14, 1.500000e+00
  br i1 %15, label %17, label %16

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

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

18:                                               ; preds = %58, %17
  %19 = load double, ptr %3, align 8, !tbaa !5
  %20 = fcmp olt double %19, 1.500000e+00
  br i1 %20, label %22, label %21

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

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

23:                                               ; preds = %54, %22
  %24 = load double, ptr %4, align 8, !tbaa !5
  %25 = fcmp olt double %24, 1.500000e+00
  br i1 %25, label %27, label %26

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

27:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 72, ptr %5) #6
  %28 = load double, ptr %1, align 8, !tbaa !5
  %29 = load double, ptr %3, align 8, !tbaa !5
  %30 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D29rotationMatrixfromEulerAnglesIdEENS_6MatrixIT_Lm3ELm3EEES2_S2_S2_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %5, double noundef %28, double noundef %29, double noundef %30)
  call void @llvm.lifetime.start.p0(i64 32, ptr %6) #6
  call void @_ZN3P3D36rotationQuaternionFromRotationMatrixIdEENS_10QuaternionIT_EERKNS_6MatrixIS2_Lm3ELm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Quaternion") align 8 %6, ptr noundef nonnull align 8 dereferenceable(72) %5)
  call void @llvm.lifetime.start.p0(i64 72, ptr %7) #6
  call void @_ZN3P3D28rotationMatrixFromQuaternionIdEENS_6MatrixIT_Lm3ELm3EEERKNS_10QuaternionIS2_EE(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %7, ptr noundef nonnull align 8 dereferenceable(32) %6)
  br label %31

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #6
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 427, double noundef 1.000000e-08)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.12) align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(72) %5)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(72) %7)
  %32 = getelementptr inbounds %class.TolerantAssertComparer, ptr %8, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = load i8, ptr %33, align 1, !tbaa !13, !range !15, !noundef !16
  %35 = trunc i8 %34 to i1
  %36 = xor i1 %35, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #6
  br i1 %36, label %37, label %50

37:                                               ; preds = %31
  %38 = call ptr @_ZTW15__testInterface()
  %39 = getelementptr inbounds %class.TestInterface, ptr %38, i32 0, i32 1
  %40 = load i8, ptr %39, align 8, !tbaa !17, !range !15, !noundef !16
  %41 = trunc i8 %40 to i1
  br i1 %41, label %42, label %43

42:                                               ; preds = %37
  br label %43

43:                                               ; preds = %42, %37
  %44 = call ptr @__cxa_allocate_exception(i64 16) #6
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %44, i32 noundef 427, ptr noundef @.str.4)
          to label %45 unwind label %46

45:                                               ; preds = %43
  call void @__cxa_throw(ptr %44, ptr @_ZTI14AssertionError, ptr null) #7
  unreachable

46:                                               ; preds = %43
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %11, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %12, align 4
  call void @__cxa_free_exception(ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #6
  br label %66

50:                                               ; preds = %31
  %51 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %51)
  br label %52

52:                                               ; preds = %50
  br label %53

53:                                               ; preds = %52
  call void @llvm.lifetime.end.p0(i64 72, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #6
  br label %54

54:                                               ; preds = %53
  %55 = load double, ptr %4, align 8, !tbaa !5
  %56 = fadd double %55, 1.000000e-01
  store double %56, ptr %4, align 8, !tbaa !5
  br label %23, !llvm.loop !20

57:                                               ; preds = %26
  br label %58

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

61:                                               ; preds = %21
  br label %62

62:                                               ; preds = %61
  %63 = load double, ptr %1, align 8, !tbaa !5
  %64 = fadd double %63, 1.000000e-01
  store double %64, ptr %1, align 8, !tbaa !5
  br label %13, !llvm.loop !23

65:                                               ; preds = %16
  ret void

66:                                               ; preds = %46
  %67 = load ptr, ptr %11, align 8
  %68 = load i32, ptr %12, align 4
  %69 = insertvalue { ptr, i32 } poison, ptr %67, 0
  %70 = insertvalue { ptr, i32 } %69, i32 %68, 1
  resume { ptr, i32 } %70
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D36rotationQuaternionFromRotationMatrixIdEENS_10QuaternionIT_EERKNS_6MatrixIS2_Lm3ELm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Quaternion") align 8, ptr noundef nonnull align 8 dereferenceable(72)) #5

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


; 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::Quaternion" = type { double, %union.anon.41 }
%union.anon.41 = type { %struct.anon.42 }
%struct.anon.42 = type { double, double, double }
%struct.TolerantAssertBuilder = type { i32, 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 uwtable
declare dso_local void @_ZN3P3D29rotationMatrixfromEulerAnglesIdEENS_6MatrixIT_Lm3ELm3EEES2_S2_S2_(ptr dead_on_unwind noalias writable sret(%"class.P3D::Matrix.6") align 8, double noundef, double noundef, double noundef) local_unnamed_addr #5

; 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
define dso_local void @_Z30interchanceQuaternionAndMatrixv() local_unnamed_addr #5 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Matrix.6", align 8
  %2 = alloca %"struct.P3D::Quaternion", align 8
  %3 = alloca %"class.P3D::Matrix.6", align 8
  %4 = alloca %class.TolerantAssertComparer, align 8
  %5 = alloca %class.TolerantAssertComparer.12, align 8
  %6 = alloca %struct.TolerantAssertBuilder, align 8
  %7 = getelementptr inbounds i8, ptr %4, i64 8
  br label %.preheader12

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

8:                                                ; preds = %9
  ret void

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

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

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

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

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

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

23:                                               ; preds = %20
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #6
  resume { ptr, i32 } %24

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D36rotationQuaternionFromRotationMatrixIdEENS_10QuaternionIT_EERKNS_6MatrixIS2_Lm3ELm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Quaternion") align 8, ptr noundef nonnull align 8 dereferenceable(72)) 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: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,SROAPass,SimplifyCFGPass