; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Shapes (MutableCompoundShapeTest)

; 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::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::StaticCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.13" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.8", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.8" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.9, i8, [7 x i8] }>
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.12 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.12 = type { i64, [8 x i8] }
%"class.JPH::Array.13" = type { i64, i64, ptr }
%"class.JPH::Ref.16" = type { ptr }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.MutableCompoundShapeTest = type <{ %class.Test, %"class.JPH::Array", %"class.JPH::RefConst", i32, [4 x i8] }>
%"class.JPH::Array" = type { i64, i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24MutableCompoundShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(148) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::BodyCreationSettings", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Quat", align 16
  %9 = alloca %"class.JPH::BodyID", align 4
  %10 = alloca %"class.JPH::StaticCompoundShapeSettings", align 8
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::Quat", align 16
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Vec3", align 16
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Quat", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Quat", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Result", align 8
  %22 = alloca i32, align 4
  %23 = alloca %"class.JPH::Ref.16", align 8
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Quat", align 16
  %26 = alloca %"class.JPH::Quat", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca %"class.JPH::Quat", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Quat", align 16
  %32 = alloca %"class.JPH::Quat", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  %34 = alloca %"class.JPH::Quat", align 16
  %35 = alloca %"class.JPH::Vec3", align 16
  %36 = alloca %"class.JPH::BodyID", align 4
  %37 = alloca %"class.JPH::BodyCreationSettings", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Quat", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %40 = load ptr, ptr %2, align 8
  %41 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 3
  %42 = load ptr, ptr %41, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %3) #10
  %43 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 1.000000e+02, float noundef 1.000000e+01, float noundef 1.000000e+02)
          to label %44 unwind label %186

44:                                               ; preds = %1
  %45 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 0
  %46 = load double, ptr %45, align 16
  %47 = getelementptr inbounds { double, double }, ptr %4, i32 0, i32 1
  %48 = load double, ptr %47, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %43, double %46, double %48, float noundef 0.000000e+00, ptr noundef null)
          to label %49 unwind label %186

49:                                               ; preds = %44
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 0.000000e+00, float noundef -1.000000e+01, float noundef 0.000000e+00)
  %50 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %51 = getelementptr inbounds %"class.JPH::Quat", ptr %8, i32 0, i32 0
  %52 = getelementptr inbounds %"class.JPH::Vec4", ptr %51, i32 0, i32 0
  %53 = getelementptr inbounds %union.anon.4, ptr %52, i32 0, i32 0
  %54 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 0
  %55 = extractvalue { double, double } %50, 0
  store double %55, ptr %54, align 16
  %56 = getelementptr inbounds { double, double }, ptr %53, i32 0, i32 1
  %57 = extractvalue { double, double } %50, 1
  store double %57, ptr %56, align 8
  %58 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 0
  %59 = load double, ptr %58, align 16
  %60 = getelementptr inbounds { double, double }, ptr %7, i32 0, i32 1
  %61 = load double, ptr %60, align 8
  %62 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %63 = load double, ptr %62, align 16
  %64 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %65 = load double, ptr %64, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %3, ptr noundef %43, double %59, double %61, double %63, double %65, i8 noundef zeroext 0, i16 noundef zeroext 0)
  %66 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 16 dereferenceable(256) %3, i32 noundef 1)
          to label %67 unwind label %190

67:                                               ; preds = %49
  %68 = getelementptr inbounds %"class.JPH::BodyID", ptr %9, i32 0, i32 0
  store i32 %66, ptr %68, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %3) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr %10) #10
  call void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %10)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 0.000000e+00, float noundef 1.500000e+00, float noundef 0.000000e+00)
          to label %69 unwind label %195

69:                                               ; preds = %67
  %70 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %71 unwind label %195

71:                                               ; preds = %69
  %72 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %73 = getelementptr inbounds %union.anon, ptr %72, i32 0, i32 0
  %74 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 0
  %75 = extractvalue { double, double } %70, 0
  store double %75, ptr %74, align 16
  %76 = getelementptr inbounds { double, double }, ptr %73, i32 0, i32 1
  %77 = extractvalue { double, double } %70, 1
  store double %77, ptr %76, align 8
  %78 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %79 = load double, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %81 = load double, ptr %80, align 8
  %82 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %79, double %81, float noundef 0x3FF921FB60000000)
          to label %83 unwind label %195

83:                                               ; preds = %71
  %84 = getelementptr inbounds %"class.JPH::Quat", ptr %12, i32 0, i32 0
  %85 = getelementptr inbounds %"class.JPH::Vec4", ptr %84, i32 0, i32 0
  %86 = getelementptr inbounds %union.anon.4, ptr %85, i32 0, i32 0
  %87 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 0
  %88 = extractvalue { double, double } %82, 0
  store double %88, ptr %87, align 16
  %89 = getelementptr inbounds { double, double }, ptr %86, i32 0, i32 1
  %90 = extractvalue { double, double } %82, 1
  store double %90, ptr %89, align 8
  %91 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %92 unwind label %195

92:                                               ; preds = %83
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 1.500000e+00, float noundef 2.500000e-01, float noundef 0x3FC99999A0000000)
          to label %93 unwind label %199

93:                                               ; preds = %92
  %94 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 0
  %95 = load double, ptr %94, align 16
  %96 = getelementptr inbounds { double, double }, ptr %14, i32 0, i32 1
  %97 = load double, ptr %96, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %91, double %95, double %97, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %98 unwind label %199

98:                                               ; preds = %93
  %99 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 0
  %100 = load double, ptr %99, align 16
  %101 = getelementptr inbounds { double, double }, ptr %11, i32 0, i32 1
  %102 = load double, ptr %101, align 8
  %103 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %104 = load double, ptr %103, align 16
  %105 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %106 = load double, ptr %105, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %10, double %100, double %102, double %104, double %106, ptr noundef %91, i32 noundef 0)
          to label %107 unwind label %195

107:                                              ; preds = %98
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %15, float noundef 1.500000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %108 unwind label %195

108:                                              ; preds = %107
  %109 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %110 unwind label %195

110:                                              ; preds = %108
  %111 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %112 = getelementptr inbounds %union.anon, ptr %111, i32 0, i32 0
  %113 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 0
  %114 = extractvalue { double, double } %109, 0
  store double %114, ptr %113, align 16
  %115 = getelementptr inbounds { double, double }, ptr %112, i32 0, i32 1
  %116 = extractvalue { double, double } %109, 1
  store double %116, ptr %115, align 8
  %117 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %118 = load double, ptr %117, align 16
  %119 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %120 = load double, ptr %119, align 8
  %121 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %118, double %120, float noundef 0x3FF921FB60000000)
          to label %122 unwind label %195

122:                                              ; preds = %110
  %123 = getelementptr inbounds %"class.JPH::Quat", ptr %16, i32 0, i32 0
  %124 = getelementptr inbounds %"class.JPH::Vec4", ptr %123, i32 0, i32 0
  %125 = getelementptr inbounds %union.anon.4, ptr %124, i32 0, i32 0
  %126 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 0
  %127 = extractvalue { double, double } %121, 0
  store double %127, ptr %126, align 16
  %128 = getelementptr inbounds { double, double }, ptr %125, i32 0, i32 1
  %129 = extractvalue { double, double } %121, 1
  store double %129, ptr %128, align 8
  %130 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %131 unwind label %195

131:                                              ; preds = %122
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %130, float noundef 1.500000e+00, float noundef 0x3FC99999A0000000, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %132 unwind label %203

132:                                              ; preds = %131
  %133 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 0
  %134 = load double, ptr %133, align 16
  %135 = getelementptr inbounds { double, double }, ptr %15, i32 0, i32 1
  %136 = load double, ptr %135, align 8
  %137 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %138 = load double, ptr %137, align 16
  %139 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %140 = load double, ptr %139, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %10, double %134, double %136, double %138, double %140, ptr noundef %130, i32 noundef 0)
          to label %141 unwind label %195

141:                                              ; preds = %132
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %18, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.500000e+00)
          to label %142 unwind label %195

142:                                              ; preds = %141
  %143 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %144 unwind label %195

144:                                              ; preds = %142
  %145 = getelementptr inbounds %"class.JPH::Vec3", ptr %20, i32 0, i32 0
  %146 = getelementptr inbounds %union.anon, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 0
  %148 = extractvalue { double, double } %143, 0
  store double %148, ptr %147, align 16
  %149 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 1
  %150 = extractvalue { double, double } %143, 1
  store double %150, ptr %149, align 8
  %151 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %152 = load double, ptr %151, align 16
  %153 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %154 = load double, ptr %153, align 8
  %155 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %152, double %154, float noundef 0x3FF921FB60000000)
          to label %156 unwind label %195

156:                                              ; preds = %144
  %157 = getelementptr inbounds %"class.JPH::Quat", ptr %19, i32 0, i32 0
  %158 = getelementptr inbounds %"class.JPH::Vec4", ptr %157, i32 0, i32 0
  %159 = getelementptr inbounds %union.anon.4, ptr %158, i32 0, i32 0
  %160 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 0
  %161 = extractvalue { double, double } %155, 0
  store double %161, ptr %160, align 16
  %162 = getelementptr inbounds { double, double }, ptr %159, i32 0, i32 1
  %163 = extractvalue { double, double } %155, 1
  store double %163, ptr %162, align 8
  %164 = invoke noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
          to label %165 unwind label %195

165:                                              ; preds = %156
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %164, float noundef 1.500000e+00, float noundef 2.500000e-01, float noundef 0x3FC99999A0000000, ptr noundef null)
          to label %166 unwind label %207

166:                                              ; preds = %165
  %167 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %168 = load double, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %170 = load double, ptr %169, align 8
  %171 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %172 = load double, ptr %171, align 16
  %173 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %174 = load double, ptr %173, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_13ShapeSettingsEj(ptr noundef nonnull align 8 dereferenceable(88) %10, double %168, double %170, double %172, double %174, ptr noundef %164, i32 noundef 0)
          to label %175 unwind label %195

175:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 40, ptr %21) #10
  invoke void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8 %21, ptr noundef nonnull align 8 dereferenceable(88) %10)
          to label %176 unwind label %211

176:                                              ; preds = %175
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %21)
          to label %178 unwind label %215

178:                                              ; preds = %176
  %179 = getelementptr inbounds %class.MutableCompoundShapeTest, ptr %40, i32 0, i32 2
  %180 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull align 8 dereferenceable(8) %177)
          to label %181 unwind label %215

181:                                              ; preds = %178
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %21) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  store i32 0, ptr %22, align 4, !tbaa !18
  br label %182

182:                                              ; preds = %410, %181
  %183 = load i32, ptr %22, align 4, !tbaa !18
  %184 = icmp slt i32 %183, 10
  br i1 %184, label %220, label %185

185:                                              ; preds = %182
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %449

186:                                              ; preds = %44, %1
  %187 = landingpad { ptr, i32 }
          cleanup
  %188 = extractvalue { ptr, i32 } %187, 0
  store ptr %188, ptr %5, align 8
  %189 = extractvalue { ptr, i32 } %187, 1
  store i32 %189, ptr %6, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %43) #10
  br label %194

190:                                              ; preds = %49
  %191 = landingpad { ptr, i32 }
          cleanup
  %192 = extractvalue { ptr, i32 } %191, 0
  store ptr %192, ptr %5, align 8
  %193 = extractvalue { ptr, i32 } %191, 1
  store i32 %193, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %3) #10
  br label %194

194:                                              ; preds = %190, %186
  call void @llvm.lifetime.end.p0(i64 256, ptr %3) #10
  br label %451

195:                                              ; preds = %166, %156, %144, %142, %141, %132, %122, %110, %108, %107, %98, %83, %71, %69, %67
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %5, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %6, align 4
  br label %450

199:                                              ; preds = %93, %92
  %200 = landingpad { ptr, i32 }
          cleanup
  %201 = extractvalue { ptr, i32 } %200, 0
  store ptr %201, ptr %5, align 8
  %202 = extractvalue { ptr, i32 } %200, 1
  store i32 %202, ptr %6, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %91) #10
  br label %450

203:                                              ; preds = %131
  %204 = landingpad { ptr, i32 }
          cleanup
  %205 = extractvalue { ptr, i32 } %204, 0
  store ptr %205, ptr %5, align 8
  %206 = extractvalue { ptr, i32 } %204, 1
  store i32 %206, ptr %6, align 4
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %130) #10
  br label %450

207:                                              ; preds = %165
  %208 = landingpad { ptr, i32 }
          cleanup
  %209 = extractvalue { ptr, i32 } %208, 0
  store ptr %209, ptr %5, align 8
  %210 = extractvalue { ptr, i32 } %208, 1
  store i32 %210, ptr %6, align 4
  call void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %164) #10
  br label %450

211:                                              ; preds = %175
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %5, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %6, align 4
  br label %219

215:                                              ; preds = %178, %176
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %5, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %6, align 4
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %21) #10
  br label %219

219:                                              ; preds = %215, %211
  call void @llvm.lifetime.end.p0(i64 40, ptr %21) #10
  br label %450

220:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #10
  %221 = invoke noundef ptr @_ZN3JPH28MutableCompoundShapeSettingsnwEm(i64 noundef 88)
          to label %222 unwind label %413

222:                                              ; preds = %220
  invoke void @_ZN3JPH28MutableCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %221)
          to label %223 unwind label %417

223:                                              ; preds = %222
  invoke void @_ZN3JPH3RefINS_28MutableCompoundShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %23, ptr noundef %221)
          to label %224 unwind label %413

224:                                              ; preds = %223
  %225 = invoke noundef ptr @_ZNK3JPH3RefINS_28MutableCompoundShapeSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %226 unwind label %421

226:                                              ; preds = %224
  %227 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %228 unwind label %421

228:                                              ; preds = %226
  %229 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %230 = getelementptr inbounds %union.anon, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 0
  %232 = extractvalue { double, double } %227, 0
  store double %232, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 1
  %234 = extractvalue { double, double } %227, 1
  store double %234, ptr %233, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %235 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %236 unwind label %425

236:                                              ; preds = %228
  %237 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %238 = getelementptr inbounds %union.anon, ptr %237, i32 0, i32 0
  %239 = getelementptr inbounds { double, double }, ptr %238, i32 0, i32 0
  %240 = extractvalue { double, double } %235, 0
  store double %240, ptr %239, align 16
  %241 = getelementptr inbounds { double, double }, ptr %238, i32 0, i32 1
  %242 = extractvalue { double, double } %235, 1
  store double %242, ptr %241, align 8
  %243 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %244 = load double, ptr %243, align 16
  %245 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %246 = load double, ptr %245, align 8
  %247 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %244, double %246, float noundef 0xBFE921FB60000000)
          to label %248 unwind label %425

248:                                              ; preds = %236
  %249 = getelementptr inbounds %"class.JPH::Quat", ptr %26, i32 0, i32 0
  %250 = getelementptr inbounds %"class.JPH::Vec4", ptr %249, i32 0, i32 0
  %251 = getelementptr inbounds %union.anon.4, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds { double, double }, ptr %251, i32 0, i32 0
  %253 = extractvalue { double, double } %247, 0
  store double %253, ptr %252, align 16
  %254 = getelementptr inbounds { double, double }, ptr %251, i32 0, i32 1
  %255 = extractvalue { double, double } %247, 1
  store double %255, ptr %254, align 8
  %256 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %257 unwind label %425

257:                                              ; preds = %248
  %258 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %259 = getelementptr inbounds %union.anon, ptr %258, i32 0, i32 0
  %260 = getelementptr inbounds { double, double }, ptr %259, i32 0, i32 0
  %261 = extractvalue { double, double } %256, 0
  store double %261, ptr %260, align 16
  %262 = getelementptr inbounds { double, double }, ptr %259, i32 0, i32 1
  %263 = extractvalue { double, double } %256, 1
  store double %263, ptr %262, align 8
  %264 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %265 = load double, ptr %264, align 16
  %266 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %267 = load double, ptr %266, align 8
  %268 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %265, double %267, float noundef 0x3FE921FB60000000)
          to label %269 unwind label %425

269:                                              ; preds = %257
  %270 = getelementptr inbounds %"class.JPH::Quat", ptr %28, i32 0, i32 0
  %271 = getelementptr inbounds %"class.JPH::Vec4", ptr %270, i32 0, i32 0
  %272 = getelementptr inbounds %union.anon.4, ptr %271, i32 0, i32 0
  %273 = getelementptr inbounds { double, double }, ptr %272, i32 0, i32 0
  %274 = extractvalue { double, double } %268, 0
  store double %274, ptr %273, align 16
  %275 = getelementptr inbounds { double, double }, ptr %272, i32 0, i32 1
  %276 = extractvalue { double, double } %268, 1
  store double %276, ptr %275, align 8
  %277 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %278 = load double, ptr %277, align 16
  %279 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %280 = load double, ptr %279, align 8
  %281 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %26, double %278, double %280)
          to label %282 unwind label %425

282:                                              ; preds = %269
  %283 = getelementptr inbounds %"class.JPH::Quat", ptr %25, i32 0, i32 0
  %284 = getelementptr inbounds %"class.JPH::Vec4", ptr %283, i32 0, i32 0
  %285 = getelementptr inbounds %union.anon.4, ptr %284, i32 0, i32 0
  %286 = getelementptr inbounds { double, double }, ptr %285, i32 0, i32 0
  %287 = extractvalue { double, double } %281, 0
  store double %287, ptr %286, align 16
  %288 = getelementptr inbounds { double, double }, ptr %285, i32 0, i32 1
  %289 = extractvalue { double, double } %281, 1
  store double %289, ptr %288, align 8
  %290 = getelementptr inbounds %class.MutableCompoundShapeTest, ptr %40, i32 0, i32 2
  %291 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %290)
          to label %292 unwind label %425

292:                                              ; preds = %282
  %293 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %294 = load double, ptr %293, align 16
  %295 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %296 = load double, ptr %295, align 8
  %297 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %298 = load double, ptr %297, align 16
  %299 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %300 = load double, ptr %299, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %225, double %294, double %296, double %298, double %300, ptr noundef %291, i32 noundef 0)
          to label %301 unwind label %425

301:                                              ; preds = %292
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  %302 = invoke noundef ptr @_ZNK3JPH3RefINS_28MutableCompoundShapeSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %303 unwind label %421

303:                                              ; preds = %301
  %304 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %305 unwind label %421

305:                                              ; preds = %303
  %306 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %307 = getelementptr inbounds %union.anon, ptr %306, i32 0, i32 0
  %308 = getelementptr inbounds { double, double }, ptr %307, i32 0, i32 0
  %309 = extractvalue { double, double } %304, 0
  store double %309, ptr %308, align 16
  %310 = getelementptr inbounds { double, double }, ptr %307, i32 0, i32 1
  %311 = extractvalue { double, double } %304, 1
  store double %311, ptr %310, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #10
  %312 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %313 unwind label %429

313:                                              ; preds = %305
  %314 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %315 = getelementptr inbounds %union.anon, ptr %314, i32 0, i32 0
  %316 = getelementptr inbounds { double, double }, ptr %315, i32 0, i32 0
  %317 = extractvalue { double, double } %312, 0
  store double %317, ptr %316, align 16
  %318 = getelementptr inbounds { double, double }, ptr %315, i32 0, i32 1
  %319 = extractvalue { double, double } %312, 1
  store double %319, ptr %318, align 8
  %320 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %321 = load double, ptr %320, align 16
  %322 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %323 = load double, ptr %322, align 8
  %324 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %321, double %323, float noundef 0x3FE921FB60000000)
          to label %325 unwind label %429

325:                                              ; preds = %313
  %326 = getelementptr inbounds %"class.JPH::Quat", ptr %32, i32 0, i32 0
  %327 = getelementptr inbounds %"class.JPH::Vec4", ptr %326, i32 0, i32 0
  %328 = getelementptr inbounds %union.anon.4, ptr %327, i32 0, i32 0
  %329 = getelementptr inbounds { double, double }, ptr %328, i32 0, i32 0
  %330 = extractvalue { double, double } %324, 0
  store double %330, ptr %329, align 16
  %331 = getelementptr inbounds { double, double }, ptr %328, i32 0, i32 1
  %332 = extractvalue { double, double } %324, 1
  store double %332, ptr %331, align 8
  %333 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %334 unwind label %429

334:                                              ; preds = %325
  %335 = getelementptr inbounds %"class.JPH::Vec3", ptr %35, i32 0, i32 0
  %336 = getelementptr inbounds %union.anon, ptr %335, i32 0, i32 0
  %337 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 0
  %338 = extractvalue { double, double } %333, 0
  store double %338, ptr %337, align 16
  %339 = getelementptr inbounds { double, double }, ptr %336, i32 0, i32 1
  %340 = extractvalue { double, double } %333, 1
  store double %340, ptr %339, align 8
  %341 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 0
  %342 = load double, ptr %341, align 16
  %343 = getelementptr inbounds { double, double }, ptr %35, i32 0, i32 1
  %344 = load double, ptr %343, align 8
  %345 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %342, double %344, float noundef 0xC002D97C80000000)
          to label %346 unwind label %429

346:                                              ; preds = %334
  %347 = getelementptr inbounds %"class.JPH::Quat", ptr %34, i32 0, i32 0
  %348 = getelementptr inbounds %"class.JPH::Vec4", ptr %347, i32 0, i32 0
  %349 = getelementptr inbounds %union.anon.4, ptr %348, i32 0, i32 0
  %350 = getelementptr inbounds { double, double }, ptr %349, i32 0, i32 0
  %351 = extractvalue { double, double } %345, 0
  store double %351, ptr %350, align 16
  %352 = getelementptr inbounds { double, double }, ptr %349, i32 0, i32 1
  %353 = extractvalue { double, double } %345, 1
  store double %353, ptr %352, align 8
  %354 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 0
  %355 = load double, ptr %354, align 16
  %356 = getelementptr inbounds { double, double }, ptr %34, i32 0, i32 1
  %357 = load double, ptr %356, align 8
  %358 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %32, double %355, double %357)
          to label %359 unwind label %429

359:                                              ; preds = %346
  %360 = getelementptr inbounds %"class.JPH::Quat", ptr %31, i32 0, i32 0
  %361 = getelementptr inbounds %"class.JPH::Vec4", ptr %360, i32 0, i32 0
  %362 = getelementptr inbounds %union.anon.4, ptr %361, i32 0, i32 0
  %363 = getelementptr inbounds { double, double }, ptr %362, i32 0, i32 0
  %364 = extractvalue { double, double } %358, 0
  store double %364, ptr %363, align 16
  %365 = getelementptr inbounds { double, double }, ptr %362, i32 0, i32 1
  %366 = extractvalue { double, double } %358, 1
  store double %366, ptr %365, align 8
  %367 = getelementptr inbounds %class.MutableCompoundShapeTest, ptr %40, i32 0, i32 2
  %368 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %367)
          to label %369 unwind label %429

369:                                              ; preds = %359
  %370 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %371 = load double, ptr %370, align 16
  %372 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %373 = load double, ptr %372, align 8
  %374 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %375 = load double, ptr %374, align 16
  %376 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %377 = load double, ptr %376, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %302, double %371, double %373, double %375, double %377, ptr noundef %368, i32 noundef 0)
          to label %378 unwind label %429

378:                                              ; preds = %369
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #10
  %379 = getelementptr inbounds %class.Test, ptr %40, i32 0, i32 3
  %380 = load ptr, ptr %379, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 256, ptr %37) #10
  %381 = invoke noundef ptr @_ZNK3JPH3RefINS_28MutableCompoundShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %23)
          to label %382 unwind label %433

382:                                              ; preds = %378
  %383 = load i32, ptr %22, align 4, !tbaa !18
  %384 = sitofp i32 %383 to float
  %385 = call float @llvm.fmuladd.f32(float 5.000000e+00, float %384, float 1.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %38, float noundef 0.000000e+00, float noundef %385, float noundef 0.000000e+00)
          to label %386 unwind label %433

386:                                              ; preds = %382
  %387 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %388 unwind label %433

388:                                              ; preds = %386
  %389 = getelementptr inbounds %"class.JPH::Quat", ptr %39, i32 0, i32 0
  %390 = getelementptr inbounds %"class.JPH::Vec4", ptr %389, i32 0, i32 0
  %391 = getelementptr inbounds %union.anon.4, ptr %390, i32 0, i32 0
  %392 = getelementptr inbounds { double, double }, ptr %391, i32 0, i32 0
  %393 = extractvalue { double, double } %387, 0
  store double %393, ptr %392, align 16
  %394 = getelementptr inbounds { double, double }, ptr %391, i32 0, i32 1
  %395 = extractvalue { double, double } %387, 1
  store double %395, ptr %394, align 8
  %396 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %397 = load double, ptr %396, align 16
  %398 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %399 = load double, ptr %398, align 8
  %400 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 0
  %401 = load double, ptr %400, align 16
  %402 = getelementptr inbounds { double, double }, ptr %39, i32 0, i32 1
  %403 = load double, ptr %402, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %37, ptr noundef %381, double %397, double %399, double %401, double %403, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %404 unwind label %433

404:                                              ; preds = %388
  %405 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %380, ptr noundef nonnull align 16 dereferenceable(256) %37, i32 noundef 0)
          to label %406 unwind label %437

406:                                              ; preds = %404
  %407 = getelementptr inbounds %"class.JPH::BodyID", ptr %36, i32 0, i32 0
  store i32 %405, ptr %407, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %37) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %37) #10
  %408 = getelementptr inbounds %class.MutableCompoundShapeTest, ptr %40, i32 0, i32 1
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %408, ptr noundef nonnull align 4 dereferenceable(4) %36)
          to label %409 unwind label %442

409:                                              ; preds = %406
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  call void @_ZN3JPH3RefINS_28MutableCompoundShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  br label %410

410:                                              ; preds = %409
  %411 = load i32, ptr %22, align 4, !tbaa !18
  %412 = add nsw i32 %411, 1
  store i32 %412, ptr %22, align 4, !tbaa !18
  br label %182, !llvm.loop !20

413:                                              ; preds = %223, %220
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %5, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %6, align 4
  br label %448

417:                                              ; preds = %222
  %418 = landingpad { ptr, i32 }
          cleanup
  %419 = extractvalue { ptr, i32 } %418, 0
  store ptr %419, ptr %5, align 8
  %420 = extractvalue { ptr, i32 } %418, 1
  store i32 %420, ptr %6, align 4
  call void @_ZN3JPH28MutableCompoundShapeSettingsdlEPv(ptr noundef %221) #10
  br label %448

421:                                              ; preds = %303, %301, %226, %224
  %422 = landingpad { ptr, i32 }
          cleanup
  %423 = extractvalue { ptr, i32 } %422, 0
  store ptr %423, ptr %5, align 8
  %424 = extractvalue { ptr, i32 } %422, 1
  store i32 %424, ptr %6, align 4
  br label %447

425:                                              ; preds = %292, %282, %269, %257, %248, %236, %228
  %426 = landingpad { ptr, i32 }
          cleanup
  %427 = extractvalue { ptr, i32 } %426, 0
  store ptr %427, ptr %5, align 8
  %428 = extractvalue { ptr, i32 } %426, 1
  store i32 %428, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  br label %447

429:                                              ; preds = %369, %359, %346, %334, %325, %313, %305
  %430 = landingpad { ptr, i32 }
          cleanup
  %431 = extractvalue { ptr, i32 } %430, 0
  store ptr %431, ptr %5, align 8
  %432 = extractvalue { ptr, i32 } %430, 1
  store i32 %432, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  br label %447

433:                                              ; preds = %388, %386, %382, %378
  %434 = landingpad { ptr, i32 }
          cleanup
  %435 = extractvalue { ptr, i32 } %434, 0
  store ptr %435, ptr %5, align 8
  %436 = extractvalue { ptr, i32 } %434, 1
  store i32 %436, ptr %6, align 4
  br label %441

437:                                              ; preds = %404
  %438 = landingpad { ptr, i32 }
          cleanup
  %439 = extractvalue { ptr, i32 } %438, 0
  store ptr %439, ptr %5, align 8
  %440 = extractvalue { ptr, i32 } %438, 1
  store i32 %440, ptr %6, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %37) #10
  br label %441

441:                                              ; preds = %437, %433
  call void @llvm.lifetime.end.p0(i64 256, ptr %37) #10
  br label %446

442:                                              ; preds = %406
  %443 = landingpad { ptr, i32 }
          cleanup
  %444 = extractvalue { ptr, i32 } %443, 0
  store ptr %444, ptr %5, align 8
  %445 = extractvalue { ptr, i32 } %443, 1
  store i32 %445, ptr %6, align 4
  br label %446

446:                                              ; preds = %442, %441
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #10
  br label %447

447:                                              ; preds = %446, %429, %425, %421
  call void @_ZN3JPH3RefINS_28MutableCompoundShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %23) #10
  br label %448

448:                                              ; preds = %447, %417, %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #10
  br label %450

449:                                              ; preds = %185
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %10) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #10
  ret void

450:                                              ; preds = %448, %219, %207, %203, %199, %195
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %10) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr %10) #10
  br label %451

451:                                              ; preds = %450, %194
  %452 = load ptr, ptr %5, align 8
  %453 = load i32, ptr %6, align 4
  %454 = insertvalue { ptr, i32 } poison, ptr %452, 0
  %455 = insertvalue { ptr, i32 } %454, i32 %453, 1
  resume { ptr, i32 } %455
}

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef) #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80), double, double, float noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8BoxShapedlEPv(ptr noundef) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

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

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

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) #2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef) #3 align 2

declare void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CylinderShapedlEPv(ptr noundef) #5 align 2

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_13ShapeSettingsEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) #2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef) #3 align 2

declare void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88), float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef) #5 align 2

declare void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #8 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH28MutableCompoundShapeSettingsnwEm(i64 noundef) #3 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH28MutableCompoundShapeSettingsdlEPv(ptr noundef) #5 align 2

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

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

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

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

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6 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 = { "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 = { 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 #4 = { 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 #5 = { alwaysinline 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress 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 #9 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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, !6, i64 24}
!10 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !11, i64 48, !12, i64 56}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !13, i64 0}
!13 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !14, i64 8, !15, i64 16, !14, i64 24, !16, i64 32, !6, i64 48}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!16 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !17, i64 0, !14, i64 8}
!17 = !{!"float", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


; 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::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.6", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.6" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::StaticCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.13" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.8", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.8" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.9, i8, [7 x i8] }>
%union.anon.9 = type { %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.12 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.12 = type { i64, [8 x i8] }
%"class.JPH::Array.13" = type { i64, i64, ptr }
%"class.JPH::Ref.16" = type { ptr }
%"class.JPH::BodyID" = type { i32 }

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24MutableCompoundShapeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(148) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::BodyCreationSettings", align 16
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::StaticCompoundShapeSettings", align 8
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Result", align 8
  %11 = alloca %"class.JPH::Ref.16", align 8
  %12 = alloca %"class.JPH::Quat", align 16
  %13 = alloca %"class.JPH::Quat", align 16
  %14 = alloca %"class.JPH::BodyID", align 4
  %15 = alloca %"class.JPH::BodyCreationSettings", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = getelementptr inbounds i8, ptr %0, i64 24
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %2) #10
  %19 = tail call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 1.000000e+02, float noundef 1.000000e+01, float noundef 1.000000e+02)
          to label %20 unwind label %96

20:                                               ; preds = %1
  %21 = load double, ptr %3, align 16
  %22 = getelementptr inbounds i8, ptr %3, i64 8
  %23 = load double, ptr %22, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %19, double %21, double %23, float noundef 0.000000e+00, ptr noundef null)
          to label %24 unwind label %96

24:                                               ; preds = %20
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef -1.000000e+01, float noundef 0.000000e+00)
  %25 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %26 = extractvalue { double, double } %25, 0
  %27 = extractvalue { double, double } %25, 1
  %28 = load double, ptr %4, align 16
  %29 = getelementptr inbounds i8, ptr %4, i64 8
  %30 = load double, ptr %29, align 8
  call void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %2, ptr noundef nonnull %19, double %28, double %30, double %26, double %27, i8 noundef zeroext 0, i16 noundef zeroext 0)
  %31 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 16 dereferenceable(256) %2, i32 noundef 1)
          to label %32 unwind label %98

32:                                               ; preds = %24
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %2) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #10
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #10
  call void @_ZN3JPH27StaticCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %6, float noundef 0.000000e+00, float noundef 1.500000e+00, float noundef 0.000000e+00)
          to label %33 unwind label %101

33:                                               ; preds = %32
  %34 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %35 unwind label %101

35:                                               ; preds = %33
  %36 = extractvalue { double, double } %34, 0
  %37 = extractvalue { double, double } %34, 1
  %38 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %36, double %37, float noundef 0x3FF921FB60000000)
          to label %39 unwind label %101

39:                                               ; preds = %35
  %40 = extractvalue { double, double } %38, 0
  %41 = extractvalue { double, double } %38, 1
  %42 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %43 unwind label %101

43:                                               ; preds = %39
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %7, float noundef 1.500000e+00, float noundef 2.500000e-01, float noundef 0x3FC99999A0000000)
          to label %44 unwind label %103

44:                                               ; preds = %43
  %45 = load double, ptr %7, align 16
  %46 = getelementptr inbounds i8, ptr %7, i64 8
  %47 = load double, ptr %46, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %42, double %45, double %47, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %48 unwind label %103

48:                                               ; preds = %44
  %49 = load double, ptr %6, align 16
  %50 = getelementptr inbounds i8, ptr %6, i64 8
  %51 = load double, ptr %50, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %5, double %49, double %51, double %40, double %41, ptr noundef nonnull %42, i32 noundef 0)
          to label %52 unwind label %101

52:                                               ; preds = %48
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 1.500000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %53 unwind label %101

53:                                               ; preds = %52
  %54 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %55 unwind label %101

55:                                               ; preds = %53
  %56 = extractvalue { double, double } %54, 0
  %57 = extractvalue { double, double } %54, 1
  %58 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %56, double %57, float noundef 0x3FF921FB60000000)
          to label %59 unwind label %101

59:                                               ; preds = %55
  %60 = extractvalue { double, double } %58, 0
  %61 = extractvalue { double, double } %58, 1
  %62 = invoke noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef 56)
          to label %63 unwind label %101

63:                                               ; preds = %59
  invoke void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %62, float noundef 1.500000e+00, float noundef 0x3FC99999A0000000, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %64 unwind label %105

64:                                               ; preds = %63
  %65 = load double, ptr %8, align 16
  %66 = getelementptr inbounds i8, ptr %8, i64 8
  %67 = load double, ptr %66, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %5, double %65, double %67, double %60, double %61, ptr noundef nonnull %62, i32 noundef 0)
          to label %68 unwind label %101

68:                                               ; preds = %64
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 0.000000e+00, float noundef 0.000000e+00, float noundef 1.500000e+00)
          to label %69 unwind label %101

69:                                               ; preds = %68
  %70 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %71 unwind label %101

71:                                               ; preds = %69
  %72 = extractvalue { double, double } %70, 0
  %73 = extractvalue { double, double } %70, 1
  %74 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %72, double %73, float noundef 0x3FF921FB60000000)
          to label %75 unwind label %101

75:                                               ; preds = %71
  %76 = extractvalue { double, double } %74, 0
  %77 = extractvalue { double, double } %74, 1
  %78 = invoke noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef 88)
          to label %79 unwind label %101

79:                                               ; preds = %75
  invoke void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88) %78, float noundef 1.500000e+00, float noundef 2.500000e-01, float noundef 0x3FC99999A0000000, ptr noundef null)
          to label %80 unwind label %107

80:                                               ; preds = %79
  %81 = load double, ptr %9, align 16
  %82 = getelementptr inbounds i8, ptr %9, i64 8
  %83 = load double, ptr %82, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_13ShapeSettingsEj(ptr noundef nonnull align 8 dereferenceable(88) %5, double %81, double %83, double %76, double %77, ptr noundef nonnull %78, i32 noundef 0)
          to label %84 unwind label %101

84:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #10
  invoke void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Result") align 8 %10, ptr noundef nonnull align 8 dereferenceable(88) %5)
          to label %85 unwind label %109

85:                                               ; preds = %84
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33) %10)
          to label %87 unwind label %111

87:                                               ; preds = %85
  %88 = getelementptr inbounds i8, ptr %0, i64 136
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8) %88, ptr noundef nonnull align 8 dereferenceable(8) %86)
          to label %90 unwind label %111

90:                                               ; preds = %87
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #10
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #10
  %91 = getelementptr inbounds i8, ptr %12, i64 8
  %92 = getelementptr inbounds i8, ptr %13, i64 8
  %93 = getelementptr inbounds i8, ptr %16, i64 8
  %94 = getelementptr inbounds i8, ptr %0, i64 112
  br label %114

95:                                               ; preds = %187
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #10
  ret void

96:                                               ; preds = %20, %1
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %19) #10
  br label %100

98:                                               ; preds = %24
  %99 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %2) #10
  br label %100

100:                                              ; preds = %98, %96
  %.pn = phi { ptr, i32 } [ %99, %98 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %2) #10
  br label %210

101:                                              ; preds = %80, %75, %71, %69, %68, %64, %59, %55, %53, %52, %48, %39, %35, %33, %32
  %102 = landingpad { ptr, i32 }
          cleanup
  br label %209

103:                                              ; preds = %44, %43
  %104 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %42) #10
  br label %209

105:                                              ; preds = %63
  %106 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH13CylinderShapedlEPv(ptr noundef %62) #10
  br label %209

107:                                              ; preds = %79
  %108 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef %78) #10
  br label %209

109:                                              ; preds = %84
  %110 = landingpad { ptr, i32 }
          cleanup
  br label %113

111:                                              ; preds = %87, %85
  %112 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33) %10) #10
  br label %113

113:                                              ; preds = %111, %109
  %.pn50 = phi { ptr, i32 } [ %112, %111 ], [ %110, %109 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #10
  br label %209

114:                                              ; preds = %90, %187
  %.04866 = phi i32 [ 0, %90 ], [ %188, %187 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #10
  %115 = invoke noundef ptr @_ZN3JPH28MutableCompoundShapeSettingsnwEm(i64 noundef 88)
          to label %116 unwind label %189

116:                                              ; preds = %114
  invoke void @_ZN3JPH28MutableCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %115)
          to label %117 unwind label %191

117:                                              ; preds = %116
  invoke void @_ZN3JPH3RefINS_28MutableCompoundShapeSettingsEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull %115)
          to label %118 unwind label %189

118:                                              ; preds = %117
  %119 = call noundef ptr @_ZNK3JPH3RefINS_28MutableCompoundShapeSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %120 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %121 unwind label %193

121:                                              ; preds = %118
  %122 = extractvalue { double, double } %120, 0
  %123 = extractvalue { double, double } %120, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %12) #10
  %124 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %125 unwind label %195

125:                                              ; preds = %121
  %126 = extractvalue { double, double } %124, 0
  %127 = extractvalue { double, double } %124, 1
  %128 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %126, double %127, float noundef 0xBFE921FB60000000)
          to label %129 unwind label %195

129:                                              ; preds = %125
  %130 = extractvalue { double, double } %128, 0
  store double %130, ptr %12, align 16
  %131 = extractvalue { double, double } %128, 1
  store double %131, ptr %91, align 8
  %132 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %133 unwind label %195

133:                                              ; preds = %129
  %134 = extractvalue { double, double } %132, 0
  %135 = extractvalue { double, double } %132, 1
  %136 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %134, double %135, float noundef 0x3FE921FB60000000)
          to label %137 unwind label %195

137:                                              ; preds = %133
  %138 = extractvalue { double, double } %136, 0
  %139 = extractvalue { double, double } %136, 1
  %140 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %12, double %138, double %139)
          to label %141 unwind label %195

141:                                              ; preds = %137
  %142 = extractvalue { double, double } %140, 0
  %143 = extractvalue { double, double } %140, 1
  %144 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %88)
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %119, double %122, double %123, double %142, double %143, ptr noundef %144, i32 noundef 0)
          to label %145 unwind label %195

145:                                              ; preds = %141
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  %146 = call noundef ptr @_ZNK3JPH3RefINS_28MutableCompoundShapeSettingsEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %147 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %148 unwind label %193

148:                                              ; preds = %145
  %149 = extractvalue { double, double } %147, 0
  %150 = extractvalue { double, double } %147, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #10
  %151 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %152 unwind label %197

152:                                              ; preds = %148
  %153 = extractvalue { double, double } %151, 0
  %154 = extractvalue { double, double } %151, 1
  %155 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %153, double %154, float noundef 0x3FE921FB60000000)
          to label %156 unwind label %197

156:                                              ; preds = %152
  %157 = extractvalue { double, double } %155, 0
  store double %157, ptr %13, align 16
  %158 = extractvalue { double, double } %155, 1
  store double %158, ptr %92, align 8
  %159 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %160 unwind label %197

160:                                              ; preds = %156
  %161 = extractvalue { double, double } %159, 0
  %162 = extractvalue { double, double } %159, 1
  %163 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %161, double %162, float noundef 0xC002D97C80000000)
          to label %164 unwind label %197

164:                                              ; preds = %160
  %165 = extractvalue { double, double } %163, 0
  %166 = extractvalue { double, double } %163, 1
  %167 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %13, double %165, double %166)
          to label %168 unwind label %197

168:                                              ; preds = %164
  %169 = extractvalue { double, double } %167, 0
  %170 = extractvalue { double, double } %167, 1
  %171 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %88)
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %146, double %149, double %150, double %169, double %170, ptr noundef %171, i32 noundef 0)
          to label %172 unwind label %197

172:                                              ; preds = %168
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #10
  %173 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %15) #10
  %174 = call noundef ptr @_ZNK3JPH3RefINS_28MutableCompoundShapeSettingsEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %11)
  %175 = uitofp nneg i32 %.04866 to float
  %176 = call float @llvm.fmuladd.f32(float %175, float 5.000000e+00, float 1.000000e+01)
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef 0.000000e+00, float noundef %176, float noundef 0.000000e+00)
          to label %177 unwind label %199

177:                                              ; preds = %172
  %178 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %179 unwind label %199

179:                                              ; preds = %177
  %180 = extractvalue { double, double } %178, 0
  %181 = extractvalue { double, double } %178, 1
  %182 = load double, ptr %16, align 16
  %183 = load double, ptr %93, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %15, ptr noundef %174, double %182, double %183, double %180, double %181, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %184 unwind label %199

184:                                              ; preds = %179
  %185 = invoke i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %173, ptr noundef nonnull align 16 dereferenceable(256) %15, i32 noundef 0)
          to label %186 unwind label %201

186:                                              ; preds = %184
  store i32 %185, ptr %14, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %15) #10
  invoke void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %94, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %187 unwind label %204

187:                                              ; preds = %186
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #10
  call void @_ZN3JPH3RefINS_28MutableCompoundShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  %188 = add nuw nsw i32 %.04866, 1
  %exitcond.not = icmp eq i32 %188, 10
  br i1 %exitcond.not, label %95, label %114, !llvm.loop !17

189:                                              ; preds = %117, %114
  %190 = landingpad { ptr, i32 }
          cleanup
  br label %208

191:                                              ; preds = %116
  %192 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH28MutableCompoundShapeSettingsdlEPv(ptr noundef %115) #10
  br label %208

193:                                              ; preds = %145, %118
  %194 = landingpad { ptr, i32 }
          cleanup
  br label %207

195:                                              ; preds = %141, %137, %133, %129, %125, %121
  %196 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %12) #10
  br label %207

197:                                              ; preds = %168, %164, %160, %156, %152, %148
  %198 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #10
  br label %207

199:                                              ; preds = %179, %177, %172
  %200 = landingpad { ptr, i32 }
          cleanup
  br label %203

201:                                              ; preds = %184
  %202 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %15) #10
  br label %203

203:                                              ; preds = %201, %199
  %.pn52 = phi { ptr, i32 } [ %202, %201 ], [ %200, %199 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %15) #10
  br label %206

204:                                              ; preds = %186
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %206

206:                                              ; preds = %204, %203
  %.pn54 = phi { ptr, i32 } [ %205, %204 ], [ %.pn52, %203 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #10
  br label %207

207:                                              ; preds = %206, %197, %195, %193
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %206 ], [ %198, %197 ], [ %194, %193 ], [ %196, %195 ]
  call void @_ZN3JPH3RefINS_28MutableCompoundShapeSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #10
  br label %208

208:                                              ; preds = %207, %191, %189
  %.pn54.pn.pn = phi { ptr, i32 } [ %.pn54.pn, %207 ], [ %190, %189 ], [ %192, %191 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #10
  br label %209

209:                                              ; preds = %208, %113, %107, %105, %103, %101
  %.pn54.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn, %208 ], [ %.pn50, %113 ], [ %102, %101 ], [ %108, %107 ], [ %106, %105 ], [ %104, %103 ]
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #10
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #10
  br label %210

210:                                              ; preds = %209, %100
  %.pn54.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn54.pn.pn.pn, %209 ], [ %.pn, %100 ]
  resume { ptr, i32 } %.pn54.pn.pn.pn.pn
}

declare i32 @_ZN3JPH13BodyInterface16CreateAndAddBodyERKNS_20BodyCreationSettingsENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256), i32 noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80), double, double, float noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH8BoxShapedlEPv(ptr noundef) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

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

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

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH13CylinderShapenwEm(i64 noundef) local_unnamed_addr #3 align 2

declare void @_ZN3JPH13CylinderShapeC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH13CylinderShapedlEPv(ptr noundef) local_unnamed_addr #5 align 2

declare void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_13ShapeSettingsEj(ptr noundef nonnull align 8 dereferenceable(88), double, double, double, double, ptr noundef, i32 noundef) local_unnamed_addr #2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH27TaperedCapsuleShapeSettingsnwEm(i64 noundef) local_unnamed_addr #3 align 2

declare void @_ZN3JPH27TaperedCapsuleShapeSettingsC1EfffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(88), float noundef, float noundef, float noundef, ptr noundef) unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH27TaperedCapsuleShapeSettingsdlEPv(ptr noundef) local_unnamed_addr #5 align 2

declare void @_ZNK3JPH27StaticCompoundShapeSettings6CreateEv(ptr dead_on_unwind writable sret(%"class.JPH::Result") align 8, ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH6ResultINS_3RefINS_5ShapeEEEE3GetEv(ptr noundef nonnull align 8 dereferenceable(33)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSERKNS_3RefIS1_EE(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH6ResultINS_3RefINS_5ShapeEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(33)) unnamed_addr #8 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH28MutableCompoundShapeSettingsnwEm(i64 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH28MutableCompoundShapeSettingsdlEPv(ptr noundef) local_unnamed_addr #5 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #9

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256), ptr noundef, double, double, double, double, i8 noundef zeroext, i16 noundef zeroext) unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE9push_backERKS1_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6 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 = { "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 = { 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 #4 = { 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 #5 = { alwaysinline 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 #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress 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 #9 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #10 = { 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, !7, i64 24}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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