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

; 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::Vector.1" = type { %union.anon.2 }
%union.anon.2 = type { [3 x float] }
%"struct.P3D::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::RotationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.P3D::TaylorExpansion" = type { %"struct.P3D::Derivatives" }
%"struct.P3D::Derivatives" = type { [2 x %"struct.P3D::Vector"] }
%"struct.P3D::TranslationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.P3D::Motion" = type { %"struct.P3D::TranslationalMotion", %"struct.P3D::RotationalMotion" }
%"struct.std::array.9" = type { [3 x %"struct.P3D::CFrameTemplate"] }
%"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

declare void @_ZNK3P3D10Polyhedron10translatedENS_6VectorIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8, ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) #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) #3

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

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

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

; 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 #2

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 @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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) #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: mustprogress uwtable
define dso_local void @_Z32inertiaTransformationDerivativesv() #8 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Polyhedron", align 8
  %2 = alloca %"struct.P3D::Vector.1", align 4
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca %"struct.P3D::Vector", align 8
  %5 = alloca { <2 x float>, float }, align 8
  %6 = alloca { <2 x float>, float }, align 4
  %7 = alloca %"class.P3D::SymmetricMatrix", align 8
  %8 = alloca %"struct.P3D::CFrameTemplate", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca double, align 8
  %12 = alloca %"struct.P3D::RotationalMotion", align 8
  %13 = alloca %"struct.P3D::Vector", align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %"struct.P3D::TranslationalMotion", align 8
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca %"struct.P3D::Vector", align 8
  %18 = alloca %"struct.P3D::Motion", align 8
  %19 = alloca %"struct.P3D::TranslationalMotion", align 8
  %20 = alloca %"struct.P3D::RotationalMotion", align 8
  %21 = alloca %"struct.P3D::Vector", align 8
  %22 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %23 = alloca %"struct.P3D::CFrameTemplate", align 8
  %24 = alloca %"struct.std::array.9", align 8
  %25 = alloca %"struct.P3D::CFrameTemplate", align 8
  %26 = alloca %"struct.P3D::Motion", align 8
  %27 = alloca %"struct.std::array.5", align 8
  %28 = alloca i32, align 4
  %29 = alloca %"class.P3D::SymmetricMatrix", align 8
  %30 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %31 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %32 = alloca %class.TolerantAssertComparer, align 8
  %33 = alloca %class.TolerantAssertComparer.7, align 8
  %34 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr %4) #9
  call void @_ZNK3P3D10Polyhedron15getCenterOfMassEv(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE)
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) %4) #9
  %35 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %36 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %2, i32 0, i32 0
  %37 = getelementptr inbounds %union.anon.2, ptr %36, i32 0, i32 0
  store { <2 x float>, float } %35, ptr %5, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %37, ptr align 8 %5, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %6, ptr align 4 %2, i64 12, i1 false)
  %38 = getelementptr inbounds { <2 x float>, float }, ptr %6, i32 0, i32 0
  %39 = load <2 x float>, ptr %38, align 4
  %40 = getelementptr inbounds { <2 x float>, float }, ptr %6, i32 0, i32 1
  %41 = load float, ptr %40, align 4
  call void @_ZNK3P3D10Polyhedron10translatedENS_6VectorIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE, <2 x float> %39, float %41)
  call void @llvm.lifetime.end.p0(i64 24, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr %8) #9
  invoke void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %42 unwind label %57

42:                                               ; preds = %0
  invoke void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %7, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %8)
          to label %43 unwind label %57

43:                                               ; preds = %42
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #9
  %44 = invoke noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %45 unwind label %61

45:                                               ; preds = %43
  store double %44, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 48, ptr %12) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %13, double noundef 3.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %14, double noundef -8.000000e-01, double noundef 5.000000e-01, double noundef -3.000000e-01) #9
  invoke void @_ZN3P3D16RotationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef byval(%"struct.P3D::Vector") align 8 %13, ptr noundef byval(%"struct.P3D::Vector") align 8 %14)
          to label %46 unwind label %65

46:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 48, ptr %15) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %16, double noundef -2.300000e-01, double noundef 2.500000e-01, double noundef 0xBFE6666666666666) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %17, double noundef -2.000000e-01, double noundef 0xBFE6666666666666, double noundef 3.330000e-01) #9
  invoke void @_ZN3P3D19TranslationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %15, ptr noundef byval(%"struct.P3D::Vector") align 8 %16, ptr noundef byval(%"struct.P3D::Vector") align 8 %17)
          to label %47 unwind label %69

47:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 96, ptr %18) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %19, ptr align 8 %15, i64 48, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %20, ptr align 8 %12, i64 48, i1 false), !tbaa.struct !9
  invoke void @_ZN3P3D6MotionC2ENS_19TranslationalMotionENS_16RotationalMotionE(ptr noundef nonnull align 8 dereferenceable(96) %18, ptr noundef byval(%"struct.P3D::TranslationalMotion") align 8 %19, ptr noundef byval(%"struct.P3D::RotationalMotion") align 8 %20)
          to label %48 unwind label %73

48:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %21, double noundef 1.200000e+00, double noundef 0xBFE6666666666666, double noundef 2.100000e+00) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr %22) #9
  invoke void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %22, double noundef 5.000000e-01, double noundef -6.000000e-01, double noundef 0x3FE6666666666666)
          to label %49 unwind label %77

49:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 96, ptr %23) #9
  invoke void @_ZN3P3D14CFrameTemplateIdEC2ERKNS_6VectorIdLm3EEERKNS_22MatrixRotationTemplateIdEE(ptr noundef nonnull align 8 dereferenceable(96) %23, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(72) %22)
          to label %50 unwind label %81

50:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 288, ptr %24) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %25, ptr align 8 %23, i64 96, i1 false), !tbaa.struct !11
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %18, i64 96, i1 false), !tbaa.struct !12
  invoke void @_ZN3P3D21computeCFrameOverTimeENS_14CFrameTemplateIdEENS_6MotionEd(ptr dead_on_unwind writable sret(%"struct.std::array.9") align 8 %24, ptr noundef byval(%"struct.P3D::CFrameTemplate") align 8 %25, ptr noundef byval(%"struct.P3D::Motion") align 8 %26, double noundef 1.000000e-04)
          to label %51 unwind label %85

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 144, ptr %27) #9
  invoke void @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %27)
          to label %52 unwind label %89

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #9
  store i32 0, ptr %28, align 4, !tbaa !13
  br label %53

53:                                               ; preds = %102, %52
  %54 = load i32, ptr %28, align 4, !tbaa !13
  %55 = icmp slt i32 %54, 3
  br i1 %55, label %93, label %56

56:                                               ; preds = %53
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %109

57:                                               ; preds = %42, %0
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %9, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 96, ptr %8) #9
  br label %162

61:                                               ; preds = %43
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  br label %161

65:                                               ; preds = %45
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %9, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %10, align 4
  br label %160

69:                                               ; preds = %46
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  br label %159

73:                                               ; preds = %47
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %9, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %10, align 4
  br label %158

77:                                               ; preds = %48
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  br label %157

81:                                               ; preds = %49
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %9, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %10, align 4
  br label %156

85:                                               ; preds = %50
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %9, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %10, align 4
  br label %155

89:                                               ; preds = %51
  %90 = landingpad { ptr, i32 }
          cleanup
  %91 = extractvalue { ptr, i32 } %90, 0
  store ptr %91, ptr %9, align 8
  %92 = extractvalue { ptr, i32 } %90, 1
  store i32 %92, ptr %10, align 4
  br label %154

93:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 48, ptr %29) #9
  %94 = load double, ptr %11, align 8, !tbaa !5
  %95 = load i32, ptr %28, align 4, !tbaa !13
  %96 = sext i32 %95 to i64
  %97 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %24, i64 noundef %96) #9
  invoke void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %29, ptr noundef nonnull align 8 dereferenceable(48) %7, double noundef %94, ptr noundef nonnull align 8 dereferenceable(96) %97)
          to label %98 unwind label %105

98:                                               ; preds = %93
  %99 = load i32, ptr %28, align 4, !tbaa !13
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %27, i64 noundef %100) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %101, ptr align 8 %29, i64 48, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #9
  br label %102

102:                                              ; preds = %98
  %103 = load i32, ptr %28, align 4, !tbaa !13
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %28, align 4, !tbaa !13
  br label %53, !llvm.loop !15

105:                                              ; preds = %93
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %9, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #9
  br label %154

109:                                              ; preds = %56
  call void @llvm.lifetime.start.p0(i64 144, ptr %30) #9
  invoke void @_ZN3P3D19estimateDerivativesINS_15SymmetricMatrixIdLm3EEELm3EEENS_19FullTaylorExpansionIT_XT0_EEERKSt5arrayIS4_XT0_EEd(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %30, ptr noundef nonnull align 8 dereferenceable(144) %27, double noundef 1.000000e-04)
          to label %110 unwind label %128

110:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 144, ptr %31) #9
  %111 = load double, ptr %11, align 8, !tbaa !5
  invoke void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_14CFrameTemplateIdEERKNS_6MotionE(ptr dead_on_unwind writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %31, ptr noundef nonnull align 8 dereferenceable(48) %7, double noundef %111, ptr noundef nonnull align 8 dereferenceable(96) %23, ptr noundef nonnull align 8 dereferenceable(96) %18)
          to label %112 unwind label %132

112:                                              ; preds = %110
  br label %113

113:                                              ; preds = %112
  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
  invoke void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %34, i32 noundef 95, double noundef 1.000000e-04)
          to label %114 unwind label %136

114:                                              ; preds = %113
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D19FullTaylorExpansionINS2_15SymmetricMatrixIdLm3EEELm3EEEEE22TolerantAssertComparerIT_dERKS8_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.7) align 8 %33, ptr noundef nonnull align 8 dereferenceable(16) %34, ptr noundef nonnull align 8 dereferenceable(144) %30)
          to label %115 unwind label %136

115:                                              ; preds = %114
  invoke void @_ZNK22TolerantAssertComparerIN3P3D19FullTaylorExpansionINS0_15SymmetricMatrixIdLm3EEELm3EEEdEeqIS4_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(144) %31)
          to label %116 unwind label %136

116:                                              ; preds = %115
  %117 = getelementptr inbounds %class.TolerantAssertComparer, ptr %32, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !17
  %119 = load i8, ptr %118, align 1, !tbaa !20, !range !22, !noundef !23
  %120 = trunc i8 %119 to i1
  %121 = xor i1 %120, true
  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 %121, label %122, label %147

122:                                              ; preds = %116
  %123 = call ptr @_ZTW15__testInterface()
  %124 = getelementptr inbounds %class.TestInterface, ptr %123, i32 0, i32 1
  %125 = load i8, ptr %124, align 8, !tbaa !24, !range !22, !noundef !23
  %126 = trunc i8 %125 to i1
  br i1 %126, label %127, label %140

127:                                              ; preds = %122
  br label %140

128:                                              ; preds = %109
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  br label %153

132:                                              ; preds = %147, %142, %110
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  br label %152

136:                                              ; preds = %115, %114, %113
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %9, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %10, align 4
  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 label %152

140:                                              ; preds = %127, %122
  %141 = call ptr @__cxa_allocate_exception(i64 16) #9
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %141, i32 noundef 95, ptr noundef @.str.3)
          to label %142 unwind label %143

142:                                              ; preds = %140
  invoke void @__cxa_throw(ptr %141, ptr @_ZTI14AssertionError, ptr null) #10
          to label %168 unwind label %132

143:                                              ; preds = %140
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %9, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %10, align 4
  call void @__cxa_free_exception(ptr %141) #9
  br label %152

147:                                              ; preds = %116
  %148 = call ptr @_ZTW15__testInterface()
  invoke void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %148)
          to label %149 unwind label %132

149:                                              ; preds = %147
  br label %150

150:                                              ; preds = %149
  br label %151

151:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 144, ptr %31) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr %27) #9
  call void @llvm.lifetime.end.p0(i64 288, ptr %24) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %23) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr %18) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #9
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #9
  ret void

152:                                              ; preds = %143, %136, %132
  call void @llvm.lifetime.end.p0(i64 144, ptr %31) #9
  br label %153

153:                                              ; preds = %152, %128
  call void @llvm.lifetime.end.p0(i64 144, ptr %30) #9
  br label %154

154:                                              ; preds = %153, %105, %89
  call void @llvm.lifetime.end.p0(i64 144, ptr %27) #9
  br label %155

155:                                              ; preds = %154, %85
  call void @llvm.lifetime.end.p0(i64 288, ptr %24) #9
  br label %156

156:                                              ; preds = %155, %81
  call void @llvm.lifetime.end.p0(i64 96, ptr %23) #9
  br label %157

157:                                              ; preds = %156, %77
  call void @llvm.lifetime.end.p0(i64 72, ptr %22) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #9
  br label %158

158:                                              ; preds = %157, %73
  call void @llvm.lifetime.end.p0(i64 96, ptr %18) #9
  br label %159

159:                                              ; preds = %158, %69
  call void @llvm.lifetime.end.p0(i64 48, ptr %15) #9
  br label %160

160:                                              ; preds = %159, %65
  call void @llvm.lifetime.end.p0(i64 48, ptr %12) #9
  br label %161

161:                                              ; preds = %160, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #9
  br label %162

162:                                              ; preds = %161, %57
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #9
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #9
  br label %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %9, align 8
  %165 = load i32, ptr %10, align 4
  %166 = insertvalue { ptr, i32 } poison, ptr %164, 0
  %167 = insertvalue { ptr, i32 } %166, i32 %165, 1
  resume { ptr, i32 } %167

168:                                              ; preds = %142
  unreachable
}

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

; 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

declare void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_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(96)) #2

; 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

declare void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_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(96), ptr noundef nonnull align 8 dereferenceable(96)) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = !{!"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::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"struct.P3D::RotationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.P3D::TaylorExpansion" = type { %"struct.P3D::Derivatives" }
%"struct.P3D::Derivatives" = type { [2 x %"struct.P3D::Vector"] }
%"struct.P3D::TranslationalMotion" = type { %"struct.P3D::TaylorExpansion" }
%"struct.P3D::Motion" = type { %"struct.P3D::TranslationalMotion", %"struct.P3D::RotationalMotion" }
%"struct.std::array.9" = type { [3 x %"struct.P3D::CFrameTemplate"] }
%"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

declare void @_ZNK3P3D10Polyhedron10translatedENS_6VectorIfLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8, ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24)) local_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) #3

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

; 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 #2

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

; 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 #2

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 @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) 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: mustprogress uwtable
define dso_local void @_Z32inertiaTransformationDerivativesv() local_unnamed_addr #8 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Polyhedron", align 8
  %2 = alloca %"struct.P3D::Vector", align 8
  %3 = alloca %"struct.P3D::Vector", align 8
  %4 = alloca %"class.P3D::SymmetricMatrix", align 8
  %5 = alloca %"struct.P3D::CFrameTemplate", align 8
  %6 = alloca %"struct.P3D::RotationalMotion", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"struct.P3D::Vector", align 8
  %9 = alloca %"struct.P3D::TranslationalMotion", align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"struct.P3D::Motion", align 8
  %13 = alloca %"struct.P3D::Vector", align 8
  %14 = alloca %"class.P3D::MatrixRotationTemplate", align 8
  %15 = alloca %"struct.P3D::CFrameTemplate", align 8
  %16 = alloca %"struct.std::array.9", align 8
  %17 = alloca %"struct.std::array.5", align 8
  %18 = alloca %"class.P3D::SymmetricMatrix", align 8
  %19 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %20 = alloca %"struct.P3D::FullTaylorExpansion", align 8
  %21 = alloca %class.TolerantAssertComparer, align 8
  %22 = alloca %class.TolerantAssertComparer.7, align 8
  %23 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #9
  call void @_ZNK3P3D10Polyhedron15getCenterOfMassEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %3, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE)
  call void @_ZN3P3DngIdLm3EEENS_6VectorIT_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #9
  %24 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #9
  %.fca.0.extract = extractvalue { <2 x float>, float } %24, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %24, 1
  call void @_ZNK3P3D10Polyhedron10translatedENS_6VectorIfLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Polyhedron") align 8 %1, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary15trianglePyramidE, <2 x float> %.fca.0.extract, float %.fca.1.extract)
  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.start.p0(i64 48, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %5) #9
  invoke void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %25 unwind label %32

25:                                               ; preds = %0
  invoke void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %4, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %5)
          to label %26 unwind label %32

26:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #9
  %27 = invoke noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %28 unwind label %34

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef 3.000000e-01, double noundef 4.000000e-01, double noundef 5.000000e-01) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %8, double noundef -8.000000e-01, double noundef 5.000000e-01, double noundef -3.000000e-01) #9
  call void @_ZN3P3D16RotationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %8)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %10, double noundef -2.300000e-01, double noundef 2.500000e-01, double noundef 0xBFE6666666666666) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef -2.000000e-01, double noundef 0xBFE6666666666666, double noundef 3.330000e-01) #9
  call void @_ZN3P3D19TranslationalMotionC2ENS_6VectorIdLm3EEES2_(ptr noundef nonnull align 8 dereferenceable(48) %9, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %10, ptr noundef nonnull byval(%"struct.P3D::Vector") align 8 %11)
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %12) #9
  call void @_ZN3P3D6MotionC2ENS_19TranslationalMotionENS_16RotationalMotionE(ptr noundef nonnull align 8 dereferenceable(96) %12, ptr noundef nonnull byval(%"struct.P3D::TranslationalMotion") align 8 %9, ptr noundef nonnull byval(%"struct.P3D::RotationalMotion") align 8 %6)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #9
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %13, double noundef 1.200000e+00, double noundef 0xBFE6666666666666, double noundef 2.100000e+00) #9
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %14) #9
  invoke void @_ZN3P3D22MatrixRotationTemplateIdE15fromEulerAnglesEddd(ptr dead_on_unwind nonnull writable sret(%"class.P3D::MatrixRotationTemplate") align 8 %14, double noundef 5.000000e-01, double noundef -6.000000e-01, double noundef 0x3FE6666666666666)
          to label %29 unwind label %36

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %15) #9
  call void @_ZN3P3D14CFrameTemplateIdEC2ERKNS_6VectorIdLm3EEERKNS_22MatrixRotationTemplateIdEE(ptr noundef nonnull align 8 dereferenceable(96) %15, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(72) %14)
  call void @llvm.lifetime.start.p0(i64 288, ptr nonnull %16) #9
  invoke void @_ZN3P3D21computeCFrameOverTimeENS_14CFrameTemplateIdEENS_6MotionEd(ptr dead_on_unwind nonnull writable sret(%"struct.std::array.9") align 8 %16, ptr noundef nonnull byval(%"struct.P3D::CFrameTemplate") align 8 %15, ptr noundef nonnull byval(%"struct.P3D::Motion") align 8 %12, double noundef 1.000000e-04)
          to label %30 unwind label %38

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %17) #9
  invoke void @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEC2Ev(ptr noundef nonnull align 8 dereferenceable(144) %17)
          to label %.preheader.preheader unwind label %40

.preheader.preheader:                             ; preds = %30
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #9
  %31 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %16, i64 noundef 0) #9
  invoke void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %4, double noundef %27, ptr noundef nonnull align 8 dereferenceable(96) %31)
          to label %.preheader.1 unwind label %48

32:                                               ; preds = %25, %0
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %5) #9
  br label %76

34:                                               ; preds = %26
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %76

36:                                               ; preds = %28
  %37 = landingpad { ptr, i32 }
          cleanup
  br label %75

38:                                               ; preds = %29
  %39 = landingpad { ptr, i32 }
          cleanup
  br label %74

40:                                               ; preds = %30
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %73

.preheader.1:                                     ; preds = %.preheader.preheader
  %42 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %17, i64 noundef 0) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %42, ptr noundef nonnull align 8 dereferenceable(48) %18, i64 48, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #9
  %43 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %16, i64 noundef 1) #9
  invoke void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %4, double noundef %27, ptr noundef nonnull align 8 dereferenceable(96) %43)
          to label %.preheader.2 unwind label %48

.preheader.2:                                     ; preds = %.preheader.1
  %44 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %17, i64 noundef 1) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %44, ptr noundef nonnull align 8 dereferenceable(48) %18, i64 48, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %18) #9
  %45 = call noundef nonnull align 8 dereferenceable(96) ptr @_ZNSt5arrayIN3P3D14CFrameTemplateIdEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(288) %16, i64 noundef 2) #9
  invoke void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %18, ptr noundef nonnull align 8 dereferenceable(48) %4, double noundef %27, ptr noundef nonnull align 8 dereferenceable(96) %45)
          to label %46 unwind label %48

46:                                               ; preds = %.preheader.2
  %47 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZNSt5arrayIN3P3D15SymmetricMatrixIdLm3EEELm3EEixEm(ptr noundef nonnull align 8 dereferenceable(144) %17, i64 noundef 2) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %47, ptr noundef nonnull align 8 dereferenceable(48) %18, i64 48, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #9
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %19) #9
  invoke void @_ZN3P3D19estimateDerivativesINS_15SymmetricMatrixIdLm3EEELm3EEENS_19FullTaylorExpansionIT_XT0_EEERKSt5arrayIS4_XT0_EEd(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %19, ptr noundef nonnull align 8 dereferenceable(144) %17, double noundef 1.000000e-04)
          to label %50 unwind label %61

48:                                               ; preds = %.preheader.2, %.preheader.1, %.preheader.preheader
  %49 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %18) #9
  br label %73

50:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 144, ptr nonnull %20) #9
  invoke void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_14CFrameTemplateIdEERKNS_6MotionE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::FullTaylorExpansion") align 8 %20, ptr noundef nonnull align 8 dereferenceable(48) %4, double noundef %27, ptr noundef nonnull align 8 dereferenceable(96) %15, ptr noundef nonnull align 8 dereferenceable(96) %12)
          to label %51 unwind label %63

51:                                               ; preds = %50
  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
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef 95, double noundef 1.000000e-04)
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D19FullTaylorExpansionINS2_15SymmetricMatrixIdLm3EEELm3EEEEE22TolerantAssertComparerIT_dERKS8_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.7) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(144) %19)
          to label %52 unwind label %65

52:                                               ; preds = %51
  invoke void @_ZNK22TolerantAssertComparerIN3P3D19FullTaylorExpansionINS0_15SymmetricMatrixIdLm3EEELm3EEEdEeqIS4_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(144) %20)
          to label %53 unwind label %65

53:                                               ; preds = %52
  %54 = getelementptr inbounds i8, ptr %21, i64 8
  %55 = load ptr, ptr %54, align 8, !tbaa !9
  %56 = load i8, ptr %55, align 1, !tbaa !14, !range !16, !noundef !17
  %57 = trunc nuw i8 %56 to i1
  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
  %58 = call ptr @_ZTW15__testInterface()
  br i1 %57, label %70, label %59

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

61:                                               ; preds = %46
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %72

63:                                               ; preds = %67, %50
  %64 = landingpad { ptr, i32 }
          cleanup
  br label %71

65:                                               ; preds = %52, %51
  %66 = landingpad { ptr, i32 }
          cleanup
  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
  br label %71

67:                                               ; preds = %59
  invoke void @__cxa_throw(ptr nonnull %60, ptr nonnull @_ZTI14AssertionError, ptr null) #10
          to label %77 unwind label %63

68:                                               ; preds = %59
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %60) #9
  br label %71

70:                                               ; preds = %53
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %58)
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %20) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %19) #9
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %17) #9
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %15) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #9
  ret void

71:                                               ; preds = %68, %65, %63
  %.pn = phi { ptr, i32 } [ %64, %63 ], [ %69, %68 ], [ %66, %65 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %20) #9
  br label %72

72:                                               ; preds = %71, %61
  %.pn.pn = phi { ptr, i32 } [ %.pn, %71 ], [ %62, %61 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %19) #9
  br label %73

73:                                               ; preds = %72, %48, %40
  %.pn21 = phi { ptr, i32 } [ %49, %48 ], [ %.pn.pn, %72 ], [ %41, %40 ]
  call void @llvm.lifetime.end.p0(i64 144, ptr nonnull %17) #9
  br label %74

74:                                               ; preds = %73, %38
  %.pn21.pn = phi { ptr, i32 } [ %.pn21, %73 ], [ %39, %38 ]
  call void @llvm.lifetime.end.p0(i64 288, ptr nonnull %16) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %15) #9
  br label %75

75:                                               ; preds = %74, %36
  %.pn21.pn.pn = phi { ptr, i32 } [ %.pn21.pn, %74 ], [ %37, %36 ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %14) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #9
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #9
  br label %76

76:                                               ; preds = %34, %75, %32
  %.pn21.pn.pn.pn.pn = phi { ptr, i32 } [ %33, %32 ], [ %.pn21.pn.pn, %75 ], [ %35, %34 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn21.pn.pn.pn.pn

77:                                               ; preds = %67
  unreachable
}

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

; 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

declare void @_ZN3P3D39getTransformedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_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(96)) local_unnamed_addr #2

; 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

declare void @_ZN3P3D50getTransformedInertiaDerivativesAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_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(96), ptr noundef nonnull align 8 dereferenceable(96)) local_unnamed_addr #2

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