; LLVM IR from ThePhysicsGuys/Physics3D :: tests/inertiaTests.ll (Z53inertiaTransformationDerivativesForOffsetCenterOfMassv)

; 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.P3D::Polyhedron" = type { %"class.P3D::TriangleMesh" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.0", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.0" = type { ptr }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"struct.P3D::FullTaylorExpansion" = type { %"struct.P3D::Derivatives.6" }
%"struct.P3D::Derivatives.6" = type { [3 x %"class.P3D::SymmetricMatrix"] }
%class.TolerantAssertComparer.7 = 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::TranslationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.P3D::TaylorExpansion" = type { %"struct.P3D::Derivatives" }
%"struct.P3D::Derivatives" = type { [2 x %"struct.P3D::Vector"] }
%"struct.P3D::RotationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.std::array.9" = type { [3 x %"struct.P3D::CFrameTemplate"] }
%"struct.P3D::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::Motion" = type { %"struct.P3D::TranslationalMotion", %"struct.P3D::RotationalMotion" }
%"struct.std::array.5" = type { [3 x %"class.P3D::SymmetricMatrix"] }
%struct.TolerantAssertBuilder = type { i32, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8
@_ZN3P3D12ShapeLibrary15trianglePyramidE = external global %"class.P3D::Polyhedron", 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: 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) #2

declare i32 @__gxx_personality_v0(...)

declare void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96)) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #4 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: mustprogress nounwind uwtable
declare dso_local void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #1 align 2

declare noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24)) #3

declare void @_ZNK3P3D10Polyhedron15getCenterOfMassEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #3

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

declare ptr @__cxa_allocate_exception(i64)

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D19TranslationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%"struct.P3D::Vector") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144), i64 noundef) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D19estimateDerivativesINS_15SymmetricMatrixIdLm3EEELm3EEENS_19FullTaylorExpansionIT_XT0_EEERKSt5arrayIS4_XT0_EEd(ptr dead_on_unwind noalias writable sret(%"struct.P3D::FullTaylorExpansion") align 8, ptr noundef nonnull align 8 dereferenceable(144), double noundef) #7

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D16RotationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%"struct.P3D::Vector") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6MotionC2ENS_19TranslationalMotionENS_16RotationalMotionE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef byval(%"struct.P3D::TranslationalMotion") align 8, ptr noundef byval(%"struct.P3D::RotationalMotion") align 8) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D14CFrameTemplateIdEC2ERKNS_6VectorIdLm3EEERKNS_22MatrixRotationTemplateIdEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D21computeCFrameOverTimeENS_14CFrameTemplateIdEENS_6MotionEd(ptr dead_on_unwind noalias writable sret(%"struct.std::array.9") align 8, ptr noundef byval(%"struct.P3D::CFrameTemplate") align 8, ptr noundef byval(%"struct.P3D::Motion") align 8, double noundef) #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288), i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z53inertiaTransformationDerivativesForOffsetCenterOfMassv() #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.P3D::Vector", align 8
  %2 = alloca %"class.P3D::SymmetricMatrix", align 8
  %3 = alloca %"struct.P3D::CFrameTemplate", align 8
  %4 = alloca double, align 8
  %5 = alloca %"struct.P3D::RotationalMotion", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"struct.P3D::TranslationalMotion", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::Motion", align 8
  %12 = alloca %"struct.P3D::TranslationalMotion", align 8
  %13 = alloca %"struct.P3D::RotationalMotion", align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %16 = alloca %"struct.P3D::CFrameTemplate", align 8
  %17 = alloca %"struct.std::array.9", align 8
  %18 = alloca %"struct.P3D::CFrameTemplate", align 8
  %19 = alloca %"struct.P3D::Motion", align 8
  %20 = alloca %"struct.std::array.5", align 8
  %21 = alloca i32, align 4
  %22 = alloca %"class.P3D::SymmetricMatrix", align 8
  %23 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %24 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %25 = alloca %class.TolerantAssertComparer, align 8
  %26 = alloca %class.TolerantAssertComparer.7, align 8
  %27 = alloca %struct.TolerantAssertBuilder, align 8
  %28 = alloca ptr, align 8
  %29 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #8
  call void @_ZNK3P3D10Polyhedron15getCenterOfMassEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE)
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr %3) #8
  call void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %3)
  call void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE, ptr noundef nonnull align 8 dereferenceable(96) %3)
  call void @llvm.lifetime.end.p0(i64 96, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  %30 = call noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE)
  store double %30, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %5) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef 3.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef -8.000000e-01, double noundef 5.000000e-01, double noundef -3.000000e-01) #8
  call void @_ZN3P3D16RotationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %5, ptr noundef byval(%"struct.P3D::Vector") align 8 %6, ptr noundef byval(%"struct.P3D::Vector") align 8 %7)
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef -2.300000e-01, double noundef 2.500000e-01, double noundef 0xBFE6666666666666) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef -2.000000e-01, double noundef 0xBFE6666666666666, double noundef 3.330000e-01) #8
  call void @_ZN3P3D19TranslationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef byval(%"struct.P3D::Vector") align 8 %9, ptr noundef byval(%"struct.P3D::Vector") align 8 %10)
  call void @llvm.lifetime.start.p0(i64 96, ptr %11) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %12, ptr align 8 %8, i64 48, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %13, ptr align 8 %5, i64 48, i1 false), !tbaa.struct !9
  call void @_ZN3P3D6MotionC2ENS_19TranslationalMotionENS_16RotationalMotionE(ptr noundef nonnull align 8 dereferenceable(96) %11, ptr noundef byval(%"struct.P3D::TranslationalMotion") align 8 %12, ptr noundef byval(%"struct.P3D::RotationalMotion") align 8 %13)
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %14, double noundef 1.200000e+00, double noundef 0xBFE6666666666666, double noundef 2.100000e+00) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr %15) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %15, double noundef 5.000000e-01, double noundef -6.000000e-01, double noundef 0x3FE6666666666666)
  call void @llvm.lifetime.start.p0(i64 96, ptr %16) #8
  call void @_ZN3P3D14CFrameTemplateIdEC2ERKNS_6VectorIdLm3EEERKNS_22MatrixRotationTemplateIdEE(ptr noundef nonnull align 8 dereferenceable(96) %16, ptr noundef nonnull align 8 dereferenceable(24) %14, ptr noundef nonnull align 8 dereferenceable(72) %15)
  call void @llvm.lifetime.start.p0(i64 288, ptr %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %16, i64 96, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %11, i64 96, i1 false), !tbaa.struct !12
  call void @_ZN3P3D21computeCFrameOverTimeENS_14CFrameTemplateIdEENS_6MotionEd(ptr dead_on_unwind writable sret(%"struct.std::array.9") align 8 %17, ptr noundef byval(%"struct.P3D::CFrameTemplate") align 8 %18, ptr noundef byval(%"struct.P3D::Motion") align 8 %19, double noundef 1.000000e-04)
  call void @llvm.lifetime.start.p0(i64 144, ptr %20) #8
  call void @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #8
  store i32 0, ptr %21, align 4, !tbaa !13
  br label %31

31:                                               ; preds = %43, %0
  %32 = load i32, ptr %21, align 4, !tbaa !13
  %33 = icmp slt i32 %32, 3
  br i1 %33, label %35, label %34

34:                                               ; preds = %31
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #8
  br label %46

35:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 48, ptr %22) #8
  %36 = load double, ptr %4, align 8, !tbaa !5
  %37 = load i32, ptr %21, align 4, !tbaa !13
  %38 = sext i32 %37 to i64
  %39 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %17, i64 noundef %38) #8
  call void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %22, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %36, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %39)
  %40 = load i32, ptr %21, align 4, !tbaa !13
  %41 = sext i32 %40 to i64
  %42 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %20, i64 noundef %41) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %42, ptr align 8 %22, i64 48, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #8
  br label %43

43:                                               ; preds = %35
  %44 = load i32, ptr %21, align 4, !tbaa !13
  %45 = add nsw i32 %44, 1
  store i32 %45, ptr %21, align 4, !tbaa !13
  br label %31, !llvm.loop !15

46:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 144, ptr %23) #8
  call void @_ZN3P3D19estimateDerivativesINS_15SymmetricMatrixIdLm3EEELm3EEENS_19FullTaylorExpansionIT_XT0_EEERKSt5arrayIS4_XT0_EEd(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %23, ptr noundef nonnull align 8 dereferenceable(144) %20, double noundef 1.000000e-04)
  call void @llvm.lifetime.start.p0(i64 144, ptr %24) #8
  %47 = load double, ptr %4, align 8, !tbaa !5
  call void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEERKNS_6MotionE(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %24, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %47, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %16, ptr noundef nonnull align 8 dereferenceable(96) %11)
  br label %48

48:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 24, ptr %25) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %27, i32 noundef 119, double noundef 1.000000e-04)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D19FullTaylorExpansionINS2_15SymmetricMatrixIdLm3EEELm3EEEEE22TolerantAssertComparerIT_dERKS8_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %26, ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 8 dereferenceable(144) %23)
  call void @_ZNK22TolerantAssertComparerIN3P3D19FullTaylorExpansionINS0_15SymmetricMatrixIdLm3EEELm3EEEdEeqIS4_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %25, ptr noundef nonnull align 8 dereferenceable(24) %26, ptr noundef nonnull align 8 dereferenceable(144) %24)
  %49 = getelementptr inbounds %class.TolerantAssertComparer, ptr %25, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !17
  %51 = load i8, ptr %50, align 1, !tbaa !20, !range !22, !noundef !23
  %52 = trunc i8 %51 to i1
  %53 = xor i1 %52, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %26) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %25) #8
  br i1 %53, label %54, label %67

54:                                               ; preds = %48
  %55 = call ptr @_ZTW15__testInterface()
  %56 = getelementptr inbounds %class.TestInterface, ptr %55, i32 0, i32 1
  %57 = load i8, ptr %56, align 8, !tbaa !24, !range !22, !noundef !23
  %58 = trunc i8 %57 to i1
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  br label %60

60:                                               ; preds = %59, %54
  %61 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %61, i32 noundef 119, ptr noundef @.str.3)
          to label %62 unwind label %63

62:                                               ; preds = %60
  call void @__cxa_throw(ptr %61, ptr @_ZTI14AssertionError, ptr null) #9
  unreachable

63:                                               ; preds = %60
  %64 = landingpad { ptr, i32 }
          cleanup
  %65 = extractvalue { ptr, i32 } %64, 0
  store ptr %65, ptr %28, align 8
  %66 = extractvalue { ptr, i32 } %64, 1
  store i32 %66, ptr %29, align 4
  call void @__cxa_free_exception(ptr %61) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 288, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #8
  br label %71

67:                                               ; preds = %48
  %68 = call ptr @_ZTW15__testInterface()
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %68)
  br label %69

69:                                               ; preds = %67
  br label %70

70:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 144, ptr %24) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %23) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 288, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #8
  ret void

71:                                               ; preds = %63
  %72 = load ptr, ptr %28, align 8
  %73 = load i32, ptr %29, align 4
  %74 = insertvalue { ptr, i32 } poison, ptr %72, 0
  %75 = insertvalue { ptr, i32 } %74, i32 %73, 1
  resume { ptr, i32 } %75
}

declare void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96)) #3

declare void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEERKNS_6MotionE(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion") align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) #3

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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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 #6 = { 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 #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind }
attributes #9 = { noreturn }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 48, !10}
!10 = !{!7, !7, i64 0}
!11 = !{i64 0, i64 24, !10, i64 24, i64 72, !10}
!12 = !{i64 0, i64 48, !10, i64 48, i64 48, !10}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !19, i64 8}
!18 = !{!"_ZTS22TolerantAssertComparerIbdE", !14, i64 0, !19, i64 8, !6, i64 16}
!19 = !{!"any pointer", !7, i64 0}
!20 = !{!21, !21, i64 0}
!21 = !{!"bool", !7, i64 0}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!25, !21, i64 8}
!25 = !{!"_ZTS13TestInterface", !26, i64 0, !21, i64 8}
!26 = !{!"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.P3D::Polyhedron" = type { %"class.P3D::TriangleMesh" }
%"class.P3D::TriangleMesh" = type { %"class.P3D::MeshPrototype" }
%"class.P3D::MeshPrototype" = type { %"class.P3D::UniqueAlignedPointer", %"class.P3D::UniqueAlignedPointer.0", i32, i32 }
%"class.P3D::UniqueAlignedPointer" = type { ptr }
%"class.P3D::UniqueAlignedPointer.0" = type { ptr }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"struct.P3D::FullTaylorExpansion" = type { %"struct.P3D::Derivatives.6" }
%"struct.P3D::Derivatives.6" = type { [3 x %"class.P3D::SymmetricMatrix"] }
%class.TolerantAssertComparer.7 = 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::TranslationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.P3D::TaylorExpansion" = type { %"struct.P3D::Derivatives" }
%"struct.P3D::Derivatives" = type { [2 x %"struct.P3D::Vector"] }
%"struct.P3D::RotationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.std::array.9" = type { [3 x %"struct.P3D::CFrameTemplate"] }
%"struct.P3D::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::Motion" = type { %"struct.P3D::TranslationalMotion", %"struct.P3D::RotationalMotion" }
%"struct.std::array.5" = type { [3 x %"class.P3D::SymmetricMatrix"] }
%struct.TolerantAssertBuilder = type { i32, double }

@.str.3 = external hidden unnamed_addr constant [6 x i8], align 1
@_ZTI14AssertionError = external dso_local constant { ptr, ptr }, align 8
@_ZN3P3D12ShapeLibrary15trianglePyramidE = external global %"class.P3D::Polyhedron", align 8

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

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

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

declare i32 @__gxx_personality_v0(...)

declare void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96)) unnamed_addr #4 align 2

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

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

declare noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

declare void @_ZNK3P3D10Polyhedron15getCenterOfMassEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare 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 #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D19TranslationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%"struct.P3D::Vector") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(144)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D19estimateDerivativesINS_15SymmetricMatrixIdLm3EEELm3EEENS_19FullTaylorExpansionIT_XT0_EEERKSt5arrayIS4_XT0_EEd(ptr dead_on_unwind noalias writable sret(%"struct.P3D::FullTaylorExpansion") align 8, ptr noundef nonnull align 8 dereferenceable(144), double noundef) local_unnamed_addr #7

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D16RotationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef byval(%"struct.P3D::Vector") align 8, ptr noundef byval(%"struct.P3D::Vector") align 8) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D6MotionC2ENS_19TranslationalMotionENS_16RotationalMotionE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef byval(%"struct.P3D::TranslationalMotion") align 8, ptr noundef byval(%"struct.P3D::RotationalMotion") align 8) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D14CFrameTemplateIdEC2ERKNS_6VectorIdLm3EEERKNS_22MatrixRotationTemplateIdEE(ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D21computeCFrameOverTimeENS_14CFrameTemplateIdEENS_6MotionEd(ptr dead_on_unwind noalias writable sret(%"struct.std::array.9") align 8, ptr noundef byval(%"struct.P3D::CFrameTemplate") align 8, ptr noundef byval(%"struct.P3D::Motion") align 8, double noundef) local_unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_Z53inertiaTransformationDerivativesForOffsetCenterOfMassv() local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"struct.P3D::Vector", align 8
  %2 = alloca %"class.P3D::SymmetricMatrix", align 8
  %3 = alloca %"struct.P3D::CFrameTemplate", align 8
  %4 = alloca %"struct.P3D::RotationalMotion", align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::TranslationalMotion", align 8
  %8 = alloca %"struct.P3D::Vector", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"struct.P3D::Motion", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %13 = alloca %"struct.P3D::CFrameTemplate", align 8
  %14 = alloca %"struct.std::array.9", align 8
  %15 = alloca %"struct.std::array.5", align 8
  %16 = alloca %"class.P3D::SymmetricMatrix", align 8
  %17 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %18 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %19 = alloca %class.TolerantAssertComparer, align 8
  %20 = alloca %class.TolerantAssertComparer.7, align 8
  %21 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #8
  call void @_ZNK3P3D10Polyhedron15getCenterOfMassEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %3) #8
  call void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %3)
  call void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE, ptr noundef nonnull align 8 dereferenceable(96) %3)
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %3) #8
  %22 = call noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef 3.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef -8.000000e-01, double noundef 5.000000e-01, double noundef -3.000000e-01) #8
  call void @_ZN3P3D16RotationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %5, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %6)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef -2.300000e-01, double noundef 2.500000e-01, double noundef 0xBFE6666666666666) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef -2.000000e-01, double noundef 0xBFE6666666666666, double noundef 3.330000e-01) #8
  call void @_ZN3P3D19TranslationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %7, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %8, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %9)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %10) #8
  call void @_ZN3P3D6MotionC2ENS_19TranslationalMotionENS_16RotationalMotionE(ptr noundef nonnull align 8 dereferenceable(96) %10, ptr noundef nonnull byval(%"struct.P3D::TranslationalMotion") align 8 %7, ptr noundef nonnull byval(%"struct.P3D::RotationalMotion") align 8 %4)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #8
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef 1.200000e+00, double noundef 0xBFE6666666666666, double noundef 2.100000e+00) #8
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %12) #8
  call void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %12, double noundef 5.000000e-01, double noundef -6.000000e-01, double noundef 0x3FE6666666666666)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %13) #8
  call void @_ZN3P3D14CFrameTemplateIdEC2ERKNS_6VectorIdLm3EEERKNS_22MatrixRotationTemplateIdEE(ptr noundef nonnull align 8 dereferenceable(96) %13, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(72) %12)
  call void @llvm.lifetime.start.p0(i64 288, ptr nonnull %14) #8
  call void @_ZN3P3D21computeCFrameOverTimeENS_14CFrameTemplateIdEENS_6MotionEd(ptr dead_on_unwind nonnull writable sret(%"struct.std::array.9") align 8 %14, ptr noundef nonnull byval(%"struct.P3D::CFrameTemplate") align 8 %13, ptr noundef nonnull byval(%"struct.P3D::Motion") align 8 %10, double noundef 1.000000e-04)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %15) #8
  call void @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %15)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %16) #8
  %23 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %14, i64 noundef 0) #8
  call void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %22, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %23)
  %24 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %15, i64 noundef 0) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %24, ptr noundef nonnull align 8 dereferenceable(48) %16, i64 48, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %16) #8
  %25 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %14, i64 noundef 1) #8
  call void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %22, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %25)
  %26 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %15, i64 noundef 1) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 8 dereferenceable(48) %16, i64 48, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %16) #8
  %27 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %14, i64 noundef 2) #8
  call void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %16, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %22, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %27)
  %28 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %15, i64 noundef 2) #8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %28, ptr noundef nonnull align 8 dereferenceable(48) %16, i64 48, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %16) #8
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %17) #8
  call void @_ZN3P3D19estimateDerivativesINS_15SymmetricMatrixIdLm3EEELm3EEENS_19FullTaylorExpansionIT_XT0_EEERKSt5arrayIS4_XT0_EEd(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %17, ptr noundef nonnull align 8 dereferenceable(144) %15, double noundef 1.000000e-04)
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %18) #8
  call void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEERKNS_6MotionE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %22, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %13, ptr noundef nonnull align 8 dereferenceable(96) %10)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #8
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %21, i32 noundef 119, double noundef 1.000000e-04)
  call void @_ZNK21TolerantAssertBuilderIdEltIN3P3D19FullTaylorExpansionINS2_15SymmetricMatrixIdLm3EEELm3EEEEE22TolerantAssertComparerIT_dERKS8_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.7) align 8 %20, ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull align 8 dereferenceable(144) %17)
  call void @_ZNK22TolerantAssertComparerIN3P3D19FullTaylorExpansionINS0_15SymmetricMatrixIdLm3EEELm3EEEdEeqIS4_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %19, ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(144) %18)
  %29 = getelementptr inbounds i8, ptr %19, i64 8
  %30 = load ptr, ptr %29, align 8, !tbaa !9
  %31 = load i8, ptr %30, align 1, !tbaa !14, !range !16, !noundef !17
  %32 = trunc nuw i8 %31 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #8
  %33 = call ptr @_ZTW15__testInterface()
  br i1 %32, label %39, label %34

34:                                               ; preds = %0
  %35 = call ptr @__cxa_allocate_exception(i64 16) #8
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %35, i32 noundef 119, ptr noundef nonnull @.str.3)
          to label %36 unwind label %37

36:                                               ; preds = %34
  call void @__cxa_throw(ptr nonnull %35, ptr nonnull @_ZTI14AssertionError, ptr null) #9
  unreachable

37:                                               ; preds = %34
  %38 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %35) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  resume { ptr, i32 } %38

39:                                               ; preds = %0
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %33)
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %18) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %17) #8
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #8
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #8
  ret void
}

declare void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

declare void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEERKNS_14CFrameTemplateIdEERKNS_6MotionE(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion") align 8, ptr noundef nonnull align 8 dereferenceable(48), double noundef, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(96), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #3

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


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