; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics/Collision/Shape (MutableCompoundShape)

; 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.JPH::Vec3" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.14 }
%union.anon.14 = type { <4 x float> }
%"class.JPH::CompoundShape" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::Vec3", %"class.JPH::AABox", %"class.JPH::Array.7", float, [4 x i8] }>
%"class.JPH::Shape.base" = type <{ ptr, %"class.JPH::RefTarget.5", [4 x i8], i64, i8, i8 }>
%"class.JPH::RefTarget.5" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::Array.7" = type { i64, i64, ptr }
%"struct.JPH::CompoundShape::SubShape" = type <{ %"class.JPH::RefConst.13", %"class.JPH::Float3", %"class.JPH::Float3", i32, i8, [3 x i8] }>
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::MutableCompoundShape" = type { %"class.JPH::CompoundShape.base", %"class.JPH::Array.10", [8 x i8] }
%"class.JPH::CompoundShape.base" = type <{ %"class.JPH::Shape.base", [6 x i8], %"class.JPH::Vec3", %"class.JPH::AABox", %"class.JPH::Array.7", float }>
%"class.JPH::Array.10" = type { i64, i64, ptr }
%"struct.JPH::MutableCompoundShape::Bounds" = type { %"class.JPH::Vec4", %"class.JPH::Vec4", %"class.JPH::Vec4", %"class.JPH::Vec4", %"class.JPH::Vec4", %"class.JPH::Vec4" }

; 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
define dso_local void @_ZN3JPH20MutableCompoundShape18AdjustCenterOfMassEv(ptr noundef nonnull align 16 dereferenceable(144) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca float, align 4
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.JPH::MassProperties", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca ptr, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca %"class.JPH::Vec4", align 16
  %24 = alloca %"class.JPH::Vec4", align 16
  %25 = alloca %"class.JPH::Vec4", align 16
  %26 = alloca %"class.JPH::Vec4", align 16
  %27 = alloca %"class.JPH::Vec4", align 16
  %28 = alloca %"class.JPH::Vec4", align 16
  %29 = alloca %"class.JPH::Vec4", align 16
  %30 = alloca %"class.JPH::Vec4", align 16
  %31 = alloca %"class.JPH::Vec4", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %34 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #7
  store float 0.000000e+00, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %4) #7
  %35 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %36 = getelementptr inbounds %"class.JPH::Vec3", ptr %4, i32 0, i32 0
  %37 = getelementptr inbounds %union.anon.6, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %39 = extractvalue { double, double } %35, 0
  store double %39, ptr %38, align 16
  %40 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %41 = extractvalue { double, double } %35, 1
  store double %41, ptr %40, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  %42 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %34, i32 0, i32 4
  store ptr %42, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %43 = load ptr, ptr %5, align 8, !tbaa !5
  %44 = call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %43)
  store ptr %44, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %45 = load ptr, ptr %5, align 8, !tbaa !5
  %46 = call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  store ptr %46, ptr %7, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %86, %1
  %48 = load ptr, ptr %6, align 8, !tbaa !5
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = icmp ne ptr %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %89

52:                                               ; preds = %47
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %53, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %9) #7
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.JPH::CompoundShape::SubShape", ptr %54, i32 0, i32 0
  %56 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %55)
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = getelementptr inbounds ptr, ptr %57, i64 8
  %59 = load ptr, ptr %58, align 8
  call void %59(ptr dead_on_unwind writable sret(%"class.JPH::MassProperties") align 16 %9, ptr noundef nonnull align 8 dereferenceable(26) %56)
  %60 = getelementptr inbounds %"class.JPH::MassProperties", ptr %9, i32 0, i32 0
  %61 = load float, ptr %60, align 16, !tbaa !13
  %62 = load float, ptr %3, align 4, !tbaa !9
  %63 = fadd float %62, %61
  store float %63, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %64)
  %66 = getelementptr inbounds %"class.JPH::Vec3", ptr %11, i32 0, i32 0
  %67 = getelementptr inbounds %union.anon.6, ptr %66, i32 0, i32 0
  %68 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 0
  %69 = extractvalue { double, double } %65, 0
  store double %69, ptr %68, align 16
  %70 = getelementptr inbounds { double, double }, ptr %67, i32 0, i32 1
  %71 = extractvalue { double, double } %65, 1
  store double %71, ptr %70, align 8
  %72 = getelementptr inbounds %"class.JPH::MassProperties", ptr %9, i32 0, i32 0
  %73 = load float, ptr %72, align 16, !tbaa !13
  %74 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef %73)
  %75 = getelementptr inbounds %"class.JPH::Vec3", ptr %10, i32 0, i32 0
  %76 = getelementptr inbounds %union.anon.6, ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 0
  %78 = extractvalue { double, double } %74, 0
  store double %78, ptr %77, align 16
  %79 = getelementptr inbounds { double, double }, ptr %76, i32 0, i32 1
  %80 = extractvalue { double, double } %74, 1
  store double %80, ptr %79, align 8
  %81 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 0
  %82 = load double, ptr %81, align 16
  %83 = getelementptr inbounds { double, double }, ptr %10, i32 0, i32 1
  %84 = load double, ptr %83, align 8
  %85 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %82, double %84)
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 80, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %86

86:                                               ; preds = %52
  %87 = load ptr, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.JPH::CompoundShape::SubShape", ptr %87, i32 1
  store ptr %88, ptr %6, align 8, !tbaa !5
  br label %47

89:                                               ; preds = %51
  %90 = load float, ptr %3, align 4, !tbaa !9
  %91 = fcmp ogt float %90, 0.000000e+00
  br i1 %91, label %92, label %95

92:                                               ; preds = %89
  %93 = load float, ptr %3, align 4, !tbaa !9
  %94 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef %93)
  br label %95

95:                                               ; preds = %92, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %96 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %34, i32 0, i32 4
  store ptr %96, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %97 = load ptr, ptr %12, align 8, !tbaa !5
  %98 = call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %97)
  store ptr %98, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %99)
  store ptr %100, ptr %14, align 8, !tbaa !5
  br label %101

101:                                              ; preds = %132, %95
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = load ptr, ptr %14, align 8, !tbaa !5
  %104 = icmp ne ptr %102, %103
  br i1 %104, label %106, label %105

105:                                              ; preds = %101
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  br label %135

106:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %107 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %107, ptr %15, align 8, !tbaa !5
  %108 = load ptr, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #7
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %109)
  %111 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %112 = getelementptr inbounds %union.anon.6, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 0
  %114 = extractvalue { double, double } %110, 0
  store double %114, ptr %113, align 16
  %115 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 1
  %116 = extractvalue { double, double } %110, 1
  store double %116, ptr %115, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %18, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !16
  %117 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %118, double %120)
  %122 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon.6, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %121, 0
  store double %125, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %121, 1
  store double %127, ptr %126, align 8
  %128 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %129 = load double, ptr %128, align 16
  %130 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %131 = load double, ptr %130, align 8
  call void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37) %108, double %129, double %131)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %132

132:                                              ; preds = %106
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = getelementptr inbounds %"struct.JPH::CompoundShape::SubShape", ptr %133, i32 1
  store ptr %134, ptr %13, align 8, !tbaa !5
  br label %101

135:                                              ; preds = %105
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %136 = getelementptr inbounds %"class.JPH::MutableCompoundShape", ptr %34, i32 0, i32 1
  store ptr %136, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %137 = load ptr, ptr %19, align 8, !tbaa !5
  %138 = call noundef ptr @_ZN3JPH5ArrayINS_20MutableCompoundShape6BoundsENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %137)
  store ptr %138, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %139 = load ptr, ptr %19, align 8, !tbaa !5
  %140 = call noundef ptr @_ZN3JPH5ArrayINS_20MutableCompoundShape6BoundsENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %139)
  store ptr %140, ptr %21, align 8, !tbaa !5
  br label %141

141:                                              ; preds = %211, %135
  %142 = load ptr, ptr %20, align 8, !tbaa !5
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  %144 = icmp ne ptr %142, %143
  br i1 %144, label %146, label %145

145:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %214

146:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  store ptr %147, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %23) #7
  %148 = call { double, double } @_ZNK3JPH4Vec36SplatXEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %149 = getelementptr inbounds %"class.JPH::Vec4", ptr %23, i32 0, i32 0
  %150 = getelementptr inbounds %union.anon.14, ptr %149, i32 0, i32 0
  %151 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 0
  %152 = extractvalue { double, double } %148, 0
  store double %152, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %150, i32 0, i32 1
  %154 = extractvalue { double, double } %148, 1
  store double %154, ptr %153, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #7
  %155 = call { double, double } @_ZNK3JPH4Vec36SplatYEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %156 = getelementptr inbounds %"class.JPH::Vec4", ptr %24, i32 0, i32 0
  %157 = getelementptr inbounds %union.anon.14, ptr %156, i32 0, i32 0
  %158 = getelementptr inbounds { double, double }, ptr %157, i32 0, i32 0
  %159 = extractvalue { double, double } %155, 0
  store double %159, ptr %158, align 16
  %160 = getelementptr inbounds { double, double }, ptr %157, i32 0, i32 1
  %161 = extractvalue { double, double } %155, 1
  store double %161, ptr %160, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %162 = call { double, double } @_ZNK3JPH4Vec36SplatZEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %163 = getelementptr inbounds %"class.JPH::Vec4", ptr %25, i32 0, i32 0
  %164 = getelementptr inbounds %union.anon.14, ptr %163, i32 0, i32 0
  %165 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 0
  %166 = extractvalue { double, double } %162, 0
  store double %166, ptr %165, align 16
  %167 = getelementptr inbounds { double, double }, ptr %164, i32 0, i32 1
  %168 = extractvalue { double, double } %162, 1
  store double %168, ptr %167, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %26, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !16
  %169 = load ptr, ptr %22, align 8, !tbaa !5
  %170 = getelementptr inbounds %"struct.JPH::MutableCompoundShape::Bounds", ptr %169, i32 0, i32 0
  %171 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %172 = load double, ptr %171, align 16
  %173 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %174 = load double, ptr %173, align 8
  %175 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %170, double %172, double %174)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %27, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !16
  %176 = load ptr, ptr %22, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.JPH::MutableCompoundShape::Bounds", ptr %176, i32 0, i32 1
  %178 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %179 = load double, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %181 = load double, ptr %180, align 8
  %182 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %177, double %179, double %181)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !16
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = getelementptr inbounds %"struct.JPH::MutableCompoundShape::Bounds", ptr %183, i32 0, i32 2
  %185 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %186 = load double, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %188 = load double, ptr %187, align 8
  %189 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %184, double %186, double %188)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %29, ptr align 16 %23, i64 16, i1 false), !tbaa.struct !16
  %190 = load ptr, ptr %22, align 8, !tbaa !5
  %191 = getelementptr inbounds %"struct.JPH::MutableCompoundShape::Bounds", ptr %190, i32 0, i32 3
  %192 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %193 = load double, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %195 = load double, ptr %194, align 8
  %196 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %191, double %193, double %195)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !16
  %197 = load ptr, ptr %22, align 8, !tbaa !5
  %198 = getelementptr inbounds %"struct.JPH::MutableCompoundShape::Bounds", ptr %197, i32 0, i32 4
  %199 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %200 = load double, ptr %199, align 16
  %201 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %202 = load double, ptr %201, align 8
  %203 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %198, double %200, double %202)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !16
  %204 = load ptr, ptr %22, align 8, !tbaa !5
  %205 = getelementptr inbounds %"struct.JPH::MutableCompoundShape::Bounds", ptr %204, i32 0, i32 5
  %206 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %207 = load double, ptr %206, align 16
  %208 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %209 = load double, ptr %208, align 8
  %210 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %205, double %207, double %209)
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %211

211:                                              ; preds = %146
  %212 = load ptr, ptr %20, align 8, !tbaa !5
  %213 = getelementptr inbounds %"struct.JPH::MutableCompoundShape::Bounds", ptr %212, i32 1
  store ptr %213, ptr %20, align 8, !tbaa !5
  br label %141

214:                                              ; preds = %145
  %215 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %34, i32 0, i32 3
  %216 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %4)
  %217 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %218 = getelementptr inbounds %union.anon.6, ptr %217, i32 0, i32 0
  %219 = getelementptr inbounds { double, double }, ptr %218, i32 0, i32 0
  %220 = extractvalue { double, double } %216, 0
  store double %220, ptr %219, align 16
  %221 = getelementptr inbounds { double, double }, ptr %218, i32 0, i32 1
  %222 = extractvalue { double, double } %216, 1
  store double %222, ptr %221, align 8
  %223 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 0
  %224 = load double, ptr %223, align 16
  %225 = getelementptr inbounds { double, double }, ptr %32, i32 0, i32 1
  %226 = load double, ptr %225, align 8
  call void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %215, double %224, double %226)
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %33, ptr align 16 %4, i64 16, i1 false), !tbaa.struct !16
  %227 = getelementptr inbounds %"class.JPH::CompoundShape", ptr %34, i32 0, i32 2
  %228 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %229 = load double, ptr %228, align 16
  %230 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %231 = load double, ptr %230, align 8
  %232 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %227, double %229, double %231)
  call void @llvm.lifetime.end.p0(i64 16, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() #3 align 2

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

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37), double, double) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec36SplatXEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec36SplatYEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec36SplatZEv(ptr noundef nonnull align 16 dereferenceable(16)) #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) #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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }

!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, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"_ZTSN3JPH14MassPropertiesE", !10, i64 0, !15, i64 16}
!15 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!16 = !{i64 0, i64 16, !17}
!17 = !{!7, !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon.6 }
%union.anon.6 = type { <4 x float> }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::Vec4" = type { %union.anon.14 }
%union.anon.14 = type { <4 x 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
define dso_local void @_ZN3JPH20MutableCompoundShape18AdjustCenterOfMassEv(ptr noundef nonnull align 16 dereferenceable(144) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca %"class.JPH::Vec3", align 16
  %3 = alloca %"class.JPH::MassProperties", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::Vec3", align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #6
  %6 = tail call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %7 = extractvalue { double, double } %6, 0
  store double %7, ptr %2, align 16
  %8 = getelementptr inbounds i8, ptr %2, i64 8
  %9 = extractvalue { double, double } %6, 1
  store double %9, ptr %8, align 8
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = tail call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %12 = tail call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.not62 = icmp eq ptr %11, %12
  br i1 %.not62, label %._crit_edge.thread, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %13 = getelementptr inbounds i8, ptr %4, i64 8
  br label %15

._crit_edge:                                      ; preds = %15
  %14 = fcmp ogt float %21, 0.000000e+00
  br i1 %14, label %31, label %._crit_edge.thread

15:                                               ; preds = %.lr.ph, %15
  %.064 = phi float [ 0.000000e+00, %.lr.ph ], [ %21, %15 ]
  %.05763 = phi ptr [ %11, %.lr.ph ], [ %30, %15 ]
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %3) #6
  %16 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %.05763)
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %17, i64 64
  %19 = load ptr, ptr %18, align 8
  call void %19(ptr dead_on_unwind nonnull writable sret(%"class.JPH::MassProperties") align 16 %3, ptr noundef nonnull align 8 dereferenceable(26) %16)
  %20 = load float, ptr %3, align 16, !tbaa !8
  %21 = fadd float %.064, %20
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %22 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %.05763)
  %23 = extractvalue { double, double } %22, 0
  store double %23, ptr %4, align 16
  %24 = extractvalue { double, double } %22, 1
  store double %24, ptr %13, align 8
  %25 = load float, ptr %3, align 16, !tbaa !8
  %26 = call { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef %25)
  %27 = extractvalue { double, double } %26, 0
  %28 = extractvalue { double, double } %26, 1
  %29 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %2, double %27, double %28)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %3) #6
  %30 = getelementptr inbounds i8, ptr %.05763, i64 40
  %.not = icmp eq ptr %30, %12
  br i1 %.not, label %._crit_edge, label %15

31:                                               ; preds = %._crit_edge
  %32 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16) %2, float noundef %21)
  br label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %1, %31, %._crit_edge
  %33 = call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %34 = call noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %10)
  %.not6065 = icmp eq ptr %33, %34
  br i1 %.not6065, label %._crit_edge69, label %.lr.ph68

.lr.ph68:                                         ; preds = %._crit_edge.thread
  %35 = getelementptr inbounds i8, ptr %5, i64 8
  br label %39

._crit_edge69:                                    ; preds = %39, %._crit_edge.thread
  %36 = getelementptr inbounds i8, ptr %0, i64 112
  %37 = call noundef ptr @_ZN3JPH5ArrayINS_20MutableCompoundShape6BoundsENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %38 = call noundef ptr @_ZN3JPH5ArrayINS_20MutableCompoundShape6BoundsENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  %.not6170 = icmp eq ptr %37, %38
  br i1 %.not6170, label %._crit_edge74, label %.lr.ph73

39:                                               ; preds = %.lr.ph68, %39
  %.05866 = phi ptr [ %33, %.lr.ph68 ], [ %46, %39 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %40 = call { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37) %.05866)
  %41 = extractvalue { double, double } %40, 0
  store double %41, ptr %5, align 16
  %42 = extractvalue { double, double } %40, 1
  store double %42, ptr %35, align 8
  %.sroa.031.0.copyload = load double, ptr %2, align 16
  %.sroa.232.0.copyload = load double, ptr %8, align 8, !tbaa !13
  %43 = call { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %.sroa.031.0.copyload, double %.sroa.232.0.copyload)
  %44 = extractvalue { double, double } %43, 0
  %45 = extractvalue { double, double } %43, 1
  call void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37) %.05866, double %44, double %45)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  %46 = getelementptr inbounds i8, ptr %.05866, i64 40
  %.not60 = icmp eq ptr %46, %34
  br i1 %.not60, label %._crit_edge69, label %39

._crit_edge74:                                    ; preds = %.lr.ph73, %._crit_edge69
  %47 = getelementptr inbounds i8, ptr %0, i64 48
  %48 = call { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16) %2)
  %49 = extractvalue { double, double } %48, 0
  %50 = extractvalue { double, double } %48, 1
  call void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32) %47, double %49, double %50)
  %.sroa.0.0.copyload = load double, ptr %2, align 16
  %.sroa.2.0.copyload = load double, ptr %8, align 8, !tbaa !13
  %51 = getelementptr inbounds i8, ptr %0, i64 32
  %52 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %51, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #6
  ret void

.lr.ph73:                                         ; preds = %._crit_edge69, %.lr.ph73
  %.05971 = phi ptr [ %73, %.lr.ph73 ], [ %37, %._crit_edge69 ]
  %53 = call { double, double } @_ZNK3JPH4Vec36SplatXEv(ptr noundef nonnull align 16 dereferenceable(16) %2)
  %54 = extractvalue { double, double } %53, 0
  %55 = extractvalue { double, double } %53, 1
  %56 = call { double, double } @_ZNK3JPH4Vec36SplatYEv(ptr noundef nonnull align 16 dereferenceable(16) %2)
  %57 = extractvalue { double, double } %56, 0
  %58 = extractvalue { double, double } %56, 1
  %59 = call { double, double } @_ZNK3JPH4Vec36SplatZEv(ptr noundef nonnull align 16 dereferenceable(16) %2)
  %60 = extractvalue { double, double } %59, 0
  %61 = extractvalue { double, double } %59, 1
  %62 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %.05971, double %54, double %55)
  %63 = getelementptr inbounds i8, ptr %.05971, i64 16
  %64 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %63, double %57, double %58)
  %65 = getelementptr inbounds i8, ptr %.05971, i64 32
  %66 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %65, double %60, double %61)
  %67 = getelementptr inbounds i8, ptr %.05971, i64 48
  %68 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %67, double %54, double %55)
  %69 = getelementptr inbounds i8, ptr %.05971, i64 64
  %70 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %69, double %57, double %58)
  %71 = getelementptr inbounds i8, ptr %.05971, i64 80
  %72 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16) %71, double %60, double %61)
  %73 = getelementptr inbounds i8, ptr %.05971, i64 96
  %.not61 = icmp eq ptr %73, %38
  br i1 %.not61, label %._crit_edge74, label %.lr.ph73
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_13CompoundShape8SubShapeENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH13CompoundShape8SubShape14GetPositionCOMEv(ptr noundef nonnull align 8 dereferenceable(37)) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3mlEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3dVEf(ptr noundef nonnull align 16 dereferenceable(16), float noundef) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH13CompoundShape8SubShape14SetPositionCOMENS_4Vec3E(ptr noundef nonnull align 8 dereferenceable(37), double, double) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_20MutableCompoundShape6BoundsENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_20MutableCompoundShape6BoundsENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec36SplatXEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec36SplatYEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec36SplatZEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec4mIES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH5AABox9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(32), double, double) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3ngEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2 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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="128" "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 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "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 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 0}
!9 = !{!"_ZTSN3JPH14MassPropertiesE", !10, i64 0, !12, i64 16}
!10 = !{!"float", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"_ZTSN3JPH5Mat44E", !11, i64 0}
!13 = !{!11, !11, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass