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

; 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::Ref" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"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.10", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.10" = 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.11", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.11" = type { %"struct.std::atomic.6" }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i32 }
%"class.JPH::SpringSettings" = type { i8, %union.anon.12, float }
%union.anon.12 = type { float }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }
%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.PoweredHingeConstraintTest = type <{ %class.Test, ptr, float, [4 x i8] }>

; 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 @_ZN26PoweredHingeConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(124) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca %"class.JPH::Ref", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca float, align 4
  %7 = alloca %"class.JPH::RefConst", align 8
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca ptr, align 8
  %11 = alloca %"class.JPH::BodyCreationSettings", align 16
  %12 = alloca %"class.JPH::Vec3", align 16
  %13 = alloca %"class.JPH::Quat", align 16
  %14 = alloca %"class.JPH::CollisionGroup", align 8
  %15 = alloca %"class.JPH::Vec3", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca ptr, align 8
  %18 = alloca %"class.JPH::BodyCreationSettings", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Quat", align 16
  %21 = alloca %"class.JPH::CollisionGroup", align 8
  %22 = alloca %"class.JPH::Vec3", align 16
  %23 = alloca %"class.JPH::Vec3", align 16
  %24 = alloca %"class.JPH::HingeConstraintSettings", align 16
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::MassProperties", align 16
  %28 = alloca %"class.JPH::Mat44", align 16
  %29 = alloca %"class.JPH::Mat44", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::Vec3", align 16
  %32 = alloca %"class.JPH::Vec3", align 16
  %33 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %2, align 8, !tbaa !5
  %34 = load ptr, ptr %2, align 8
  %35 = call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %34, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #10
  %36 = call noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %36, i32 noundef 0)
          to label %37 unwind label %264

37:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef %36)
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  store float 4.000000e+00, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #10
  %38 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %39 unwind label %268

39:                                               ; preds = %37
  %40 = load float, ptr %6, align 4, !tbaa !9
  %41 = fmul float 5.000000e-01, %40
  %42 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef %41)
          to label %43 unwind label %272

43:                                               ; preds = %39
  %44 = getelementptr inbounds %"class.JPH::Vec3", ptr %8, i32 0, i32 0
  %45 = getelementptr inbounds %union.anon, ptr %44, i32 0, i32 0
  %46 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 0
  %47 = extractvalue { double, double } %42, 0
  store double %47, ptr %46, align 16
  %48 = getelementptr inbounds { double, double }, ptr %45, i32 0, i32 1
  %49 = extractvalue { double, double } %42, 1
  store double %49, ptr %48, align 8
  %50 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 0
  %51 = load double, ptr %50, align 16
  %52 = getelementptr inbounds { double, double }, ptr %8, i32 0, i32 1
  %53 = load double, ptr %52, align 8
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %38, double %51, double %53, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %54 unwind label %272

54:                                               ; preds = %43
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef %38)
          to label %55 unwind label %268

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %56 unwind label %276

56:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #10
  %57 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 3
  %58 = load ptr, ptr %57, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr %11) #10
  %59 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %60 unwind label %280

60:                                               ; preds = %56
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %12, ptr align 16 %9, i64 16, i1 false), !tbaa.struct !19
  %61 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %62 unwind label %280

62:                                               ; preds = %60
  %63 = getelementptr inbounds %"class.JPH::Quat", ptr %13, i32 0, i32 0
  %64 = getelementptr inbounds %"class.JPH::Vec4", ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds %union.anon.4, ptr %64, i32 0, i32 0
  %66 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 0
  %67 = extractvalue { double, double } %61, 0
  store double %67, ptr %66, align 16
  %68 = getelementptr inbounds { double, double }, ptr %65, i32 0, i32 1
  %69 = extractvalue { double, double } %61, 1
  store double %69, ptr %68, align 8
  %70 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 0
  %71 = load double, ptr %70, align 16
  %72 = getelementptr inbounds { double, double }, ptr %12, i32 0, i32 1
  %73 = load double, ptr %72, align 8
  %74 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %75 = load double, ptr %74, align 16
  %76 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %77 = load double, ptr %76, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %11, ptr noundef %59, double %71, double %73, double %75, double %77, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %78 unwind label %280

78:                                               ; preds = %62
  %79 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 16 dereferenceable(256) %11)
          to label %80 unwind label %284

80:                                               ; preds = %78
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %11) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %11) #10
  store ptr %79, ptr %10, align 8, !tbaa !5
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  %82 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %83 unwind label %289

83:                                               ; preds = %80
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %82, i32 noundef 0, i32 noundef 0)
          to label %84 unwind label %289

84:                                               ; preds = %83
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %81, ptr noundef nonnull align 8 dereferenceable(16) %14)
          to label %85 unwind label %293

85:                                               ; preds = %84
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  %86 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 3
  %87 = load ptr, ptr %86, align 8, !tbaa !11
  %88 = load ptr, ptr %10, align 8, !tbaa !5
  %89 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %88)
          to label %90 unwind label %298

90:                                               ; preds = %85
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 4 dereferenceable(4) %89, i32 noundef 1)
          to label %91 unwind label %298

91:                                               ; preds = %90
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #10
  %92 = load float, ptr %6, align 4, !tbaa !9
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %92, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %93 unwind label %302

93:                                               ; preds = %91
  %94 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %95 = load double, ptr %94, align 16
  %96 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %97 = load double, ptr %96, align 8
  %98 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %95, double %97)
          to label %99 unwind label %302

99:                                               ; preds = %93
  %100 = getelementptr inbounds %"class.JPH::Vec3", ptr %15, i32 0, i32 0
  %101 = getelementptr inbounds %union.anon, ptr %100, i32 0, i32 0
  %102 = getelementptr inbounds { double, double }, ptr %101, i32 0, i32 0
  %103 = extractvalue { double, double } %98, 0
  store double %103, ptr %102, align 16
  %104 = getelementptr inbounds { double, double }, ptr %101, i32 0, i32 1
  %105 = extractvalue { double, double } %98, 1
  store double %105, ptr %104, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %106 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 3
  %107 = load ptr, ptr %106, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 256, ptr %18) #10
  %108 = invoke noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %7)
          to label %109 unwind label %306

109:                                              ; preds = %99
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %15, i64 16, i1 false), !tbaa.struct !19
  %110 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %111 unwind label %306

111:                                              ; preds = %109
  %112 = getelementptr inbounds %"class.JPH::Quat", ptr %20, i32 0, i32 0
  %113 = getelementptr inbounds %"class.JPH::Vec4", ptr %112, i32 0, i32 0
  %114 = getelementptr inbounds %union.anon.4, ptr %113, i32 0, i32 0
  %115 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 0
  %116 = extractvalue { double, double } %110, 0
  store double %116, ptr %115, align 16
  %117 = getelementptr inbounds { double, double }, ptr %114, i32 0, i32 1
  %118 = extractvalue { double, double } %110, 1
  store double %118, ptr %117, align 8
  %119 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %120 = load double, ptr %119, align 16
  %121 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %122 = load double, ptr %121, align 8
  %123 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %124 = load double, ptr %123, align 16
  %125 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %126 = load double, ptr %125, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %18, ptr noundef %108, double %120, double %122, double %124, double %126, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %127 unwind label %306

127:                                              ; preds = %111
  %128 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %107, ptr noundef nonnull align 16 dereferenceable(256) %18)
          to label %129 unwind label %310

129:                                              ; preds = %127
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #10
  store ptr %128, ptr %17, align 8, !tbaa !5
  %130 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %131 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
          to label %132 unwind label %315

132:                                              ; preds = %129
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef %131, i32 noundef 0, i32 noundef 0)
          to label %133 unwind label %315

133:                                              ; preds = %132
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %130, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %134 unwind label %319

134:                                              ; preds = %133
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  %135 = load ptr, ptr %17, align 8, !tbaa !5
  %136 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %135)
          to label %137 unwind label %324

137:                                              ; preds = %134
  invoke void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %136, float noundef 0.000000e+00)
          to label %138 unwind label %324

138:                                              ; preds = %137
  %139 = load ptr, ptr %17, align 8, !tbaa !5
  %140 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %139)
          to label %141 unwind label %324

141:                                              ; preds = %138
  invoke void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %140, float noundef 0.000000e+00)
          to label %142 unwind label %324

142:                                              ; preds = %141
  %143 = load ptr, ptr %17, align 8, !tbaa !5
  invoke void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122) %143, i1 noundef zeroext false)
          to label %144 unwind label %324

144:                                              ; preds = %142
  %145 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 3
  %146 = load ptr, ptr %145, align 8, !tbaa !11
  %147 = load ptr, ptr %17, align 8, !tbaa !5
  %148 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %147)
          to label %149 unwind label %324

149:                                              ; preds = %144
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %146, ptr noundef nonnull align 4 dereferenceable(4) %148, i32 noundef 0)
          to label %150 unwind label %324

150:                                              ; preds = %149
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #10
  %151 = load float, ptr %6, align 4, !tbaa !9
  %152 = fmul float 5.000000e-01, %151
  %153 = load float, ptr %6, align 4, !tbaa !9
  %154 = fmul float 5.000000e-01, %153
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %23, float noundef %152, float noundef 0.000000e+00, float noundef %154)
          to label %155 unwind label %328

155:                                              ; preds = %150
  %156 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %157 = load double, ptr %156, align 16
  %158 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %159 = load double, ptr %158, align 8
  %160 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %9, double %157, double %159)
          to label %161 unwind label %328

161:                                              ; preds = %155
  %162 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %163 = getelementptr inbounds %union.anon, ptr %162, i32 0, i32 0
  %164 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 0
  %165 = extractvalue { double, double } %160, 0
  store double %165, ptr %164, align 16
  %166 = getelementptr inbounds { double, double }, ptr %163, i32 0, i32 1
  %167 = extractvalue { double, double } %160, 1
  store double %167, ptr %166, align 8
  call void @llvm.lifetime.start.p0(i64 208, ptr %24) #10
  invoke void @_ZN3JPH23HingeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(208) %24)
          to label %168 unwind label %332

168:                                              ; preds = %161
  %169 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %24, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %169, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !19
  %170 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %24, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %170, ptr align 16 %169, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #10
  %171 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %172 unwind label %336

172:                                              ; preds = %168
  %173 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %174 = getelementptr inbounds %union.anon, ptr %173, i32 0, i32 0
  %175 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 0
  %176 = extractvalue { double, double } %171, 0
  store double %176, ptr %175, align 16
  %177 = getelementptr inbounds { double, double }, ptr %174, i32 0, i32 1
  %178 = extractvalue { double, double } %171, 1
  store double %178, ptr %177, align 8
  %179 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %24, i32 0, i32 7
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %179, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !19
  %180 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %24, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %180, ptr align 16 %179, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %181 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %182 unwind label %340

182:                                              ; preds = %172
  %183 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %184 = getelementptr inbounds %union.anon, ptr %183, i32 0, i32 0
  %185 = getelementptr inbounds { double, double }, ptr %184, i32 0, i32 0
  %186 = extractvalue { double, double } %181, 0
  store double %186, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %184, i32 0, i32 1
  %188 = extractvalue { double, double } %181, 1
  store double %188, ptr %187, align 8
  %189 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %24, i32 0, i32 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %189, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !19
  %190 = getelementptr inbounds %"class.JPH::HingeConstraintSettings", ptr %24, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %190, ptr align 16 %189, i64 16, i1 false), !tbaa.struct !19
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  %192 = load ptr, ptr %17, align 8, !tbaa !5
  %193 = invoke noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208) %24, ptr noundef nonnull align 16 dereferenceable(122) %191, ptr noundef nonnull align 16 dereferenceable(122) %192)
          to label %194 unwind label %344

194:                                              ; preds = %182
  %195 = getelementptr inbounds %class.PoweredHingeConstraintTest, ptr %34, i32 0, i32 1
  store ptr %193, ptr %195, align 8, !tbaa !21
  %196 = getelementptr inbounds %class.PoweredHingeConstraintTest, ptr %34, i32 0, i32 1
  %197 = load ptr, ptr %196, align 8, !tbaa !21
  invoke void @_ZN3JPH15HingeConstraint13SetMotorStateENS_11EMotorStateE(ptr noundef nonnull align 16 dereferenceable(832) %197, i32 noundef 1)
          to label %198 unwind label %344

198:                                              ; preds = %194
  %199 = getelementptr inbounds %class.PoweredHingeConstraintTest, ptr %34, i32 0, i32 1
  %200 = load ptr, ptr %199, align 8, !tbaa !21
  %201 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 2.500000e+01)
          to label %202 unwind label %344

202:                                              ; preds = %198
  invoke void @_ZN3JPH15HingeConstraint24SetTargetAngularVelocityEf(ptr noundef nonnull align 16 dereferenceable(832) %200, float noundef %201)
          to label %203 unwind label %344

203:                                              ; preds = %202
  %204 = getelementptr inbounds %class.Test, ptr %34, i32 0, i32 2
  %205 = load ptr, ptr %204, align 8, !tbaa !23
  %206 = getelementptr inbounds %class.PoweredHingeConstraintTest, ptr %34, i32 0, i32 1
  %207 = load ptr, ptr %206, align 8, !tbaa !21
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %205, ptr noundef %207)
          to label %208 unwind label %344

208:                                              ; preds = %203
  call void @llvm.lifetime.start.p0(i64 80, ptr %27) #10
  invoke void @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80) %27)
          to label %209 unwind label %348

209:                                              ; preds = %208
  %210 = load ptr, ptr %17, align 8, !tbaa !5
  %211 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %210)
          to label %212 unwind label %348

212:                                              ; preds = %209
  %213 = invoke noundef float @_ZNK3JPH16MotionProperties14GetInverseMassEv(ptr noundef nonnull align 16 dereferenceable(182) %211)
          to label %214 unwind label %348

214:                                              ; preds = %212
  %215 = fdiv float 1.000000e+00, %213
  %216 = getelementptr inbounds %"class.JPH::MassProperties", ptr %27, i32 0, i32 0
  store float %215, ptr %216, align 16, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 64, ptr %28) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr %29) #10
  %217 = load ptr, ptr %17, align 8, !tbaa !5
  %218 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %217)
          to label %219 unwind label %352

219:                                              ; preds = %214
  invoke void @_ZNK3JPH16MotionProperties27GetLocalSpaceInverseInertiaEv(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %29, ptr noundef nonnull align 16 dereferenceable(182) %218)
          to label %220 unwind label %352

220:                                              ; preds = %219
  invoke void @_ZNK3JPH5Mat4411Inversed3x3Ev(ptr dead_on_unwind writable sret(%"class.JPH::Mat44") align 16 %28, ptr noundef nonnull align 16 dereferenceable(64) %29)
          to label %221 unwind label %352

221:                                              ; preds = %220
  %222 = getelementptr inbounds %"class.JPH::MassProperties", ptr %27, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %222, ptr align 16 %28, i64 64, i1 false), !tbaa.struct !27
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %31, ptr align 16 %22, i64 16, i1 false), !tbaa.struct !19
  %223 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 0
  %224 = load double, ptr %223, align 16
  %225 = getelementptr inbounds { double, double }, ptr %31, i32 0, i32 1
  %226 = load double, ptr %225, align 8
  %227 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %15, double %224, double %226)
          to label %228 unwind label %348

228:                                              ; preds = %221
  %229 = getelementptr inbounds %"class.JPH::Vec3", ptr %30, i32 0, i32 0
  %230 = getelementptr inbounds %union.anon, ptr %229, i32 0, i32 0
  %231 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 0
  %232 = extractvalue { double, double } %227, 0
  store double %232, ptr %231, align 16
  %233 = getelementptr inbounds { double, double }, ptr %230, i32 0, i32 1
  %234 = extractvalue { double, double } %227, 1
  store double %234, ptr %233, align 8
  %235 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %236 = load double, ptr %235, align 16
  %237 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %238 = load double, ptr %237, align 8
  invoke void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %27, double %236, double %238)
          to label %239 unwind label %348

239:                                              ; preds = %228
  call void @llvm.lifetime.start.p0(i64 16, ptr %32) #10
  %240 = getelementptr inbounds %"class.JPH::MassProperties", ptr %27, i32 0, i32 1
  %241 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %242 unwind label %356

242:                                              ; preds = %239
  %243 = getelementptr inbounds %"class.JPH::Vec3", ptr %33, i32 0, i32 0
  %244 = getelementptr inbounds %union.anon, ptr %243, i32 0, i32 0
  %245 = getelementptr inbounds { double, double }, ptr %244, i32 0, i32 0
  %246 = extractvalue { double, double } %241, 0
  store double %246, ptr %245, align 16
  %247 = getelementptr inbounds { double, double }, ptr %244, i32 0, i32 1
  %248 = extractvalue { double, double } %241, 1
  store double %248, ptr %247, align 8
  %249 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 0
  %250 = load double, ptr %249, align 16
  %251 = getelementptr inbounds { double, double }, ptr %33, i32 0, i32 1
  %252 = load double, ptr %251, align 8
  %253 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %240, double %250, double %252)
          to label %254 unwind label %356

254:                                              ; preds = %242
  %255 = getelementptr inbounds %"class.JPH::Vec3", ptr %32, i32 0, i32 0
  %256 = getelementptr inbounds %union.anon, ptr %255, i32 0, i32 0
  %257 = getelementptr inbounds { double, double }, ptr %256, i32 0, i32 0
  %258 = extractvalue { double, double } %253, 0
  store double %258, ptr %257, align 16
  %259 = getelementptr inbounds { double, double }, ptr %256, i32 0, i32 1
  %260 = extractvalue { double, double } %253, 1
  store double %260, ptr %259, align 8
  %261 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %32)
          to label %262 unwind label %356

262:                                              ; preds = %254
  %263 = getelementptr inbounds %class.PoweredHingeConstraintTest, ptr %34, i32 0, i32 2
  store float %261, ptr %263, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #10
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %24) #10
  call void @llvm.lifetime.end.p0(i64 208, ptr %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  ret void

264:                                              ; preds = %1
  %265 = landingpad { ptr, i32 }
          cleanup
  %266 = extractvalue { ptr, i32 } %265, 0
  store ptr %266, ptr %4, align 8
  %267 = extractvalue { ptr, i32 } %265, 1
  store i32 %267, ptr %5, align 4
  call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %36) #10
  br label %369

268:                                              ; preds = %54, %37
  %269 = landingpad { ptr, i32 }
          cleanup
  %270 = extractvalue { ptr, i32 } %269, 0
  store ptr %270, ptr %4, align 8
  %271 = extractvalue { ptr, i32 } %269, 1
  store i32 %271, ptr %5, align 4
  br label %368

272:                                              ; preds = %43, %39
  %273 = landingpad { ptr, i32 }
          cleanup
  %274 = extractvalue { ptr, i32 } %273, 0
  store ptr %274, ptr %4, align 8
  %275 = extractvalue { ptr, i32 } %273, 1
  store i32 %275, ptr %5, align 4
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %38) #10
  br label %368

276:                                              ; preds = %55
  %277 = landingpad { ptr, i32 }
          cleanup
  %278 = extractvalue { ptr, i32 } %277, 0
  store ptr %278, ptr %4, align 8
  %279 = extractvalue { ptr, i32 } %277, 1
  store i32 %279, ptr %5, align 4
  br label %367

280:                                              ; preds = %62, %60, %56
  %281 = landingpad { ptr, i32 }
          cleanup
  %282 = extractvalue { ptr, i32 } %281, 0
  store ptr %282, ptr %4, align 8
  %283 = extractvalue { ptr, i32 } %281, 1
  store i32 %283, ptr %5, align 4
  br label %288

284:                                              ; preds = %78
  %285 = landingpad { ptr, i32 }
          cleanup
  %286 = extractvalue { ptr, i32 } %285, 0
  store ptr %286, ptr %4, align 8
  %287 = extractvalue { ptr, i32 } %285, 1
  store i32 %287, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %11) #10
  br label %288

288:                                              ; preds = %284, %280
  call void @llvm.lifetime.end.p0(i64 256, ptr %11) #10
  br label %366

289:                                              ; preds = %83, %80
  %290 = landingpad { ptr, i32 }
          cleanup
  %291 = extractvalue { ptr, i32 } %290, 0
  store ptr %291, ptr %4, align 8
  %292 = extractvalue { ptr, i32 } %290, 1
  store i32 %292, ptr %5, align 4
  br label %297

293:                                              ; preds = %84
  %294 = landingpad { ptr, i32 }
          cleanup
  %295 = extractvalue { ptr, i32 } %294, 0
  store ptr %295, ptr %4, align 8
  %296 = extractvalue { ptr, i32 } %294, 1
  store i32 %296, ptr %5, align 4
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #10
  br label %297

297:                                              ; preds = %293, %289
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  br label %366

298:                                              ; preds = %90, %85
  %299 = landingpad { ptr, i32 }
          cleanup
  %300 = extractvalue { ptr, i32 } %299, 0
  store ptr %300, ptr %4, align 8
  %301 = extractvalue { ptr, i32 } %299, 1
  store i32 %301, ptr %5, align 4
  br label %366

302:                                              ; preds = %93, %91
  %303 = landingpad { ptr, i32 }
          cleanup
  %304 = extractvalue { ptr, i32 } %303, 0
  store ptr %304, ptr %4, align 8
  %305 = extractvalue { ptr, i32 } %303, 1
  store i32 %305, ptr %5, align 4
  br label %365

306:                                              ; preds = %111, %109, %99
  %307 = landingpad { ptr, i32 }
          cleanup
  %308 = extractvalue { ptr, i32 } %307, 0
  store ptr %308, ptr %4, align 8
  %309 = extractvalue { ptr, i32 } %307, 1
  store i32 %309, ptr %5, align 4
  br label %314

310:                                              ; preds = %127
  %311 = landingpad { ptr, i32 }
          cleanup
  %312 = extractvalue { ptr, i32 } %311, 0
  store ptr %312, ptr %4, align 8
  %313 = extractvalue { ptr, i32 } %311, 1
  store i32 %313, ptr %5, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  br label %314

314:                                              ; preds = %310, %306
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #10
  br label %364

315:                                              ; preds = %132, %129
  %316 = landingpad { ptr, i32 }
          cleanup
  %317 = extractvalue { ptr, i32 } %316, 0
  store ptr %317, ptr %4, align 8
  %318 = extractvalue { ptr, i32 } %316, 1
  store i32 %318, ptr %5, align 4
  br label %323

319:                                              ; preds = %133
  %320 = landingpad { ptr, i32 }
          cleanup
  %321 = extractvalue { ptr, i32 } %320, 0
  store ptr %321, ptr %4, align 8
  %322 = extractvalue { ptr, i32 } %320, 1
  store i32 %322, ptr %5, align 4
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #10
  br label %323

323:                                              ; preds = %319, %315
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  br label %364

324:                                              ; preds = %149, %144, %142, %141, %138, %137, %134
  %325 = landingpad { ptr, i32 }
          cleanup
  %326 = extractvalue { ptr, i32 } %325, 0
  store ptr %326, ptr %4, align 8
  %327 = extractvalue { ptr, i32 } %325, 1
  store i32 %327, ptr %5, align 4
  br label %364

328:                                              ; preds = %155, %150
  %329 = landingpad { ptr, i32 }
          cleanup
  %330 = extractvalue { ptr, i32 } %329, 0
  store ptr %330, ptr %4, align 8
  %331 = extractvalue { ptr, i32 } %329, 1
  store i32 %331, ptr %5, align 4
  br label %363

332:                                              ; preds = %161
  %333 = landingpad { ptr, i32 }
          cleanup
  %334 = extractvalue { ptr, i32 } %333, 0
  store ptr %334, ptr %4, align 8
  %335 = extractvalue { ptr, i32 } %333, 1
  store i32 %335, ptr %5, align 4
  br label %362

336:                                              ; preds = %168
  %337 = landingpad { ptr, i32 }
          cleanup
  %338 = extractvalue { ptr, i32 } %337, 0
  store ptr %338, ptr %4, align 8
  %339 = extractvalue { ptr, i32 } %337, 1
  store i32 %339, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #10
  br label %361

340:                                              ; preds = %172
  %341 = landingpad { ptr, i32 }
          cleanup
  %342 = extractvalue { ptr, i32 } %341, 0
  store ptr %342, ptr %4, align 8
  %343 = extractvalue { ptr, i32 } %341, 1
  store i32 %343, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  br label %361

344:                                              ; preds = %203, %202, %198, %194, %182
  %345 = landingpad { ptr, i32 }
          cleanup
  %346 = extractvalue { ptr, i32 } %345, 0
  store ptr %346, ptr %4, align 8
  %347 = extractvalue { ptr, i32 } %345, 1
  store i32 %347, ptr %5, align 4
  br label %361

348:                                              ; preds = %228, %221, %212, %209, %208
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %4, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %5, align 4
  br label %360

352:                                              ; preds = %220, %219, %214
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %4, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 64, ptr %29) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr %28) #10
  br label %360

356:                                              ; preds = %254, %242, %239
  %357 = landingpad { ptr, i32 }
          cleanup
  %358 = extractvalue { ptr, i32 } %357, 0
  store ptr %358, ptr %4, align 8
  %359 = extractvalue { ptr, i32 } %357, 1
  store i32 %359, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %32) #10
  br label %360

360:                                              ; preds = %356, %352, %348
  call void @llvm.lifetime.end.p0(i64 80, ptr %27) #10
  br label %361

361:                                              ; preds = %360, %344, %340, %336
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %24) #10
  br label %362

362:                                              ; preds = %361, %332
  call void @llvm.lifetime.end.p0(i64 208, ptr %24) #10
  br label %363

363:                                              ; preds = %362, %328
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #10
  br label %364

364:                                              ; preds = %363, %324, %323, %314
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %365

365:                                              ; preds = %364, %302
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #10
  br label %366

366:                                              ; preds = %365, %298, %297, %288
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #10
  br label %367

367:                                              ; preds = %366, %276
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %7) #10
  br label %368

368:                                              ; preds = %367, %272, %268
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br label %369

369:                                              ; preds = %368, %264
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #10
  br label %370

370:                                              ; preds = %369
  %371 = load ptr, ptr %4, align 8
  %372 = load i32, ptr %5, align 4
  %373 = insertvalue { ptr, i32 } poison, ptr %371, 0
  %374 = insertvalue { ptr, i32 } %373, i32 %372, 1
  resume { ptr, i32 } %374
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 align 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) #6 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) #4 align 2

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

declare noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(256)) #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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) #6 align 2

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

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

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

declare void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122), i1 noundef zeroext) #2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisYEv() #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: mustprogress uwtable
declare dso_local void @_ZN3JPH15HingeConstraint13SetMotorStateENS_11EMotorStateE(ptr noundef nonnull align 16 dereferenceable(832), i32 noundef) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15HingeConstraint24SetTargetAngularVelocityEf(ptr noundef nonnull align 16 dereferenceable(832), float noundef) #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef) #4

; 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 @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties14GetInverseMassEv(ptr noundef nonnull align 16 dereferenceable(182)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH16MotionProperties27GetLocalSpaceInverseInertiaEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(182)) #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat4411Inversed3x3Ev(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) #3 align 2

declare void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80), double, double) #2

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"float", !7, i64 0}
!11 = !{!12, !6, i64 24}
!12 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !13, i64 48, !14, i64 56}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !15, i64 0}
!15 = !{!"_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, !16, i64 8, !17, i64 16, !16, i64 24, !18, i64 32, !6, i64 48}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!18 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !16, i64 8}
!19 = !{i64 0, i64 16, !20}
!20 = !{!7, !7, i64 0}
!21 = !{!22, !6, i64 112}
!22 = !{!"_ZTS26PoweredHingeConstraintTest", !12, i64 0, !6, i64 112, !10, i64 120}
!23 = !{!12, !6, i64 16}
!24 = !{!25, !10, i64 0}
!25 = !{!"_ZTSN3JPH14MassPropertiesE", !10, i64 0, !26, i64 16}
!26 = !{!"_ZTSN3JPH5Mat44E", !7, i64 0}
!27 = !{i64 0, i64 64, !20}
!28 = !{!22, !10, i64 120}


; 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::RefConst" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"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.10", %"class.JPH::RefConst" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst.5", i32, i32 }
%"class.JPH::RefConst.5" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.10" = 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.11", i8, i32, i32, i32, float, i64 }
%"class.JPH::SerializableObject" = type { ptr }
%"class.JPH::RefTarget.11" = type { %"struct.std::atomic.6" }
%"struct.std::atomic.6" = type { %"struct.std::__atomic_base.7" }
%"struct.std::__atomic_base.7" = type { i32 }
%"class.JPH::SpringSettings" = type { i8, %union.anon.12, float }
%union.anon.12 = type { float }
%"class.JPH::MotorSettings" = type { %"class.JPH::SpringSettings", float, float, float, float }

; 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 @_ZN26PoweredHingeConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(124) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref", align 8
  %3 = alloca %"class.JPH::RefConst", align 8
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::BodyCreationSettings", align 16
  %6 = alloca %"class.JPH::CollisionGroup", align 8
  %7 = alloca %"class.JPH::Vec3", align 16
  %8 = alloca %"class.JPH::Vec3", align 16
  %9 = alloca %"class.JPH::BodyCreationSettings", align 16
  %10 = alloca %"class.JPH::CollisionGroup", align 8
  %11 = alloca %"class.JPH::Vec3", align 16
  %12 = alloca %"class.JPH::HingeConstraintSettings", align 16
  %13 = alloca %"class.JPH::MassProperties", align 16
  %14 = alloca %"class.JPH::Mat44", align 16
  %15 = alloca %"class.JPH::Mat44", align 16
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = tail call noundef nonnull align 16 dereferenceable(122) ptr @_ZN4Test11CreateFloorEf(ptr noundef nonnull align 8 dereferenceable(112) %0, float noundef 2.000000e+02)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #10
  %18 = tail call noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %18, i32 noundef 0)
          to label %19 unwind label %137

19:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %18)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %20 = invoke noundef ptr @_ZN3JPH8BoxShapenwEm(i64 noundef 80)
          to label %21 unwind label %139

21:                                               ; preds = %19
  %22 = invoke { double, double } @_ZN3JPH4Vec310sReplicateEf(float noundef 2.000000e+00)
          to label %23 unwind label %141

23:                                               ; preds = %21
  %24 = extractvalue { double, double } %22, 0
  %25 = extractvalue { double, double } %22, 1
  invoke void @_ZN3JPH8BoxShapeC2ENS_4Vec3EfPKNS_15PhysicsMaterialE(ptr noundef nonnull align 16 dereferenceable(80) %20, double %24, double %25, float noundef 0x3FA99999A0000000, ptr noundef null)
          to label %26 unwind label %141

26:                                               ; preds = %23
  invoke void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull %20)
          to label %27 unwind label %139

27:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 0.000000e+00, float noundef 1.000000e+01, float noundef 0.000000e+00)
          to label %28 unwind label %143

28:                                               ; preds = %27
  %29 = getelementptr inbounds i8, ptr %0, i64 24
  %30 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #10
  %31 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %.sroa.022.0.copyload = load double, ptr %4, align 16
  %.sroa.223.0..sroa_idx = getelementptr inbounds i8, ptr %4, i64 8
  %.sroa.223.0.copyload = load double, ptr %.sroa.223.0..sroa_idx, align 8, !tbaa !17
  %32 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %33 unwind label %145

33:                                               ; preds = %28
  %34 = extractvalue { double, double } %32, 0
  %35 = extractvalue { double, double } %32, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %5, ptr noundef %31, double %.sroa.022.0.copyload, double %.sroa.223.0.copyload, double %34, double %35, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %36 unwind label %145

36:                                               ; preds = %33
  %37 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 16 dereferenceable(256) %5)
          to label %38 unwind label %147

38:                                               ; preds = %36
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %39 = 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) %6, ptr noundef %39, i32 noundef 0, i32 noundef 0)
          to label %40 unwind label %150

40:                                               ; preds = %38
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %37, ptr noundef nonnull align 8 dereferenceable(16) %6)
          to label %41 unwind label %152

41:                                               ; preds = %40
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  %42 = load ptr, ptr %29, align 8, !tbaa !5
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %37)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %42, ptr noundef nonnull align 4 dereferenceable(4) %43, i32 noundef 1)
          to label %44 unwind label %155

44:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %8, float noundef 4.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %45 unwind label %157

45:                                               ; preds = %44
  %46 = load double, ptr %8, align 16
  %47 = getelementptr inbounds i8, ptr %8, i64 8
  %48 = load double, ptr %47, align 8
  %49 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %46, double %48)
          to label %50 unwind label %157

50:                                               ; preds = %45
  %51 = extractvalue { double, double } %49, 0
  store double %51, ptr %7, align 16
  %52 = getelementptr inbounds i8, ptr %7, i64 8
  %53 = extractvalue { double, double } %49, 1
  store double %53, ptr %52, align 8
  %54 = load ptr, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %9) #10
  %55 = call noundef ptr @_ZNK3JPH8RefConstINS_5ShapeEEcvPKS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %3)
  %56 = invoke { double, double } @_ZN3JPH4Quat9sIdentityEv()
          to label %57 unwind label %159

57:                                               ; preds = %50
  %58 = extractvalue { double, double } %56, 0
  %59 = extractvalue { double, double } %56, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %9, ptr noundef %55, double %51, double %53, double %58, double %59, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %60 unwind label %159

60:                                               ; preds = %57
  %61 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 16 dereferenceable(256) %9)
          to label %62 unwind label %161

62:                                               ; preds = %60
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %9) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #10
  %63 = 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) %10, ptr noundef %63, i32 noundef 0, i32 noundef 0)
          to label %64 unwind label %164

64:                                               ; preds = %62
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %61, ptr noundef nonnull align 8 dereferenceable(16) %10)
          to label %65 unwind label %166

65:                                               ; preds = %64
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  %66 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %61)
          to label %67 unwind label %169

67:                                               ; preds = %65
  invoke void @_ZN3JPH16MotionProperties16SetLinearDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %66, float noundef 0.000000e+00)
          to label %68 unwind label %169

68:                                               ; preds = %67
  %69 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %61)
          to label %70 unwind label %169

70:                                               ; preds = %68
  invoke void @_ZN3JPH16MotionProperties17SetAngularDampingEf(ptr noundef nonnull align 16 dereferenceable(182) %69, float noundef 0.000000e+00)
          to label %71 unwind label %169

71:                                               ; preds = %70
  invoke void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122) %61, i1 noundef zeroext false)
          to label %72 unwind label %169

72:                                               ; preds = %71
  %73 = load ptr, ptr %29, align 8, !tbaa !5
  %74 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %61)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %73, ptr noundef nonnull align 4 dereferenceable(4) %74, i32 noundef 0)
          to label %75 unwind label %169

75:                                               ; preds = %72
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %11, float noundef 2.000000e+00, float noundef 0.000000e+00, float noundef 2.000000e+00)
          to label %76 unwind label %171

76:                                               ; preds = %75
  %77 = load double, ptr %11, align 16
  %78 = getelementptr inbounds i8, ptr %11, i64 8
  %79 = load double, ptr %78, align 8
  %80 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %4, double %77, double %79)
          to label %81 unwind label %171

81:                                               ; preds = %76
  %82 = extractvalue { double, double } %80, 0
  %83 = extractvalue { double, double } %80, 1
  call void @llvm.lifetime.start.p0(i64 208, ptr nonnull %12) #10
  invoke void @_ZN3JPH23HingeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(208) %12)
          to label %84 unwind label %173

84:                                               ; preds = %81
  %85 = getelementptr inbounds i8, ptr %12, i64 96
  store double %82, ptr %85, align 16
  %.sroa.6.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 104
  store double %83, ptr %.sroa.6.0..sroa_idx, align 8, !tbaa !17
  %86 = getelementptr inbounds i8, ptr %12, i64 48
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %86, ptr noundef nonnull align 16 dereferenceable(16) %85, i64 16, i1 false), !tbaa.struct !18
  %87 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %88 unwind label %175

88:                                               ; preds = %84
  %89 = extractvalue { double, double } %87, 0
  %90 = extractvalue { double, double } %87, 1
  %91 = getelementptr inbounds i8, ptr %12, i64 112
  store double %89, ptr %91, align 16
  %.sroa.57.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 120
  store double %90, ptr %.sroa.57.0..sroa_idx, align 8, !tbaa !17
  %92 = getelementptr inbounds i8, ptr %12, i64 64
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %92, ptr noundef nonnull align 16 dereferenceable(16) %91, i64 16, i1 false), !tbaa.struct !18
  %93 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %94 unwind label %177

94:                                               ; preds = %88
  %95 = extractvalue { double, double } %93, 0
  %96 = extractvalue { double, double } %93, 1
  %97 = getelementptr inbounds i8, ptr %12, i64 128
  store double %95, ptr %97, align 16
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %12, i64 136
  store double %96, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !17
  %98 = getelementptr inbounds i8, ptr %12, i64 80
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %98, ptr noundef nonnull align 16 dereferenceable(16) %97, i64 16, i1 false), !tbaa.struct !18
  %99 = invoke noundef ptr @_ZNK3JPH23HingeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(208) %12, ptr noundef nonnull align 16 dereferenceable(122) %37, ptr noundef nonnull align 16 dereferenceable(122) %61)
          to label %100 unwind label %179

100:                                              ; preds = %94
  %101 = getelementptr inbounds i8, ptr %0, i64 112
  store ptr %99, ptr %101, align 8, !tbaa !19
  invoke void @_ZN3JPH15HingeConstraint13SetMotorStateENS_11EMotorStateE(ptr noundef nonnull align 16 dereferenceable(832) %99, i32 noundef 1)
          to label %102 unwind label %179

102:                                              ; preds = %100
  %103 = load ptr, ptr %101, align 8, !tbaa !19
  %104 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 2.500000e+01)
  call void @_ZN3JPH15HingeConstraint24SetTargetAngularVelocityEf(ptr noundef nonnull align 16 dereferenceable(832) %103, float noundef %104)
  %105 = getelementptr inbounds i8, ptr %0, i64 16
  %106 = load ptr, ptr %105, align 8, !tbaa !21
  %107 = load ptr, ptr %101, align 8, !tbaa !19
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %106, ptr noundef %107)
          to label %108 unwind label %179

108:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %13) #10
  invoke void @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80) %13)
          to label %109 unwind label %181

109:                                              ; preds = %108
  %110 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %61)
          to label %111 unwind label %181

111:                                              ; preds = %109
  %112 = invoke noundef float @_ZNK3JPH16MotionProperties14GetInverseMassEv(ptr noundef nonnull align 16 dereferenceable(182) %110)
          to label %113 unwind label %181

113:                                              ; preds = %111
  %114 = fdiv float 1.000000e+00, %112
  store float %114, ptr %13, align 16, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #10
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %15) #10
  %115 = invoke noundef ptr @_ZN3JPH4Body19GetMotionPropertiesEv(ptr noundef nonnull align 16 dereferenceable(122) %61)
          to label %116 unwind label %183

116:                                              ; preds = %113
  invoke void @_ZNK3JPH16MotionProperties27GetLocalSpaceInverseInertiaEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %15, ptr noundef nonnull align 16 dereferenceable(182) %115)
          to label %117 unwind label %183

117:                                              ; preds = %116
  invoke void @_ZNK3JPH5Mat4411Inversed3x3Ev(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Mat44") align 16 %14, ptr noundef nonnull align 16 dereferenceable(64) %15)
          to label %118 unwind label %183

118:                                              ; preds = %117
  %119 = getelementptr inbounds i8, ptr %13, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %119, ptr noundef nonnull align 16 dereferenceable(64) %14, i64 64, i1 false), !tbaa.struct !25
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #10
  %120 = invoke { double, double } @_ZNK3JPH4Vec3miES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %82, double %83)
          to label %121 unwind label %181

121:                                              ; preds = %118
  %122 = extractvalue { double, double } %120, 0
  %123 = extractvalue { double, double } %120, 1
  invoke void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80) %13, double %122, double %123)
          to label %124 unwind label %181

124:                                              ; preds = %121
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %16) #10
  %125 = invoke { double, double } @_ZN3JPH4Vec36sAxisYEv()
          to label %126 unwind label %185

126:                                              ; preds = %124
  %127 = extractvalue { double, double } %125, 0
  %128 = extractvalue { double, double } %125, 1
  %129 = invoke { double, double } @_ZNK3JPH5Mat44mlENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(64) %119, double %127, double %128)
          to label %130 unwind label %185

130:                                              ; preds = %126
  %131 = extractvalue { double, double } %129, 0
  store double %131, ptr %16, align 16
  %132 = getelementptr inbounds i8, ptr %16, i64 8
  %133 = extractvalue { double, double } %129, 1
  store double %133, ptr %132, align 8
  %134 = invoke noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16) %16)
          to label %135 unwind label %185

135:                                              ; preds = %130
  %136 = getelementptr inbounds i8, ptr %0, i64 120
  store float %134, ptr %136, align 8, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #10
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %12) #10
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %12) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  ret void

137:                                              ; preds = %1
  %138 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %18) #10
  br label %193

139:                                              ; preds = %26, %19
  %140 = landingpad { ptr, i32 }
          cleanup
  br label %192

141:                                              ; preds = %23, %21
  %142 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH8BoxShapedlEPv(ptr noundef %20) #10
  br label %192

143:                                              ; preds = %27
  %144 = landingpad { ptr, i32 }
          cleanup
  br label %191

145:                                              ; preds = %33, %28
  %146 = landingpad { ptr, i32 }
          cleanup
  br label %149

147:                                              ; preds = %36
  %148 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  br label %149

149:                                              ; preds = %147, %145
  %.pn = phi { ptr, i32 } [ %148, %147 ], [ %146, %145 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  br label %191

150:                                              ; preds = %38
  %151 = landingpad { ptr, i32 }
          cleanup
  br label %154

152:                                              ; preds = %40
  %153 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #10
  br label %154

154:                                              ; preds = %152, %150
  %.pn50 = phi { ptr, i32 } [ %153, %152 ], [ %151, %150 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  br label %191

155:                                              ; preds = %41
  %156 = landingpad { ptr, i32 }
          cleanup
  br label %191

157:                                              ; preds = %45, %44
  %158 = landingpad { ptr, i32 }
          cleanup
  br label %190

159:                                              ; preds = %57, %50
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %163

161:                                              ; preds = %60
  %162 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %9) #10
  br label %163

163:                                              ; preds = %161, %159
  %.pn52 = phi { ptr, i32 } [ %162, %161 ], [ %160, %159 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %9) #10
  br label %190

164:                                              ; preds = %62
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %168

166:                                              ; preds = %64
  %167 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #10
  br label %168

168:                                              ; preds = %166, %164
  %.pn54 = phi { ptr, i32 } [ %167, %166 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  br label %190

169:                                              ; preds = %72, %71, %70, %68, %67, %65
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %190

171:                                              ; preds = %76, %75
  %172 = landingpad { ptr, i32 }
          cleanup
  br label %190

173:                                              ; preds = %81
  %174 = landingpad { ptr, i32 }
          cleanup
  br label %189

175:                                              ; preds = %84
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %188

177:                                              ; preds = %88
  %178 = landingpad { ptr, i32 }
          cleanup
  br label %188

179:                                              ; preds = %102, %100, %94
  %180 = landingpad { ptr, i32 }
          cleanup
  br label %188

181:                                              ; preds = %121, %118, %111, %109, %108
  %182 = landingpad { ptr, i32 }
          cleanup
  br label %187

183:                                              ; preds = %117, %116, %113
  %184 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %15) #10
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #10
  br label %187

185:                                              ; preds = %130, %126, %124
  %186 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %16) #10
  br label %187

187:                                              ; preds = %185, %183, %181
  %.pn56 = phi { ptr, i32 } [ %186, %185 ], [ %182, %181 ], [ %184, %183 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %13) #10
  br label %188

188:                                              ; preds = %187, %179, %177, %175
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %187 ], [ %180, %179 ], [ %178, %177 ], [ %176, %175 ]
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(208) %12) #10
  br label %189

189:                                              ; preds = %188, %173
  %.pn56.pn.pn = phi { ptr, i32 } [ %.pn56.pn, %188 ], [ %174, %173 ]
  call void @llvm.lifetime.end.p0(i64 208, ptr nonnull %12) #10
  br label %190

190:                                              ; preds = %163, %168, %169, %189, %171, %157
  %.pn56.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %158, %157 ], [ %170, %169 ], [ %.pn54, %168 ], [ %.pn52, %163 ], [ %.pn56.pn.pn, %189 ], [ %172, %171 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  br label %191

191:                                              ; preds = %149, %154, %155, %190, %143
  %.pn56.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %144, %143 ], [ %.pn56.pn.pn.pn.pn.pn, %190 ], [ %156, %155 ], [ %.pn50, %154 ], [ %.pn, %149 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #10
  call void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %3) #10
  br label %192

192:                                              ; preds = %191, %141, %139
  %.pn56.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn.pn.pn.pn, %191 ], [ %140, %139 ], [ %142, %141 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  br label %193

193:                                              ; preds = %192, %137
  %.pn56.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn56.pn.pn.pn.pn.pn.pn.pn.pn, %192 ], [ %138, %137 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn56.pn.pn.pn.pn.pn.pn.pn.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 @_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 #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 align 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 #6 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 #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEEC2EPKS1_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) unnamed_addr #5 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 #6 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: 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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256)) unnamed_addr #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: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #6 align 2

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

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

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

declare void @_ZN3JPH4Body16SetAllowSleepingEb(ptr noundef nonnull align 16 dereferenceable(122), i1 noundef zeroext) local_unnamed_addr #2

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec36sAxisYEv() 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: mustprogress uwtable
declare dso_local void @_ZN3JPH15HingeConstraint13SetMotorStateENS_11EMotorStateE(ptr noundef nonnull align 16 dereferenceable(832), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH15HingeConstraint24SetTargetAngularVelocityEf(ptr noundef nonnull align 16 dereferenceable(832), float noundef) local_unnamed_addr #9 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef) local_unnamed_addr #4

; 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 @_ZN3JPH14MassPropertiesC2Ev(ptr noundef nonnull align 16 dereferenceable(80)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH16MotionProperties14GetInverseMassEv(ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZNK3JPH16MotionProperties27GetLocalSpaceInverseInertiaEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(182)) local_unnamed_addr #5 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZNK3JPH5Mat4411Inversed3x3Ev(ptr dead_on_unwind noalias writable sret(%"class.JPH::Mat44") align 16, ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #3 align 2

declare void @_ZN3JPH14MassProperties9TranslateENS_4Vec3E(ptr noundef nonnull align 16 dereferenceable(80), double, double) local_unnamed_addr #2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef float @_ZNK3JPH4Vec36LengthEv(ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #3 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 nounwind uwtable
declare dso_local void @_ZN3JPH8RefConstINS_5ShapeEED2Ev(ptr noundef nonnull align 8 dereferenceable(8)) 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 nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { 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 #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 = { 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 #10 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 24}
!6 = !{!"_ZTS4Test", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !10, i64 48, !11, i64 56}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !12, i64 0}
!12 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !7, i64 0, !13, i64 8, !14, i64 16, !13, i64 24, !15, i64 32, !7, i64 48}
!13 = !{!"long", !8, i64 0}
!14 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !7, i64 0}
!15 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !16, i64 0, !13, i64 8}
!16 = !{!"float", !8, i64 0}
!17 = !{!8, !8, i64 0}
!18 = !{i64 0, i64 16, !17}
!19 = !{!20, !7, i64 112}
!20 = !{!"_ZTS26PoweredHingeConstraintTest", !6, i64 0, !7, i64 112, !16, i64 120}
!21 = !{!6, !7, i64 16}
!22 = !{!23, !16, i64 0}
!23 = !{!"_ZTSN3JPH14MassPropertiesE", !16, i64 0, !24, i64 16}
!24 = !{!"_ZTSN3JPH5Mat44E", !8, i64 0}
!25 = !{i64 0, i64 64, !17}
!26 = !{!20, !16, i64 120}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass