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

; 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::SymmetricMatrix" = type { [6 x double] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%class.TolerantAssertComparer.10 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"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 }
%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

; 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 i32 @__gxx_personality_v0(...)

; 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

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

declare ptr @__cxa_allocate_exception(i64)

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #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)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D28getAngularMomentumFromOffsetERKNS_6VectorIdLm3EEES3_S3_RKNS_15SymmetricMatrixIdLm3EEEd(ptr dead_on_unwind noalias writable sret(%"struct.P3D::Vector") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(48), double noundef) #5

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25translatedAngularMomentumv() #6 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Polyhedron", align 8
  %2 = alloca %"class.P3D::SymmetricMatrix", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca double, align 8
  %6 = alloca %"struct.P3D::Vector", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"class.P3D::SymmetricMatrix", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"struct.P3D::Vector", align 8
  %13 = alloca %"struct.P3D::Vector", align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %"struct.P3D::Vector", align 8
  %16 = alloca %"struct.P3D::Vector", align 8
  %17 = alloca %class.TolerantAssertComparer, align 8
  %18 = alloca %class.TolerantAssertComparer.10, align 8
  %19 = alloca %struct.TolerantAssertBuilder, align 8
  %20 = alloca %class.TolerantAssertComparer, align 8
  %21 = alloca %class.TolerantAssertComparer.10, align 8
  %22 = alloca %struct.TolerantAssertBuilder, align 8
  %23 = alloca %class.TolerantAssertComparer, align 8
  %24 = alloca %class.TolerantAssertComparer.10, align 8
  %25 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #7
  call void @_ZN3P3D12ShapeLibrary10createCubeEf(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8 %1, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #7
  invoke void @_ZNK3P3D10Polyhedron28getInertiaAroundCenterOfMassEv(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %26 unwind label %52

26:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %27 = invoke noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %28 unwind label %56

28:                                               ; preds = %26
  store double %27, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #7
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %6, double noundef 1.300000e+00, double noundef 0x3FE6666666666666, double noundef -2.100000e+00) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #7
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %7, double noundef 3.200000e+00, double noundef 1.300000e+00, double noundef -2.100000e+00) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #7
  %29 = load double, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3P3D38getTranslatedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %29, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %30 unwind label %60

30:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #7
  invoke void @_ZN3P3DmlIdLm3EEENS_6VectorIT_XT0_EEERKNS_15SymmetricMatrixIS2_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %31 unwind label %64

31:                                               ; preds = %30
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  invoke void @_ZN3P3DmlIdLm3EEENS_6VectorIT_XT0_EEERKNS_15SymmetricMatrixIS2_XT0_EEERKS3_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %32 unwind label %68

32:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @_ZN3P3DrmIddEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %13) #7
  call void @_ZN3P3DrmIddEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %11) #7
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %13, ptr noundef nonnull align 8 dereferenceable(8) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull align 8 dereferenceable(24) %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #7
  %33 = load double, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3P3D40getAngularMomentumFromOffsetOnlyVelocityERKNS_6VectorIdLm3EEES3_d(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %11, double noundef %33)
          to label %34 unwind label %72

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #7
  %35 = load double, ptr %5, align 8, !tbaa !5
  invoke void @_ZN3P3D28getAngularMomentumFromOffsetERKNS_6VectorIdLm3EEES3_S3_RKNS_15SymmetricMatrixIdLm3EEEd(ptr dead_on_unwind writable sret(%"struct.P3D::Vector") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %35)
          to label %36 unwind label %76

36:                                               ; preds = %34
  br label %37

37:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 24, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #7
  invoke void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %19, i32 noundef 177, double noundef 1.000000e-04)
          to label %38 unwind label %80

38:                                               ; preds = %37
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.10) align 8 %18, ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %39 unwind label %80

39:                                               ; preds = %38
  invoke void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %17, ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 8 dereferenceable(24) %14)
          to label %40 unwind label %80

40:                                               ; preds = %39
  %41 = getelementptr inbounds %class.TolerantAssertComparer, ptr %17, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  %43 = load i8, ptr %42, align 1, !tbaa !13, !range !15, !noundef !16
  %44 = trunc i8 %43 to i1
  %45 = xor i1 %44, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br i1 %45, label %46, label %91

46:                                               ; preds = %40
  %47 = call ptr @_ZTW15__testInterface()
  %48 = getelementptr inbounds %class.TestInterface, ptr %47, i32 0, i32 1
  %49 = load i8, ptr %48, align 8, !tbaa !17, !range !15, !noundef !16
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %84

51:                                               ; preds = %46
  br label %84

52:                                               ; preds = %0
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %3, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %4, align 4
  br label %164

56:                                               ; preds = %26
  %57 = landingpad { ptr, i32 }
          cleanup
  %58 = extractvalue { ptr, i32 } %57, 0
  store ptr %58, ptr %3, align 8
  %59 = extractvalue { ptr, i32 } %57, 1
  store i32 %59, ptr %4, align 4
  br label %163

60:                                               ; preds = %28
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %3, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %4, align 4
  br label %162

64:                                               ; preds = %30
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %3, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %4, align 4
  br label %161

68:                                               ; preds = %31
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %3, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %4, align 4
  br label %160

72:                                               ; preds = %32
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %3, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %4, align 4
  br label %159

76:                                               ; preds = %153, %148, %122, %117, %91, %86, %34
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %3, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %4, align 4
  br label %158

80:                                               ; preds = %39, %38, %37
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %3, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %17) #7
  br label %158

84:                                               ; preds = %51, %46
  %85 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %85, i32 noundef 177, ptr noundef @.str.3)
          to label %86 unwind label %87

86:                                               ; preds = %84
  invoke void @__cxa_throw(ptr %85, ptr @_ZTI14AssertionError, ptr null) #8
          to label %170 unwind label %76

87:                                               ; preds = %84
  %88 = landingpad { ptr, i32 }
          cleanup
  %89 = extractvalue { ptr, i32 } %88, 0
  store ptr %89, ptr %3, align 8
  %90 = extractvalue { ptr, i32 } %88, 1
  store i32 %90, ptr %4, align 4
  call void @__cxa_free_exception(ptr %85) #7
  br label %158

91:                                               ; preds = %40
  %92 = call ptr @_ZTW15__testInterface()
  invoke void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %92)
          to label %93 unwind label %76

93:                                               ; preds = %91
  br label %94

94:                                               ; preds = %93
  br label %95

95:                                               ; preds = %94
  br label %96

96:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  invoke void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %22, i32 noundef 178, double noundef 1.000000e-04)
          to label %97 unwind label %111

97:                                               ; preds = %96
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.10) align 8 %21, ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %98 unwind label %111

98:                                               ; preds = %97
  invoke void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %20, ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %99 unwind label %111

99:                                               ; preds = %98
  %100 = getelementptr inbounds %class.TolerantAssertComparer, ptr %20, i32 0, i32 1
  %101 = load ptr, ptr %100, align 8, !tbaa !9
  %102 = load i8, ptr %101, align 1, !tbaa !13, !range !15, !noundef !16
  %103 = trunc i8 %102 to i1
  %104 = xor i1 %103, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br i1 %104, label %105, label %122

105:                                              ; preds = %99
  %106 = call ptr @_ZTW15__testInterface()
  %107 = getelementptr inbounds %class.TestInterface, ptr %106, i32 0, i32 1
  %108 = load i8, ptr %107, align 8, !tbaa !17, !range !15, !noundef !16
  %109 = trunc i8 %108 to i1
  br i1 %109, label %110, label %115

110:                                              ; preds = %105
  br label %115

111:                                              ; preds = %98, %97, %96
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %3, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #7
  br label %158

115:                                              ; preds = %110, %105
  %116 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %116, i32 noundef 178, ptr noundef @.str.3)
          to label %117 unwind label %118

117:                                              ; preds = %115
  invoke void @__cxa_throw(ptr %116, ptr @_ZTI14AssertionError, ptr null) #8
          to label %170 unwind label %76

118:                                              ; preds = %115
  %119 = landingpad { ptr, i32 }
          cleanup
  %120 = extractvalue { ptr, i32 } %119, 0
  store ptr %120, ptr %3, align 8
  %121 = extractvalue { ptr, i32 } %119, 1
  store i32 %121, ptr %4, align 4
  call void @__cxa_free_exception(ptr %116) #7
  br label %158

122:                                              ; preds = %99
  %123 = call ptr @_ZTW15__testInterface()
  invoke void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %123)
          to label %124 unwind label %76

124:                                              ; preds = %122
  br label %125

125:                                              ; preds = %124
  br label %126

126:                                              ; preds = %125
  br label %127

127:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 24, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  invoke void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %25, i32 noundef 179, double noundef 1.000000e-04)
          to label %128 unwind label %142

128:                                              ; preds = %127
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.10) align 8 %24, ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %129 unwind label %142

129:                                              ; preds = %128
  invoke void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %23, ptr noundef nonnull align 8 dereferenceable(24) %24, ptr noundef nonnull align 8 dereferenceable(24) %16)
          to label %130 unwind label %142

130:                                              ; preds = %129
  %131 = getelementptr inbounds %class.TolerantAssertComparer, ptr %23, i32 0, i32 1
  %132 = load ptr, ptr %131, align 8, !tbaa !9
  %133 = load i8, ptr %132, align 1, !tbaa !13, !range !15, !noundef !16
  %134 = trunc i8 %133 to i1
  %135 = xor i1 %134, true
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br i1 %135, label %136, label %153

136:                                              ; preds = %130
  %137 = call ptr @_ZTW15__testInterface()
  %138 = getelementptr inbounds %class.TestInterface, ptr %137, i32 0, i32 1
  %139 = load i8, ptr %138, align 8, !tbaa !17, !range !15, !noundef !16
  %140 = trunc i8 %139 to i1
  br i1 %140, label %141, label %146

141:                                              ; preds = %136
  br label %146

142:                                              ; preds = %129, %128, %127
  %143 = landingpad { ptr, i32 }
          cleanup
  %144 = extractvalue { ptr, i32 } %143, 0
  store ptr %144, ptr %3, align 8
  %145 = extractvalue { ptr, i32 } %143, 1
  store i32 %145, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %23) #7
  br label %158

146:                                              ; preds = %141, %136
  %147 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %147, i32 noundef 179, ptr noundef @.str.3)
          to label %148 unwind label %149

148:                                              ; preds = %146
  invoke void @__cxa_throw(ptr %147, ptr @_ZTI14AssertionError, ptr null) #8
          to label %170 unwind label %76

149:                                              ; preds = %146
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %3, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %4, align 4
  call void @__cxa_free_exception(ptr %147) #7
  br label %158

153:                                              ; preds = %130
  %154 = call ptr @_ZTW15__testInterface()
  invoke void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %154)
          to label %155 unwind label %76

155:                                              ; preds = %153
  br label %156

156:                                              ; preds = %155
  br label %157

157:                                              ; preds = %156
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #7
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #7
  ret void

158:                                              ; preds = %149, %142, %118, %111, %87, %80, %76
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #7
  br label %159

159:                                              ; preds = %158, %72
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  br label %160

160:                                              ; preds = %159, %68
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  br label %161

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

162:                                              ; preds = %161, %60
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #7
  br label %163

163:                                              ; preds = %162, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %164

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

165:                                              ; preds = %164
  %166 = load ptr, ptr %3, align 8
  %167 = load i32, ptr %4, align 4
  %168 = insertvalue { ptr, i32 } poison, ptr %166, 0
  %169 = insertvalue { ptr, i32 } %168, i32 %167, 1
  resume { ptr, i32 } %169

170:                                              ; preds = %148, %117, %86
  unreachable
}

declare void @_ZN3P3D12ShapeLibrary10createCubeEf(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8, float noundef) #2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTS22TolerantAssertComparerIbdE", !11, i64 0, !12, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}
!17 = !{!18, !14, i64 8}
!18 = !{!"_ZTS13TestInterface", !19, i64 0, !14, i64 8}
!19 = !{!"long", !7, i64 0}


; 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::SymmetricMatrix" = type { [6 x double] }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%class.TolerantAssertComparer.10 = type { i32, ptr, double }
%class.TolerantAssertComparer = type { i32, ptr, double }
%"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 }
%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

; 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 i32 @__gxx_personality_v0(...)

; 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

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

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

declare void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12), i32 noundef, ptr noundef) unnamed_addr #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 #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z25translatedAngularMomentumv() local_unnamed_addr #6 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Polyhedron", align 8
  %2 = alloca %"class.P3D::SymmetricMatrix", align 8
  %3 = alloca double, align 8
  %4 = alloca %"struct.P3D::Vector", align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"class.P3D::SymmetricMatrix", align 8
  %7 = alloca %"struct.P3D::Vector", align 8
  %8 = alloca %"struct.P3D::Vector", align 8
  %9 = alloca %"struct.P3D::Vector", align 8
  %10 = alloca %"struct.P3D::Vector", align 8
  %11 = alloca %"struct.P3D::Vector", align 8
  %12 = alloca %"struct.P3D::Vector", align 8
  %13 = alloca %"struct.P3D::Vector", align 8
  %14 = alloca %"struct.P3D::Vector", align 8
  %15 = alloca %class.TolerantAssertComparer, align 8
  %16 = alloca %class.TolerantAssertComparer.10, align 8
  %17 = alloca %struct.TolerantAssertBuilder, align 8
  %18 = alloca %class.TolerantAssertComparer, align 8
  %19 = alloca %class.TolerantAssertComparer.10, align 8
  %20 = alloca %struct.TolerantAssertBuilder, align 8
  %21 = alloca %class.TolerantAssertComparer, align 8
  %22 = alloca %class.TolerantAssertComparer.10, align 8
  %23 = alloca %struct.TolerantAssertBuilder, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #7
  call void @_ZN3P3D12ShapeLibrary10createCubeEf(ptr dead_on_unwind nonnull writable sret(%"class.P3D::Polyhedron") align 8 %1, float noundef 1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #7
  invoke void @_ZNK3P3D10Polyhedron28getInertiaAroundCenterOfMassEv(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %24 unwind label %42

24:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  %25 = invoke noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %26 unwind label %44

26:                                               ; preds = %24
  store double %25, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #7
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %4, double noundef 1.300000e+00, double noundef 0x3FE6666666666666, double noundef -2.100000e+00) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #7
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef 3.200000e+00, double noundef 1.300000e+00, double noundef -2.100000e+00) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #7
  invoke void @_ZN3P3D38getTranslatedInertiaAroundCenterOfMassERKNS_15SymmetricMatrixIdLm3EEEdRKNS_6VectorIdLm3EEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %6, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %25, ptr noundef nonnull align 8 dereferenceable(24) %4)
          to label %27 unwind label %46

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  invoke void @_ZN3P3DmlIdLm3EEENS_6VectorIT_XT0_EEERKNS_15SymmetricMatrixIS2_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %7, ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %28 unwind label %48

28:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #7
  invoke void @_ZN3P3DmlIdLm3EEENS_6VectorIT_XT0_EEERKNS_15SymmetricMatrixIS2_XT0_EEERKS3_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %8, ptr noundef nonnull align 8 dereferenceable(48) %2, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %29 unwind label %50

29:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #7
  call void @_ZN3P3DrmIddEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(24) %4) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #7
  call void @_ZN3P3DrmIddEENS_6VectorIDTmimlixfp_Li1Eixfp0_Li2Emlixfp_Li2Eixfp0_Li1EELm3EEERKNS1_IT_Lm3EEERKNS1_IT0_Lm3EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %11, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %9) #7
  call void @_ZN3P3DmlIddLm3EEENS_6VectorIDTmlixfp_Li0Efp0_EXT1_EEERKNS1_IT_XT1_EEERKT0_(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %12) #7
  call void @_ZN3P3DplIddLm3EEENS_6VectorIDTplixfp_Li0Eixfp0_Li0EEXT1_EEERKNS1_IT_XT1_EEERKNS1_IT0_XT1_EEE(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %12, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %13) #7
  %30 = load double, ptr %3, align 8, !tbaa !5
  call void @_ZN3P3D40getAngularMomentumFromOffsetOnlyVelocityERKNS_6VectorIdLm3EEES3_d(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %9, double noundef %30)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %14) #7
  %31 = load double, ptr %3, align 8, !tbaa !5
  invoke void @_ZN3P3D28getAngularMomentumFromOffsetERKNS_6VectorIdLm3EEES3_S3_RKNS_15SymmetricMatrixIdLm3EEEd(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::Vector") align 8 %14, ptr noundef nonnull align 8 dereferenceable(24) %4, ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 8 dereferenceable(24) %5, ptr noundef nonnull align 8 dereferenceable(48) %2, double noundef %31)
          to label %32 unwind label %52

32:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %17) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %17, i32 noundef 177, double noundef 1.000000e-04)
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.10) align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %17, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %33 unwind label %54

33:                                               ; preds = %32
  invoke void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %15, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %34 unwind label %54

34:                                               ; preds = %33
  %35 = getelementptr inbounds i8, ptr %15, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !9
  %37 = load i8, ptr %36, align 1, !tbaa !13, !range !15, !noundef !16
  %38 = trunc nuw i8 %37 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  %39 = call ptr @_ZTW15__testInterface()
  br i1 %38, label %58, label %40

40:                                               ; preds = %34
  %41 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %41, i32 noundef 177, ptr noundef nonnull @.str.3)
          to label %.invoke unwind label %56

42:                                               ; preds = %0
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %93

44:                                               ; preds = %24
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %92

46:                                               ; preds = %26
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %91

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

50:                                               ; preds = %28
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %89

52:                                               ; preds = %.invoke, %29
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %88

54:                                               ; preds = %33, %32
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %15) #7
  br label %88

56:                                               ; preds = %40
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %41) #7
  br label %88

58:                                               ; preds = %34
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %39)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %19) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %20, i32 noundef 178, double noundef 1.000000e-04)
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.10) align 8 %19, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %59 unwind label %68

59:                                               ; preds = %58
  invoke void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %18, ptr noundef nonnull align 8 dereferenceable(24) %19, ptr noundef nonnull align 8 dereferenceable(24) %13)
          to label %60 unwind label %68

60:                                               ; preds = %59
  %61 = getelementptr inbounds i8, ptr %18, i64 8
  %62 = load ptr, ptr %61, align 8, !tbaa !9
  %63 = load i8, ptr %62, align 1, !tbaa !13, !range !15, !noundef !16
  %64 = trunc nuw i8 %63 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  %65 = call ptr @_ZTW15__testInterface()
  br i1 %64, label %72, label %66

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

68:                                               ; preds = %59, %58
  %69 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #7
  br label %88

70:                                               ; preds = %66
  %71 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %67) #7
  br label %88

72:                                               ; preds = %60
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %65)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %21) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %23) #7
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %23, i32 noundef 179, double noundef 1.000000e-04)
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D6VectorIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.10) align 8 %22, ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %73 unwind label %82

73:                                               ; preds = %72
  invoke void @_ZNK22TolerantAssertComparerIN3P3D6VectorIdLm3EEEdEeqIS2_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(24) %14)
          to label %74 unwind label %82

74:                                               ; preds = %73
  %75 = getelementptr inbounds i8, ptr %21, i64 8
  %76 = load ptr, ptr %75, align 8, !tbaa !9
  %77 = load i8, ptr %76, align 1, !tbaa !13, !range !15, !noundef !16
  %78 = trunc nuw i8 %77 to i1
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #7
  %79 = call ptr @_ZTW15__testInterface()
  br i1 %78, label %87, label %80

80:                                               ; preds = %74
  %81 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %81, i32 noundef 179, ptr noundef nonnull @.str.3)
          to label %.invoke unwind label %85

82:                                               ; preds = %73, %72
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %23) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %22) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %21) #7
  br label %88

.invoke:                                          ; preds = %80, %66, %40
  %84 = phi ptr [ %41, %40 ], [ %67, %66 ], [ %81, %80 ]
  invoke void @__cxa_throw(ptr nonnull %84, ptr nonnull @_ZTI14AssertionError, ptr null) #8
          to label %.cont unwind label %52

.cont:                                            ; preds = %.invoke
  unreachable

85:                                               ; preds = %80
  %86 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %81) #7
  br label %88

87:                                               ; preds = %74
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %79)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #7
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  ret void

88:                                               ; preds = %85, %82, %70, %68, %56, %54, %52
  %.pn = phi { ptr, i32 } [ %53, %52 ], [ %57, %56 ], [ %71, %70 ], [ %86, %85 ], [ %83, %82 ], [ %69, %68 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %13) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #7
  br label %89

89:                                               ; preds = %88, %50
  %.pn.pn = phi { ptr, i32 } [ %.pn, %88 ], [ %51, %50 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #7
  br label %90

90:                                               ; preds = %89, %48
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %89 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  br label %91

91:                                               ; preds = %90, %46
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %90 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #7
  br label %92

92:                                               ; preds = %91, %44
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %91 ], [ %45, %44 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  br label %93

93:                                               ; preds = %92, %42
  %.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %92 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #7
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #7
  resume { ptr, i32 } %.pn.pn.pn.pn.pn.pn
}

declare void @_ZN3P3D12ShapeLibrary10createCubeEf(ptr dead_on_unwind writable sret(%"class.P3D::Polyhedron") align 8, float noundef) local_unnamed_addr #2

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 8}
!10 = !{!"_ZTS22TolerantAssertComparerIbdE", !11, i64 0, !12, i64 8, !6, i64 16}
!11 = !{!"int", !7, i64 0}
!12 = !{!"any pointer", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = !{i8 0, i8 2}
!16 = !{}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass