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

; 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] }
%"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.TolerantAssertComparer.7 = type { i32, ptr, double }
%"class.P3D::QuaternionRotationTemplate" = type { %"struct.P3D::Quaternion" }
%"struct.P3D::Quaternion" = type { double, %union.anon.8 }
%union.anon.8 = type { %struct.anon.9 }
%struct.anon.9 = type { double, double, double }
%struct.TolerantAssertBuilder = type { i32, double }
%"class.std::initializer_list" = type { ptr, i64 }
%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.26 = 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 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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.7) 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 @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer) align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) #2 align 2

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

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

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

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

62:                                               ; preds = %321, %0
  %63 = load double, ptr %1, align 8, !tbaa !5
  %64 = fcmp olt double %63, 1.500000e+00
  br i1 %64, label %66, label %65

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

66:                                               ; preds = %62
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #8
  store double 1.500000e+00, ptr %3, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %317, %66
  %68 = load double, ptr %3, align 8, !tbaa !5
  %69 = fcmp olt double %68, 1.500000e+00
  br i1 %69, label %71, label %70

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

71:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  store double 1.500000e+00, ptr %4, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %311, %71
  %73 = load double, ptr %4, align 8, !tbaa !5
  %74 = fcmp olt double %73, 1.500000e+00
  br i1 %74, label %76, label %75

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

76:                                               ; preds = %72
  call void @llvm.lifetime.start.p0(i64 32, ptr %5) #8
  %77 = load double, ptr %1, align 8, !tbaa !5
  %78 = load double, ptr %3, align 8, !tbaa !5
  %79 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D26QuaternionRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %5, double noundef %77, double noundef %78, double noundef %79)
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #8
  %80 = load double, ptr %1, align 8, !tbaa !5
  %81 = load double, ptr %3, align 8, !tbaa !5
  %82 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %6, double noundef %80, double noundef %81, double noundef %82)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  store double 1.500000e+00, ptr %7, align 8, !tbaa !5
  br label %83

83:                                               ; preds = %156, %76
  %84 = load double, ptr %7, align 8, !tbaa !5
  %85 = fcmp olt double %84, 1.500000e+00
  br i1 %85, label %87, label %86

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

87:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  store double 1.500000e+00, ptr %8, align 8, !tbaa !5
  br label %88

88:                                               ; preds = %152, %87
  %89 = load double, ptr %8, align 8, !tbaa !5
  %90 = fcmp olt double %89, 1.500000e+00
  br i1 %90, label %92, label %91

91:                                               ; preds = %88
  store i32 14, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  br label %155

92:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #8
  store double 1.500000e+00, ptr %9, align 8, !tbaa !5
  br label %93

93:                                               ; preds = %147, %92
  %94 = load double, ptr %9, align 8, !tbaa !5
  %95 = fcmp olt double %94, 1.500000e+00
  br i1 %95, label %97, label %96

96:                                               ; preds = %93
  store i32 17, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  br label %151

97:                                               ; preds = %93
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #8
  %98 = load double, ptr %7, align 8, !tbaa !5
  %99 = load double, ptr %8, align 8, !tbaa !5
  %100 = load double, ptr %9, align 8, !tbaa !5
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef %98, double noundef %99, double noundef %100) #8
  br label %101

101:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef 183, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %12, ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 8 dereferenceable(24) %14)
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull align 8 dereferenceable(24) %15)
  %102 = getelementptr inbounds %class.TolerantAssertComparer, ptr %11, i32 0, i32 1
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = load i8, ptr %103, align 1, !tbaa !13, !range !15, !noundef !16
  %105 = trunc i8 %104 to i1
  %106 = xor i1 %105, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #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 !17, !range !15, !noundef !16
  %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 183, 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 %16, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %17, align 4
  call void @__cxa_free_exception(ptr %114) #8
  br label %150

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
  br label %124

124:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %20, i32 noundef 184, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #8
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE13globalToLocalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %21, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.0) align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(24) %21)
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %22, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(24) %10)
  call void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %22)
  %125 = getelementptr inbounds %class.TolerantAssertComparer, ptr %18, i32 0, i32 1
  %126 = load ptr, ptr %125, align 8, !tbaa !9
  %127 = load i8, ptr %126, align 1, !tbaa !13, !range !15, !noundef !16
  %128 = trunc i8 %127 to i1
  %129 = xor i1 %128, true
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #8
  br i1 %129, label %130, label %143

130:                                              ; preds = %124
  %131 = call ptr @_ZTW15__testInterface()
  %132 = getelementptr inbounds %class.TestInterface, ptr %131, i32 0, i32 1
  %133 = load i8, ptr %132, align 8, !tbaa !17, !range !15, !noundef !16
  %134 = trunc i8 %133 to i1
  br i1 %134, label %135, label %136

135:                                              ; preds = %130
  br label %136

136:                                              ; preds = %135, %130
  %137 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %137, i32 noundef 184, ptr noundef @.str.3)
          to label %138 unwind label %139

138:                                              ; preds = %136
  call void @__cxa_throw(ptr %137, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

139:                                              ; preds = %136
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %16, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %17, align 4
  call void @__cxa_free_exception(ptr %137) #8
  br label %150

143:                                              ; preds = %124
  %144 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %144)
  br label %145

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  br label %147

147:                                              ; preds = %146
  %148 = load double, ptr %9, align 8, !tbaa !5
  %149 = fadd double %148, 5.000000e-01
  store double %149, ptr %9, align 8, !tbaa !5
  br label %93, !llvm.loop !20

150:                                              ; preds = %139, %116
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %315

151:                                              ; preds = %96
  br label %152

152:                                              ; preds = %151
  %153 = load double, ptr %8, align 8, !tbaa !5
  %154 = fadd double %153, 5.000000e-01
  store double %154, ptr %8, align 8, !tbaa !5
  br label %88, !llvm.loop !22

155:                                              ; preds = %91
  br label %156

156:                                              ; preds = %155
  %157 = load double, ptr %7, align 8, !tbaa !5
  %158 = fadd double %157, 5.000000e-01
  store double %158, ptr %7, align 8, !tbaa !5
  br label %83, !llvm.loop !23

159:                                              ; preds = %86
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #8
  store double 1.500000e+00, ptr %23, align 8, !tbaa !5
  br label %160

160:                                              ; preds = %259, %159
  %161 = load double, ptr %23, align 8, !tbaa !5
  %162 = fcmp olt double %161, 1.500000e+00
  br i1 %162, label %164, label %163

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

164:                                              ; preds = %160
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #8
  store double 1.500000e+00, ptr %24, align 8, !tbaa !5
  br label %165

165:                                              ; preds = %255, %164
  %166 = load double, ptr %24, align 8, !tbaa !5
  %167 = fcmp olt double %166, 1.500000e+00
  br i1 %167, label %169, label %168

168:                                              ; preds = %165
  store i32 27, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  br label %258

169:                                              ; preds = %165
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #8
  store double 1.500000e+00, ptr %25, align 8, !tbaa !5
  br label %170

170:                                              ; preds = %250, %169
  %171 = load double, ptr %25, align 8, !tbaa !5
  %172 = fcmp olt double %171, 1.500000e+00
  br i1 %172, label %174, label %173

173:                                              ; preds = %170
  store i32 30, ptr %2, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  br label %254

174:                                              ; preds = %170
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #8
  %175 = load double, ptr %23, align 8, !tbaa !5
  %176 = load double, ptr %24, align 8, !tbaa !5
  %177 = load double, ptr %25, align 8, !tbaa !5
  call void @_ZN3P3D26QuaternionRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %26, double noundef %175, double noundef %176, double noundef %177)
  call void @llvm.lifetime.start.p0(i64 72, ptr %27) #8
  %178 = load double, ptr %23, align 8, !tbaa !5
  %179 = load double, ptr %24, align 8, !tbaa !5
  %180 = load double, ptr %25, align 8, !tbaa !5
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %27, double noundef %178, double noundef %179, double noundef %180)
  br label %181

181:                                              ; preds = %174
  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 190, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %31) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #8
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE13localToGlobalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %26)
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %31, ptr noundef nonnull align 8 dereferenceable(32) %32)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %29, ptr noundef nonnull align 8 dereferenceable(16) %30, ptr noundef nonnull align 8 dereferenceable(72) %31)
  call void @llvm.lifetime.start.p0(i64 72, 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) %6, ptr noundef nonnull align 8 dereferenceable(72) %27)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %33, ptr noundef nonnull align 8 dereferenceable(72) %34)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_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(72) %33)
  %182 = getelementptr inbounds %class.TolerantAssertComparer, ptr %28, i32 0, i32 1
  %183 = load ptr, ptr %182, align 8, !tbaa !9
  %184 = load i8, ptr %183, align 1, !tbaa !13, !range !15, !noundef !16
  %185 = trunc i8 %184 to i1
  %186 = xor i1 %185, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %34) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %33) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #8
  call void @llvm.lifetime.end.p0(i64 72, 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 %186, label %187, label %200

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

192:                                              ; preds = %187
  br label %193

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

195:                                              ; preds = %193
  call void @__cxa_throw(ptr %194, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

196:                                              ; preds = %193
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %16, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %17, align 4
  call void @__cxa_free_exception(ptr %194) #8
  br label %253

200:                                              ; preds = %181
  %201 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %201)
  br label %202

202:                                              ; preds = %200
  br label %203

203:                                              ; preds = %202
  br label %204

204:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 24, ptr %35) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %36) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %37) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %37, i32 noundef 191, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %38) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %39) #8
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %39, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %26)
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %38, ptr noundef nonnull align 8 dereferenceable(32) %39)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %36, ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(72) %38)
  call void @llvm.lifetime.start.p0(i64 72, ptr %40) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %41) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %41, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) %27)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %40, ptr noundef nonnull align 8 dereferenceable(72) %41)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %35, ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(72) %40)
  %205 = getelementptr inbounds %class.TolerantAssertComparer, ptr %35, i32 0, i32 1
  %206 = load ptr, ptr %205, align 8, !tbaa !9
  %207 = load i8, ptr %206, align 1, !tbaa !13, !range !15, !noundef !16
  %208 = trunc i8 %207 to i1
  %209 = xor i1 %208, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %41) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %40) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %39) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %38) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %37) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %36) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %35) #8
  br i1 %209, label %210, label %223

210:                                              ; preds = %204
  %211 = call ptr @_ZTW15__testInterface()
  %212 = getelementptr inbounds %class.TestInterface, ptr %211, i32 0, i32 1
  %213 = load i8, ptr %212, align 8, !tbaa !17, !range !15, !noundef !16
  %214 = trunc i8 %213 to i1
  br i1 %214, label %215, label %216

215:                                              ; preds = %210
  br label %216

216:                                              ; preds = %215, %210
  %217 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %217, i32 noundef 191, ptr noundef @.str.3)
          to label %218 unwind label %219

218:                                              ; preds = %216
  call void @__cxa_throw(ptr %217, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

219:                                              ; preds = %216
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %16, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %17, align 4
  call void @__cxa_free_exception(ptr %217) #8
  br label %253

223:                                              ; preds = %204
  %224 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %224)
  br label %225

225:                                              ; preds = %223
  br label %226

226:                                              ; preds = %225
  br label %227

227:                                              ; preds = %226
  call void @llvm.lifetime.start.p0(i64 24, ptr %42) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %43) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %44) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %44, i32 noundef 192, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 72, ptr %45) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %46) #8
  call void @_ZNK3P3D26QuaternionRotationTemplateIdEmlERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::QuaternionRotationTemplate") align 8 %46, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %26)
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %45, ptr noundef nonnull align 8 dereferenceable(32) %46)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %43, ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef nonnull align 8 dereferenceable(72) %45)
  call void @llvm.lifetime.start.p0(i64 72, ptr %47) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %48) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKS1_(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %48, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(72) %27)
  call void @_ZNK3P3D22MatrixRotationTemplateIdE16asRotationMatrixEv(ptr dead_on_unwind writable sret(%"class.P3D::Matrix") align 8 %47, ptr noundef nonnull align 8 dereferenceable(72) %48)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %42, ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(72) %47)
  %228 = getelementptr inbounds %class.TolerantAssertComparer, ptr %42, i32 0, i32 1
  %229 = load ptr, ptr %228, align 8, !tbaa !9
  %230 = load i8, ptr %229, align 1, !tbaa !13, !range !15, !noundef !16
  %231 = trunc i8 %230 to i1
  %232 = xor i1 %231, true
  call void @llvm.lifetime.end.p0(i64 72, ptr %48) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %47) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %46) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %45) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %44) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %43) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %42) #8
  br i1 %232, label %233, label %246

233:                                              ; preds = %227
  %234 = call ptr @_ZTW15__testInterface()
  %235 = getelementptr inbounds %class.TestInterface, ptr %234, i32 0, i32 1
  %236 = load i8, ptr %235, align 8, !tbaa !17, !range !15, !noundef !16
  %237 = trunc i8 %236 to i1
  br i1 %237, label %238, label %239

238:                                              ; preds = %233
  br label %239

239:                                              ; preds = %238, %233
  %240 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %240, i32 noundef 192, ptr noundef @.str.3)
          to label %241 unwind label %242

241:                                              ; preds = %239
  call void @__cxa_throw(ptr %240, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

242:                                              ; preds = %239
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %16, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %17, align 4
  call void @__cxa_free_exception(ptr %240) #8
  br label %253

246:                                              ; preds = %227
  %247 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %247)
  br label %248

248:                                              ; preds = %246
  br label %249

249:                                              ; preds = %248
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  br label %250

250:                                              ; preds = %249
  %251 = load double, ptr %25, align 8, !tbaa !5
  %252 = fadd double %251, 5.000000e-01
  store double %252, ptr %25, align 8, !tbaa !5
  br label %170, !llvm.loop !24

253:                                              ; preds = %242, %219, %196
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #8
  br label %315

254:                                              ; preds = %173
  br label %255

255:                                              ; preds = %254
  %256 = load double, ptr %24, align 8, !tbaa !5
  %257 = fadd double %256, 5.000000e-01
  store double %257, ptr %24, align 8, !tbaa !5
  br label %165, !llvm.loop !25

258:                                              ; preds = %168
  br label %259

259:                                              ; preds = %258
  %260 = load double, ptr %23, align 8, !tbaa !5
  %261 = fadd double %260, 5.000000e-01
  store double %261, ptr %23, align 8, !tbaa !5
  br label %160, !llvm.loop !26

262:                                              ; preds = %163
  call void @llvm.lifetime.start.p0(i64 48, ptr %49) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %50) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %51) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %51, ptr align 8 @constinit.26, i64 48, i1 false), !tbaa.struct !27
  %263 = getelementptr inbounds %"class.std::initializer_list", ptr %50, i32 0, i32 0
  store ptr %51, ptr %263, align 8, !tbaa !29
  %264 = getelementptr inbounds %"class.std::initializer_list", ptr %50, i32 0, i32 1
  store i64 6, ptr %264, align 8, !tbaa !31
  call void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48) %49, ptr noundef nonnull align 8 dereferenceable(16) %50)
  call void @llvm.lifetime.end.p0(i64 48, ptr %51) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %50) #8
  br label %265

265:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 24, ptr %52) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %53) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %54) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %54, i32 noundef 200, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr %55) #8
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %55, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(48) %49)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.2) align 8 %53, ptr noundef nonnull align 8 dereferenceable(16) %54, ptr noundef nonnull align 8 dereferenceable(48) %55)
  call void @llvm.lifetime.start.p0(i64 48, ptr %56) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %56, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(48) %49)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %52, ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(48) %56)
  %266 = getelementptr inbounds %class.TolerantAssertComparer, ptr %52, i32 0, i32 1
  %267 = load ptr, ptr %266, align 8, !tbaa !9
  %268 = load i8, ptr %267, align 1, !tbaa !13, !range !15, !noundef !16
  %269 = trunc i8 %268 to i1
  %270 = xor i1 %269, true
  call void @llvm.lifetime.end.p0(i64 48, ptr %56) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %55) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %54) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %53) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %52) #8
  br i1 %270, label %271, label %284

271:                                              ; preds = %265
  %272 = call ptr @_ZTW15__testInterface()
  %273 = getelementptr inbounds %class.TestInterface, ptr %272, i32 0, i32 1
  %274 = load i8, ptr %273, align 8, !tbaa !17, !range !15, !noundef !16
  %275 = trunc i8 %274 to i1
  br i1 %275, label %276, label %277

276:                                              ; preds = %271
  br label %277

277:                                              ; preds = %276, %271
  %278 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %278, i32 noundef 200, ptr noundef @.str.3)
          to label %279 unwind label %280

279:                                              ; preds = %277
  call void @__cxa_throw(ptr %278, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

280:                                              ; preds = %277
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %16, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %17, align 4
  call void @__cxa_free_exception(ptr %278) #8
  br label %314

284:                                              ; preds = %265
  %285 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %285)
  br label %286

286:                                              ; preds = %284
  br label %287

287:                                              ; preds = %286
  br label %288

288:                                              ; preds = %287
  call void @llvm.lifetime.start.p0(i64 24, ptr %57) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %58) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %59) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %59, i32 noundef 201, double noundef 1.000000e-08)
  call void @llvm.lifetime.start.p0(i64 48, ptr %60) #8
  call void @_ZNK3P3D26QuaternionRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %60, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(48) %49)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.2) align 8 %58, ptr noundef nonnull align 8 dereferenceable(16) %59, ptr noundef nonnull align 8 dereferenceable(48) %60)
  call void @llvm.lifetime.start.p0(i64 48, ptr %61) #8
  call void @_ZNK3P3D22MatrixRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %61, ptr noundef nonnull align 8 dereferenceable(72) %6, ptr noundef nonnull align 8 dereferenceable(48) %49)
  call void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %57, ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 8 dereferenceable(48) %61)
  %289 = getelementptr inbounds %class.TolerantAssertComparer, ptr %57, i32 0, i32 1
  %290 = load ptr, ptr %289, align 8, !tbaa !9
  %291 = load i8, ptr %290, align 1, !tbaa !13, !range !15, !noundef !16
  %292 = trunc i8 %291 to i1
  %293 = xor i1 %292, true
  call void @llvm.lifetime.end.p0(i64 48, ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %60) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %59) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %58) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %57) #8
  br i1 %293, label %294, label %307

294:                                              ; preds = %288
  %295 = call ptr @_ZTW15__testInterface()
  %296 = getelementptr inbounds %class.TestInterface, ptr %295, i32 0, i32 1
  %297 = load i8, ptr %296, align 8, !tbaa !17, !range !15, !noundef !16
  %298 = trunc i8 %297 to i1
  br i1 %298, label %299, label %300

299:                                              ; preds = %294
  br label %300

300:                                              ; preds = %299, %294
  %301 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %301, i32 noundef 201, ptr noundef @.str.3)
          to label %302 unwind label %303

302:                                              ; preds = %300
  call void @__cxa_throw(ptr %301, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

303:                                              ; preds = %300
  %304 = landingpad { ptr, i32 }
          cleanup
  %305 = extractvalue { ptr, i32 } %304, 0
  store ptr %305, ptr %16, align 8
  %306 = extractvalue { ptr, i32 } %304, 1
  store i32 %306, ptr %17, align 4
  call void @__cxa_free_exception(ptr %301) #8
  br label %314

307:                                              ; preds = %288
  %308 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %308)
  br label %309

309:                                              ; preds = %307
  br label %310

310:                                              ; preds = %309
  call void @llvm.lifetime.end.p0(i64 48, ptr %49) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %5) #8
  br label %311

311:                                              ; preds = %310
  %312 = load double, ptr %4, align 8, !tbaa !5
  %313 = fadd double %312, 5.000000e-01
  store double %313, ptr %4, align 8, !tbaa !5
  br label %72, !llvm.loop !32

314:                                              ; preds = %303, %280
  call void @llvm.lifetime.end.p0(i64 48, ptr %49) #8
  br label %315

315:                                              ; preds = %314, %253, %150
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 32, 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 %325

316:                                              ; preds = %75
  br label %317

317:                                              ; preds = %316
  %318 = load double, ptr %3, align 8, !tbaa !5
  %319 = fadd double %318, 5.000000e-01
  store double %319, ptr %3, align 8, !tbaa !5
  br label %67, !llvm.loop !33

320:                                              ; preds = %70
  br label %321

321:                                              ; preds = %320
  %322 = load double, ptr %1, align 8, !tbaa !5
  %323 = fadd double %322, 5.000000e-01
  store double %323, ptr %1, align 8, !tbaa !5
  br label %62, !llvm.loop !34

324:                                              ; preds = %65
  ret void

325:                                              ; preds = %315
  %326 = load ptr, ptr %16, align 8
  %327 = load i32, ptr %17, align 4
  %328 = insertvalue { ptr, i32 } poison, ptr %326, 0
  %329 = insertvalue { ptr, i32 } %328, i32 %327, 1
  resume { ptr, i32 } %329
}

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D22MatrixRotationTemplateIdEmlERKS1_(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 @_ZNK3P3D26QuaternionRotationTemplateIdE13localToGlobalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3P3D26QuaternionRotationTemplateIdE13globalToLocalERKNS_15SymmetricMatrixIdLm3EEE(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(32), 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 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = distinct !{!22, !21}
!23 = distinct !{!23, !21}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = !{i64 0, i64 48, !28}
!28 = !{!7, !7, i64 0}
!29 = !{!30, !12, i64 0}
!30 = !{!"_ZTSSt16initializer_listIdE", !12, i64 0, !19, i64 8}
!31 = !{!30, !19, i64 8}
!32 = distinct !{!32, !21}
!33 = distinct !{!33, !21}
!34 = distinct !{!34, !21}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(none) uwtable
define dso_local void @_Z42rotationImplementationIdenticalLocalGlobalv() local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  ret void
}

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(none) 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" }

!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)"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,PostOrderFunctionAttrsPass,PromotePass,SROAPass,SimplifyCFGPass