; LLVM IR from atlantis13579/Riemann :: Src/CollisionPrimitive (ConvexMesh)

; 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.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }
%"struct.Riemann::ConvexHull3d" = type { %"class.std::vector.0", %"class.std::vector.5" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Maths::Matrix3" = type { [3 x [3 x float]] }
%"class.Riemann::ConvexMesh" = type { ptr, ptr, ptr, ptr, i16, i16, i16, i16, %"class.std::vector", %"class.Maths::TAABB3" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl" = type { %"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<char, std::allocator<char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::ConvexMeshFace" = type { %"class.Riemann::Plane3", i16, i8, i8 }
%"class.Riemann::Plane3" = type { %"class.Maths::TVector3", float }
%"struct.Riemann::HullFace3d" = type { %"class.Maths::TVector3", float, %"class.std::vector.10" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl" = type { %"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" }
%"struct.std::_Vector_base<short, std::allocator<short>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Riemann::MassParameters" = type { float, float, %"class.Maths::Matrix3", %"class.Maths::TVector3", %"class.Maths::TAABB3" }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann10ConvexMesh21ComputeBoundingVolumeEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TAABB3") align 4, ptr noundef nonnull align 8 dereferenceable(88)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann10ConvexMesh25CalculateVolumePropertiesEPNS_14MassParametersEf(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, float noundef %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca float, align 4
  %7 = alloca %"struct.Riemann::ConvexHull3d", align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i16, align 2
  %11 = alloca i16, align 2
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i8, align 1
  %16 = alloca float, align 4
  %17 = alloca float, align 4
  %18 = alloca %"class.Maths::TVector3", align 4
  %19 = alloca %"class.Maths::Matrix3", align 4
  %20 = alloca %"class.Maths::TAABB3", align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store float %2, ptr %6, align 4, !tbaa !9
  %21 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 48, ptr %7) #5
  call void @_ZN7Riemann12ConvexHull3dC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  %22 = getelementptr inbounds %"struct.Riemann::ConvexHull3d", ptr %7, i32 0, i32 1
  %23 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 6
  %24 = load i16, ptr %23, align 4, !tbaa !11
  %25 = zext i16 %24 to i64
  invoke void @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %25)
          to label %26 unwind label %40

26:                                               ; preds = %3
  %27 = getelementptr inbounds %"struct.Riemann::ConvexHull3d", ptr %7, i32 0, i32 0
  %28 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 4
  %29 = load i16, ptr %28, align 8, !tbaa !20
  %30 = zext i16 %29 to i64
  invoke void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %30)
          to label %31 unwind label %40

31:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 2, ptr %10) #5
  store i16 0, ptr %10, align 2, !tbaa !21
  br label %32

32:                                               ; preds = %56, %31
  %33 = load i16, ptr %10, align 2, !tbaa !21
  %34 = zext i16 %33 to i32
  %35 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 4
  %36 = load i16, ptr %35, align 8, !tbaa !20
  %37 = zext i16 %36 to i32
  %38 = icmp slt i32 %34, %37
  br i1 %38, label %44, label %39

39:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  br label %63

40:                                               ; preds = %26, %3
  %41 = landingpad { ptr, i32 }
          cleanup
  %42 = extractvalue { ptr, i32 } %41, 0
  store ptr %42, ptr %8, align 8
  %43 = extractvalue { ptr, i32 } %41, 1
  store i32 %43, ptr %9, align 4
  br label %177

44:                                               ; preds = %32
  %45 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 0
  %46 = load ptr, ptr %45, align 8, !tbaa !22
  %47 = load i16, ptr %10, align 2, !tbaa !21
  %48 = zext i16 %47 to i64
  %49 = getelementptr inbounds %"class.Maths::TVector3", ptr %46, i64 %48
  %50 = getelementptr inbounds %"struct.Riemann::ConvexHull3d", ptr %7, i32 0, i32 0
  %51 = load i16, ptr %10, align 2, !tbaa !21
  %52 = zext i16 %51 to i64
  %53 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %52) #5
  %54 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %53, ptr noundef nonnull align 4 dereferenceable(12) %49)
          to label %55 unwind label %59

55:                                               ; preds = %44
  br label %56

56:                                               ; preds = %55
  %57 = load i16, ptr %10, align 2, !tbaa !21
  %58 = add i16 %57, 1
  store i16 %58, ptr %10, align 2, !tbaa !21
  br label %32, !llvm.loop !23

59:                                               ; preds = %44
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %10) #5
  br label %177

63:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 2, ptr %11) #5
  store i16 0, ptr %11, align 2, !tbaa !21
  br label %64

64:                                               ; preds = %138, %63
  %65 = load i16, ptr %11, align 2, !tbaa !21
  %66 = zext i16 %65 to i32
  %67 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 6
  %68 = load i16, ptr %67, align 4, !tbaa !11
  %69 = zext i16 %68 to i32
  %70 = icmp slt i32 %66, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %64
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #5
  br label %141

72:                                               ; preds = %64
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %73 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 2
  %74 = load ptr, ptr %73, align 8, !tbaa !25
  %75 = load i16, ptr %11, align 2, !tbaa !21
  %76 = zext i16 %75 to i64
  %77 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %74, i64 %76
  store ptr %77, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %78 = getelementptr inbounds %"struct.Riemann::ConvexHull3d", ptr %7, i32 0, i32 1
  %79 = load i16, ptr %11, align 2, !tbaa !21
  %80 = zext i16 %79 to i64
  %81 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %80) #5
  store ptr %81, ptr %14, align 8, !tbaa !5
  %82 = load ptr, ptr %13, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %82, i32 0, i32 0
  %84 = getelementptr inbounds %"class.Riemann::Plane3", ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.Riemann::HullFace3d", ptr %85, i32 0, i32 0
  %87 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %86, ptr noundef nonnull align 4 dereferenceable(12) %84)
          to label %88 unwind label %111

88:                                               ; preds = %72
  %89 = load ptr, ptr %13, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %89, i32 0, i32 0
  %91 = getelementptr inbounds %"class.Riemann::Plane3", ptr %90, i32 0, i32 1
  %92 = load float, ptr %91, align 4, !tbaa !26
  %93 = load ptr, ptr %14, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.Riemann::HullFace3d", ptr %93, i32 0, i32 1
  store float %92, ptr %94, align 4, !tbaa !29
  %95 = load ptr, ptr %14, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.Riemann::HullFace3d", ptr %95, i32 0, i32 2
  %97 = load ptr, ptr %13, align 8, !tbaa !5
  %98 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %97, i32 0, i32 2
  %99 = load i8, ptr %98, align 2, !tbaa !35
  %100 = zext i8 %99 to i64
  invoke void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %100)
          to label %101 unwind label %111

101:                                              ; preds = %88
  call void @llvm.lifetime.start.p0(i64 1, ptr %15) #5
  store i8 0, ptr %15, align 1, !tbaa !36
  br label %102

102:                                              ; preds = %134, %101
  %103 = load i8, ptr %15, align 1, !tbaa !36
  %104 = zext i8 %103 to i32
  %105 = load ptr, ptr %13, align 8, !tbaa !5
  %106 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %105, i32 0, i32 2
  %107 = load i8, ptr %106, align 2, !tbaa !35
  %108 = zext i8 %107 to i32
  %109 = icmp slt i32 %104, %108
  br i1 %109, label %115, label %110

110:                                              ; preds = %102
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %15) #5
  br label %137

111:                                              ; preds = %88, %72
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %8, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 2, ptr %11) #5
  br label %177

115:                                              ; preds = %102
  %116 = getelementptr inbounds %"class.Riemann::ConvexMesh", ptr %21, i32 0, i32 3
  %117 = load ptr, ptr %116, align 8, !tbaa !37
  %118 = load ptr, ptr %13, align 8, !tbaa !5
  %119 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %118, i32 0, i32 1
  %120 = load i16, ptr %119, align 4, !tbaa !38
  %121 = zext i16 %120 to i32
  %122 = load i8, ptr %15, align 1, !tbaa !36
  %123 = zext i8 %122 to i32
  %124 = add nsw i32 %121, %123
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds i8, ptr %117, i64 %125
  %127 = load i8, ptr %126, align 1, !tbaa !36
  %128 = zext i8 %127 to i16
  %129 = load ptr, ptr %14, align 8, !tbaa !5
  %130 = getelementptr inbounds %"struct.Riemann::HullFace3d", ptr %129, i32 0, i32 2
  %131 = load i8, ptr %15, align 1, !tbaa !36
  %132 = zext i8 %131 to i64
  %133 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %130, i64 noundef %132) #5
  store i16 %128, ptr %133, align 2, !tbaa !21
  br label %134

134:                                              ; preds = %115
  %135 = load i8, ptr %15, align 1, !tbaa !36
  %136 = add i8 %135, 1
  store i8 %136, ptr %15, align 1, !tbaa !36
  br label %102, !llvm.loop !39

137:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %138

138:                                              ; preds = %137
  %139 = load i16, ptr %11, align 2, !tbaa !21
  %140 = add i16 %139, 1
  store i16 %140, ptr %11, align 2, !tbaa !21
  br label %64, !llvm.loop !40

141:                                              ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr %18) #5
  invoke void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %142 unwind label %164

142:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 36, ptr %19) #5
  %143 = load float, ptr %6, align 4, !tbaa !9
  invoke void @_ZN7Riemann48ComputePolyhedralInertiaTensor_VolumeIntegrationERKNS_12ConvexHull3dEfRfS3_RN5Maths8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4 %19, ptr noundef nonnull align 8 dereferenceable(48) %7, float noundef %143, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %16, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %144 unwind label %168

144:                                              ; preds = %142
  %145 = load ptr, ptr %5, align 8, !tbaa !5
  %146 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %145, i32 0, i32 2
  %147 = invoke noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %146, ptr noundef nonnull align 4 dereferenceable(36) %19)
          to label %148 unwind label %168

148:                                              ; preds = %144
  call void @llvm.lifetime.end.p0(i64 36, ptr %19) #5
  %149 = load float, ptr %16, align 4, !tbaa !9
  %150 = load ptr, ptr %5, align 8, !tbaa !5
  %151 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %150, i32 0, i32 0
  store float %149, ptr %151, align 4, !tbaa !41
  %152 = load float, ptr %17, align 4, !tbaa !9
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %153, i32 0, i32 1
  store float %152, ptr %154, align 4, !tbaa !44
  %155 = load ptr, ptr %5, align 8, !tbaa !5
  %156 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %155, i32 0, i32 3
  %157 = invoke noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %156, ptr noundef nonnull align 4 dereferenceable(12) %18)
          to label %158 unwind label %164

158:                                              ; preds = %148
  call void @llvm.lifetime.start.p0(i64 24, ptr %20) #5
  invoke void @_ZNK7Riemann10ConvexMesh21ComputeBoundingVolumeEv(ptr dead_on_unwind writable sret(%"class.Maths::TAABB3") align 4 %20, ptr noundef nonnull align 8 dereferenceable(88) %21)
          to label %159 unwind label %172

159:                                              ; preds = %158
  %160 = load ptr, ptr %5, align 8, !tbaa !5
  %161 = getelementptr inbounds %"struct.Riemann::MassParameters", ptr %160, i32 0, i32 4
  %162 = invoke noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %161, ptr noundef nonnull align 4 dereferenceable(24) %20)
          to label %163 unwind label %172

163:                                              ; preds = %159
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  store i32 1, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @_ZN7Riemann12ConvexHull3dD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  ret i1 true

164:                                              ; preds = %148, %141
  %165 = landingpad { ptr, i32 }
          cleanup
  %166 = extractvalue { ptr, i32 } %165, 0
  store ptr %166, ptr %8, align 8
  %167 = extractvalue { ptr, i32 } %165, 1
  store i32 %167, ptr %9, align 4
  br label %176

168:                                              ; preds = %144, %142
  %169 = landingpad { ptr, i32 }
          cleanup
  %170 = extractvalue { ptr, i32 } %169, 0
  store ptr %170, ptr %8, align 8
  %171 = extractvalue { ptr, i32 } %169, 1
  store i32 %171, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 36, ptr %19) #5
  br label %176

172:                                              ; preds = %159, %158
  %173 = landingpad { ptr, i32 }
          cleanup
  %174 = extractvalue { ptr, i32 } %173, 0
  store ptr %174, ptr %8, align 8
  %175 = extractvalue { ptr, i32 } %173, 1
  store i32 %175, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %20) #5
  br label %176

176:                                              ; preds = %172, %168, %164
  call void @llvm.lifetime.end.p0(i64 12, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %177

177:                                              ; preds = %176, %111, %59, %40
  call void @_ZN7Riemann12ConvexHull3dD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %7) #5
  br label %178

178:                                              ; preds = %177
  %179 = load ptr, ptr %8, align 8
  %180 = load i32, ptr %9, align 4
  %181 = insertvalue { ptr, i32 } poison, ptr %179, 0
  %182 = insertvalue { ptr, i32 } %181, i32 %180, 1
  resume { ptr, i32 } %182
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

declare void @_ZN7Riemann48ComputePolyhedralInertiaTensor_VolumeIntegrationERKNS_12ConvexHull3dEfRfS3_RN5Maths8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) #3 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !13, i64 36}
!12 = !{!"_ZTSN7Riemann10ConvexMeshE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !13, i64 34, !13, i64 36, !13, i64 38, !14, i64 40, !18, i64 64}
!13 = !{!"short", !7, i64 0}
!14 = !{!"_ZTSSt6vectorIcSaIcEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!18 = !{!"_ZTSN5Maths6TAABB3IfEE", !19, i64 0, !19, i64 12}
!19 = !{!"_ZTSN5Maths8TVector3IfEE", !10, i64 0, !10, i64 4, !10, i64 8}
!20 = !{!12, !13, i64 32}
!21 = !{!13, !13, i64 0}
!22 = !{!12, !6, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!12, !6, i64 16}
!26 = !{!27, !10, i64 12}
!27 = !{!"_ZTSN7Riemann14ConvexMeshFaceE", !28, i64 0, !13, i64 16, !7, i64 18, !7, i64 19}
!28 = !{!"_ZTSN7Riemann6Plane3E", !19, i64 0, !10, i64 12}
!29 = !{!30, !10, i64 12}
!30 = !{!"_ZTSN7Riemann10HullFace3dE", !19, i64 0, !10, i64 12, !31, i64 16}
!31 = !{!"_ZTSSt6vectorIsSaIsEE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIsSaIsEE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!27, !7, i64 18}
!36 = !{!7, !7, i64 0}
!37 = !{!12, !6, i64 24}
!38 = !{!27, !13, i64 16}
!39 = distinct !{!39, !24}
!40 = distinct !{!40, !24}
!41 = !{!42, !10, i64 0}
!42 = !{!"_ZTSN7Riemann14MassParametersE", !10, i64 0, !10, i64 4, !43, i64 8, !19, i64 44, !18, i64 56}
!43 = !{!"_ZTSN5Maths7Matrix3E", !7, i64 0}
!44 = !{!42, !10, i64 4}


; 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.Maths::TAABB3" = type { %"class.Maths::TVector3", %"class.Maths::TVector3" }
%"class.Maths::TVector3" = type { float, float, float }
%"struct.Riemann::ConvexHull3d" = type { %"class.std::vector.0", %"class.std::vector.5" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl" = type { %"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Maths::TVector3<float>, std::allocator<Maths::TVector3<float>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = type { %"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl" }
%"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl" = type { %"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Riemann::HullFace3d, std::allocator<Riemann::HullFace3d>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.Maths::Matrix3" = type { [3 x [3 x float]] }
%"struct.Riemann::ConvexMeshFace" = type { %"class.Riemann::Plane3", i16, i8, i8 }
%"class.Riemann::Plane3" = type { %"class.Maths::TVector3", float }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK7Riemann10ConvexMesh21ComputeBoundingVolumeEv(ptr dead_on_unwind noalias writable sret(%"class.Maths::TAABB3") align 4, ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(24)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK7Riemann10ConvexMesh25CalculateVolumePropertiesEPNS_14MassParametersEf(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1, float noundef %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %"struct.Riemann::ConvexHull3d", align 8
  %5 = alloca float, align 4
  %6 = alloca float, align 4
  %7 = alloca %"class.Maths::TVector3", align 4
  %8 = alloca %"class.Maths::Matrix3", align 4
  %9 = alloca %"class.Maths::TAABB3", align 4
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #5
  call void @_ZN7Riemann12ConvexHull3dC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  %10 = getelementptr inbounds i8, ptr %4, i64 24
  %11 = getelementptr inbounds i8, ptr %0, i64 36
  %12 = load i16, ptr %11, align 4, !tbaa !5
  %13 = zext i16 %12 to i64
  invoke void @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %13)
          to label %14 unwind label %22

14:                                               ; preds = %3
  %15 = getelementptr inbounds i8, ptr %0, i64 32
  %16 = load i16, ptr %15, align 8, !tbaa !18
  %17 = zext i16 %16 to i64
  invoke void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %17)
          to label %.preheader39 unwind label %22

.preheader39:                                     ; preds = %14
  %18 = load i16, ptr %15, align 8, !tbaa !18
  %.not = icmp eq i16 %18, 0
  br i1 %.not, label %.preheader38, label %.lr.ph

.preheader38:                                     ; preds = %.lr.ph, %.preheader39
  %19 = load i16, ptr %11, align 4, !tbaa !5
  %.not46 = icmp eq i16 %19, 0
  br i1 %.not46, label %._crit_edge45, label %.lr.ph44

.lr.ph44:                                         ; preds = %.preheader38
  %20 = getelementptr inbounds i8, ptr %0, i64 16
  %21 = getelementptr inbounds i8, ptr %0, i64 24
  br label %31

22:                                               ; preds = %14, %3
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %78

.lr.ph:                                           ; preds = %.preheader39, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader39 ]
  %24 = load ptr, ptr %0, align 8, !tbaa !19
  %25 = getelementptr inbounds %"class.Maths::TVector3", ptr %24, i64 %indvars.iv
  %26 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %4, i64 noundef %indvars.iv) #5
  %27 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %26, ptr noundef nonnull align 4 dereferenceable(12) %25)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %28 = load i16, ptr %15, align 8, !tbaa !18
  %29 = zext i16 %28 to i64
  %30 = icmp ult i64 %indvars.iv.next, %29
  br i1 %30, label %.lr.ph, label %.preheader38, !llvm.loop !20

._crit_edge45:                                    ; preds = %._crit_edge, %.preheader38
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %7) #5
  call void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 36, ptr nonnull %8) #5
  invoke void @_ZN7Riemann48ComputePolyhedralInertiaTensor_VolumeIntegrationERKNS_12ConvexHull3dEfRfS3_RN5Maths8TVector3IfEE(ptr dead_on_unwind nonnull writable sret(%"class.Maths::Matrix3") align 4 %8, ptr noundef nonnull align 8 dereferenceable(48) %4, float noundef %2, ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 4 dereferenceable(12) %7)
          to label %62 unwind label %73

31:                                               ; preds = %.lr.ph44, %._crit_edge
  %indvars.iv52 = phi i64 [ 0, %.lr.ph44 ], [ %indvars.iv.next53, %._crit_edge ]
  %32 = load ptr, ptr %20, align 8, !tbaa !22
  %33 = getelementptr inbounds %"struct.Riemann::ConvexMeshFace", ptr %32, i64 %indvars.iv52
  %34 = call noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv52) #5
  %35 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %34, ptr noundef nonnull align 4 dereferenceable(12) %33)
  %36 = getelementptr inbounds i8, ptr %33, i64 12
  %37 = load float, ptr %36, align 4, !tbaa !23
  %38 = getelementptr inbounds i8, ptr %34, i64 12
  store float %37, ptr %38, align 4, !tbaa !26
  %39 = getelementptr inbounds i8, ptr %34, i64 16
  %40 = getelementptr inbounds i8, ptr %33, i64 18
  %41 = load i8, ptr %40, align 2, !tbaa !32
  %42 = zext i8 %41 to i64
  invoke void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %42)
          to label %.preheader unwind label %48

.preheader:                                       ; preds = %31
  %43 = load i8, ptr %40, align 2, !tbaa !32
  %.not47 = icmp eq i8 %43, 0
  br i1 %.not47, label %._crit_edge, label %.lr.ph42

.lr.ph42:                                         ; preds = %.preheader
  %44 = getelementptr inbounds i8, ptr %33, i64 16
  br label %50

._crit_edge:                                      ; preds = %50, %.preheader
  %indvars.iv.next53 = add nuw nsw i64 %indvars.iv52, 1
  %45 = load i16, ptr %11, align 4, !tbaa !5
  %46 = zext i16 %45 to i64
  %47 = icmp ult i64 %indvars.iv.next53, %46
  br i1 %47, label %31, label %._crit_edge45, !llvm.loop !33

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

50:                                               ; preds = %.lr.ph42, %50
  %indvars.iv49 = phi i64 [ 0, %.lr.ph42 ], [ %indvars.iv.next50, %50 ]
  %51 = load ptr, ptr %21, align 8, !tbaa !34
  %52 = load i16, ptr %44, align 4, !tbaa !35
  %53 = zext i16 %52 to i64
  %54 = getelementptr inbounds i8, ptr %51, i64 %53
  %55 = getelementptr inbounds i8, ptr %54, i64 %indvars.iv49
  %56 = load i8, ptr %55, align 1, !tbaa !36
  %57 = zext i8 %56 to i16
  %58 = call noundef nonnull align 2 dereferenceable(2) ptr @_ZNSt6vectorIsSaIsEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %indvars.iv49) #5
  store i16 %57, ptr %58, align 2, !tbaa !37
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %59 = load i8, ptr %40, align 2, !tbaa !32
  %60 = zext i8 %59 to i64
  %61 = icmp ult i64 %indvars.iv.next50, %60
  br i1 %61, label %50, label %._crit_edge, !llvm.loop !38

62:                                               ; preds = %._crit_edge45
  %63 = getelementptr inbounds i8, ptr %1, i64 8
  %64 = call noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36) %63, ptr noundef nonnull align 4 dereferenceable(36) %8)
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #5
  %65 = load float, ptr %5, align 4, !tbaa !39
  store float %65, ptr %1, align 4, !tbaa !40
  %66 = load float, ptr %6, align 4, !tbaa !39
  %67 = getelementptr inbounds i8, ptr %1, i64 4
  store float %66, ptr %67, align 4, !tbaa !43
  %68 = getelementptr inbounds i8, ptr %1, i64 44
  %69 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12) %68, ptr noundef nonnull align 4 dereferenceable(12) %7)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #5
  invoke void @_ZNK7Riemann10ConvexMesh21ComputeBoundingVolumeEv(ptr dead_on_unwind nonnull writable sret(%"class.Maths::TAABB3") align 4 %9, ptr noundef nonnull align 8 dereferenceable(88) %0)
          to label %70 unwind label %75

70:                                               ; preds = %62
  %71 = getelementptr inbounds i8, ptr %1, i64 56
  %72 = call noundef nonnull align 4 dereferenceable(24) ptr @_ZN5Maths6TAABB3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(24) %9)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  call void @_ZN7Riemann12ConvexHull3dD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  ret i1 true

73:                                               ; preds = %._crit_edge45
  %74 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 36, ptr nonnull %8) #5
  br label %77

75:                                               ; preds = %62
  %76 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #5
  br label %77

77:                                               ; preds = %75, %73
  %.pn = phi { ptr, i32 } [ %76, %75 ], [ %74, %73 ]
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #5
  br label %78

78:                                               ; preds = %77, %48, %22
  %.pn36 = phi { ptr, i32 } [ %49, %48 ], [ %.pn, %77 ], [ %23, %22 ]
  call void @_ZN7Riemann12ConvexHull3dD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %4) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #5
  resume { ptr, i32 } %.pn36
}

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZNSt6vectorIN5Maths8TVector3IfEESaIS2_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(12) ptr @_ZN5Maths8TVector3IfEaSERKS1_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZNSt6vectorIN7Riemann10HullFace3dESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIsSaIsEE6resizeEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Maths8TVector3IfEC2Ev(ptr noundef nonnull align 4 dereferenceable(12)) unnamed_addr #3 align 2

declare void @_ZN7Riemann48ComputePolyhedralInertiaTensor_VolumeIntegrationERKNS_12ConvexHull3dEfRfS3_RN5Maths8TVector3IfEE(ptr dead_on_unwind writable sret(%"class.Maths::Matrix3") align 4, ptr noundef nonnull align 8 dereferenceable(48), float noundef, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(36) ptr @_ZN5Maths7Matrix3aSERKS0_(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 4 dereferenceable(36)) local_unnamed_addr #3 align 2

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

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

!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, !10, i64 36}
!6 = !{!"_ZTSN7Riemann10ConvexMeshE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 34, !10, i64 36, !10, i64 38, !11, i64 40, !15, i64 64}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"_ZTSSt6vectorIcSaIcEE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseIcSaIcEE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIcSaIcEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!"_ZTSN5Maths6TAABB3IfEE", !16, i64 0, !16, i64 12}
!16 = !{!"_ZTSN5Maths8TVector3IfEE", !17, i64 0, !17, i64 4, !17, i64 8}
!17 = !{!"float", !8, i64 0}
!18 = !{!6, !10, i64 32}
!19 = !{!6, !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!6, !7, i64 16}
!23 = !{!24, !17, i64 12}
!24 = !{!"_ZTSN7Riemann14ConvexMeshFaceE", !25, i64 0, !10, i64 16, !8, i64 18, !8, i64 19}
!25 = !{!"_ZTSN7Riemann6Plane3E", !16, i64 0, !17, i64 12}
!26 = !{!27, !17, i64 12}
!27 = !{!"_ZTSN7Riemann10HullFace3dE", !16, i64 0, !17, i64 12, !28, i64 16}
!28 = !{!"_ZTSSt6vectorIsSaIsEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIsSaIsEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIsSaIsEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!32 = !{!24, !8, i64 18}
!33 = distinct !{!33, !21}
!34 = !{!6, !7, i64 24}
!35 = !{!24, !10, i64 16}
!36 = !{!8, !8, i64 0}
!37 = !{!10, !10, i64 0}
!38 = distinct !{!38, !21}
!39 = !{!17, !17, i64 0}
!40 = !{!41, !17, i64 0}
!41 = !{!"_ZTSN7Riemann14MassParametersE", !17, i64 0, !17, i64 4, !42, i64 8, !16, i64 44, !15, i64 56}
!42 = !{!"_ZTSN5Maths7Matrix3E", !8, i64 0}
!43 = !{!41, !17, i64 4}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass