; LLVM IR from ThePhysicsGuys/Physics3D :: tests/estimationTests.ll (Z20inertiaApproximationv)

; 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 }
%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"struct.P3D::Vector.1" = type { %union.anon.2 }
%union.anon.2 = type { [3 x float] }
%"class.std::initializer_list" = type { ptr, i64 }
%class.TolerantAssertComparer = type { i32, ptr, double }
%class.TolerantAssertComparer.6 = type { i32, ptr, double }
%struct.TolerantAssertBuilder = type { i32, double }
%"struct.P3D::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }
%struct.anon = type { double, double, double }
%class.TestInterface = type <{ i64, i8, [7 x i8] }>

@_ZN3P3D12ShapeLibrary5houseE = external global %"class.P3D::Polyhedron", align 8
@.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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D10PolyhedronC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_ZNK3P3D10Polyhedron13containsPointENS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float) #2

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

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20inertiaApproximationv() #8 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Polyhedron", align 8
  %2 = alloca %"struct.P3D::BoundingBoxTemplate", align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca %"class.P3D::SymmetricMatrix", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca %"struct.P3D::Vector.1", align 4
  %19 = alloca %"struct.P3D::Vector", align 8
  %20 = alloca { <2 x float>, float }, align 8
  %21 = alloca { <2 x float>, float }, align 4
  %22 = alloca %"class.P3D::SymmetricMatrix", align 8
  %23 = alloca %"class.std::initializer_list", align 8
  %24 = alloca [6 x double], align 8
  %25 = alloca %"class.P3D::SymmetricMatrix", align 8
  %26 = alloca double, align 8
  %27 = alloca %class.TolerantAssertComparer, align 8
  %28 = alloca %class.TolerantAssertComparer.6, align 8
  %29 = alloca %struct.TolerantAssertBuilder, align 8
  %30 = alloca %"class.P3D::SymmetricMatrix", align 8
  %31 = alloca %"struct.P3D::CFrameTemplate", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr %1) #10
  call void @_ZN3P3D10PolyhedronC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary5houseE)
  call void @llvm.lifetime.start.p0(i64 48, ptr %2) #10
  invoke void @_ZNK3P3D12TriangleMesh9getBoundsEv(ptr dead_on_unwind writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %32 unwind label %80

32:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #10
  store i32 100, ptr %5, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %33 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 1
  %34 = getelementptr inbounds %"struct.P3D::Vector", ptr %33, i32 0, i32 0
  %35 = getelementptr inbounds %struct.anon, ptr %34, i32 0, i32 0
  %36 = load double, ptr %35, align 8, !tbaa !9
  %37 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 0
  %38 = getelementptr inbounds %"struct.P3D::Vector", ptr %37, i32 0, i32 0
  %39 = getelementptr inbounds %struct.anon, ptr %38, i32 0, i32 0
  %40 = load double, ptr %39, align 8, !tbaa !9
  %41 = fsub double %36, %40
  %42 = load i32, ptr %5, align 4, !tbaa !5
  %43 = sitofp i32 %42 to double
  %44 = fdiv double %41, %43
  store double %44, ptr %6, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %45 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 1
  %46 = getelementptr inbounds %"struct.P3D::Vector", ptr %45, i32 0, i32 0
  %47 = getelementptr inbounds %struct.anon, ptr %46, i32 0, i32 1
  %48 = load double, ptr %47, align 8, !tbaa !9
  %49 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 0
  %50 = getelementptr inbounds %"struct.P3D::Vector", ptr %49, i32 0, i32 0
  %51 = getelementptr inbounds %struct.anon, ptr %50, i32 0, i32 1
  %52 = load double, ptr %51, align 8, !tbaa !9
  %53 = fsub double %48, %52
  %54 = load i32, ptr %5, align 4, !tbaa !5
  %55 = sitofp i32 %54 to double
  %56 = fdiv double %53, %55
  store double %56, ptr %7, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  %57 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 1
  %58 = getelementptr inbounds %"struct.P3D::Vector", ptr %57, i32 0, i32 0
  %59 = getelementptr inbounds %struct.anon, ptr %58, i32 0, i32 2
  %60 = load double, ptr %59, align 8, !tbaa !9
  %61 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 0
  %62 = getelementptr inbounds %"struct.P3D::Vector", ptr %61, i32 0, i32 0
  %63 = getelementptr inbounds %struct.anon, ptr %62, i32 0, i32 2
  %64 = load double, ptr %63, align 8, !tbaa !9
  %65 = fsub double %60, %64
  %66 = load i32, ptr %5, align 4, !tbaa !5
  %67 = sitofp i32 %66 to double
  %68 = fdiv double %65, %67
  store double %68, ptr %8, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #10
  %69 = load double, ptr %6, align 8, !tbaa !10
  %70 = load double, ptr %7, align 8, !tbaa !10
  %71 = fmul double %69, %70
  %72 = load double, ptr %8, align 8, !tbaa !10
  %73 = fmul double %71, %72
  store double %73, ptr %9, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #10
  invoke void @_ZN3P3D15SymmetricMatrixIdLm3EE5ZEROSEv(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %10)
          to label %74 unwind label %84

74:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #10
  store i32 0, ptr %11, align 4, !tbaa !5
  br label %75

75:                                               ; preds = %211, %74
  %76 = load i32, ptr %11, align 4, !tbaa !5
  %77 = load i32, ptr %5, align 4, !tbaa !5
  %78 = icmp slt i32 %76, %77
  br i1 %78, label %88, label %79

79:                                               ; preds = %75
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %214

80:                                               ; preds = %0
  %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
  br label %265

84:                                               ; preds = %32
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %3, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %4, align 4
  br label %264

88:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #10
  store i32 0, ptr %13, align 4, !tbaa !5
  br label %89

89:                                               ; preds = %207, %88
  %90 = load i32, ptr %13, align 4, !tbaa !5
  %91 = load i32, ptr %5, align 4, !tbaa !5
  %92 = icmp slt i32 %90, %91
  br i1 %92, label %94, label %93

93:                                               ; preds = %89
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  br label %210

94:                                               ; preds = %89
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #10
  store i32 0, ptr %14, align 4, !tbaa !5
  br label %95

95:                                               ; preds = %202, %94
  %96 = load i32, ptr %14, align 4, !tbaa !5
  %97 = load i32, ptr %5, align 4, !tbaa !5
  %98 = icmp slt i32 %96, %97
  br i1 %98, label %100, label %99

99:                                               ; preds = %95
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  br label %206

100:                                              ; preds = %95
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #10
  %101 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 0
  %102 = getelementptr inbounds %"struct.P3D::Vector", ptr %101, i32 0, i32 0
  %103 = getelementptr inbounds %struct.anon, ptr %102, i32 0, i32 0
  %104 = load double, ptr %103, align 8, !tbaa !9
  %105 = load double, ptr %6, align 8, !tbaa !10
  %106 = load i32, ptr %11, align 4, !tbaa !5
  %107 = sitofp i32 %106 to double
  %108 = call double @llvm.fmuladd.f64(double %105, double %107, double %104)
  %109 = load double, ptr %6, align 8, !tbaa !10
  %110 = fdiv double %109, 2.000000e+00
  %111 = fadd double %108, %110
  store double %111, ptr %15, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  %112 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 0
  %113 = getelementptr inbounds %"struct.P3D::Vector", ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds %struct.anon, ptr %113, i32 0, i32 1
  %115 = load double, ptr %114, align 8, !tbaa !9
  %116 = load double, ptr %7, align 8, !tbaa !10
  %117 = load i32, ptr %13, align 4, !tbaa !5
  %118 = sitofp i32 %117 to double
  %119 = call double @llvm.fmuladd.f64(double %116, double %118, double %115)
  %120 = load double, ptr %7, align 8, !tbaa !10
  %121 = fdiv double %120, 2.000000e+00
  %122 = fadd double %119, %121
  store double %122, ptr %16, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %123 = getelementptr inbounds %"struct.P3D::BoundingBoxTemplate", ptr %2, i32 0, i32 0
  %124 = getelementptr inbounds %"struct.P3D::Vector", ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %struct.anon, ptr %124, i32 0, i32 2
  %126 = load double, ptr %125, align 8, !tbaa !9
  %127 = load double, ptr %8, align 8, !tbaa !10
  %128 = load i32, ptr %14, align 4, !tbaa !5
  %129 = sitofp i32 %128 to double
  %130 = call double @llvm.fmuladd.f64(double %127, double %129, double %126)
  %131 = load double, ptr %8, align 8, !tbaa !10
  %132 = fdiv double %131, 2.000000e+00
  %133 = fadd double %130, %132
  store double %133, ptr %17, align 8, !tbaa !10
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #10
  %134 = load double, ptr %15, align 8, !tbaa !10
  %135 = load double, ptr %16, align 8, !tbaa !10
  %136 = load double, ptr %17, align 8, !tbaa !10
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %19, double noundef %134, double noundef %135, double noundef %136) #10
  %137 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %19) #10
  %138 = getelementptr inbounds %"struct.P3D::Vector.1", ptr %18, i32 0, i32 0
  %139 = getelementptr inbounds %union.anon.2, ptr %138, i32 0, i32 0
  store { <2 x float>, float } %137, ptr %20, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %139, ptr align 8 %20, i64 12, i1 false)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 %18, i64 12, i1 false)
  %140 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 0
  %141 = load <2 x float>, ptr %140, align 4
  %142 = getelementptr inbounds { <2 x float>, float }, ptr %21, i32 0, i32 1
  %143 = load float, ptr %142, align 4
  %144 = invoke noundef zeroext i1 @_ZNK3P3D10Polyhedron13containsPointENS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(24) %1, <2 x float> %141, float %143)
          to label %145 unwind label %188

145:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #10
  br i1 %144, label %146, label %201

146:                                              ; preds = %145
  call void @llvm.lifetime.start.p0(i64 48, ptr %22) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %24) #10
  %147 = load double, ptr %16, align 8, !tbaa !10
  %148 = load double, ptr %16, align 8, !tbaa !10
  %149 = load double, ptr %17, align 8, !tbaa !10
  %150 = load double, ptr %17, align 8, !tbaa !10
  %151 = fmul double %149, %150
  %152 = call double @llvm.fmuladd.f64(double %147, double %148, double %151)
  store double %152, ptr %24, align 8, !tbaa !10
  %153 = getelementptr inbounds double, ptr %24, i64 1
  %154 = load double, ptr %15, align 8, !tbaa !10
  %155 = fneg double %154
  %156 = load double, ptr %16, align 8, !tbaa !10
  %157 = fmul double %155, %156
  store double %157, ptr %153, align 8, !tbaa !10
  %158 = getelementptr inbounds double, ptr %24, i64 2
  %159 = load double, ptr %15, align 8, !tbaa !10
  %160 = load double, ptr %15, align 8, !tbaa !10
  %161 = load double, ptr %17, align 8, !tbaa !10
  %162 = load double, ptr %17, align 8, !tbaa !10
  %163 = fmul double %161, %162
  %164 = call double @llvm.fmuladd.f64(double %159, double %160, double %163)
  store double %164, ptr %158, align 8, !tbaa !10
  %165 = getelementptr inbounds double, ptr %24, i64 3
  %166 = load double, ptr %15, align 8, !tbaa !10
  %167 = fneg double %166
  %168 = load double, ptr %17, align 8, !tbaa !10
  %169 = fmul double %167, %168
  store double %169, ptr %165, align 8, !tbaa !10
  %170 = getelementptr inbounds double, ptr %24, i64 4
  %171 = load double, ptr %16, align 8, !tbaa !10
  %172 = fneg double %171
  %173 = load double, ptr %17, align 8, !tbaa !10
  %174 = fmul double %172, %173
  store double %174, ptr %170, align 8, !tbaa !10
  %175 = getelementptr inbounds double, ptr %24, i64 5
  %176 = load double, ptr %15, align 8, !tbaa !10
  %177 = load double, ptr %15, align 8, !tbaa !10
  %178 = load double, ptr %16, align 8, !tbaa !10
  %179 = load double, ptr %16, align 8, !tbaa !10
  %180 = fmul double %178, %179
  %181 = call double @llvm.fmuladd.f64(double %176, double %177, double %180)
  store double %181, ptr %175, align 8, !tbaa !10
  %182 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 0
  store ptr %24, ptr %182, align 8, !tbaa !12
  %183 = getelementptr inbounds %"class.std::initializer_list", ptr %23, i32 0, i32 1
  store i64 6, ptr %183, align 8, !tbaa !16
  invoke void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(16) %23)
          to label %184 unwind label %192

184:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr %25) #10
  invoke void @_ZN3P3DmlIdLm3EEENS_15SymmetricMatrixIT_XT0_EEERKS3_RKS2_(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %25, ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %185 unwind label %196

185:                                              ; preds = %184
  %186 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN3P3DpLIdLm3EEERNS_15SymmetricMatrixIT_XT0_EEES4_RKS3_(ptr noundef nonnull align 8 dereferenceable(48) %10, ptr noundef nonnull align 8 dereferenceable(48) %25)
          to label %187 unwind label %196

187:                                              ; preds = %185
  call void @llvm.lifetime.end.p0(i64 48, ptr %25) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #10
  br label %201

188:                                              ; preds = %100
  %189 = landingpad { ptr, i32 }
          cleanup
  %190 = extractvalue { ptr, i32 } %189, 0
  store ptr %190, ptr %3, align 8
  %191 = extractvalue { ptr, i32 } %189, 1
  store i32 %191, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #10
  br label %205

192:                                              ; preds = %146
  %193 = landingpad { ptr, i32 }
          cleanup
  %194 = extractvalue { ptr, i32 } %193, 0
  store ptr %194, ptr %3, align 8
  %195 = extractvalue { ptr, i32 } %193, 1
  store i32 %195, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #10
  br label %200

196:                                              ; preds = %185, %184
  %197 = landingpad { ptr, i32 }
          cleanup
  %198 = extractvalue { ptr, i32 } %197, 0
  store ptr %198, ptr %3, align 8
  %199 = extractvalue { ptr, i32 } %197, 1
  store i32 %199, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %25) #10
  br label %200

200:                                              ; preds = %196, %192
  call void @llvm.lifetime.end.p0(i64 48, ptr %22) #10
  br label %205

201:                                              ; preds = %187, %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  br label %202

202:                                              ; preds = %201
  %203 = load i32, ptr %14, align 4, !tbaa !5
  %204 = add nsw i32 %203, 1
  store i32 %204, ptr %14, align 4, !tbaa !5
  br label %95, !llvm.loop !17

205:                                              ; preds = %200, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #10
  br label %264

206:                                              ; preds = %99
  br label %207

207:                                              ; preds = %206
  %208 = load i32, ptr %13, align 4, !tbaa !5
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %13, align 4, !tbaa !5
  br label %89, !llvm.loop !19

210:                                              ; preds = %93
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %11, align 4, !tbaa !5
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %11, align 4, !tbaa !5
  br label %75, !llvm.loop !20

214:                                              ; preds = %79
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #10
  %215 = invoke noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %216 unwind label %238

216:                                              ; preds = %214
  store double %215, ptr %26, align 8, !tbaa !10
  br label %217

217:                                              ; preds = %216
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %29) #10
  %218 = load double, ptr %26, align 8, !tbaa !10
  %219 = load double, ptr %26, align 8, !tbaa !10
  %220 = fmul double %218, %219
  %221 = fmul double %220, 1.000000e-03
  invoke void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %29, i32 noundef 112, double noundef %221)
          to label %222 unwind label %242

222:                                              ; preds = %217
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer.6) align 8 %28, ptr noundef nonnull align 8 dereferenceable(16) %29, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %223 unwind label %242

223:                                              ; preds = %222
  call void @llvm.lifetime.start.p0(i64 48, ptr %30) #10
  call void @llvm.lifetime.start.p0(i64 96, ptr %31) #10
  invoke void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %31)
          to label %224 unwind label %246

224:                                              ; preds = %223
  invoke void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind writable sret(%"class.P3D::SymmetricMatrix") align 8 %30, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %31)
          to label %225 unwind label %246

225:                                              ; preds = %224
  invoke void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind writable sret(%class.TolerantAssertComparer) align 8 %27, ptr noundef nonnull align 8 dereferenceable(24) %28, ptr noundef nonnull align 8 dereferenceable(48) %30)
          to label %226 unwind label %246

226:                                              ; preds = %225
  %227 = getelementptr inbounds %class.TolerantAssertComparer, ptr %27, i32 0, i32 1
  %228 = load ptr, ptr %227, align 8, !tbaa !21
  %229 = load i8, ptr %228, align 1, !tbaa !23, !range !25, !noundef !26
  %230 = trunc i8 %229 to i1
  %231 = xor i1 %230, true
  call void @llvm.lifetime.end.p0(i64 96, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  br i1 %231, label %232, label %258

232:                                              ; preds = %226
  %233 = call ptr @_ZTW15__testInterface()
  %234 = getelementptr inbounds %class.TestInterface, ptr %233, i32 0, i32 1
  %235 = load i8, ptr %234, align 8, !tbaa !27, !range !25, !noundef !26
  %236 = trunc i8 %235 to i1
  br i1 %236, label %237, label %251

237:                                              ; preds = %232
  br label %251

238:                                              ; preds = %258, %253, %214
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %3, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %4, align 4
  br label %263

242:                                              ; preds = %222, %217
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %3, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %4, align 4
  br label %250

246:                                              ; preds = %225, %224, %223
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %3, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 96, ptr %31) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %30) #10
  br label %250

250:                                              ; preds = %246, %242
  call void @llvm.lifetime.end.p0(i64 16, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %28) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #10
  br label %263

251:                                              ; preds = %237, %232
  %252 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %252, i32 noundef 112, ptr noundef @.str.3)
          to label %253 unwind label %254

253:                                              ; preds = %251
  invoke void @__cxa_throw(ptr %252, ptr @_ZTI14AssertionError, ptr null) #11
          to label %271 unwind label %238

254:                                              ; preds = %251
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %3, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %4, align 4
  call void @__cxa_free_exception(ptr %252) #10
  br label %263

258:                                              ; preds = %226
  %259 = call ptr @_ZTW15__testInterface()
  invoke void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %259)
          to label %260 unwind label %238

260:                                              ; preds = %258
  br label %261

261:                                              ; preds = %260
  br label %262

262:                                              ; preds = %261
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #10
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #10
  ret void

263:                                              ; preds = %254, %250, %238
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #10
  br label %264

264:                                              ; preds = %263, %205, %84
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #10
  br label %265

265:                                              ; preds = %264, %80
  call void @llvm.lifetime.end.p0(i64 48, ptr %2) #10
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr %1) #10
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %3, align 8
  %268 = load i32, ptr %4, align 4
  %269 = insertvalue { ptr, i32 } poison, ptr %267, 0
  %270 = insertvalue { ptr, i32 } %269, i32 %268, 1
  resume { ptr, i32 } %270

271:                                              ; preds = %253
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D15SymmetricMatrixIdLm3EE5ZEROSEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8) #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3P3DpLIdLm3EEERNS_15SymmetricMatrixIT_XT0_EEES4_RKS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #4

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3P3DmlIdLm3EEENS_15SymmetricMatrixIT_XT0_EEERKS3_RKS2_(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(8)) #9

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #7 = { 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 #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 = { 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 #10 = { nounwind }
attributes #11 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !11, i64 0}
!11 = !{!"double", !7, i64 0}
!12 = !{!13, !14, i64 0}
!13 = !{!"_ZTSSt16initializer_listIdE", !14, i64 0, !15, i64 8}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!13, !15, i64 8}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}
!20 = distinct !{!20, !18}
!21 = !{!22, !14, i64 8}
!22 = !{!"_ZTS22TolerantAssertComparerIbdE", !6, i64 0, !14, i64 8, !11, i64 16}
!23 = !{!24, !24, i64 0}
!24 = !{!"bool", !7, i64 0}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!28, !24, i64 8}
!28 = !{!"_ZTS13TestInterface", !15, i64 0, !24, i64 8}


; 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 }
%"struct.P3D::BoundingBoxTemplate" = type { %"struct.P3D::Vector", %"struct.P3D::Vector" }
%"struct.P3D::Vector" = type { %union.anon }
%union.anon = type { [3 x double] }
%"class.P3D::SymmetricMatrix" = type { [6 x double] }
%"class.std::initializer_list" = type { ptr, i64 }
%class.TolerantAssertComparer = type { i32, ptr, double }
%class.TolerantAssertComparer.6 = type { i32, ptr, double }
%struct.TolerantAssertBuilder = type { i32, double }
%"struct.P3D::CFrameTemplate" = type { %"struct.P3D::Vector", %"class.P3D::MatrixRotationTemplate" }
%"class.P3D::MatrixRotationTemplate" = type { %"class.P3D::Matrix" }
%"class.P3D::Matrix" = type { [9 x double] }

@_ZN3P3D12ShapeLibrary5houseE = external global %"class.P3D::Polyhedron", align 8
@.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: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D10PolyhedronC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 align 2

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

declare i32 @__gxx_personality_v0(...)

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

declare noundef zeroext i1 @_ZNK3P3D10Polyhedron13containsPointENS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(24), <2 x float>, float) local_unnamed_addr #2

; 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 #4 align 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 #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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef, double noundef) unnamed_addr #4 align 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: mustprogress uwtable
define dso_local void @_Z20inertiaApproximationv() local_unnamed_addr #7 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.P3D::Polyhedron", align 8
  %2 = alloca %"struct.P3D::BoundingBoxTemplate", align 16
  %3 = alloca double, align 8
  %4 = alloca %"class.P3D::SymmetricMatrix", align 8
  %5 = alloca %"struct.P3D::Vector", align 8
  %6 = alloca %"class.P3D::SymmetricMatrix", align 8
  %7 = alloca %"class.std::initializer_list", align 8
  %8 = alloca [6 x double], align 8
  %9 = alloca %"class.P3D::SymmetricMatrix", align 8
  %10 = alloca %class.TolerantAssertComparer, align 8
  %11 = alloca %class.TolerantAssertComparer.6, align 8
  %12 = alloca %struct.TolerantAssertBuilder, align 8
  %13 = alloca %"class.P3D::SymmetricMatrix", align 8
  %14 = alloca %"struct.P3D::CFrameTemplate", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #10
  call void @_ZN3P3D10PolyhedronC2ERKS0_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) @_ZN3P3D12ShapeLibrary5houseE)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %2) #10
  invoke void @_ZNK3P3D12TriangleMesh9getBoundsEv(ptr dead_on_unwind nonnull writable sret(%"struct.P3D::BoundingBoxTemplate") align 8 %2, ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %15 unwind label %41

15:                                               ; preds = %0
  %16 = getelementptr inbounds i8, ptr %2, i64 24
  %17 = load <2 x double>, ptr %16, align 8, !tbaa !5
  %18 = load <2 x double>, ptr %2, align 16, !tbaa !5
  %19 = fsub <2 x double> %17, %18
  %20 = fdiv <2 x double> %19, <double 1.000000e+02, double 1.000000e+02>
  %21 = getelementptr inbounds i8, ptr %2, i64 40
  %22 = load double, ptr %21, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %2, i64 16
  %24 = load double, ptr %23, align 16, !tbaa !5
  %25 = fsub double %22, %24
  %26 = fdiv double %25, 1.000000e+02
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %shift = shufflevector <2 x double> %20, <2 x double> poison, <2 x i32> <i32 1, i32 poison>
  %27 = fmul <2 x double> %20, %shift
  %28 = extractelement <2 x double> %27, i64 0
  %29 = fmul double %28, %26
  store double %29, ptr %3, align 8, !tbaa !8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #10
  invoke void @_ZN3P3D15SymmetricMatrixIdLm3EE5ZEROSEv(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %4)
          to label %.preheader68 unwind label %43

.preheader68:                                     ; preds = %15
  %30 = fmul <2 x double> %20, <double 5.000000e-01, double 5.000000e-01>
  %31 = fmul double %26, 5.000000e-01
  %32 = getelementptr inbounds i8, ptr %8, i64 8
  %33 = getelementptr inbounds i8, ptr %8, i64 16
  %34 = getelementptr inbounds i8, ptr %8, i64 24
  %35 = getelementptr inbounds i8, ptr %8, i64 40
  %36 = getelementptr inbounds i8, ptr %7, i64 8
  br label %.preheader67

.preheader67:                                     ; preds = %.preheader68, %47
  %.05771 = phi i32 [ 0, %.preheader68 ], [ %48, %47 ]
  %37 = uitofp nneg i32 %.05771 to double
  %38 = insertelement <2 x double> poison, double %37, i64 0
  br label %.preheader

39:                                               ; preds = %47
  %40 = invoke noundef double @_ZNK3P3D10Polyhedron9getVolumeEv(ptr noundef nonnull align 8 dereferenceable(24) %1)
          to label %84 unwind label %98

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

43:                                               ; preds = %15
  %44 = landingpad { ptr, i32 }
          cleanup
  br label %109

.preheader:                                       ; preds = %.preheader67, %49
  %.05870 = phi i32 [ 0, %.preheader67 ], [ %50, %49 ]
  %45 = uitofp nneg i32 %.05870 to double
  %46 = insertelement <2 x double> %38, double %45, i64 1
  br label %51

47:                                               ; preds = %49
  %48 = add nuw nsw i32 %.05771, 1
  %exitcond73.not = icmp eq i32 %48, 100
  br i1 %exitcond73.not, label %39, label %.preheader67, !llvm.loop !10

49:                                               ; preds = %82
  %50 = add nuw nsw i32 %.05870, 1
  %exitcond72.not = icmp eq i32 %50, 100
  br i1 %exitcond72.not, label %47, label %.preheader, !llvm.loop !12

51:                                               ; preds = %.preheader, %82
  %.05969 = phi i32 [ 0, %.preheader ], [ %83, %82 ]
  %52 = load <2 x double>, ptr %2, align 16, !tbaa !5
  %53 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %20, <2 x double> %46, <2 x double> %52)
  %54 = fadd <2 x double> %30, %53
  %55 = load double, ptr %23, align 16, !tbaa !5
  %56 = uitofp nneg i32 %.05969 to double
  %57 = call double @llvm.fmuladd.f64(double %26, double %56, double %55)
  %58 = fadd double %31, %57
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #10
  %59 = extractelement <2 x double> %54, i64 0
  %60 = extractelement <2 x double> %54, i64 1
  call void @_ZN3P3D6VectorIdLm3EEC2Eddd(ptr noundef nonnull align 8 dereferenceable(24) %5, double noundef %59, double noundef %60, double noundef %58) #10
  %61 = call { <2 x float>, float } @_ZNK3P3D6VectorIdLm3EEcvNS0_IT_Lm3EEEIfEEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #10
  %.fca.0.extract = extractvalue { <2 x float>, float } %61, 0
  %.fca.1.extract = extractvalue { <2 x float>, float } %61, 1
  %62 = invoke noundef zeroext i1 @_ZNK3P3D10Polyhedron13containsPointENS_6VectorIfLm3EEE(ptr noundef nonnull align 8 dereferenceable(24) %1, <2 x float> %.fca.0.extract, float %.fca.1.extract)
          to label %63 unwind label %78

63:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  br i1 %62, label %64, label %82

64:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #10
  %65 = fmul double %58, %58
  %66 = call double @llvm.fmuladd.f64(double %60, double %60, double %65)
  store double %66, ptr %8, align 8, !tbaa !8
  %67 = fneg <2 x double> %54
  %68 = extractelement <2 x double> %67, i64 0
  %69 = fmul double %60, %68
  store double %69, ptr %32, align 8, !tbaa !8
  %70 = call double @llvm.fmuladd.f64(double %59, double %59, double %65)
  store double %70, ptr %33, align 8, !tbaa !8
  %71 = insertelement <2 x double> poison, double %58, i64 0
  %72 = shufflevector <2 x double> %71, <2 x double> poison, <2 x i32> zeroinitializer
  %73 = fmul <2 x double> %72, %67
  store <2 x double> %73, ptr %34, align 8, !tbaa !8
  %74 = fmul double %60, %60
  %75 = call double @llvm.fmuladd.f64(double %59, double %59, double %74)
  store double %75, ptr %35, align 8, !tbaa !8
  store ptr %8, ptr %7, align 8, !tbaa !13
  store i64 6, ptr %36, align 8, !tbaa !17
  call void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(16) %7)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %9) #10
  invoke void @_ZN3P3DmlIdLm3EEENS_15SymmetricMatrixIT_XT0_EEERKS3_RKS2_(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %9, ptr noundef nonnull align 8 dereferenceable(48) %6, ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %76 unwind label %80

76:                                               ; preds = %64
  %77 = call noundef nonnull align 8 dereferenceable(48) ptr @_ZN3P3DpLIdLm3EEERNS_15SymmetricMatrixIT_XT0_EEES4_RKS3_(ptr noundef nonnull align 8 dereferenceable(48) %4, ptr noundef nonnull align 8 dereferenceable(48) %9)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #10
  br label %82

78:                                               ; preds = %51
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #10
  br label %109

80:                                               ; preds = %64
  %81 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %9) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #10
  br label %109

82:                                               ; preds = %76, %63
  %83 = add nuw nsw i32 %.05969, 1
  %exitcond.not = icmp eq i32 %83, 100
  br i1 %exitcond.not, label %49, label %51, !llvm.loop !18

84:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #10
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  %85 = fmul double %40, %40
  %86 = fmul double %85, 1.000000e-03
  call void @_ZN21TolerantAssertBuilderIdEC2Eid(ptr noundef nonnull align 8 dereferenceable(16) %12, i32 noundef 112, double noundef %86)
  invoke void @_ZNK21TolerantAssertBuilderIdEltIN3P3D15SymmetricMatrixIdLm3EEEEE22TolerantAssertComparerIT_dERKS6_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer.6) align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(48) %4)
          to label %87 unwind label %100

87:                                               ; preds = %84
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 96, ptr nonnull %14) #10
  invoke void @_ZN3P3D14CFrameTemplateIdEC2Ev(ptr noundef nonnull align 8 dereferenceable(96) %14)
          to label %88 unwind label %102

88:                                               ; preds = %87
  invoke void @_ZNK3P3D10Polyhedron10getInertiaERKNS_14CFrameTemplateIdEE(ptr dead_on_unwind nonnull writable sret(%"class.P3D::SymmetricMatrix") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(96) %14)
          to label %89 unwind label %102

89:                                               ; preds = %88
  invoke void @_ZNK22TolerantAssertComparerIN3P3D15SymmetricMatrixIdLm3EEEdEeqIS2_EES_IbdERKT_(ptr dead_on_unwind nonnull writable sret(%class.TolerantAssertComparer) align 8 %10, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %90 unwind label %102

90:                                               ; preds = %89
  %91 = getelementptr inbounds i8, ptr %10, i64 8
  %92 = load ptr, ptr %91, align 8, !tbaa !19
  %93 = load i8, ptr %92, align 1, !tbaa !22, !range !24, !noundef !25
  %94 = trunc nuw i8 %93 to i1
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #10
  %95 = call ptr @_ZTW15__testInterface()
  br i1 %94, label %108, label %96

96:                                               ; preds = %90
  %97 = call ptr @__cxa_allocate_exception(i64 16) #10
  invoke void @_ZN14AssertionErrorC1EiPKc(ptr noundef nonnull align 8 dereferenceable(12) %97, i32 noundef 112, ptr noundef nonnull @.str.3)
          to label %105 unwind label %106

98:                                               ; preds = %105, %39
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %109

100:                                              ; preds = %84
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %104

102:                                              ; preds = %89, %88, %87
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 96, ptr nonnull %14) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %13) #10
  br label %104

104:                                              ; preds = %102, %100
  %.pn = phi { ptr, i32 } [ %103, %102 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #10
  br label %109

105:                                              ; preds = %96
  invoke void @__cxa_throw(ptr nonnull %97, ptr nonnull @_ZTI14AssertionError, ptr null) #11
          to label %111 unwind label %98

106:                                              ; preds = %96
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %97) #10
  br label %109

108:                                              ; preds = %90
  call void @_ZN13TestInterface10markAssertEv(ptr noundef nonnull align 8 dereferenceable(9) %95)
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %2) #10
  call void @_ZN3P3D13MeshPrototypeD2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #10
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #10
  ret void

109:                                              ; preds = %98, %104, %106, %78, %80, %43
  %.pn63.pn = phi { ptr, i32 } [ %44, %43 ], [ %81, %80 ], [ %79, %78 ], [ %99, %98 ], [ %107, %106 ], [ %.pn, %104 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  br label %110

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

111:                                              ; preds = %105
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3P3D15SymmetricMatrixIdLm3EE5ZEROSEv(ptr dead_on_unwind noalias writable sret(%"class.P3D::SymmetricMatrix") align 8) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3P3D15SymmetricMatrixIdLm3EEC2ERKSt16initializer_listIdE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #6 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN3P3DpLIdLm3EEERNS_15SymmetricMatrixIT_XT0_EEES4_RKS3_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #4

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #9

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,VectorCombinePass