; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Constraints (ConstraintVsCOMChangeTest)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.7 }
%union.anon.7 = type { <4 x float> }
%"class.JPH::MutableCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.22" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.16", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.16" = type { %"struct.std::atomic.9" }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.17, i8, [7 x i8] }>
%union.anon.17 = 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.21 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.21 = type { i64, [8 x i8] }
%"class.JPH::Array.22" = type { i64, i64, ptr }
%"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.25", %"class.JPH::RefConst" }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.8", i32, i32 }
%"class.JPH::RefConst.8" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.25" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::HingeConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::SpringSettings", float, %"class.JPH::MotorSettings", [12 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.26", i8, i32, i32, i32, float, i64 }
%"class.JPH::RefTarget.26" = type { %"struct.std::atomic.9" }
%"class.JPH::SpringSettings" = type { i8, %union.anon.27, float }
%union.anon.27 = type { float }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }
%"class.JPH::Ref.36" = type { ptr }
%class.ConstraintVsCOMChangeTest = type { %class.Test, %"class.JPH::RefConst", %"class.JPH::Array", %"class.JPH::Array.4", float, i32 }
%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.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.4" = 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 @_ZN25ConstraintVsCOMChangeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(176) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca float, align 4
  %5 = alloca float, align 4
  %6 = alloca %"class.JPH::Vec3", align 16
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.JPH::Ref", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca i32, align 4
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.JPH::Quat", align 16
  %15 = alloca %"class.JPH::MutableCompoundShapeSettings", align 8
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Quat", align 16
  %18 = alloca ptr, align 8
  %19 = alloca %"class.JPH::BodyCreationSettings", align 16
  %20 = alloca %"class.JPH::Vec3", align 16
  %21 = alloca %"class.JPH::Quat", align 16
  %22 = alloca %"class.JPH::CollisionGroup", align 8
  %23 = alloca %"class.JPH::HingeConstraintSettings", align 16
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  %28 = alloca ptr, align 8
  %29 = alloca %"class.JPH::Ref.36", align 8
  %30 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %31 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  store i32 15, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #9
  store float 0xBFC6571840000000, ptr %4, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store float 0x3FD6571840000000, ptr %5, align 4, !tbaa !11
  %32 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %31, float noundef 2.000000e+02)
  %33 = call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %34 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 1.000000e+00)
          to label %35 unwind label %55

35:                                               ; preds = %1
  %36 = getelementptr inbounds %"class.JPH::Vec3", ptr %6, i32 0, i32 0
  %37 = getelementptr inbounds %union.anon, ptr %36, i32 0, i32 0
  %38 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %39 = extractvalue { double, double } %34, 0
  store double %39, ptr %38, align 16
  %40 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %41 = extractvalue { double, double } %34, 1
  store double %41, ptr %40, align 8
  %42 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 0
  %43 = load double, ptr %42, align 16
  %44 = getelementptr inbounds { double, double }, ptr %6, i32 0, i32 1
  %45 = load double, ptr %44, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %33, double %43, double %45, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %46 unwind label %55

46:                                               ; preds = %35
  %47 = getelementptr inbounds %class.ConstraintVsCOMChangeTest, ptr %31, i32 0, i32 1
  %48 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %47, ptr noundef %33)
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  %49 = call noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %49, i32 noundef 15)
          to label %50 unwind label %59

50:                                               ; preds = %46
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef %49)
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #9
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %51

51:                                               ; preds = %70, %50
  %52 = load i32, ptr %10, align 4, !tbaa !9
  %53 = icmp ult i32 %52, 14
  br i1 %53, label %63, label %54

54:                                               ; preds = %51
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %77

55:                                               ; preds = %35, %1
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %7, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %8, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %33) #9
  br label %315

59:                                               ; preds = %46
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %7, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %8, align 4
  call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %49) #9
  br label %314

63:                                               ; preds = %51
  %64 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %65 unwind label %73

65:                                               ; preds = %63
  %66 = load i32, ptr %10, align 4, !tbaa !9
  %67 = load i32, ptr %10, align 4, !tbaa !9
  %68 = add i32 %67, 1
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %64, i32 noundef %66, i32 noundef %68)
          to label %69 unwind label %73

69:                                               ; preds = %65
  br label %70

70:                                               ; preds = %69
  %71 = load i32, ptr %10, align 4, !tbaa !9
  %72 = add i32 %71, 1
  store i32 %72, ptr %10, align 4, !tbaa !9
  br label %51, !llvm.loop !13

73:                                               ; preds = %65, %63
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %7, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #9
  br label %313

77:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 0.000000e+00, float noundef 2.500000e+01, float noundef 0.000000e+00)
          to label %78 unwind label %83

78:                                               ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #9
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %79

79:                                               ; preds = %299, %78
  %80 = load i32, ptr %12, align 4, !tbaa !9
  %81 = icmp slt i32 %80, 15
  br i1 %81, label %87, label %82

82:                                               ; preds = %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %311

83:                                               ; preds = %77
  %84 = landingpad { ptr, i32 }
          cleanup
  %85 = extractvalue { ptr, i32 } %84, 0
  store ptr %85, ptr %7, align 8
  %86 = extractvalue { ptr, i32 } %84, 1
  store i32 %86, ptr %8, align 4
  br label %312

87:                                               ; preds = %79
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %88 unwind label %225

88:                                               ; preds = %87
  %89 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %90 = load double, ptr %89, align 16
  %91 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %92 = load double, ptr %91, align 8
  %93 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %90, double %92)
          to label %94 unwind label %225

94:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #9
  %95 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %96 unwind label %229

96:                                               ; preds = %94
  %97 = getelementptr inbounds %"class.JPH::Quat", ptr %14, i32 0, i32 0
  %98 = getelementptr inbounds %"class.JPH::Vec4", ptr %97, i32 0, i32 0
  %99 = getelementptr inbounds %union.anon.7, ptr %98, i32 0, i32 0
  %100 = getelementptr inbounds { double, double }, ptr %99, i32 0, i32 0
  %101 = extractvalue { double, double } %95, 0
  store double %101, ptr %100, align 16
  %102 = getelementptr inbounds { double, double }, ptr %99, i32 0, i32 1
  %103 = extractvalue { double, double } %95, 1
  store double %103, ptr %102, align 8
  call void @llvm.lifetime.start.p0(i64 88, ptr %15) #9
  invoke void @_ZN3JPH28MutableCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %15)
          to label %104 unwind label %233

104:                                              ; preds = %96
  %105 = getelementptr inbounds i8, ptr %15, i64 8
  invoke void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %105)
          to label %106 unwind label %237

106:                                              ; preds = %104
  %107 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %108 unwind label %237

108:                                              ; preds = %106
  %109 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, i32 0, i32 0
  %110 = getelementptr inbounds %union.anon, ptr %109, i32 0, i32 0
  %111 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 0
  %112 = extractvalue { double, double } %107, 0
  store double %112, ptr %111, align 16
  %113 = getelementptr inbounds { double, double }, ptr %110, i32 0, i32 1
  %114 = extractvalue { double, double } %107, 1
  store double %114, ptr %113, align 8
  %115 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %116 unwind label %237

116:                                              ; preds = %108
  %117 = getelementptr inbounds %"class.JPH::Quat", ptr %17, i32 0, i32 0
  %118 = getelementptr inbounds %"class.JPH::Vec4", ptr %117, i32 0, i32 0
  %119 = getelementptr inbounds %union.anon.7, ptr %118, i32 0, i32 0
  %120 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 0
  %121 = extractvalue { double, double } %115, 0
  store double %121, ptr %120, align 16
  %122 = getelementptr inbounds { double, double }, ptr %119, i32 0, i32 1
  %123 = extractvalue { double, double } %115, 1
  store double %123, ptr %122, align 8
  %124 = getelementptr inbounds %class.ConstraintVsCOMChangeTest, ptr %31, i32 0, i32 1
  %125 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %124)
          to label %126 unwind label %237

126:                                              ; preds = %116
  %127 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %128 = load double, ptr %127, align 16
  %129 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %130 = load double, ptr %129, align 8
  %131 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 0
  %132 = load double, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %17, i32 0, i32 1
  %134 = load double, ptr %133, align 8
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %15, double %128, double %130, double %132, double %134, ptr noundef %125, i32 noundef 0)
          to label %135 unwind label %237

135:                                              ; preds = %126
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #9
  %136 = getelementptr inbounds %class.Test, ptr %31, i32 0, i32 3
  %137 = load ptr, ptr %136, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 256, ptr %19) #9
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %20, ptr align 16 %11, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %21, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !23
  %138 = load i32, ptr %12, align 4, !tbaa !9
  %139 = icmp eq i32 %138, 0
  %140 = zext i1 %139 to i64
  %141 = select i1 %139, i8 0, i8 2
  %142 = load i32, ptr %12, align 4, !tbaa !9
  %143 = icmp eq i32 %142, 0
  %144 = zext i1 %143 to i64
  %145 = select i1 %143, i16 0, i16 1
  %146 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 0
  %151 = load double, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %21, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %19, ptr noundef %15, double %147, double %149, double %151, double %153, i8 noundef zeroext %141, i16 noundef zeroext %145)
          to label %154 unwind label %241

154:                                              ; preds = %135
  %155 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %137, ptr noundef nonnull align 16 dereferenceable(256) %19)
          to label %156 unwind label %245

156:                                              ; preds = %154
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %19) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr %19) #9
  store ptr %155, ptr %18, align 8, !tbaa !5
  %157 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #9
  %158 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %159 unwind label %250

159:                                              ; preds = %156
  %160 = load i32, ptr %12, align 4, !tbaa !9
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %22, ptr noundef %158, i32 noundef 0, i32 noundef %160)
          to label %161 unwind label %250

161:                                              ; preds = %159
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %157, ptr noundef nonnull align 8 dereferenceable(16) %22)
          to label %162 unwind label %254

162:                                              ; preds = %161
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  %163 = getelementptr inbounds %class.Test, ptr %31, i32 0, i32 3
  %164 = load ptr, ptr %163, align 8, !tbaa !15
  %165 = load ptr, ptr %18, align 8, !tbaa !5
  %166 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %165)
          to label %167 unwind label %259

167:                                              ; preds = %162
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %164, ptr noundef nonnull align 4 dereferenceable(4) %166, i32 noundef 0)
          to label %168 unwind label %259

168:                                              ; preds = %167
  %169 = load i32, ptr %12, align 4, !tbaa !9
  %170 = icmp sgt i32 %169, 0
  br i1 %170, label %171, label %295

171:                                              ; preds = %168
  call void @llvm.lifetime.start.p0(i64 208, ptr %23) #9
  invoke void @_ZN3JPH23HingeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(208) %23)
          to label %172 unwind label %263

172:                                              ; preds = %171
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %25, float noundef -1.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %173 unwind label %267

173:                                              ; preds = %172
  %174 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %175 = load double, ptr %174, align 16
  %176 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %177 = load double, ptr %176, align 8
  %178 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %11, double %175, double %177)
          to label %179 unwind label %267

179:                                              ; preds = %173
  %180 = getelementptr inbounds %"class.JPH::Vec3", ptr %24, i32 0, i32 0
  %181 = getelementptr inbounds %union.anon, ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 0
  %183 = extractvalue { double, double } %178, 0
  store double %183, ptr %182, align 16
  %184 = getelementptr inbounds { double, double }, ptr %181, i32 0, i32 1
  %185 = extractvalue { double, double } %178, 1
  store double %185, ptr %184, align 8
  %186 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %186, ptr align 16 %24, i64 16, i1 false), !tbaa.struct !23
  %187 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %187, ptr align 16 %186, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #9
  %188 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %189 unwind label %271

189:                                              ; preds = %179
  %190 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %191 = getelementptr inbounds %union.anon, ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds { double, double }, ptr %191, i32 0, i32 0
  %193 = extractvalue { double, double } %188, 0
  store double %193, ptr %192, align 16
  %194 = getelementptr inbounds { double, double }, ptr %191, i32 0, i32 1
  %195 = extractvalue { double, double } %188, 1
  store double %195, ptr %194, align 8
  %196 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %196, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !23
  %197 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %197, ptr align 16 %196, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr %27) #9
  %198 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %199 unwind label %275

199:                                              ; preds = %189
  %200 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %201 = getelementptr inbounds %union.anon, ptr %200, i32 0, i32 0
  %202 = getelementptr inbounds { double, double }, ptr %201, i32 0, i32 0
  %203 = extractvalue { double, double } %198, 0
  store double %203, ptr %202, align 16
  %204 = getelementptr inbounds { double, double }, ptr %201, i32 0, i32 1
  %205 = extractvalue { double, double } %198, 1
  store double %205, ptr %204, align 8
  %206 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %206, ptr align 16 %27, i64 16, i1 false), !tbaa.struct !23
  %207 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %207, ptr align 16 %206, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  %208 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 9
  store float 0xBFC6571840000000, ptr %208, align 16, !tbaa !25
  %209 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %23, i32 0, i32 10
  store float 0x3FD6571840000000, ptr %209, align 4, !tbaa !38
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #9
  %210 = getelementptr inbounds %class.ConstraintVsCOMChangeTest, ptr %31, i32 0, i32 2
  %211 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %210)
          to label %212 unwind label %279

212:                                              ; preds = %199
  %213 = load ptr, ptr %211, align 8, !tbaa !5
  %214 = load ptr, ptr %18, align 8, !tbaa !5
  %215 = invoke noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208) %23, ptr noundef nonnull align 16 dereferenceable(122) %213, ptr noundef nonnull align 16 dereferenceable(122) %214)
          to label %216 unwind label %279

216:                                              ; preds = %212
  store ptr %215, ptr %28, align 8, !tbaa !5
  %217 = getelementptr inbounds %class.Test, ptr %31, i32 0, i32 2
  %218 = load ptr, ptr %217, align 8, !tbaa !39
  %219 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %218, ptr noundef %219)
          to label %220 unwind label %279

220:                                              ; preds = %216
  %221 = getelementptr inbounds %class.ConstraintVsCOMChangeTest, ptr %31, i32 0, i32 3
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #9
  %222 = load ptr, ptr %28, align 8, !tbaa !5
  invoke void @_ZN3JPH3RefINS_10ConstraintEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %29, ptr noundef %222)
          to label %223 unwind label %283

223:                                              ; preds = %220
  invoke void @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %221, ptr noundef nonnull align 8 dereferenceable(8) %29)
          to label %224 unwind label %287

224:                                              ; preds = %223
  call void @_ZN3JPH3RefINS_10ConstraintEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %23) #9
  call void @llvm.lifetime.end.p0(i64 208, ptr %23) #9
  br label %295

225:                                              ; preds = %88, %87
  %226 = landingpad { ptr, i32 }
          cleanup
  %227 = extractvalue { ptr, i32 } %226, 0
  store ptr %227, ptr %7, align 8
  %228 = extractvalue { ptr, i32 } %226, 1
  store i32 %228, ptr %8, align 4
  br label %310

229:                                              ; preds = %94
  %230 = landingpad { ptr, i32 }
          cleanup
  %231 = extractvalue { ptr, i32 } %230, 0
  store ptr %231, ptr %7, align 8
  %232 = extractvalue { ptr, i32 } %230, 1
  store i32 %232, ptr %8, align 4
  br label %309

233:                                              ; preds = %96
  %234 = landingpad { ptr, i32 }
          cleanup
  %235 = extractvalue { ptr, i32 } %234, 0
  store ptr %235, ptr %7, align 8
  %236 = extractvalue { ptr, i32 } %234, 1
  store i32 %236, ptr %8, align 4
  br label %308

237:                                              ; preds = %126, %116, %108, %106, %104
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %7, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %8, align 4
  br label %307

241:                                              ; preds = %135
  %242 = landingpad { ptr, i32 }
          cleanup
  %243 = extractvalue { ptr, i32 } %242, 0
  store ptr %243, ptr %7, align 8
  %244 = extractvalue { ptr, i32 } %242, 1
  store i32 %244, ptr %8, align 4
  br label %249

245:                                              ; preds = %154
  %246 = landingpad { ptr, i32 }
          cleanup
  %247 = extractvalue { ptr, i32 } %246, 0
  store ptr %247, ptr %7, align 8
  %248 = extractvalue { ptr, i32 } %246, 1
  store i32 %248, ptr %8, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %19) #9
  br label %249

249:                                              ; preds = %245, %241
  call void @llvm.lifetime.end.p0(i64 256, ptr %19) #9
  br label %306

250:                                              ; preds = %159, %156
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %7, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %8, align 4
  br label %258

254:                                              ; preds = %161
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %7, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %8, align 4
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #9
  br label %258

258:                                              ; preds = %254, %250
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #9
  br label %306

259:                                              ; preds = %167, %162
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %7, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %8, align 4
  br label %306

263:                                              ; preds = %171
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %7, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %8, align 4
  br label %294

267:                                              ; preds = %173, %172
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %7, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #9
  br label %293

271:                                              ; preds = %179
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %7, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #9
  br label %293

275:                                              ; preds = %189
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %7, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %27) #9
  br label %293

279:                                              ; preds = %216, %212, %199
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %7, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %8, align 4
  br label %292

283:                                              ; preds = %220
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %7, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %8, align 4
  br label %291

287:                                              ; preds = %223
  %288 = landingpad { ptr, i32 }
          cleanup
  %289 = extractvalue { ptr, i32 } %288, 0
  store ptr %289, ptr %7, align 8
  %290 = extractvalue { ptr, i32 } %288, 1
  store i32 %290, ptr %8, align 4
  call void @_ZN3JPH3RefINS_10ConstraintEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %29) #9
  br label %291

291:                                              ; preds = %287, %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #9
  br label %292

292:                                              ; preds = %291, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #9
  br label %293

293:                                              ; preds = %292, %275, %271, %267
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %23) #9
  br label %294

294:                                              ; preds = %293, %263
  call void @llvm.lifetime.end.p0(i64 208, ptr %23) #9
  br label %306

295:                                              ; preds = %224, %168
  %296 = getelementptr inbounds %class.ConstraintVsCOMChangeTest, ptr %31, i32 0, i32 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #9
  %297 = load ptr, ptr %18, align 8, !tbaa !5
  store ptr %297, ptr %30, align 8, !tbaa !5
  invoke void @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %296, ptr noundef nonnull align 8 dereferenceable(8) %30)
          to label %298 unwind label %302

298:                                              ; preds = %295
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %15) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  br label %299

299:                                              ; preds = %298
  %300 = load i32, ptr %12, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %12, align 4, !tbaa !9
  br label %79, !llvm.loop !40

302:                                              ; preds = %295
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %7, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #9
  br label %306

306:                                              ; preds = %302, %294, %259, %258, %249
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #9
  br label %307

307:                                              ; preds = %306, %237
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %15) #9
  br label %308

308:                                              ; preds = %307, %233
  call void @llvm.lifetime.end.p0(i64 88, ptr %15) #9
  br label %309

309:                                              ; preds = %308, %229
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #9
  br label %310

310:                                              ; preds = %309, %225
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #9
  br label %312

311:                                              ; preds = %82
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  ret void

312:                                              ; preds = %310, %83
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #9
  br label %313

313:                                              ; preds = %312, %73
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #9
  br label %314

314:                                              ; preds = %313, %59
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %315

315:                                              ; preds = %314, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %316

316:                                              ; preds = %315
  %317 = load ptr, ptr %7, align 8
  %318 = load i32, ptr %8, align 4
  %319 = insertvalue { ptr, i32 } poison, ptr %317, 0
  %320 = insertvalue { ptr, i32 } %319, i32 %318, 1
  resume { ptr, i32 } %320
}

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float 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 { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) #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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) #1 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: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4)) #6 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 } @_ZN3JPH4Vec35sZeroEv() #4 align 2

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

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

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

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

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

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) #7 align 2

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

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

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

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

declare noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !18, i64 56}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !19, i64 0}
!19 = !{!"_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, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !12, i64 0, !20, i64 8}
!23 = !{i64 0, i64 16, !24}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !12, i64 144}
!26 = !{!"_ZTSN3JPH23HingeConstraintSettingsE", !27, i64 0, !33, i64 40, !34, i64 48, !34, i64 64, !34, i64 80, !34, i64 96, !34, i64 112, !34, i64 128, !12, i64 144, !12, i64 148, !35, i64 152, !12, i64 164, !37, i64 168}
!27 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !28, i64 0}
!28 = !{!"_ZTSN3JPH18ConstraintSettingsE", !29, i64 0, !30, i64 8, !17, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !12, i64 28, !20, i64 32}
!29 = !{!"_ZTSN3JPH18SerializableObjectE"}
!30 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !31, i64 0}
!31 = !{!"_ZTSSt6atomicIjE", !32, i64 0}
!32 = !{!"_ZTSSt13__atomic_baseIjE", !10, i64 0}
!33 = !{!"_ZTSN3JPH16EConstraintSpaceE", !7, i64 0}
!34 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!35 = !{!"_ZTSN3JPH14SpringSettingsE", !36, i64 0, !7, i64 4, !12, i64 8}
!36 = !{!"_ZTSN3JPH11ESpringModeE", !7, i64 0}
!37 = !{!"_ZTSN3JPH13MotorSettingsE", !35, i64 0, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24}
!38 = !{!26, !12, i64 148}
!39 = !{!16, !6, i64 16}
!40 = distinct !{!40, !14}


; 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::Ref" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::MutableCompoundShapeSettings" = type { %"class.JPH::CompoundShapeSettings" }
%"class.JPH::CompoundShapeSettings" = type { %"class.JPH::ShapeSettings", %"class.JPH::Array.22" }
%"class.JPH::ShapeSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.16", i64, %"class.JPH::Result" }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.16" = type { %"struct.std::atomic.9" }
%"struct.std::atomic.9" = type { %"struct.std::__atomic_base.10" }
%"struct.std::__atomic_base.10" = type { i32 }
%"class.JPH::Result" = type <{ %union.anon.17, i8, [7 x i8] }>
%union.anon.17 = 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.21 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.21 = type { i64, [8 x i8] }
%"class.JPH::Array.22" = type { i64, i64, ptr }
%"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.25", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.7 }
%union.anon.7 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.8", i32, i32 }
%"class.JPH::RefConst.8" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.25" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::HingeConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, %"class.JPH::SpringSettings", float, %"class.JPH::MotorSettings", [12 x i8] }>
%"class.JPH::TwoBodyConstraintSettings" = type { %"class.JPH::ConstraintSettings" }
%"class.JPH::ConstraintSettings" = type { %"class.JPH::SerializableObject", %"class.JPH::RefTarget.26", i8, i32, i32, i32, float, i64 }
%"class.JPH::RefTarget.26" = type { %"struct.std::atomic.9" }
%"class.JPH::SpringSettings" = type { i8, %union.anon.27, float }
%union.anon.27 = type { float }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }
%"class.JPH::Ref.36" = type { ptr }

; 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 @_ZN25ConstraintVsCOMChangeTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(176) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref", align 8
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::MutableCompoundShapeSettings", align 8
  %6 = alloca %"class.JPH::BodyCreationSettings", align 16
  %7 = alloca %"class.JPH::CollisionGroup", align 8
  %8 = alloca %"class.JPH::HingeConstraintSettings", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Ref.36", align 8
  %11 = alloca ptr, align 8
  %12 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  %13 = tail call noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
  %14 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 1.000000e+00)
          to label %15 unwind label %70

15:                                               ; preds = %1
  %16 = extractvalue { double, double } %14, 0
  %17 = extractvalue { double, double } %14, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %13, double %16, double %17, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %18 unwind label %70

18:                                               ; preds = %15
  %19 = getelementptr inbounds i8, ptr %0, i64 112
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull %13)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  %21 = tail call noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %21, i32 noundef 15)
          to label %22 unwind label %72

22:                                               ; preds = %18
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %21)
  br label %23

23:                                               ; preds = %74, %22
  %.048 = phi i32 [ 0, %22 ], [ %76, %74 ]
  %exitcond.not = icmp eq i32 %.048, 14
  br i1 %exitcond.not, label %24, label %74

24:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 2.500000e+01, float noundef 0.000000e+00)
          to label %.preheader unwind label %79

.preheader:                                       ; preds = %24
  %25 = getelementptr inbounds i8, ptr %4, i64 8
  %26 = getelementptr inbounds i8, ptr %5, i64 8
  %27 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.28.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %28 = getelementptr inbounds i8, ptr %9, i64 8
  %29 = getelementptr inbounds i8, ptr %8, i64 96
  %.sroa.55.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 104
  %30 = getelementptr inbounds i8, ptr %8, i64 48
  %31 = getelementptr inbounds i8, ptr %8, i64 112
  %.sroa.53.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 120
  %32 = getelementptr inbounds i8, ptr %8, i64 64
  %33 = getelementptr inbounds i8, ptr %8, i64 128
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 136
  %34 = getelementptr inbounds i8, ptr %8, i64 80
  %35 = getelementptr inbounds i8, ptr %8, i64 144
  %36 = getelementptr inbounds i8, ptr %0, i64 120
  %37 = getelementptr inbounds i8, ptr %0, i64 16
  %38 = getelementptr inbounds i8, ptr %0, i64 144
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %39 unwind label %.loopexit.split-lp

39:                                               ; preds = %.preheader
  %40 = load double, ptr %4, align 16
  %41 = load double, ptr %25, align 8
  %42 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %40, double %41)
          to label %43 unwind label %.loopexit.split-lp

43:                                               ; preds = %39
  %44 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %45 unwind label %.loopexit.split-lp73

45:                                               ; preds = %43
  %46 = extractvalue { double, double } %44, 0
  %47 = extractvalue { double, double } %44, 1
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #9
  invoke void @_ZN3JPH28MutableCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5)
          to label %48 unwind label %.loopexit.split-lp78

48:                                               ; preds = %45
  invoke void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %49 unwind label %.loopexit.split-lp83

49:                                               ; preds = %48
  %50 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %51 unwind label %.loopexit.split-lp83

51:                                               ; preds = %49
  %52 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %53 unwind label %.loopexit.split-lp83

53:                                               ; preds = %51
  %54 = extractvalue { double, double } %50, 1
  %55 = extractvalue { double, double } %50, 0
  %56 = extractvalue { double, double } %52, 0
  %57 = extractvalue { double, double } %52, 1
  %58 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %19)
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %5, double %55, double %54, double %56, double %57, ptr noundef %58, i32 noundef 0)
          to label %59 unwind label %.loopexit.split-lp83

59:                                               ; preds = %53
  %60 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #9
  %.sroa.07.0.copyload.peel = load double, ptr %3, align 16
  %.sroa.28.0.copyload.peel = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !17
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef nonnull %5, double %.sroa.07.0.copyload.peel, double %.sroa.28.0.copyload.peel, double %46, double %47, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %61 unwind label %.loopexit.split-lp88

61:                                               ; preds = %59
  %62 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 16 dereferenceable(256) %6)
          to label %63 unwind label %.loopexit.split-lp93

63:                                               ; preds = %61
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %64 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %64, i32 noundef 0, i32 noundef 0)
          to label %65 unwind label %.loopexit.split-lp98

65:                                               ; preds = %63
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %62, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %66 unwind label %.loopexit.split-lp103

66:                                               ; preds = %65
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  %67 = load ptr, ptr %27, align 8, !tbaa !5
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %62)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 4 dereferenceable(4) %68, i32 noundef 0)
          to label %69 unwind label %.loopexit.split-lp108

69:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  store ptr %62, ptr %11, align 8, !tbaa !18
  invoke void @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %.peel.next unwind label %.loopexit.split-lp148

.peel.next:                                       ; preds = %69
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #9
  br label %81

70:                                               ; preds = %15, %1
  %71 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %13) #9
  br label %160

72:                                               ; preds = %18
  %73 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %21) #9
  br label %159

74:                                               ; preds = %23
  %75 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %76 = add nuw nsw i32 %.048, 1
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %75, i32 noundef %.048, i32 noundef %76)
          to label %23 unwind label %77, !llvm.loop !19

77:                                               ; preds = %74
  %78 = landingpad { ptr, i32 }
          cleanup
  br label %158

.loopexit152:                                     ; preds = %152
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  ret void

79:                                               ; preds = %24
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %157

81:                                               ; preds = %.peel.next, %152
  %.04969 = phi i32 [ 1, %.peel.next ], [ %153, %152 ]
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %82 unwind label %.loopexit

82:                                               ; preds = %81
  %83 = load double, ptr %4, align 16
  %84 = load double, ptr %25, align 8
  %85 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %83, double %84)
          to label %86 unwind label %.loopexit

86:                                               ; preds = %82
  %87 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %88 unwind label %.loopexit72

88:                                               ; preds = %86
  %89 = extractvalue { double, double } %87, 0
  %90 = extractvalue { double, double } %87, 1
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %5) #9
  invoke void @_ZN3JPH28MutableCompoundShapeSettingsC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5)
          to label %91 unwind label %.loopexit77

91:                                               ; preds = %88
  invoke void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %92 unwind label %.loopexit82

92:                                               ; preds = %91
  %93 = invoke { double, double } @_ZN3JPH4Vec35sZeroEv()
          to label %94 unwind label %.loopexit82

94:                                               ; preds = %92
  %95 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %96 unwind label %.loopexit82

96:                                               ; preds = %94
  %97 = extractvalue { double, double } %93, 1
  %98 = extractvalue { double, double } %93, 0
  %99 = extractvalue { double, double } %95, 0
  %100 = extractvalue { double, double } %95, 1
  %101 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %19)
  invoke void @_ZN3JPH21CompoundShapeSettings8AddShapeENS_4Vec3ENS_4QuatEPKNS_5ShapeEj(ptr noundef nonnull align 8 dereferenceable(88) %5, double %98, double %97, double %99, double %100, ptr noundef %101, i32 noundef 0)
          to label %102 unwind label %.loopexit82

102:                                              ; preds = %96
  %103 = load ptr, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %6) #9
  %.sroa.07.0.copyload = load double, ptr %3, align 16
  %.sroa.28.0.copyload = load double, ptr %.sroa.28.0..sroa_idx, align 8, !tbaa !17
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_13ShapeSettingsENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %6, ptr noundef nonnull %5, double %.sroa.07.0.copyload, double %.sroa.28.0.copyload, double %89, double %90, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %104 unwind label %.loopexit87

104:                                              ; preds = %102
  %105 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %103, ptr noundef nonnull align 16 dereferenceable(256) %6)
          to label %106 unwind label %.loopexit92

106:                                              ; preds = %104
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #9
  %107 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %107, i32 noundef 0, i32 noundef %.04969)
          to label %108 unwind label %.loopexit97

108:                                              ; preds = %106
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %105, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %109 unwind label %.loopexit102

109:                                              ; preds = %108
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  %110 = load ptr, ptr %27, align 8, !tbaa !5
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %105)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %110, ptr noundef nonnull align 4 dereferenceable(4) %111, i32 noundef 0)
          to label %112 unwind label %.loopexit107

112:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %8) #9
  invoke void @_ZN3JPH23HingeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(208) %8)
          to label %113 unwind label %141

113:                                              ; preds = %112
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef -1.000000e+00, float noundef -1.000000e+00, float noundef 0.000000e+00)
          to label %114 unwind label %142

114:                                              ; preds = %113
  %115 = load double, ptr %9, align 16
  %116 = load double, ptr %28, align 8
  %117 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %115, double %116)
          to label %118 unwind label %142

118:                                              ; preds = %114
  %119 = extractvalue { double, double } %117, 0
  %120 = extractvalue { double, double } %117, 1
  store double %119, ptr %29, align 16
  store double %120, ptr %.sroa.55.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %30, ptr noundef nonnull align 16 dereferenceable(16) %29, i64 16, i1 false), !tbaa.struct !21
  %121 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %122 unwind label %143

122:                                              ; preds = %118
  %123 = extractvalue { double, double } %121, 0
  %124 = extractvalue { double, double } %121, 1
  store double %123, ptr %31, align 16
  store double %124, ptr %.sroa.53.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 16 dereferenceable(16) %31, i64 16, i1 false), !tbaa.struct !21
  %125 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %126 unwind label %144

126:                                              ; preds = %122
  %127 = extractvalue { double, double } %125, 0
  %128 = extractvalue { double, double } %125, 1
  store double %127, ptr %33, align 16
  store double %128, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !17
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %34, ptr noundef nonnull align 16 dereferenceable(16) %33, i64 16, i1 false), !tbaa.struct !21
  store <2 x float> <float 0xBFC6571840000000, float 0x3FD6571840000000>, ptr %35, align 16, !tbaa !22
  %129 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE4backEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
          to label %130 unwind label %145

130:                                              ; preds = %126
  %131 = load ptr, ptr %129, align 8, !tbaa !18
  %132 = invoke noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208) %8, ptr noundef nonnull align 16 dereferenceable(122) %131, ptr noundef nonnull align 16 dereferenceable(122) %105)
          to label %133 unwind label %145

133:                                              ; preds = %130
  %134 = load ptr, ptr %37, align 8, !tbaa !23
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %134, ptr noundef %132)
          to label %135 unwind label %145

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  invoke void @_ZN3JPH3RefINS_10ConstraintEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef %132)
          to label %136 unwind label %146

136:                                              ; preds = %135
  invoke void @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEE9push_backEOS3_(ptr noundef nonnull align 8 dereferenceable(24) %38, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %151 unwind label %147

.loopexit:                                        ; preds = %81, %82
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %157

.loopexit.split-lp:                               ; preds = %.preheader, %39
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %157

.loopexit72:                                      ; preds = %86
  %lpad.loopexit74 = landingpad { ptr, i32 }
          cleanup
  br label %157

.loopexit.split-lp73:                             ; preds = %43
  %lpad.loopexit.split-lp75 = landingpad { ptr, i32 }
          cleanup
  br label %157

.loopexit77:                                      ; preds = %88
  %lpad.loopexit79 = landingpad { ptr, i32 }
          cleanup
  br label %156

.loopexit.split-lp78:                             ; preds = %45
  %lpad.loopexit.split-lp80 = landingpad { ptr, i32 }
          cleanup
  br label %156

.loopexit82:                                      ; preds = %91, %92, %94, %96
  %lpad.loopexit84 = landingpad { ptr, i32 }
          cleanup
  br label %155

.loopexit.split-lp83:                             ; preds = %48, %49, %51, %53
  %lpad.loopexit.split-lp85 = landingpad { ptr, i32 }
          cleanup
  br label %155

.loopexit87:                                      ; preds = %102
  %lpad.loopexit89 = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit.split-lp88:                             ; preds = %59
  %lpad.loopexit.split-lp90 = landingpad { ptr, i32 }
          cleanup
  br label %138

.loopexit92:                                      ; preds = %104
  %lpad.loopexit94 = landingpad { ptr, i32 }
          cleanup
  br label %137

.loopexit.split-lp93:                             ; preds = %61
  %lpad.loopexit.split-lp95 = landingpad { ptr, i32 }
          cleanup
  br label %137

137:                                              ; preds = %.loopexit.split-lp93, %.loopexit92
  %lpad.phi96 = phi { ptr, i32 } [ %lpad.loopexit94, %.loopexit92 ], [ %lpad.loopexit.split-lp95, %.loopexit.split-lp93 ]
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %6) #9
  br label %138

138:                                              ; preds = %.loopexit87, %.loopexit.split-lp88, %137
  %.pn = phi { ptr, i32 } [ %lpad.phi96, %137 ], [ %lpad.loopexit89, %.loopexit87 ], [ %lpad.loopexit.split-lp90, %.loopexit.split-lp88 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %6) #9
  br label %155

.loopexit97:                                      ; preds = %106
  %lpad.loopexit99 = landingpad { ptr, i32 }
          cleanup
  br label %140

.loopexit.split-lp98:                             ; preds = %63
  %lpad.loopexit.split-lp100 = landingpad { ptr, i32 }
          cleanup
  br label %140

.loopexit102:                                     ; preds = %108
  %lpad.loopexit104 = landingpad { ptr, i32 }
          cleanup
  br label %139

.loopexit.split-lp103:                            ; preds = %65
  %lpad.loopexit.split-lp105 = landingpad { ptr, i32 }
          cleanup
  br label %139

139:                                              ; preds = %.loopexit.split-lp103, %.loopexit102
  %lpad.phi106 = phi { ptr, i32 } [ %lpad.loopexit104, %.loopexit102 ], [ %lpad.loopexit.split-lp105, %.loopexit.split-lp103 ]
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #9
  br label %140

140:                                              ; preds = %.loopexit97, %.loopexit.split-lp98, %139
  %.pn51 = phi { ptr, i32 } [ %lpad.phi106, %139 ], [ %lpad.loopexit99, %.loopexit97 ], [ %lpad.loopexit.split-lp100, %.loopexit.split-lp98 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #9
  br label %155

.loopexit107:                                     ; preds = %109
  %lpad.loopexit109 = landingpad { ptr, i32 }
          cleanup
  br label %155

.loopexit.split-lp108:                            ; preds = %66
  %lpad.loopexit.split-lp110 = landingpad { ptr, i32 }
          cleanup
  br label %155

141:                                              ; preds = %112
  %lpad.loopexit114 = landingpad { ptr, i32 }
          cleanup
  br label %150

142:                                              ; preds = %114, %113
  %lpad.loopexit119 = landingpad { ptr, i32 }
          cleanup
  br label %149

143:                                              ; preds = %118
  %lpad.loopexit124 = landingpad { ptr, i32 }
          cleanup
  br label %149

144:                                              ; preds = %122
  %lpad.loopexit129 = landingpad { ptr, i32 }
          cleanup
  br label %149

145:                                              ; preds = %133, %130, %126
  %lpad.loopexit134 = landingpad { ptr, i32 }
          cleanup
  br label %149

146:                                              ; preds = %135
  %lpad.loopexit139 = landingpad { ptr, i32 }
          cleanup
  br label %148

147:                                              ; preds = %136
  %lpad.loopexit144 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH3RefINS_10ConstraintEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  br label %148

148:                                              ; preds = %147, %146
  %.pn53 = phi { ptr, i32 } [ %lpad.loopexit144, %147 ], [ %lpad.loopexit139, %146 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  br label %149

149:                                              ; preds = %145, %148, %144, %143, %142
  %.pn53.pn.pn = phi { ptr, i32 } [ %lpad.loopexit129, %144 ], [ %lpad.loopexit124, %143 ], [ %lpad.loopexit119, %142 ], [ %.pn53, %148 ], [ %lpad.loopexit134, %145 ]
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %8) #9
  br label %150

150:                                              ; preds = %149, %141
  %.pn53.pn.pn.pn = phi { ptr, i32 } [ %.pn53.pn.pn, %149 ], [ %lpad.loopexit114, %141 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %8) #9
  br label %155

151:                                              ; preds = %136
  call void @_ZN3JPH3RefINS_10ConstraintEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %8) #9
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #9
  store ptr %105, ptr %11, align 8, !tbaa !18
  invoke void @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %36, ptr noundef nonnull align 8 dereferenceable(8) %11)
          to label %152 unwind label %.loopexit147

152:                                              ; preds = %151
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #9
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #9
  %153 = add nuw nsw i32 %.04969, 1
  %exitcond70.not = icmp eq i32 %153, 15
  br i1 %exitcond70.not, label %.loopexit152, label %81, !llvm.loop !24

.loopexit147:                                     ; preds = %151
  %lpad.loopexit149 = landingpad { ptr, i32 }
          cleanup
  br label %154

.loopexit.split-lp148:                            ; preds = %69
  %lpad.loopexit.split-lp150 = landingpad { ptr, i32 }
          cleanup
  br label %154

154:                                              ; preds = %.loopexit.split-lp148, %.loopexit147
  %lpad.phi151 = phi { ptr, i32 } [ %lpad.loopexit149, %.loopexit147 ], [ %lpad.loopexit.split-lp150, %.loopexit.split-lp148 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #9
  br label %155

155:                                              ; preds = %.loopexit107, %.loopexit.split-lp108, %.loopexit82, %.loopexit.split-lp83, %138, %140, %150, %154
  %.pn58.pn = phi { ptr, i32 } [ %lpad.phi151, %154 ], [ %.pn53.pn.pn.pn, %150 ], [ %.pn51, %140 ], [ %.pn, %138 ], [ %lpad.loopexit84, %.loopexit82 ], [ %lpad.loopexit.split-lp85, %.loopexit.split-lp83 ], [ %lpad.loopexit109, %.loopexit107 ], [ %lpad.loopexit.split-lp110, %.loopexit.split-lp108 ]
  call void @_ZN3JPH21CompoundShapeSettingsD2Ev(ptr noundef nonnull align 8 dereferenceable(88) %5) #9
  br label %156

156:                                              ; preds = %.loopexit77, %.loopexit.split-lp78, %155
  %.pn58.pn.pn = phi { ptr, i32 } [ %.pn58.pn, %155 ], [ %lpad.loopexit79, %.loopexit77 ], [ %lpad.loopexit.split-lp80, %.loopexit.split-lp78 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %5) #9
  br label %157

157:                                              ; preds = %.loopexit72, %.loopexit.split-lp73, %.loopexit, %.loopexit.split-lp, %156, %79
  %.pn58.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %80, %79 ], [ %.pn58.pn.pn, %156 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit74, %.loopexit72 ], [ %lpad.loopexit.split-lp75, %.loopexit.split-lp73 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  br label %158

158:                                              ; preds = %157, %77
  %.pn65 = phi { ptr, i32 } [ %78, %77 ], [ %.pn58.pn.pn.pn.pn.pn, %157 ]
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #9
  br label %159

159:                                              ; preds = %158, %72
  %.pn65.pn = phi { ptr, i32 } [ %.pn65, %158 ], [ %73, %72 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  br label %160

160:                                              ; preds = %159, %70
  %.pn65.pn.pn = phi { ptr, i32 } [ %.pn65.pn, %159 ], [ %71, %70 ]
  resume { ptr, i32 } %.pn65.pn.pn
}

declare noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112), float 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 { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef) local_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: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH8RefConstINS_5ShapeEEaSEPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #6 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef, i32 noundef) local_unnamed_addr #1 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: alwaysinline mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #4 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() 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 #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH9RefTargetINS_13ShapeSettingsEE11SetEmbeddedEv(ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #6 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 } @_ZN3JPH4Vec35sZeroEv() local_unnamed_addr #4 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 #7 align 2

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

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

; 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 nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

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

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

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

declare void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #7 align 2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #4 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 { double, double } @_ZN3JPH4Vec36sAxisXEv() local_unnamed_addr #3 align 2

declare noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(8)) local_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 #7 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #7 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 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #9 = { 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 = !{!8, !8, i64 0}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{i64 0, i64 16, !17}
!22 = !{!16, !16, i64 0}
!23 = !{!6, !7, i64 16}
!24 = distinct !{!24, !20, !25}
!25 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass