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

; 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] }
%class.TolerantAssertComparer.2 = type { i32, ptr, double }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%struct.TolerantAssertBuilder = type { i32, 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.11 = 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 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 @_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: 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 @_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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19rotationAssociativev() #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 %"class.P3D::MatrixRotationTemplate", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %9 = alloca %"class.P3D::SymmetricMatrix", align 8
  %10 = alloca %"class.std::initializer_list", align 8
  %11 = alloca [6 x double], align 8
  %12 = alloca %class.TolerantAssertComparer, align 8
  %13 = alloca %class.TolerantAssertComparer.0, align 8
  %14 = alloca %struct.TolerantAssertBuilder, align 8
  %15 = alloca %"struct.P3D::Vector", align 8
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca %"struct.P3D::Vector", align 8
  %18 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca %class.TolerantAssertComparer, align 8
  %22 = alloca %class.TolerantAssertComparer.1, align 8
  %23 = alloca %struct.TolerantAssertBuilder, align 8
  %24 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %25 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %26 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %27 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %28 = alloca %class.TolerantAssertComparer, align 8
  %29 = alloca %class.TolerantAssertComparer.2, align 8
  %30 = alloca %struct.TolerantAssertBuilder, align 8
  %31 = alloca %"class.P3D::SymmetricMatrix", align 8
  %32 = alloca %"class.P3D::SymmetricMatrix", align 8
  %33 = alloca %"class.P3D::SymmetricMatrix", align 8
  %34 = alloca %"class.P3D::MatrixRotationTemplate", 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 %35

35:                                               ; preds = %133, %0
  %36 = load double, ptr %1, align 8, !tbaa !5
  %37 = fcmp olt double %36, 1.550000e+00
  br i1 %37, label %39, label %38

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

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

40:                                               ; preds = %129, %39
  %41 = load double, ptr %3, align 8, !tbaa !5
  %42 = fcmp olt double %41, 1.550000e+00
  br i1 %42, label %44, label %43

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

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

45:                                               ; preds = %124, %44
  %46 = load double, ptr %4, align 8, !tbaa !5
  %47 = fcmp olt double %46, 1.550000e+00
  br i1 %47, label %49, label %48

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

49:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 72, ptr %5) #8
  %50 = load double, ptr %1, align 8, !tbaa !5
  %51 = load double, ptr %3, align 8, !tbaa !5
  %52 = 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 %50, double noundef %51, double noundef %52)
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %6, double noundef -1.700000e-01, double noundef 2.600000e-01, double noundef -2.470000e-01)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef 0x3FE6666666666666, double noundef -5.000000e-01, double noundef 3.000000e-01) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %8) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %8, double noundef 5.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %11, ptr align 8 @constinit.11, i64 48, i1 false), !tbaa.struct !9
  %53 = getelementptr inbounds %"class.std::initializer_list", ptr %10, i32 0, i32 0
  store ptr %11, ptr %53, align 8, !tbaa !11
  %54 = getelementptr inbounds %"class.std::initializer_list", ptr %10, i32 0, i32 1
  store i64 6, ptr %54, align 8, !tbaa !15
  call void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull align 8 dereferenceable(16) %10)
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #8
  br label %55

55:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %14, i32 noundef 96, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(24) %16)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %13, ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(24) %15)
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %18) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %18, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %6)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %17, ptr noundef nonnull align 8 dereferenceable(72) %18, ptr noundef nonnull align 8 dereferenceable(24) %7)
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(24) %17)
  %56 = getelementptr inbounds %class.TolerantAssertComparer, ptr %12, i32 0, i32 1
  %57 = load ptr, ptr %56, align 8, !tbaa !16
  %58 = load i8, ptr %57, align 1, !tbaa !19, !range !21, !noundef !22
  %59 = trunc i8 %58 to i1
  %60 = xor i1 %59, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  br i1 %60, label %61, label %74

61:                                               ; preds = %55
  %62 = call ptr @_ZTW15__testInterface()
  %63 = getelementptr inbounds %class.TestInterface, ptr %62, i32 0, i32 1
  %64 = load i8, ptr %63, align 8, !tbaa !23, !range !21, !noundef !22
  %65 = trunc i8 %64 to i1
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %67

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

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

70:                                               ; preds = %67
  %71 = landingpad { ptr, i32 }
          cleanup
  %72 = extractvalue { ptr, i32 } %71, 0
  store ptr %72, ptr %19, align 8
  %73 = extractvalue { ptr, i32 } %71, 1
  store i32 %73, ptr %20, align 4
  call void @__cxa_free_exception(ptr %68) #8
  br label %127

74:                                               ; preds = %55
  %75 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %75)
  br label %76

76:                                               ; preds = %74
  br label %77

77:                                               ; preds = %76
  br label %78

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef 98, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %24) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %25) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %25, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) %8)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(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) %25)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D22MatrixRotationTemplateIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.1) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(72) %24)
  call void @llvm.lifetime.start.p0(i64 72, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %27) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %27, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %6)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %26, ptr noundef nonnull align 8 dereferenceable(72) %27, ptr noundef nonnull align 8 dereferenceable(72) %8)
  call void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(72) %26)
  %79 = getelementptr inbounds %class.TolerantAssertComparer, ptr %21, i32 0, i32 1
  %80 = load ptr, ptr %79, align 8, !tbaa !16
  %81 = load i8, ptr %80, align 1, !tbaa !19, !range !21, !noundef !22
  %82 = trunc i8 %81 to i1
  %83 = xor i1 %82, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  br i1 %83, label %84, label %97

84:                                               ; preds = %78
  %85 = call ptr @_ZTW15__testInterface()
  %86 = getelementptr inbounds %class.TestInterface, ptr %85, i32 0, i32 1
  %87 = load i8, ptr %86, align 8, !tbaa !23, !range !21, !noundef !22
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %90

89:                                               ; preds = %84
  br label %90

90:                                               ; preds = %89, %84
  %91 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %91, i32 noundef 98, ptr noundef @.str.3)
          to label %92 unwind label %93

92:                                               ; preds = %90
  call void @__cxa_throw(ptr %91, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

93:                                               ; preds = %90
  %94 = landingpad { ptr, i32 }
          cleanup
  %95 = extractvalue { ptr, i32 } %94, 0
  store ptr %95, ptr %19, align 8
  %96 = extractvalue { ptr, i32 } %94, 1
  store i32 %96, ptr %20, align 4
  call void @__cxa_free_exception(ptr %91) #8
  br label %127

97:                                               ; preds = %78
  %98 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %98)
  br label %99

99:                                               ; preds = %97
  br label %100

100:                                              ; preds = %99
  br label %101

101:                                              ; preds = %100
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %29) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %30, i32 noundef 100, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %32) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %32, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(48) %9)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %31, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(48) %32)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.2) align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(48) %31)
  call void @llvm.lifetime.start.p0(i64 48, ptr %33) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %34) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %34, ptr noundef nonnull align 8 dereferenceable(72) %5, ptr noundef nonnull align 8 dereferenceable(72) %6)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %33, ptr noundef nonnull align 8 dereferenceable(72) %34, ptr noundef nonnull align 8 dereferenceable(48) %9)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %28, ptr noundef nonnull align 8 dereferenceable(24) %29, ptr noundef nonnull align 8 dereferenceable(48) %33)
  %102 = getelementptr inbounds %class.TolerantAssertComparer, ptr %28, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !16
  %104 = load i8, ptr %103, align 1, !tbaa !19, !range !21, !noundef !22
  %105 = trunc i8 %104 to i1
  %106 = xor i1 %105, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %29) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #8
  br i1 %106, label %107, label %120

107:                                              ; preds = %101
  %108 = call ptr @_ZTW15__testInterface()
  %109 = getelementptr inbounds %class.TestInterface, ptr %108, i32 0, i32 1
  %110 = load i8, ptr %109, align 8, !tbaa !23, !range !21, !noundef !22
  %111 = trunc i8 %110 to i1
  br i1 %111, label %112, label %113

112:                                              ; preds = %107
  br label %113

113:                                              ; preds = %112, %107
  %114 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %114, i32 noundef 100, ptr noundef @.str.3)
          to label %115 unwind label %116

115:                                              ; preds = %113
  call void @__cxa_throw(ptr %114, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

116:                                              ; preds = %113
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %19, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %20, align 4
  call void @__cxa_free_exception(ptr %114) #8
  br label %127

120:                                              ; preds = %101
  %121 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %121)
  br label %122

122:                                              ; preds = %120
  br label %123

123:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %5) #8
  br label %124

124:                                              ; preds = %123
  %125 = load double, ptr %4, align 8, !tbaa !5
  %126 = fadd double %125, 1.300000e-01
  store double %126, ptr %4, align 8, !tbaa !5
  br label %45, !llvm.loop !25

127:                                              ; preds = %116, %93, %70
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 72, 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 %137

128:                                              ; preds = %48
  br label %129

129:                                              ; preds = %128
  %130 = load double, ptr %3, align 8, !tbaa !5
  %131 = fadd double %130, 1.300000e-01
  store double %131, ptr %3, align 8, !tbaa !5
  br label %40, !llvm.loop !27

132:                                              ; preds = %43
  br label %133

133:                                              ; preds = %132
  %134 = load double, ptr %1, align 8, !tbaa !5
  %135 = fadd double %134, 1.300000e-01
  store double %135, ptr %1, align 8, !tbaa !5
  br label %35, !llvm.loop !28

136:                                              ; preds = %38
  ret void

137:                                              ; preds = %127
  %138 = load ptr, ptr %19, align 8
  %139 = load i32, ptr %20, align 4
  %140 = insertvalue { ptr, i32 } poison, ptr %138, 0
  %141 = insertvalue { ptr, i32 } %140, i32 %139, 1
  resume { ptr, i32 } %141
}

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 = !{i64 0, i64 48, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSSt16initializer_listIdE", !13, i64 0, !14, i64 8}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!12, !14, i64 8}
!16 = !{!17, !13, i64 8}
!17 = !{!"_ZTS22TolerantAssertComparerIbdE", !18, i64 0, !13, i64 8, !6, i64 16}
!18 = !{!"int", !7, i64 0}
!19 = !{!20, !20, i64 0}
!20 = !{!"bool", !7, i64 0}
!21 = !{i8 0, i8 2}
!22 = !{}
!23 = !{!24, !20, i64 8}
!24 = !{!"_ZTS13TestInterface", !14, i64 0, !20, 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] }
%class.TolerantAssertComparer.2 = type { i32, ptr, double }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%struct.TolerantAssertBuilder = type { i32, double }

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8
@constinit.11 = 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 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 @_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 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 @_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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19rotationAssociativev() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %2 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %5 = alloca %"class.P3D::SymmetricMatrix", align 8
  %6 = alloca %"class.std::initializer_list", align 8
  %7 = alloca [6 x double], 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 %"struct.P3D::Vector", align 8
  %14 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %15 = alloca %class.TolerantAssertComparer, align 8
  %16 = alloca %class.TolerantAssertComparer.1, align 8
  %17 = alloca %struct.TolerantAssertBuilder, align 8
  %18 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %19 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %20 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %21 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %22 = alloca %class.TolerantAssertComparer, align 8
  %23 = alloca %class.TolerantAssertComparer.2, align 8
  %24 = alloca %struct.TolerantAssertBuilder, align 8
  %25 = alloca %"class.P3D::SymmetricMatrix", align 8
  %26 = alloca %"class.P3D::SymmetricMatrix", align 8
  %27 = alloca %"class.P3D::SymmetricMatrix", align 8
  %28 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %29 = getelementptr inbounds i8, ptr %6, i64 8
  %30 = getelementptr inbounds i8, ptr %8, i64 8
  %31 = getelementptr inbounds i8, ptr %15, i64 8
  %32 = getelementptr inbounds i8, ptr %22, i64 8
  br label %.preheader15

.preheader15:                                     ; preds = %0, %34
  %.01318 = phi double [ -1.550000e+00, %0 ], [ %35, %34 ]
  br label %.preheader

33:                                               ; preds = %34
  ret void

.preheader:                                       ; preds = %.preheader15, %37
  %.01217 = phi double [ -1.550000e+00, %.preheader15 ], [ %38, %37 ]
  br label %40

34:                                               ; preds = %37
  %35 = fadd double %.01318, 1.300000e-01
  %36 = fcmp olt double %35, 1.550000e+00
  br i1 %36, label %.preheader15, label %33, !llvm.loop !5

37:                                               ; preds = %70
  %38 = fadd double %.01217, 1.300000e-01
  %39 = fcmp olt double %38, 1.550000e+00
  br i1 %39, label %.preheader, label %34, !llvm.loop !7

40:                                               ; preds = %.preheader, %70
  %.01116 = phi double [ -1.550000e+00, %.preheader ], [ %71, %70 ]
  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 %.01318, double noundef %.01217, double noundef %.01116)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %2) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %2, double noundef -1.700000e-01, double noundef 2.600000e-01, double noundef -2.470000e-01)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef 0x3FE6666666666666, double noundef -5.000000e-01, double noundef 3.000000e-01) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %4, double noundef 5.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull align 8 dereferenceable(48) @constinit.11, i64 48, i1 false), !tbaa.struct !8
  store ptr %7, ptr %6, align 8, !tbaa !12
  store i64 6, ptr %29, align 8, !tbaa !16
  call void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #8
  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 96, 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) %2, ptr noundef nonnull align 8 dereferenceable(24) %3)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_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 @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %14) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %14, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %2)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(72) %14, ptr noundef nonnull align 8 dereferenceable(24) %3)
  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) %13)
  %41 = load ptr, ptr %30, align 8, !tbaa !17
  %42 = load i8, ptr %41, align 1, !tbaa !21, !range !23, !noundef !24
  %43 = trunc nuw i8 %42 to i1
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #8
  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
  %44 = call ptr @_ZTW15__testInterface()
  br i1 %43, label %50, label %45

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

47:                                               ; preds = %45
  call void @__cxa_throw(ptr nonnull %46, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

48:                                               ; preds = %45
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %73

50:                                               ; preds = %40
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %44)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef 98, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %18) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %19) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %19, ptr noundef nonnull align 8 dereferenceable(72) %2, ptr noundef nonnull align 8 dereferenceable(72) %4)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(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) %19)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D22MatrixRotationTemplateIdEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.1) align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(72) %18)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %21) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %21, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %2)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %20, ptr noundef nonnull align 8 dereferenceable(72) %21, ptr noundef nonnull align 8 dereferenceable(72) %4)
  call void @_ZNK22TolerantAssertComparerIN3P3D22MatrixRotationTemplateIdEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(72) %20)
  %51 = load ptr, ptr %31, align 8, !tbaa !17
  %52 = load i8, ptr %51, align 1, !tbaa !21, !range !23, !noundef !24
  %53 = trunc nuw i8 %52 to i1
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %19) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #8
  %54 = call ptr @_ZTW15__testInterface()
  br i1 %53, label %60, label %55

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

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

58:                                               ; preds = %55
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %73

60:                                               ; preds = %50
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %54)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %24) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %24, i32 noundef 100, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %25) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %26) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %26, ptr noundef nonnull align 8 dereferenceable(72) %2, ptr noundef nonnull align 8 dereferenceable(48) %5)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %25, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(48) %26)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.2) align 8 %23, ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(48) %25)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %27) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %28) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %28, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(72) %2)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %27, ptr noundef nonnull align 8 dereferenceable(72) %28, ptr noundef nonnull align 8 dereferenceable(48) %5)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %22, ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef nonnull align 8 dereferenceable(48) %27)
  %61 = load ptr, ptr %32, align 8, !tbaa !17
  %62 = load i8, ptr %61, align 1, !tbaa !21, !range !23, !noundef !24
  %63 = trunc nuw i8 %62 to i1
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %28) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %27) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %26) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %25) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %24) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %23) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #8
  %64 = call ptr @_ZTW15__testInterface()
  br i1 %63, label %70, label %65

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

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

68:                                               ; preds = %65
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %73

70:                                               ; preds = %60
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %64)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #8
  %71 = fadd double %.01116, 1.300000e-01
  %72 = fcmp olt double %71, 1.550000e+00
  br i1 %72, label %40, label %37, !llvm.loop !25

73:                                               ; preds = %68, %58, %48
  %.sink = phi ptr [ %66, %68 ], [ %56, %58 ], [ %46, %48 ]
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %59, %58 ], [ %49, %48 ]
  call void @__cxa_free_exception(ptr %.sink) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn
}

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


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