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

; 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.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.P3D::Vector" = type { %union.anon.16 }
%union.anon.16 = type { [3 x double] }
%class.TolerantAssertComparer.12 = type { i32, ptr, double }
%"class.P3D::Matrix.6" = type { [9 x double] }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"struct.P3D::TaylorExpansion" = type { %"struct.P3D::Derivatives.35" }
%"struct.P3D::Derivatives.35" = type { [2 x %"struct.P3D::Vector"] }
%"struct.P3D::FullTaylorExpansion.37" = type { %"struct.P3D::Derivatives.38" }
%"struct.P3D::Derivatives.38" = type { [3 x %"class.P3D::Matrix.6"] }
%"struct.P3D::TaylorExpansion.39" = type { %"struct.P3D::Derivatives.40" }
%"struct.P3D::Derivatives.40" = type { [2 x %"class.P3D::Matrix.6"] }
%struct.TolerantAssertBuilder = type { i32, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8
@_Z9logStreamB5cxx11 = external global %"class.std::__cxx11::basic_stringstream", align 8
@.str.52 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN3P3D7vectorsE = external global [13 x %"struct.P3D::Vector"], align 16
@.str.66 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

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

declare ptr @__cxa_allocate_exception(i64)

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

declare i32 @__gxx_personality_v0(...)

declare void @__cxa_free_exception(ptr)

declare void @__cxa_throw(ptr, ptr, ptr)

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18testRotationDerivsv() #6 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Matrix.6", align 8
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::TaylorExpansion", align 8
  %12 = alloca %"struct.P3D::FullTaylorExpansion.37", align 8
  %13 = alloca %"struct.P3D::TaylorExpansion.39", align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca double, align 8
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca double, align 8
  %18 = alloca %"class.P3D::Matrix.6", align 8
  %19 = alloca %"struct.P3D::Vector", align 8
  %20 = alloca %"class.P3D::Matrix.6", align 8
  %21 = alloca %"struct.P3D::Vector", align 8
  %22 = alloca %"class.P3D::Matrix.6", align 8
  %23 = alloca %"class.P3D::Matrix.6", align 8
  %24 = alloca %class.TolerantAssertComparer, align 8
  %25 = alloca %class.TolerantAssertComparer.12, align 8
  %26 = alloca %struct.TolerantAssertBuilder, align 8
  %27 = alloca %"class.P3D::Matrix.6", align 8
  %28 = alloca %"class.P3D::Matrix.6", align 8
  %29 = alloca double, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca %class.TolerantAssertComparer, align 8
  %33 = alloca %class.TolerantAssertComparer.12, align 8
  %34 = alloca %struct.TolerantAssertBuilder, align 8
  %35 = alloca %"class.P3D::Matrix.6", align 8
  %36 = alloca %"class.P3D::Matrix.6", align 8
  %37 = alloca %"class.P3D::Matrix.6", align 8
  %38 = alloca %"class.P3D::Matrix.6", align 8
  %39 = alloca double, align 8
  %40 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr %1) #9
  call void @_ZN3P3D29rotationMatrixfromEulerAnglesIdEENS_6MatrixIT_Lm3ELm3EEES2_S2_S2_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %1, double noundef 3.000000e-01, double noundef -5.000000e-01, double noundef 0x3FE6666666666666)
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #9
  store ptr @_ZN3P3D7vectorsE, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #9
  store ptr @_ZN3P3D7vectorsE, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #9
  store ptr getelementptr inbounds (%"struct.P3D::Vector", ptr @_ZN3P3D7vectorsE, i64 13), ptr %4, align 8, !tbaa !5
  br label %41

41:                                               ; preds = %123, %0
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = icmp ne ptr %42, %43
  br i1 %44, label %46, label %45

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

46:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #9
  %47 = load ptr, ptr %3, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %6, ptr align 8 %47, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #9
  store ptr @_ZN3P3D7vectorsE, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  store ptr @_ZN3P3D7vectorsE, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store ptr getelementptr inbounds (%"struct.P3D::Vector", ptr @_ZN3P3D7vectorsE, i64 13), ptr %9, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %118, %46
  %49 = load ptr, ptr %8, align 8, !tbaa !5
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = icmp ne ptr %49, %50
  br i1 %51, label %53, label %52

52:                                               ; preds = %48
  store i32 4, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  br label %122

53:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #9
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %54, i64 24, i1 false), !tbaa.struct !9
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_Z9logStreamB5cxx11, i64 16), ptr noundef @.str.66)
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3DlsIdLm3EEERSoS1_RKNS_6VectorIT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull align 8 dereferenceable(24) %6)
  %57 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %56, ptr noundef @.str.67)
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3DlsIdLm3EEERSoS1_RKNS_6VectorIT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(8) %57, ptr noundef nonnull align 8 dereferenceable(24) %10)
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %58, ptr noundef @.str.52)
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #9
  %60 = getelementptr inbounds %"struct.P3D::TaylorExpansion", ptr %11, i32 0, i32 0
  %61 = getelementptr inbounds %"struct.P3D::Derivatives.35", ptr %60, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %61, ptr align 8 %6, i64 24, i1 false), !tbaa.struct !9
  %62 = getelementptr inbounds %"struct.P3D::Vector", ptr %61, i64 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %62, ptr align 8 %10, i64 24, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.start.p0(i64 216, ptr %12) #9
  call void @llvm.lifetime.start.p0(i64 144, ptr %13) #9
  call void @_ZN3P3D31generateTaylorForRotationMatrixIdLi2EEENS_15TaylorExpansionINS_6MatrixIdLm3ELm3EEEXT0_EEERKNS1_INS_6VectorIdLm3EEEXT0_EEERKNS2_IT_Lm3ELm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::TaylorExpansion.39") align 8 %13, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @_ZN3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE26fromConstantAndDerivativesERKS2_RKNS_15TaylorExpansionIS2_Lm2EEE(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion.37") align 8 %12, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(144) %13)
  call void @llvm.lifetime.end.p0(i64 144, ptr %13) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #9
  store double 1.000000e-05, ptr %15, align 8, !tbaa !11
  call void @_ZNK3P3D15TaylorExpansionINS_6VectorIdLm3EEELm2EEclIdEES2_RKT_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(8) %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #9
  store double 2.000000e-05, ptr %17, align 8, !tbaa !11
  call void @_ZNK3P3D15TaylorExpansionINS_6VectorIdLm3EEELm2EEclIdEES2_RKT_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %11, ptr noundef nonnull align 8 dereferenceable(8) %17)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %18) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %14, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %18, ptr noundef byval(%"struct.P3D::Vector") align 8 %19)
  call void @llvm.lifetime.start.p0(i64 72, ptr %20) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %16, i64 24, i1 false), !tbaa.struct !9
  call void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %20, ptr noundef byval(%"struct.P3D::Vector") align 8 %21)
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #9
  call void @_ZN3P3DmlIdEENS_6MatrixIT_Lm3ELm3EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %22, ptr noundef nonnull align 8 dereferenceable(72) %18, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 72, ptr %23) #9
  call void @_ZN3P3DmlIdEENS_6MatrixIT_Lm3ELm3EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %23, ptr noundef nonnull align 8 dereferenceable(72) %20, ptr noundef nonnull align 8 dereferenceable(72) %1)
  br label %63

63:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #9
  %64 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %65 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  %66 = call double @llvm.fmuladd.f64(double 5.000000e-04, double %64, double %65)
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %26, i32 noundef 358, double noundef %66)
  call void @llvm.lifetime.start.p0(i64 72, ptr %27) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %28) #9
  call void @_ZN3P3DmiIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %28, ptr noundef nonnull align 8 dereferenceable(72) %22, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  store double 1.000000e-05, ptr %29, align 8, !tbaa !11
  call void @_ZN3P3DdvIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_RKS2_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %27, ptr noundef nonnull align 8 dereferenceable(72) %28, ptr noundef nonnull align 8 dereferenceable(8) %29)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.12) align 8 %25, ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef nonnull align 8 dereferenceable(72) %27)
  %67 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(216) %12, i64 noundef 0)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %24, ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef nonnull align 8 dereferenceable(72) %67)
  %68 = getelementptr inbounds %class.TolerantAssertComparer, ptr %24, i32 0, i32 1
  %69 = load ptr, ptr %68, align 8, !tbaa !13
  %70 = load i8, ptr %69, align 1, !tbaa !16, !range !18, !noundef !19
  %71 = trunc i8 %70 to i1
  %72 = xor i1 %71, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %28) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #9
  br i1 %72, label %73, label %86

73:                                               ; preds = %63
  %74 = call ptr @_ZTW15__testInterface()
  %75 = getelementptr inbounds %class.TestInterface, ptr %74, i32 0, i32 1
  %76 = load i8, ptr %75, align 8, !tbaa !20, !range !18, !noundef !19
  %77 = trunc i8 %76 to i1
  br i1 %77, label %78, label %79

78:                                               ; preds = %73
  br label %79

79:                                               ; preds = %78, %73
  %80 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %80, i32 noundef 358, ptr noundef @.str.4)
          to label %81 unwind label %82

81:                                               ; preds = %79
  call void @__cxa_throw(ptr %80, ptr @_ZTI14AssertionError, ptr null) #10
  unreachable

82:                                               ; preds = %79
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %30, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %31, align 4
  call void @__cxa_free_exception(ptr %80) #9
  br label %121

86:                                               ; preds = %63
  %87 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %87)
  br label %88

88:                                               ; preds = %86
  br label %89

89:                                               ; preds = %88
  br label %90

90:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 24, ptr %32) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %33) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #9
  %91 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %6) #9
  %92 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %10) #9
  %93 = fadd double %91, %92
  %94 = fmul double 5.000000e-02, %93
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef 359, double noundef %94)
  call void @llvm.lifetime.start.p0(i64 72, ptr %35) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %36) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %37) #9
  call void @_ZN3P3DplIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %37, ptr noundef nonnull align 8 dereferenceable(72) %23, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 72, ptr %38) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %39) #9
  store double 2.000000e+00, ptr %39, align 8, !tbaa !11
  call void @_ZN3P3DmlIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS2_RKS3_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %38, ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(72) %22)
  call void @_ZN3P3DmiIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_S5_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %36, ptr noundef nonnull align 8 dereferenceable(72) %37, ptr noundef nonnull align 8 dereferenceable(72) %38)
  call void @llvm.lifetime.start.p0(i64 8, ptr %40) #9
  store double 0x3DDB7CDFD9D7BDBC, ptr %40, align 8, !tbaa !11
  call void @_ZN3P3DdvIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_RKS2_(ptr dead_on_unwind writable sret(%"class.P3D::Matrix.6") align 8 %35, ptr noundef nonnull align 8 dereferenceable(72) %36, ptr noundef nonnull align 8 dereferenceable(8) %40)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.12) align 8 %33, ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(72) %35)
  %95 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(216) %12, i64 noundef 1)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %32, ptr noundef nonnull align 8 dereferenceable(24) %33, ptr noundef nonnull align 8 dereferenceable(72) %95)
  %96 = getelementptr inbounds %class.TolerantAssertComparer, ptr %32, i32 0, i32 1
  %97 = load ptr, ptr %96, align 8, !tbaa !13
  %98 = load i8, ptr %97, align 1, !tbaa !16, !range !18, !noundef !19
  %99 = trunc i8 %98 to i1
  %100 = xor i1 %99, true
  call void @llvm.lifetime.end.p0(i64 8, ptr %40) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %39) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %38) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %37) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %36) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %35) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %33) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %32) #9
  br i1 %100, label %101, label %114

101:                                              ; preds = %90
  %102 = call ptr @_ZTW15__testInterface()
  %103 = getelementptr inbounds %class.TestInterface, ptr %102, i32 0, i32 1
  %104 = load i8, ptr %103, align 8, !tbaa !20, !range !18, !noundef !19
  %105 = trunc i8 %104 to i1
  br i1 %105, label %106, label %107

106:                                              ; preds = %101
  br label %107

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

109:                                              ; preds = %107
  call void @__cxa_throw(ptr %108, ptr @_ZTI14AssertionError, ptr null) #10
  unreachable

110:                                              ; preds = %107
  %111 = landingpad { ptr, i32 }
          cleanup
  %112 = extractvalue { ptr, i32 } %111, 0
  store ptr %112, ptr %30, align 8
  %113 = extractvalue { ptr, i32 } %111, 1
  store i32 %113, ptr %31, align 4
  call void @__cxa_free_exception(ptr %108) #9
  br label %121

114:                                              ; preds = %90
  %115 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %115)
  br label %116

116:                                              ; preds = %114
  br label %117

117:                                              ; preds = %116
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 216, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  br label %118

118:                                              ; preds = %117
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.P3D::Vector", ptr %119, i32 1
  store ptr %120, ptr %8, align 8, !tbaa !5
  br label %48

121:                                              ; preds = %110, %82
  call void @llvm.lifetime.end.p0(i64 72, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %20) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #9
  call void @llvm.lifetime.end.p0(i64 216, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %1) #9
  br label %127

122:                                              ; preds = %52
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #9
  br label %123

123:                                              ; preds = %122
  %124 = load ptr, ptr %3, align 8, !tbaa !5
  %125 = getelementptr inbounds %"struct.P3D::Vector", ptr %124, i32 1
  store ptr %125, ptr %3, align 8, !tbaa !5
  br label %41

126:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 72, ptr %1) #9
  ret void

127:                                              ; preds = %121
  %128 = load ptr, ptr %30, align 8
  %129 = load i32, ptr %31, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3DlsIdLm3EEERSoS1_RKNS_6VectorIT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) #8

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE26fromConstantAndDerivativesERKS2_RKNS_15TaylorExpansionIS2_Lm2EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::FullTaylorExpansion.37") align 8, ptr noundef nonnull align 8 dereferenceable(72), ptr noundef nonnull align 8 dereferenceable(144)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D31generateTaylorForRotationMatrixIdLi2EEENS_15TaylorExpansionINS_6MatrixIdLm3ELm3EEEXT0_EEERKNS1_INS_6VectorIdLm3EEEXT0_EEERKNS2_IT_Lm3ELm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::TaylorExpansion.39") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(72)) #6

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) #8 align 2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 24, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 8}
!14 = !{!"_ZTS22TolerantAssertComparerIbdE", !15, i64 0, !6, i64 8, !12, i64 16}
!15 = !{!"int", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!21, !17, i64 8}
!21 = !{!"_ZTS13TestInterface", !22, i64 0, !17, i64 8}
!22 = !{!"long", !7, i64 0}


; 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.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"struct.P3D::Vector" = type { %union.anon.16 }
%union.anon.16 = type { [3 x double] }
%class.TolerantAssertComparer.12 = type { i32, ptr, double }
%"class.P3D::Matrix.6" = type { [9 x double] }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"struct.P3D::TaylorExpansion" = type { %"struct.P3D::Derivatives.35" }
%"struct.P3D::Derivatives.35" = type { [2 x %"struct.P3D::Vector"] }
%"struct.P3D::FullTaylorExpansion.37" = type { %"struct.P3D::Derivatives.38" }
%"struct.P3D::Derivatives.38" = type { [3 x %"class.P3D::Matrix.6"] }
%"struct.P3D::TaylorExpansion.39" = type { %"struct.P3D::Derivatives.40" }
%"struct.P3D::Derivatives.40" = type { [2 x %"class.P3D::Matrix.6"] }
%struct.TolerantAssertBuilder = type { i32, double }

@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8
@_Z9logStreamB5cxx11 = external global %"class.std::__cxx11::basic_stringstream", align 8
@.str.52 = external hidden unnamed_addr constant [2 x i8], align 1
@_ZN3P3D7vectorsE = external local_unnamed_addr global [13 x %"struct.P3D::Vector"], align 16
@.str.66 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.67 = external hidden unnamed_addr constant [9 x i8], align 1

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

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

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

; 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 @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind noalias writable sret(%class.TolerantAssertComparer.12) align 8, ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #6 align 2

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #7

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
define dso_local void @_Z18testRotationDerivsv() local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Matrix.6", align 8
  %2 = alloca %"struct.P3D::Vector", align 8
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca %"struct.P3D::TaylorExpansion", align 8
  %5 = alloca %"struct.P3D::FullTaylorExpansion.37", align 8
  %6 = alloca %"struct.P3D::TaylorExpansion.39", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca double, align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca double, align 8
  %11 = alloca %"class.P3D::Matrix.6", align 8
  %12 = alloca %"class.P3D::Matrix.6", align 8
  %13 = alloca %"class.P3D::Matrix.6", align 8
  %14 = alloca %"class.P3D::Matrix.6", align 8
  %15 = alloca %class.TolerantAssertComparer, align 8
  %16 = alloca %class.TolerantAssertComparer.12, align 8
  %17 = alloca %struct.TolerantAssertBuilder, align 8
  %18 = alloca %"class.P3D::Matrix.6", align 8
  %19 = alloca %"class.P3D::Matrix.6", align 8
  %20 = alloca double, align 8
  %21 = alloca %class.TolerantAssertComparer, align 8
  %22 = alloca %class.TolerantAssertComparer.12, align 8
  %23 = alloca %struct.TolerantAssertBuilder, align 8
  %24 = alloca %"class.P3D::Matrix.6", align 8
  %25 = alloca %"class.P3D::Matrix.6", align 8
  %26 = alloca %"class.P3D::Matrix.6", align 8
  %27 = alloca %"class.P3D::Matrix.6", align 8
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %1) #9
  call void @_ZN3P3D29rotationMatrixfromEulerAnglesIdEENS_6MatrixIT_Lm3ELm3EEES2_S2_S2_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %1, double noundef 3.000000e-01, double noundef -5.000000e-01, double noundef 0x3FE6666666666666)
  %30 = getelementptr inbounds i8, ptr %4, i64 24
  %31 = getelementptr inbounds i8, ptr %15, i64 8
  %32 = getelementptr inbounds i8, ptr %21, i64 8
  br label %34

33:                                               ; preds = %35
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #9
  ret void

34:                                               ; preds = %0, %35
  %.010.idx15 = phi i64 [ 0, %0 ], [ %.010.add, %35 ]
  %.010.ptr = getelementptr inbounds i8, ptr @_ZN3P3D7vectorsE, i64 %.010.idx15
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %.010.ptr, i64 24, i1 false), !tbaa.struct !5
  br label %36

35:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  %.010.add = add nuw nsw i64 %.010.idx15, 24
  %.not = icmp eq i64 %.010.add, 312
  br i1 %.not, label %33, label %34

36:                                               ; preds = %34, %70
  %.011.idx14 = phi i64 [ 0, %34 ], [ %.011.add, %70 ]
  %.011.ptr = getelementptr inbounds i8, ptr @_ZN3P3D7vectorsE, i64 %.011.idx14
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %.011.ptr, i64 24, i1 false), !tbaa.struct !5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) getelementptr inbounds (i8, ptr @_Z9logStreamB5cxx11, i64 16), ptr noundef nonnull @.str.66)
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3DlsIdLm3EEERSoS1_RKNS_6VectorIT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull align 8 dereferenceable(24) %2)
  %39 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %38, ptr noundef nonnull @.str.67)
  %40 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3DlsIdLm3EEERSoS1_RKNS_6VectorIT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(8) %39, ptr noundef nonnull align 8 dereferenceable(24) %3)
  %41 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @.str.52)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(24) %3, i64 24, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.start.p0(i64 216, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %6) #9
  call void @_ZN3P3D31generateTaylorForRotationMatrixIdLi2EEENS_15TaylorExpansionINS_6MatrixIdLm3ELm3EEEXT0_EEERKNS1_INS_6VectorIdLm3EEEXT0_EEERKNS2_IT_Lm3ELm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::TaylorExpansion.39") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @_ZN3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE26fromConstantAndDerivativesERKS2_RKNS_15TaylorExpansionIS2_Lm2EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::FullTaylorExpansion.37") align 8 %5, ptr noundef nonnull align 8 dereferenceable(72) %1, ptr noundef nonnull align 8 dereferenceable(144) %6)
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store double 1.000000e-05, ptr %8, align 8, !tbaa !9
  call void @_ZNK3P3D15TaylorExpansionINS_6VectorIdLm3EEELm2EEclIdEES2_RKT_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  store double 2.000000e-05, ptr %10, align 8, !tbaa !9
  call void @_ZNK3P3D15TaylorExpansionINS_6VectorIdLm3EEELm2EEclIdEES2_RKT_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(8) %10)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %11) #9
  call void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %11, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %7)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %12) #9
  call void @_ZN3P3D29rotationMatrixFromRotationVecIdEENS_6MatrixIT_Lm3ELm3EEENS_6VectorIS2_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %12, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %9)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %13) #9
  call void @_ZN3P3DmlIdEENS_6MatrixIT_Lm3ELm3EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %13, ptr noundef nonnull align 8 dereferenceable(72) %11, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %14) #9
  call void @_ZN3P3DmlIdEENS_6MatrixIT_Lm3ELm3EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %14, ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #9
  %42 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %43 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %44 = call double @llvm.fmuladd.f64(double %42, double 5.000000e-04, double %43)
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef 358, double noundef %44)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %19) #9
  call void @_ZN3P3DmiIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %19, ptr noundef nonnull align 8 dereferenceable(72) %13, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %20) #9
  store double 1.000000e-05, ptr %20, align 8, !tbaa !9
  call void @_ZN3P3DdvIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_RKS2_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %18, ptr noundef nonnull align 8 dereferenceable(72) %19, ptr noundef nonnull align 8 dereferenceable(8) %20)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.12) align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(72) %18)
  %45 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(216) %5, i64 noundef 0)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_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) %45)
  %46 = load ptr, ptr %31, align 8, !tbaa !11
  %47 = load i8, ptr %46, align 1, !tbaa !15, !range !17, !noundef !18
  %48 = trunc nuw i8 %47 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %18) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #9
  %49 = call ptr @_ZTW15__testInterface()
  br i1 %48, label %55, label %50

50:                                               ; preds = %36
  %51 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %51, i32 noundef 358, ptr noundef nonnull @.str.4)
          to label %52 unwind label %53

52:                                               ; preds = %50
  call void @__cxa_throw(ptr nonnull %51, ptr nonnull @_ZTI14AssertionError, ptr null) #10
  unreachable

53:                                               ; preds = %50
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %71

55:                                               ; preds = %36
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %49)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #9
  %56 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %57 = call noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %58 = fadd double %56, %57
  %59 = fmul double %58, 5.000000e-02
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef 359, double noundef %59)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %24) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %25) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %26) #9
  call void @_ZN3P3DplIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %26, ptr noundef nonnull align 8 dereferenceable(72) %14, ptr noundef nonnull align 8 dereferenceable(72) %1)
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %27) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #9
  store double 2.000000e+00, ptr %28, align 8, !tbaa !9
  call void @_ZN3P3DmlIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS2_RKS3_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %27, ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 8 dereferenceable(72) %13)
  call void @_ZN3P3DmiIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_S5_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %25, ptr noundef nonnull align 8 dereferenceable(72) %26, ptr noundef nonnull align 8 dereferenceable(72) %27)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %29) #9
  store double 0x3DDB7CDFD9D7BDBC, ptr %29, align 8, !tbaa !9
  call void @_ZN3P3DdvIdLm3ELm3EEENS_6MatrixIT_XT0_EXT1_EEERKS3_RKS2_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Matrix.6") align 8 %24, ptr noundef nonnull align 8 dereferenceable(72) %25, ptr noundef nonnull align 8 dereferenceable(8) %29)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6MatrixIdLm3ELm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.12) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(72) %24)
  %60 = call noundef nonnull align 8 dereferenceable(72) ptr @_ZNK3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(216) %5, i64 noundef 1)
  call void @_ZNK22TolerantAssertComparerIN3P3D6MatrixIdLm3ELm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %21, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 8 dereferenceable(72) %60)
  %61 = load ptr, ptr %32, align 8, !tbaa !11
  %62 = load i8, ptr %61, align 1, !tbaa !15, !range !17, !noundef !18
  %63 = trunc nuw i8 %62 to i1
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %27) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %26) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %25) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %24) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #9
  %64 = call ptr @_ZTW15__testInterface()
  br i1 %63, label %70, label %65

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

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

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

70:                                               ; preds = %55
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %64)
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  %.011.add = add nuw nsw i64 %.011.idx14, 24
  %.not12 = icmp eq i64 %.011.add, 312
  br i1 %.not12, label %35, label %36

71:                                               ; preds = %68, %53
  %.sink = phi ptr [ %66, %68 ], [ %51, %53 ]
  %.pn = phi { ptr, i32 } [ %69, %68 ], [ %54, %53 ]
  call void @__cxa_free_exception(ptr %.sink) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %11) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 216, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %2) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3P3DlsIdLm3EEERSoS1_RKNS_6VectorIT_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D31generateTaylorForRotationMatrixIdLi2EEENS_15TaylorExpansionINS_6MatrixIdLm3ELm3EEEXT0_EEERKNS1_INS_6VectorIdLm3EEEXT0_EEERKNS2_IT_Lm3ELm3EEE(ptr dead_on_unwind noalias writable sret(%"struct.P3D::TaylorExpansion.39") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #6

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZN3P3D13lengthSquaredIdLm3EEET_RKNS_6VectorIS1_XT0_EEE(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNK3P3D19FullTaylorExpansionINS_6MatrixIdLm3ELm3EEELm3EE13getDerivativeEm(ptr noundef nonnull align 8 dereferenceable(216), i64 noundef) local_unnamed_addr #8 align 2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { uwtable "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { 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 #9 = { nounwind }
attributes #10 = { 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 = !{i64 0, i64 24, !6}
!6 = !{!7, !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !14, i64 8}
!12 = !{!"_ZTS22TolerantAssertComparerIbdE", !13, i64 0, !14, i64 8, !10, i64 16}
!13 = !{!"int", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}


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