; LLVM IR from ThePhysicsGuys/Physics3D :: tests/rotationTests.ll (Z41rotationGlobalToLocalInvertsLocalToGlobalv)

; 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.0 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%class.TolerantAssertComparer.1 = type { i32, ptr, double }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%struct.TolerantAssertBuilder = type { i32, double }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%class.TolerantAssertComparer.2 = type { i32, ptr, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8
@constinit = external hidden constant [6 x double], 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: 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 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: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.0) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_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(24)) #2 align 2

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

; 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 @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, double noundef, double noundef, double noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_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)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z41rotationGlobalToLocalInvertsLocalToGlobalv() #2 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::MatrixRotationTemplate", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %class.TolerantAssertComparer, align 8
  %8 = alloca %class.TolerantAssertComparer.0, align 8
  %9 = alloca %struct.TolerantAssertBuilder, align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca ptr, align 8
  %13 = alloca i32, align 4
  %14 = alloca %class.TolerantAssertComparer, align 8
  %15 = alloca %class.TolerantAssertComparer.0, align 8
  %16 = alloca %struct.TolerantAssertBuilder, align 8
  %17 = alloca %"struct.P3D::Vector", align 8
  %18 = alloca %"struct.P3D::Vector", align 8
  %19 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %20 = alloca %class.TolerantAssertComparer, align 8
  %21 = alloca %class.TolerantAssertComparer.1, align 8
  %22 = alloca %struct.TolerantAssertBuilder, align 8
  %23 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %24 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %25 = alloca %class.TolerantAssertComparer, align 8
  %26 = alloca %class.TolerantAssertComparer.1, align 8
  %27 = alloca %struct.TolerantAssertBuilder, align 8
  %28 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %29 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %30 = alloca %"class.P3D::SymmetricMatrix", align 8
  %31 = alloca %"class.std::initializer_list", align 8
  %32 = alloca [6 x double], align 8
  %33 = alloca %class.TolerantAssertComparer, align 8
  %34 = alloca %class.TolerantAssertComparer.2, align 8
  %35 = alloca %struct.TolerantAssertBuilder, align 8
  %36 = alloca %"class.P3D::SymmetricMatrix", align 8
  %37 = alloca %"class.P3D::SymmetricMatrix", align 8
  %38 = alloca %class.TolerantAssertComparer, align 8
  %39 = alloca %class.TolerantAssertComparer.2, align 8
  %40 = alloca %struct.TolerantAssertBuilder, align 8
  %41 = alloca %"class.P3D::SymmetricMatrix", align 8
  %42 = alloca %"class.P3D::SymmetricMatrix", align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #8
  store double -1.550000e+00, ptr %1, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %212, %0
  %44 = load double, ptr %1, align 8, !tbaa !5
  %45 = fcmp olt double %44, 1.550000e+00
  br i1 %45, label %47, label %46

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

47:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store double -1.550000e+00, ptr %3, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %208, %47
  %49 = load double, ptr %3, align 8, !tbaa !5
  %50 = fcmp olt double %49, 1.550000e+00
  br i1 %50, label %52, label %51

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

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

53:                                               ; preds = %201, %52
  %54 = load double, ptr %4, align 8, !tbaa !5
  %55 = fcmp olt double %54, 1.550000e+00
  br i1 %55, label %57, label %56

56:                                               ; preds = %53
  store i32 8, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  br label %207

57:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 72, ptr %5) #8
  %58 = load double, ptr %1, align 8, !tbaa !5
  %59 = load double, ptr %3, align 8, !tbaa !5
  %60 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %5, double noundef %58, double noundef %59, double noundef %60)
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef 0x3FE6666666666666, double noundef -5.000000e-01, double noundef 3.000000e-01) #8
  br label %61

61:                                               ; preds = %57
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %9, i32 noundef 50, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %8, ptr noundef nonnull align 8 dereferenceable(16) %9, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %62 = getelementptr inbounds %class.TolerantAssertComparer, ptr %7, i32 0, i32 1
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = load i8, ptr %63, align 1, !tbaa !13, !range !15, !noundef !16
  %65 = trunc i8 %64 to i1
  %66 = xor i1 %65, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  br i1 %66, label %67, label %80

67:                                               ; preds = %61
  %68 = call ptr @_ZTW15__testInterface()
  %69 = getelementptr inbounds %class.TestInterface, ptr %68, i32 0, i32 1
  %70 = load i8, ptr %69, align 8, !tbaa !17, !range !15, !noundef !16
  %71 = trunc i8 %70 to i1
  br i1 %71, label %72, label %73

72:                                               ; preds = %67
  br label %73

73:                                               ; preds = %72, %67
  %74 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %74, i32 noundef 50, ptr noundef @.str.3)
          to label %75 unwind label %76

75:                                               ; preds = %73
  call void @__cxa_throw(ptr %74, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

76:                                               ; preds = %73
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %12, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %13, align 4
  call void @__cxa_free_exception(ptr %74) #8
  br label %206

80:                                               ; preds = %61
  %81 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %81)
  br label %82

82:                                               ; preds = %80
  br label %83

83:                                               ; preds = %82
  br label %84

84:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %16, i32 noundef 51, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %18, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(24) %18)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(24) %17)
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %85 = getelementptr inbounds %class.TolerantAssertComparer, ptr %14, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8, !tbaa !9
  %87 = load i8, ptr %86, align 1, !tbaa !13, !range !15, !noundef !16
  %88 = trunc i8 %87 to i1
  %89 = xor i1 %88, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  br i1 %89, label %90, label %103

90:                                               ; preds = %84
  %91 = call ptr @_ZTW15__testInterface()
  %92 = getelementptr inbounds %class.TestInterface, ptr %91, i32 0, i32 1
  %93 = load i8, ptr %92, align 8, !tbaa !17, !range !15, !noundef !16
  %94 = trunc i8 %93 to i1
  br i1 %94, label %95, label %96

95:                                               ; preds = %90
  br label %96

96:                                               ; preds = %95, %90
  %97 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %97, i32 noundef 51, ptr noundef @.str.3)
          to label %98 unwind label %99

98:                                               ; preds = %96
  call void @__cxa_throw(ptr %97, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

99:                                               ; preds = %96
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %12, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %13, align 4
  call void @__cxa_free_exception(ptr %97) #8
  br label %206

103:                                              ; preds = %84
  %104 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %104)
  br label %105

105:                                              ; preds = %103
  br label %106

106:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 72, ptr %19) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %19, double noundef 5.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01)
  br label %107

107:                                              ; preds = %106
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef 54, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %24) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %24, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %19)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %23, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %24)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D22MatrixRotationTemplateIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.1) align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(72) %23)
  call void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(72) %19)
  %108 = getelementptr inbounds %class.TolerantAssertComparer, ptr %20, i32 0, i32 1
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = load i8, ptr %109, align 1, !tbaa !13, !range !15, !noundef !16
  %111 = trunc i8 %110 to i1
  %112 = xor i1 %111, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #8
  br i1 %112, label %113, label %126

113:                                              ; preds = %107
  %114 = call ptr @_ZTW15__testInterface()
  %115 = getelementptr inbounds %class.TestInterface, ptr %114, i32 0, i32 1
  %116 = load i8, ptr %115, align 8, !tbaa !17, !range !15, !noundef !16
  %117 = trunc i8 %116 to i1
  br i1 %117, label %118, label %119

118:                                              ; preds = %113
  br label %119

119:                                              ; preds = %118, %113
  %120 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %120, i32 noundef 54, ptr noundef @.str.3)
          to label %121 unwind label %122

121:                                              ; preds = %119
  call void @__cxa_throw(ptr %120, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

122:                                              ; preds = %119
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %12, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %13, align 4
  call void @__cxa_free_exception(ptr %120) #8
  br label %205

126:                                              ; preds = %107
  %127 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %127)
  br label %128

128:                                              ; preds = %126
  br label %129

129:                                              ; preds = %128
  br label %130

130:                                              ; preds = %129
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef 55, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %29) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %29, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %19)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %28, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %29)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D22MatrixRotationTemplateIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.1) align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(72) %28)
  call void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(72) %19)
  %131 = getelementptr inbounds %class.TolerantAssertComparer, ptr %25, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = load i8, ptr %132, align 1, !tbaa !13, !range !15, !noundef !16
  %134 = trunc i8 %133 to i1
  %135 = xor i1 %134, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %28) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  br i1 %135, label %136, label %149

136:                                              ; preds = %130
  %137 = call ptr @_ZTW15__testInterface()
  %138 = getelementptr inbounds %class.TestInterface, ptr %137, i32 0, i32 1
  %139 = load i8, ptr %138, align 8, !tbaa !17, !range !15, !noundef !16
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %142

141:                                              ; preds = %136
  br label %142

142:                                              ; preds = %141, %136
  %143 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %143, i32 noundef 55, ptr noundef @.str.3)
          to label %144 unwind label %145

144:                                              ; preds = %142
  call void @__cxa_throw(ptr %143, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

145:                                              ; preds = %142
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %12, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %13, align 4
  call void @__cxa_free_exception(ptr %143) #8
  br label %205

149:                                              ; preds = %130
  %150 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %150)
  br label %151

151:                                              ; preds = %149
  br label %152

152:                                              ; preds = %151
  call void @llvm.lifetime.start.p0(i64 48, ptr %30) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %32) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %32, ptr align 8 @constinit, i64 48, i1 false), !tbaa.struct !20
  %153 = getelementptr inbounds %"class.std::initializer_list", ptr %31, i32 0, i32 0
  store ptr %32, ptr %153, align 8, !tbaa !22
  %154 = getelementptr inbounds %"class.std::initializer_list", ptr %31, i32 0, i32 1
  store i64 6, ptr %154, align 8, !tbaa !24
  call void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48) %30, ptr noundef nonnull align 8 dereferenceable(16) %31)
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %31) #8
  br label %155

155:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %35, i32 noundef 62, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %37) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %37, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(48) %30)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %36, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(48) %37)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.2) align 8 %34, ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(48) %36)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %33, ptr noundef nonnull align 8 dereferenceable(24) %34, ptr noundef nonnull align 8 dereferenceable(48) %30)
  %156 = getelementptr inbounds %class.TolerantAssertComparer, ptr %33, i32 0, i32 1
  %157 = load ptr, ptr %156, align 8, !tbaa !9
  %158 = load i8, ptr %157, align 1, !tbaa !13, !range !15, !noundef !16
  %159 = trunc i8 %158 to i1
  %160 = xor i1 %159, true
  call void @llvm.lifetime.end.p0(i64 48, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #8
  br i1 %160, label %161, label %174

161:                                              ; preds = %155
  %162 = call ptr @_ZTW15__testInterface()
  %163 = getelementptr inbounds %class.TestInterface, ptr %162, i32 0, i32 1
  %164 = load i8, ptr %163, align 8, !tbaa !17, !range !15, !noundef !16
  %165 = trunc i8 %164 to i1
  br i1 %165, label %166, label %167

166:                                              ; preds = %161
  br label %167

167:                                              ; preds = %166, %161
  %168 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %168, i32 noundef 62, ptr noundef @.str.3)
          to label %169 unwind label %170

169:                                              ; preds = %167
  call void @__cxa_throw(ptr %168, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

170:                                              ; preds = %167
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %12, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %13, align 4
  call void @__cxa_free_exception(ptr %168) #8
  br label %204

174:                                              ; preds = %155
  %175 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %175)
  br label %176

176:                                              ; preds = %174
  br label %177

177:                                              ; preds = %176
  br label %178

178:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 24, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %40) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %40, i32 noundef 63, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr %41) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %42) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %42, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(48) %30)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %41, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(48) %42)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.2) align 8 %39, ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(48) %41)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %38, ptr noundef nonnull align 8 dereferenceable(24) %39, ptr noundef nonnull align 8 dereferenceable(48) %30)
  %179 = getelementptr inbounds %class.TolerantAssertComparer, ptr %38, i32 0, i32 1
  %180 = load ptr, ptr %179, align 8, !tbaa !9
  %181 = load i8, ptr %180, align 1, !tbaa !13, !range !15, !noundef !16
  %182 = trunc i8 %181 to i1
  %183 = xor i1 %182, true
  call void @llvm.lifetime.end.p0(i64 48, ptr %42) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %38) #8
  br i1 %183, label %184, label %197

184:                                              ; preds = %178
  %185 = call ptr @_ZTW15__testInterface()
  %186 = getelementptr inbounds %class.TestInterface, ptr %185, i32 0, i32 1
  %187 = load i8, ptr %186, align 8, !tbaa !17, !range !15, !noundef !16
  %188 = trunc i8 %187 to i1
  br i1 %188, label %189, label %190

189:                                              ; preds = %184
  br label %190

190:                                              ; preds = %189, %184
  %191 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %191, i32 noundef 63, ptr noundef @.str.3)
          to label %192 unwind label %193

192:                                              ; preds = %190
  call void @__cxa_throw(ptr %191, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

193:                                              ; preds = %190
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %12, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %13, align 4
  call void @__cxa_free_exception(ptr %191) #8
  br label %204

197:                                              ; preds = %178
  %198 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %198)
  br label %199

199:                                              ; preds = %197
  br label %200

200:                                              ; preds = %199
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #8
  br label %201

201:                                              ; preds = %200
  %202 = load double, ptr %4, align 8, !tbaa !5
  %203 = fadd double %202, 1.300000e-01
  store double %203, ptr %4, align 8, !tbaa !5
  br label %53, !llvm.loop !25

204:                                              ; preds = %193, %170
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #8
  br label %205

205:                                              ; preds = %204, %145, %122
  call void @llvm.lifetime.end.p0(i64 72, ptr %19) #8
  br label %206

206:                                              ; preds = %205, %99, %76
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #8
  br label %216

207:                                              ; preds = %56
  br label %208

208:                                              ; preds = %207
  %209 = load double, ptr %3, align 8, !tbaa !5
  %210 = fadd double %209, 1.300000e-01
  store double %210, ptr %3, align 8, !tbaa !5
  br label %48, !llvm.loop !27

211:                                              ; preds = %51
  br label %212

212:                                              ; preds = %211
  %213 = load double, ptr %1, align 8, !tbaa !5
  %214 = fadd double %213, 1.300000e-01
  store double %214, ptr %1, align 8, !tbaa !5
  br label %43, !llvm.loop !28

215:                                              ; preds = %46
  ret void

216:                                              ; preds = %206
  %217 = load ptr, ptr %12, align 8
  %218 = load i32, ptr %13, align 4
  %219 = insertvalue { ptr, i32 } poison, ptr %217, 0
  %220 = insertvalue { ptr, i32 } %219, i32 %218, 1
  resume { ptr, i32 } %220
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_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(48)) #2 align 2

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 = { 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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{i64 0, i64 48, !21}
!21 = !{!7, !7, i64 0}
!22 = !{!23, !12, i64 0}
!23 = !{!"_ZTSSt16initializer_listIdE", !12, i64 0, !19, i64 8}
!24 = !{!23, !19, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


; 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.0 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%class.TolerantAssertComparer.1 = type { i32, ptr, double }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%struct.TolerantAssertBuilder = type { i32, double }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%class.TolerantAssertComparer.2 = type { i32, ptr, double }

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8
@constinit = external hidden local_unnamed_addr constant [6 x double], 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 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 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: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.0) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_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(24)) local_unnamed_addr #2 align 2

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

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

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 #4

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, double noundef, double noundef, double noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_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 #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z41rotationGlobalToLocalInvertsLocalToGlobalv() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %2 = alloca %"struct.P3D::Vector", align 8
  %3 = alloca %class.TolerantAssertComparer, align 8
  %4 = alloca %class.TolerantAssertComparer.0, align 8
  %5 = alloca %struct.TolerantAssertBuilder, align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %class.TolerantAssertComparer, align 8
  %9 = alloca %class.TolerantAssertComparer.0, align 8
  %10 = alloca %struct.TolerantAssertBuilder, align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"struct.P3D::Vector", align 8
  %13 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %14 = alloca %class.TolerantAssertComparer, align 8
  %15 = alloca %class.TolerantAssertComparer.1, align 8
  %16 = alloca %struct.TolerantAssertBuilder, align 8
  %17 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %18 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %19 = alloca %class.TolerantAssertComparer, align 8
  %20 = alloca %class.TolerantAssertComparer.1, align 8
  %21 = alloca %struct.TolerantAssertBuilder, align 8
  %22 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %23 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %24 = alloca %"class.P3D::SymmetricMatrix", align 8
  %25 = alloca %"class.std::initializer_list", align 8
  %26 = alloca [6 x double], align 8
  %27 = alloca %class.TolerantAssertComparer, align 8
  %28 = alloca %class.TolerantAssertComparer.2, align 8
  %29 = alloca %struct.TolerantAssertBuilder, align 8
  %30 = alloca %"class.P3D::SymmetricMatrix", align 8
  %31 = alloca %"class.P3D::SymmetricMatrix", align 8
  %32 = alloca %class.TolerantAssertComparer, align 8
  %33 = alloca %class.TolerantAssertComparer.2, align 8
  %34 = alloca %struct.TolerantAssertBuilder, align 8
  %35 = alloca %"class.P3D::SymmetricMatrix", align 8
  %36 = alloca %"class.P3D::SymmetricMatrix", align 8
  %37 = getelementptr inbounds i8, ptr %3, i64 8
  %38 = getelementptr inbounds i8, ptr %8, i64 8
  %39 = getelementptr inbounds i8, ptr %14, i64 8
  %40 = getelementptr inbounds i8, ptr %19, i64 8
  %41 = getelementptr inbounds i8, ptr %25, i64 8
  %42 = getelementptr inbounds i8, ptr %27, i64 8
  %43 = getelementptr inbounds i8, ptr %32, i64 8
  br label %.preheader21

.preheader21:                                     ; preds = %0, %45
  %.01524 = phi double [ -1.550000e+00, %0 ], [ %46, %45 ]
  br label %.preheader

44:                                               ; preds = %45
  ret void

.preheader:                                       ; preds = %.preheader21, %48
  %.01423 = phi double [ -1.550000e+00, %.preheader21 ], [ %49, %48 ]
  br label %51

45:                                               ; preds = %48
  %46 = fadd double %.01524, 1.300000e-01
  %47 = fcmp olt double %46, 1.550000e+00
  br i1 %47, label %.preheader21, label %44, !llvm.loop !5

48:                                               ; preds = %111
  %49 = fadd double %.01423, 1.300000e-01
  %50 = fcmp olt double %49, 1.550000e+00
  br i1 %50, label %.preheader, label %45, !llvm.loop !7

51:                                               ; preds = %.preheader, %111
  %.01322 = phi double [ -1.550000e+00, %.preheader ], [ %112, %111 ]
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %1, double noundef %.01524, double noundef %.01423, double noundef %.01322)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef 0x3FE6666666666666, double noundef -5.000000e-01, double noundef 3.000000e-01) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %5, i32 noundef 50, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %6, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.0) align 8 %4, ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(24) %6)
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %52 = load ptr, ptr %37, align 8, !tbaa !8
  %53 = load i8, ptr %52, align 1, !tbaa !15, !range !17, !noundef !18
  %54 = trunc nuw i8 %53 to i1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  %55 = call ptr @_ZTW15__testInterface()
  br i1 %54, label %61, label %56

56:                                               ; preds = %51
  %57 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %57, i32 noundef 50, ptr noundef nonnull @.str.3)
          to label %58 unwind label %59

58:                                               ; preds = %56
  call void @__cxa_throw(ptr nonnull %57, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

59:                                               ; preds = %56
  %60 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %57) #8
  br label %116

61:                                               ; preds = %51
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %55)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %10, i32 noundef 51, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(24) %12)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.0) align 8 %9, ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(24) %11)
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %62 = load ptr, ptr %38, align 8, !tbaa !8
  %63 = load i8, ptr %62, align 1, !tbaa !15, !range !17, !noundef !18
  %64 = trunc nuw i8 %63 to i1
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #8
  %65 = call ptr @_ZTW15__testInterface()
  br i1 %64, label %71, label %66

66:                                               ; preds = %61
  %67 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %67, i32 noundef 51, ptr noundef nonnull @.str.3)
          to label %68 unwind label %69

68:                                               ; preds = %66
  call void @__cxa_throw(ptr nonnull %67, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

69:                                               ; preds = %66
  %70 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %67) #8
  br label %116

71:                                               ; preds = %61
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %65)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %13, double noundef 5.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %16, i32 noundef 54, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %17) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %18) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %18, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %13)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %17, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %18)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D22MatrixRotationTemplateIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.1) align 8 %15, ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(72) %17)
  call void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(72) %13)
  %72 = load ptr, ptr %39, align 8, !tbaa !8
  %73 = load i8, ptr %72, align 1, !tbaa !15, !range !17, !noundef !18
  %74 = trunc nuw i8 %73 to i1
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #8
  %75 = call ptr @_ZTW15__testInterface()
  br i1 %74, label %81, label %76

76:                                               ; preds = %71
  %77 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %77, i32 noundef 54, ptr noundef nonnull @.str.3)
          to label %78 unwind label %79

78:                                               ; preds = %76
  call void @__cxa_throw(ptr nonnull %77, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

79:                                               ; preds = %76
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %77) #8
  br label %115

81:                                               ; preds = %71
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %75)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef 55, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %23) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %23, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %13)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %22, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %23)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D22MatrixRotationTemplateIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.1) align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(72) %22)
  call void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(72) %13)
  %82 = load ptr, ptr %40, align 8, !tbaa !8
  %83 = load i8, ptr %82, align 1, !tbaa !15, !range !17, !noundef !18
  %84 = trunc nuw i8 %83 to i1
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %22) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  %85 = call ptr @_ZTW15__testInterface()
  br i1 %84, label %91, label %86

86:                                               ; preds = %81
  %87 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %87, i32 noundef 55, ptr noundef nonnull @.str.3)
          to label %88 unwind label %89

88:                                               ; preds = %86
  call void @__cxa_throw(ptr nonnull %87, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

89:                                               ; preds = %86
  %90 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %87) #8
  br label %115

91:                                               ; preds = %81
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %85)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %24) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %26) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 8 dereferenceable(48) @constinit, i64 48, i1 false), !tbaa.struct !19
  store ptr %26, ptr %25, align 8, !tbaa !21
  store i64 6, ptr %41, align 8, !tbaa !24
  call void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(16) %25)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %28) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %29) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %29, i32 noundef 62, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %30) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %31) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %31, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(48) %24)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %30, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(48) %31)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.2) align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(48) %30)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(48) %24)
  %92 = load ptr, ptr %42, align 8, !tbaa !8
  %93 = load i8, ptr %92, align 1, !tbaa !15, !range !17, !noundef !18
  %94 = trunc nuw i8 %93 to i1
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %31) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %30) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %27) #8
  %95 = call ptr @_ZTW15__testInterface()
  br i1 %94, label %101, label %96

96:                                               ; preds = %91
  %97 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %97, i32 noundef 62, ptr noundef nonnull @.str.3)
          to label %98 unwind label %99

98:                                               ; preds = %96
  call void @__cxa_throw(ptr nonnull %97, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

99:                                               ; preds = %96
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %114

101:                                              ; preds = %91
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %95)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %32) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %33) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %34) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef 63, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %35) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %36) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %36, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(48) %24)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %35, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(48) %36)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.2) align 8 %33, ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(48) %35)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(48) %24)
  %102 = load ptr, ptr %43, align 8, !tbaa !8
  %103 = load i8, ptr %102, align 1, !tbaa !15, !range !17, !noundef !18
  %104 = trunc nuw i8 %103 to i1
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %36) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %35) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %34) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %33) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %32) #8
  %105 = call ptr @_ZTW15__testInterface()
  br i1 %104, label %111, label %106

106:                                              ; preds = %101
  %107 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %107, i32 noundef 63, ptr noundef nonnull @.str.3)
          to label %108 unwind label %109

108:                                              ; preds = %106
  call void @__cxa_throw(ptr nonnull %107, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

109:                                              ; preds = %106
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %114

111:                                              ; preds = %101
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %105)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #8
  %112 = fadd double %.01322, 1.300000e-01
  %113 = fcmp olt double %112, 1.550000e+00
  br i1 %113, label %51, label %48, !llvm.loop !25

114:                                              ; preds = %109, %99
  %.sink = phi ptr [ %107, %109 ], [ %97, %99 ]
  %.pn = phi { ptr, i32 } [ %110, %109 ], [ %100, %99 ]
  call void @__cxa_free_exception(ptr %.sink) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %24) #8
  br label %115

115:                                              ; preds = %114, %89, %79
  %.pn17 = phi { ptr, i32 } [ %80, %79 ], [ %90, %89 ], [ %.pn, %114 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #8
  br label %116

116:                                              ; preds = %115, %69, %59
  %.pn19 = phi { ptr, i32 } [ %60, %59 ], [ %70, %69 ], [ %.pn17, %115 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn19
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind noalias writable sret(%"class.P3D::MatrixRotationTemplate") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress 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) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_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(48)) local_unnamed_addr #2 align 2

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 = { 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 = { 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { 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 = !{i64 0, i64 48, !20}
!20 = !{!11, !11, i64 0}
!21 = !{!22, !13, i64 0}
!22 = !{!"_ZTSSt16initializer_listIdE", !13, i64 0, !23, i64 8}
!23 = !{!"long", !11, i64 0}
!24 = !{!22, !23, i64 8}
!25 = distinct !{!25, !6}


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