; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/Constraints/ConeConstraintTest.ll (ZN18ConeConstraintTest10InitializeEv)

; 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::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.4 }
%union.anon.4 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::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.8", %"class.JPH::RefConst" }
%"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.8" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::ConeConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [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.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 }

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

32:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %31)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #10
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %33

33:                                               ; preds = %48, %32
  %34 = load i32, ptr %8, align 4, !tbaa !11
  %35 = icmp ult i32 %34, 4
  br i1 %35, label %41, label %36

36:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %55

37:                                               ; preds = %1
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %6, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %7, align 4
  call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %31) #10
  br label %291

41:                                               ; preds = %33
  %42 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %43 unwind label %51

43:                                               ; preds = %41
  %44 = load i32, ptr %8, align 4, !tbaa !11
  %45 = load i32, ptr %8, align 4, !tbaa !11
  %46 = add i32 %45, 1
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %42, i32 noundef %44, i32 noundef %46)
          to label %47 unwind label %51

47:                                               ; preds = %43
  br label %48

48:                                               ; preds = %47
  %49 = load i32, ptr %8, align 4, !tbaa !11
  %50 = add i32 %49, 1
  store i32 %50, ptr %8, align 4, !tbaa !11
  br label %33, !llvm.loop !13

51:                                               ; preds = %43, %41
  %52 = landingpad { ptr, i32 }
          cleanup
  %53 = extractvalue { ptr, i32 } %52, 0
  store ptr %53, ptr %6, align 8
  %54 = extractvalue { ptr, i32 } %52, 1
  store i32 %54, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #10
  br label %290

55:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #10
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %56

56:                                               ; preds = %284, %55
  %57 = load i32, ptr %9, align 4, !tbaa !11
  %58 = icmp slt i32 %57, 2
  br i1 %58, label %60, label %59

59:                                               ; preds = %56
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %289

60:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #10
  store ptr null, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #10
  %61 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %62 unwind label %90

62:                                               ; preds = %60
  %63 = getelementptr inbounds %"class.JPH::Vec3", ptr %13, i32 0, i32 0
  %64 = getelementptr inbounds %union.anon, ptr %63, i32 0, i32 0
  %65 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %66 = extractvalue { double, double } %61, 0
  store double %66, ptr %65, align 16
  %67 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %68 = extractvalue { double, double } %61, 1
  store double %68, ptr %67, align 8
  %69 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 0
  %70 = load double, ptr %69, align 16
  %71 = getelementptr inbounds { double, double }, ptr %13, i32 0, i32 1
  %72 = load double, ptr %71, align 8
  %73 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %70, double %72, float noundef 0x3FF921FB60000000)
          to label %74 unwind label %90

74:                                               ; preds = %62
  %75 = getelementptr inbounds %"class.JPH::Quat", ptr %12, i32 0, i32 0
  %76 = getelementptr inbounds %"class.JPH::Vec4", ptr %75, i32 0, i32 0
  %77 = getelementptr inbounds %union.anon.4, ptr %76, i32 0, i32 0
  %78 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 0
  %79 = extractvalue { double, double } %73, 0
  store double %79, ptr %78, align 16
  %80 = getelementptr inbounds { double, double }, ptr %77, i32 0, i32 1
  %81 = extractvalue { double, double } %73, 1
  store double %81, ptr %80, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #10
  %82 = load i32, ptr %9, align 4, !tbaa !11
  %83 = sitofp i32 %82 to float
  %84 = fmul float 1.000000e+01, %83
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %14, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef %84)
          to label %85 unwind label %94

85:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #10
  store i32 0, ptr %15, align 4, !tbaa !11
  br label %86

86:                                               ; preds = %278, %85
  %87 = load i32, ptr %15, align 4, !tbaa !11
  %88 = icmp slt i32 %87, 5
  br i1 %88, label %98, label %89

89:                                               ; preds = %86
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  br label %283

90:                                               ; preds = %62, %60
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %6, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %7, align 4
  br label %288

94:                                               ; preds = %74
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %6, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %7, align 4
  br label %287

98:                                               ; preds = %86
  %99 = load float, ptr %3, align 4, !tbaa !9
  %100 = fmul float 2.000000e+00, %99
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %100, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %101 unwind label %211

101:                                              ; preds = %98
  %102 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %103 = load double, ptr %102, align 16
  %104 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %105 = load double, ptr %104, align 8
  %106 = invoke noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %103, double %105)
          to label %107 unwind label %211

107:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #10
  %108 = getelementptr inbounds %class.Test, ptr %29, i32 0, i32 3
  %109 = load ptr, ptr %108, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 256, ptr %18) #10
  %110 = invoke noundef ptr @_ZN3JPH12CapsuleShapenwEm(i64 noundef 56)
          to label %111 unwind label %215

111:                                              ; preds = %107
  %112 = load float, ptr %3, align 4, !tbaa !9
  invoke void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %110, float noundef %112, float noundef 1.000000e+00, ptr noundef null)
          to label %113 unwind label %219

113:                                              ; preds = %111
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %19, ptr align 16 %14, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #10
  %114 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %115 unwind label %223

115:                                              ; preds = %113
  %116 = getelementptr inbounds %"class.JPH::Vec3", ptr %22, i32 0, i32 0
  %117 = getelementptr inbounds %union.anon, ptr %116, i32 0, i32 0
  %118 = getelementptr inbounds { double, double }, ptr %117, i32 0, i32 0
  %119 = extractvalue { double, double } %114, 0
  store double %119, ptr %118, align 16
  %120 = getelementptr inbounds { double, double }, ptr %117, i32 0, i32 1
  %121 = extractvalue { double, double } %114, 1
  store double %121, ptr %120, align 8
  %122 = load i32, ptr %15, align 4, !tbaa !11
  %123 = sitofp i32 %122 to float
  %124 = fmul float 0x3FE921FB60000000, %123
  %125 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 0
  %126 = load double, ptr %125, align 16
  %127 = getelementptr inbounds { double, double }, ptr %22, i32 0, i32 1
  %128 = load double, ptr %127, align 8
  %129 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %126, double %128, float noundef %124)
          to label %130 unwind label %223

130:                                              ; preds = %115
  %131 = getelementptr inbounds %"class.JPH::Quat", ptr %21, i32 0, i32 0
  %132 = getelementptr inbounds %"class.JPH::Vec4", ptr %131, i32 0, i32 0
  %133 = getelementptr inbounds %union.anon.4, ptr %132, i32 0, i32 0
  %134 = getelementptr inbounds { double, double }, ptr %133, i32 0, i32 0
  %135 = extractvalue { double, double } %129, 0
  store double %135, ptr %134, align 16
  %136 = getelementptr inbounds { double, double }, ptr %133, i32 0, i32 1
  %137 = extractvalue { double, double } %129, 1
  store double %137, ptr %136, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %23, ptr align 16 %12, i64 16, i1 false), !tbaa.struct !23
  %138 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 0
  %139 = load double, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %23, i32 0, i32 1
  %141 = load double, ptr %140, align 8
  %142 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %21, double %139, double %141)
          to label %143 unwind label %223

143:                                              ; preds = %130
  %144 = getelementptr inbounds %"class.JPH::Quat", ptr %20, i32 0, i32 0
  %145 = getelementptr inbounds %"class.JPH::Vec4", ptr %144, i32 0, i32 0
  %146 = getelementptr inbounds %union.anon.4, ptr %145, i32 0, i32 0
  %147 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 0
  %148 = extractvalue { double, double } %142, 0
  store double %148, ptr %147, align 16
  %149 = getelementptr inbounds { double, double }, ptr %146, i32 0, i32 1
  %150 = extractvalue { double, double } %142, 1
  store double %150, ptr %149, align 8
  %151 = load i32, ptr %15, align 4, !tbaa !11
  %152 = icmp eq i32 %151, 0
  %153 = zext i1 %152 to i64
  %154 = select i1 %152, i8 0, i8 2
  %155 = load i32, ptr %15, align 4, !tbaa !11
  %156 = icmp eq i32 %155, 0
  %157 = zext i1 %156 to i64
  %158 = select i1 %156, i16 0, i16 1
  %159 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %160 = load double, ptr %159, align 16
  %161 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %162 = load double, ptr %161, align 8
  %163 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %164 = load double, ptr %163, align 16
  %165 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %166 = load double, ptr %165, align 8
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %18, ptr noundef %110, double %160, double %162, double %164, double %166, i8 noundef zeroext %154, i16 noundef zeroext %158)
          to label %167 unwind label %223

167:                                              ; preds = %143
  %168 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %109, ptr noundef nonnull align 16 dereferenceable(256) %18)
          to label %169 unwind label %227

169:                                              ; preds = %167
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #10
  store ptr %168, ptr %17, align 8, !tbaa !5
  %170 = load ptr, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %24) #10
  %171 = invoke noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %5)
          to label %172 unwind label %233

172:                                              ; preds = %169
  %173 = load i32, ptr %9, align 4, !tbaa !11
  %174 = load i32, ptr %15, align 4, !tbaa !11
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef %171, i32 noundef %173, i32 noundef %174)
          to label %175 unwind label %233

175:                                              ; preds = %172
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %170, ptr noundef nonnull align 8 dereferenceable(16) %24)
          to label %176 unwind label %237

176:                                              ; preds = %175
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  %177 = getelementptr inbounds %class.Test, ptr %29, i32 0, i32 3
  %178 = load ptr, ptr %177, align 8, !tbaa !15
  %179 = load ptr, ptr %17, align 8, !tbaa !5
  %180 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %179)
          to label %181 unwind label %242

181:                                              ; preds = %176
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %178, ptr noundef nonnull align 4 dereferenceable(4) %180, i32 noundef 0)
          to label %182 unwind label %242

182:                                              ; preds = %181
  %183 = load ptr, ptr %11, align 8, !tbaa !5
  %184 = icmp ne ptr %183, null
  br i1 %184, label %185, label %276

185:                                              ; preds = %182
  call void @llvm.lifetime.start.p0(i64 128, ptr %25) #10
  invoke void @_ZN3JPH22ConeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %25)
          to label %186 unwind label %246

186:                                              ; preds = %185
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #10
  %187 = load float, ptr %3, align 4, !tbaa !9
  %188 = fneg float %187
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %27, float noundef %188, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %189 unwind label %250

189:                                              ; preds = %186
  %190 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %191 = load double, ptr %190, align 16
  %192 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %193 = load double, ptr %192, align 8
  %194 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %14, double %191, double %193)
          to label %195 unwind label %250

195:                                              ; preds = %189
  %196 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %197 = getelementptr inbounds %union.anon, ptr %196, i32 0, i32 0
  %198 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 0
  %199 = extractvalue { double, double } %194, 0
  store double %199, ptr %198, align 16
  %200 = getelementptr inbounds { double, double }, ptr %197, i32 0, i32 1
  %201 = extractvalue { double, double } %194, 1
  store double %201, ptr %200, align 8
  %202 = getelementptr inbounds %"class.JPH::ConeConstraintSettings", ptr %25, i32 0, i32 5
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %202, ptr align 16 %26, i64 16, i1 false), !tbaa.struct !23
  %203 = getelementptr inbounds %"class.JPH::ConeConstraintSettings", ptr %25, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %203, ptr align 16 %202, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %28, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %204 unwind label %254

204:                                              ; preds = %195
  %205 = getelementptr inbounds %"class.JPH::ConeConstraintSettings", ptr %25, i32 0, i32 6
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %205, ptr align 16 %28, i64 16, i1 false), !tbaa.struct !23
  %206 = getelementptr inbounds %"class.JPH::ConeConstraintSettings", ptr %25, i32 0, i32 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %206, ptr align 16 %205, i64 16, i1 false), !tbaa.struct !23
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  %207 = load i32, ptr %9, align 4, !tbaa !11
  %208 = icmp eq i32 %207, 0
  br i1 %208, label %209, label %258

209:                                              ; preds = %204
  %210 = getelementptr inbounds %"class.JPH::ConeConstraintSettings", ptr %25, i32 0, i32 7
  store float 0.000000e+00, ptr %210, align 16, !tbaa !25
  br label %266

211:                                              ; preds = %101, %98
  %212 = landingpad { ptr, i32 }
          cleanup
  %213 = extractvalue { ptr, i32 } %212, 0
  store ptr %213, ptr %6, align 8
  %214 = extractvalue { ptr, i32 } %212, 1
  store i32 %214, ptr %7, align 4
  br label %282

215:                                              ; preds = %107
  %216 = landingpad { ptr, i32 }
          cleanup
  %217 = extractvalue { ptr, i32 } %216, 0
  store ptr %217, ptr %6, align 8
  %218 = extractvalue { ptr, i32 } %216, 1
  store i32 %218, ptr %7, align 4
  br label %232

219:                                              ; preds = %111
  %220 = landingpad { ptr, i32 }
          cleanup
  %221 = extractvalue { ptr, i32 } %220, 0
  store ptr %221, ptr %6, align 8
  %222 = extractvalue { ptr, i32 } %220, 1
  store i32 %222, ptr %7, align 4
  call void @_ZN3JPH12CapsuleShapedlEPv(ptr noundef %110) #10
  br label %232

223:                                              ; preds = %143, %130, %115, %113
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %6, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %7, align 4
  br label %231

227:                                              ; preds = %167
  %228 = landingpad { ptr, i32 }
          cleanup
  %229 = extractvalue { ptr, i32 } %228, 0
  store ptr %229, ptr %6, align 8
  %230 = extractvalue { ptr, i32 } %228, 1
  store i32 %230, ptr %7, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %18) #10
  br label %231

231:                                              ; preds = %227, %223
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #10
  br label %232

232:                                              ; preds = %231, %219, %215
  call void @llvm.lifetime.end.p0(i64 256, ptr %18) #10
  br label %281

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

237:                                              ; preds = %175
  %238 = landingpad { ptr, i32 }
          cleanup
  %239 = extractvalue { ptr, i32 } %238, 0
  store ptr %239, ptr %6, align 8
  %240 = extractvalue { ptr, i32 } %238, 1
  store i32 %240, ptr %7, align 4
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %24) #10
  br label %241

241:                                              ; preds = %237, %233
  call void @llvm.lifetime.end.p0(i64 16, ptr %24) #10
  br label %281

242:                                              ; preds = %181, %176
  %243 = landingpad { ptr, i32 }
          cleanup
  %244 = extractvalue { ptr, i32 } %243, 0
  store ptr %244, ptr %6, align 8
  %245 = extractvalue { ptr, i32 } %243, 1
  store i32 %245, ptr %7, align 4
  br label %281

246:                                              ; preds = %185
  %247 = landingpad { ptr, i32 }
          cleanup
  %248 = extractvalue { ptr, i32 } %247, 0
  store ptr %248, ptr %6, align 8
  %249 = extractvalue { ptr, i32 } %247, 1
  store i32 %249, ptr %7, align 4
  br label %275

250:                                              ; preds = %189, %186
  %251 = landingpad { ptr, i32 }
          cleanup
  %252 = extractvalue { ptr, i32 } %251, 0
  store ptr %252, ptr %6, align 8
  %253 = extractvalue { ptr, i32 } %251, 1
  store i32 %253, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #10
  br label %274

254:                                              ; preds = %195
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %6, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #10
  br label %274

258:                                              ; preds = %204
  %259 = invoke noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 2.000000e+01)
          to label %260 unwind label %262

260:                                              ; preds = %258
  %261 = getelementptr inbounds %"class.JPH::ConeConstraintSettings", ptr %25, i32 0, i32 7
  store float %259, ptr %261, align 16, !tbaa !25
  br label %266

262:                                              ; preds = %272, %266, %258
  %263 = landingpad { ptr, i32 }
          cleanup
  %264 = extractvalue { ptr, i32 } %263, 0
  store ptr %264, ptr %6, align 8
  %265 = extractvalue { ptr, i32 } %263, 1
  store i32 %265, ptr %7, align 4
  br label %274

266:                                              ; preds = %260, %209
  %267 = getelementptr inbounds %class.Test, ptr %29, i32 0, i32 2
  %268 = load ptr, ptr %267, align 8, !tbaa !35
  %269 = load ptr, ptr %11, align 8, !tbaa !5
  %270 = load ptr, ptr %17, align 8, !tbaa !5
  %271 = invoke noundef ptr @_ZNK3JPH22ConeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %25, ptr noundef nonnull align 16 dereferenceable(122) %269, ptr noundef nonnull align 16 dereferenceable(122) %270)
          to label %272 unwind label %262

272:                                              ; preds = %266
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %268, ptr noundef %271)
          to label %273 unwind label %262

273:                                              ; preds = %272
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %25) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr %25) #10
  br label %276

274:                                              ; preds = %262, %254, %250
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %25) #10
  br label %275

275:                                              ; preds = %274, %246
  call void @llvm.lifetime.end.p0(i64 128, ptr %25) #10
  br label %281

276:                                              ; preds = %273, %182
  %277 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %277, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %278

278:                                              ; preds = %276
  %279 = load i32, ptr %15, align 4, !tbaa !11
  %280 = add nsw i32 %279, 1
  store i32 %280, ptr %15, align 4, !tbaa !11
  br label %86, !llvm.loop !36

281:                                              ; preds = %275, %242, %241, %232
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #10
  br label %282

282:                                              ; preds = %281, %211
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #10
  br label %287

283:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %9, align 4, !tbaa !11
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %9, align 4, !tbaa !11
  br label %56, !llvm.loop !37

287:                                              ; preds = %282, %94
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #10
  br label %288

288:                                              ; preds = %287, %90
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #10
  br label %290

289:                                              ; preds = %59
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  ret void

290:                                              ; preds = %288, %51
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %5) #10
  br label %291

291:                                              ; preds = %290, %37
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #10
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #10
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr %6, align 8
  %294 = load i32, ptr %7, align 4
  %295 = insertvalue { ptr, i32 } poison, ptr %293, 0
  %296 = insertvalue { ptr, i32 } %295, i32 %294, 1
  resume { ptr, i32 } %296
}

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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12CapsuleShapedlEPv(ptr noundef) #4 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) #9

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

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

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

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

; Function Attrs: 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)) #6 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 #6 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)) #6 align 2

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

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

declare noundef ptr @_ZNK3JPH22ConeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 24}
!16 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !18, i64 56}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !10, i64 0, !20, i64 8}
!23 = !{i64 0, i64 16, !24}
!24 = !{!7, !7, i64 0}
!25 = !{!26, !10, i64 112}
!26 = !{!"_ZTSN3JPH22ConeConstraintSettingsE", !27, i64 0, !33, i64 40, !34, i64 48, !34, i64 64, !34, i64 80, !34, i64 96, !10, i64 112}
!27 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !28, i64 0}
!28 = !{!"_ZTSN3JPH18ConstraintSettingsE", !29, i64 0, !30, i64 8, !17, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !10, i64 28, !20, i64 32}
!29 = !{!"_ZTSN3JPH18SerializableObjectE"}
!30 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !31, i64 0}
!31 = !{!"_ZTSSt6atomicIjE", !32, i64 0}
!32 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!33 = !{!"_ZTSN3JPH16EConstraintSpaceE", !7, i64 0}
!34 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!35 = !{!16, !6, i64 16}
!36 = distinct !{!36, !14}
!37 = distinct !{!37, !14}


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

%"class.JPH::Ref" = type { ptr }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::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.8", %"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.8" = type { ptr }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::ConeConstraintSettings" = type <{ %"class.JPH::TwoBodyConstraintSettings", i32, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [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 }

; 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 @_ZN18ConeConstraintTest10InitializeEv(ptr noundef nonnull align 8 dereferenceable(112) %0) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.JPH::Ref", align 8
  %3 = alloca %"class.JPH::Vec3", align 16
  %4 = alloca %"class.JPH::Vec3", align 16
  %5 = alloca %"class.JPH::BodyCreationSettings", align 16
  %6 = alloca %"class.JPH::Quat", align 16
  %7 = alloca %"class.JPH::CollisionGroup", align 8
  %8 = alloca %"class.JPH::ConeConstraintSettings", align 16
  %9 = alloca %"class.JPH::Vec3", align 16
  %10 = alloca %"class.JPH::Vec3", align 16
  %11 = 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
  %12 = tail call noundef ptr @_ZN3JPH16GroupFilterTablenwEm(i64 noundef 40)
  invoke void @_ZN3JPH16GroupFilterTableC2Ej(ptr noundef nonnull align 8 dereferenceable(40) %12, i32 noundef 5)
          to label %13 unwind label %25

13:                                               ; preds = %1
  call void @_ZN3JPH3RefINS_16GroupFilterTableEEC2EPS1_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull %12)
  br label %14

14:                                               ; preds = %27, %13
  %.048 = phi i32 [ 0, %13 ], [ %29, %27 ]
  %exitcond.not = icmp eq i32 %.048, 4
  br i1 %exitcond.not, label %.preheader66, label %27

.preheader66:                                     ; preds = %14
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 24
  %.sroa.27.0..sroa_idx = getelementptr inbounds i8, ptr %3, i64 8
  %17 = getelementptr inbounds i8, ptr %6, i64 8
  %18 = getelementptr inbounds i8, ptr %9, i64 8
  %19 = getelementptr inbounds i8, ptr %8, i64 80
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %8, i64 88
  %20 = getelementptr inbounds i8, ptr %8, i64 48
  %21 = getelementptr inbounds i8, ptr %8, i64 96
  %22 = getelementptr inbounds i8, ptr %8, i64 64
  %23 = getelementptr inbounds i8, ptr %8, i64 112
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  br label %33

25:                                               ; preds = %1
  %26 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZN3JPH16GroupFilterTabledlEPv(ptr noundef %12) #10
  br label %139

27:                                               ; preds = %14
  %28 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8) %2)
  %29 = add nuw nsw i32 %.048, 1
  invoke void @_ZN3JPH16GroupFilterTable16DisableCollisionEjj(ptr noundef nonnull align 8 dereferenceable(40) %28, i32 noundef %.048, i32 noundef %29)
          to label %14 unwind label %30, !llvm.loop !5

30:                                               ; preds = %27
  %31 = landingpad { ptr, i32 }
          cleanup
  br label %138

32:                                               ; preds = %.loopexit147
  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

33:                                               ; preds = %.preheader66, %.loopexit147
  %34 = phi i1 [ true, %.preheader66 ], [ false, %.loopexit147 ]
  %.04978 = phi i32 [ 0, %.preheader66 ], [ 1, %.loopexit147 ]
  %35 = invoke { double, double } @_ZN3JPH4Vec36sAxisZEv()
          to label %36 unwind label %73

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

40:                                               ; preds = %36
  %41 = extractvalue { double, double } %39, 0
  %42 = extractvalue { double, double } %39, 1
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #10
  %43 = mul nuw nsw i32 %.04978, 10
  %44 = uitofp nneg i32 %43 to float
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %3, float noundef 0.000000e+00, float noundef 2.000000e+01, float noundef %44)
          to label %.preheader unwind label %75

.preheader:                                       ; preds = %40
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 5.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %45 unwind label %.loopexit.split-lp

45:                                               ; preds = %.preheader
  %46 = load double, ptr %4, align 16
  %47 = load double, ptr %15, align 8
  %48 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %46, double %47)
  %49 = load ptr, ptr %16, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #10
  %50 = invoke noundef ptr @_ZN3JPH12CapsuleShapenwEm(i64 noundef 56)
          to label %51 unwind label %.loopexit.split-lp92

51:                                               ; preds = %45
  invoke void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %50, float noundef 2.500000e+00, float noundef 1.000000e+00, ptr noundef null)
          to label %52 unwind label %.loopexit.split-lp97

52:                                               ; preds = %51
  %.sroa.06.0.copyload.peel = load double, ptr %3, align 16
  %.sroa.27.0.copyload.peel = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %53 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %54 unwind label %.loopexit.split-lp103

54:                                               ; preds = %52
  %55 = extractvalue { double, double } %53, 0
  %56 = extractvalue { double, double } %53, 1
  %57 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %55, double %56, float noundef 0.000000e+00)
          to label %58 unwind label %.loopexit.split-lp103

58:                                               ; preds = %54
  %59 = extractvalue { double, double } %57, 0
  store double %59, ptr %6, align 16
  %60 = extractvalue { double, double } %57, 1
  store double %60, ptr %17, align 8
  %61 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %41, double %42)
          to label %62 unwind label %.loopexit.split-lp103

62:                                               ; preds = %58
  %63 = extractvalue { double, double } %61, 0
  %64 = extractvalue { double, double } %61, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %5, ptr noundef nonnull %50, double %.sroa.06.0.copyload.peel, double %.sroa.27.0.copyload.peel, double %63, double %64, i8 noundef zeroext 0, i16 noundef zeroext 0)
          to label %65 unwind label %.loopexit.split-lp103

65:                                               ; preds = %62
  %66 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %49, ptr noundef nonnull align 16 dereferenceable(256) %5)
          to label %67 unwind label %.loopexit.split-lp108

67:                                               ; preds = %65
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  %68 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %68, i32 noundef %.04978, i32 noundef 0)
          to label %69 unwind label %.loopexit.split-lp113

69:                                               ; preds = %67
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %66, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %70 unwind label %.loopexit.split-lp118

70:                                               ; preds = %69
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  %71 = load ptr, ptr %16, align 8, !tbaa !7
  %72 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %66)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %71, ptr noundef nonnull align 4 dereferenceable(4) %72, i32 noundef 0)
          to label %.peel.next unwind label %.loopexit.split-lp123

.loopexit147:                                     ; preds = %135
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  br i1 %34, label %33, label %32, !llvm.loop !20

73:                                               ; preds = %36, %33
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %138

75:                                               ; preds = %40
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %137

.peel.next:                                       ; preds = %70, %135
  %.05077 = phi ptr [ %100, %135 ], [ %66, %70 ]
  %.05176 = phi i32 [ %136, %135 ], [ 1, %70 ]
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %4, float noundef 5.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %77 unwind label %.loopexit

77:                                               ; preds = %.peel.next
  %78 = load double, ptr %4, align 16
  %79 = load double, ptr %15, align 8
  %80 = call noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %78, double %79)
  %81 = load ptr, ptr %16, align 8, !tbaa !7
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %5) #10
  %82 = invoke noundef ptr @_ZN3JPH12CapsuleShapenwEm(i64 noundef 56)
          to label %83 unwind label %.loopexit91

83:                                               ; preds = %77
  invoke void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56) %82, float noundef 2.500000e+00, float noundef 1.000000e+00, ptr noundef null)
          to label %84 unwind label %.loopexit96

84:                                               ; preds = %83
  %.sroa.06.0.copyload = load double, ptr %3, align 16
  %.sroa.27.0.copyload = load double, ptr %.sroa.27.0..sroa_idx, align 8, !tbaa !19
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #10
  %85 = invoke { double, double } @_ZN3JPH4Vec36sAxisXEv()
          to label %86 unwind label %.loopexit102

86:                                               ; preds = %84
  %87 = extractvalue { double, double } %85, 0
  %88 = extractvalue { double, double } %85, 1
  %89 = uitofp nneg i32 %.05176 to float
  %90 = fmul float %89, 0x3FE921FB60000000
  %91 = invoke { double, double } @_ZN3JPH4Quat9sRotationENS_4Vec3Ef(double %87, double %88, float noundef %90)
          to label %92 unwind label %.loopexit102

92:                                               ; preds = %86
  %93 = extractvalue { double, double } %91, 0
  store double %93, ptr %6, align 16
  %94 = extractvalue { double, double } %91, 1
  store double %94, ptr %17, align 8
  %95 = invoke { double, double } @_ZNK3JPH4QuatmlES0_(ptr noundef nonnull align 16 dereferenceable(16) %6, double %41, double %42)
          to label %96 unwind label %.loopexit102

96:                                               ; preds = %92
  %97 = extractvalue { double, double } %95, 0
  %98 = extractvalue { double, double } %95, 1
  invoke void @_ZN3JPH20BodyCreationSettingsC2EPKNS_5ShapeENS_4Vec3ENS_4QuatENS_11EMotionTypeEt(ptr noundef nonnull align 16 dereferenceable(256) %5, ptr noundef nonnull %82, double %.sroa.06.0.copyload, double %.sroa.27.0.copyload, double %97, double %98, i8 noundef zeroext 2, i16 noundef zeroext 1)
          to label %99 unwind label %.loopexit102

99:                                               ; preds = %96
  %100 = invoke noundef ptr @_ZN3JPH13BodyInterface10CreateBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 16 dereferenceable(256) %5)
          to label %101 unwind label %.loopexit107

101:                                              ; preds = %99
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #10
  %102 = call noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %2)
  invoke void @_ZN3JPH14CollisionGroupC2EPKNS_11GroupFilterEjj(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef %102, i32 noundef %.04978, i32 noundef %.05176)
          to label %103 unwind label %.loopexit112

103:                                              ; preds = %101
  invoke void @_ZN3JPH4Body17SetCollisionGroupERKNS_14CollisionGroupE(ptr noundef nonnull align 16 dereferenceable(122) %100, ptr noundef nonnull align 8 dereferenceable(16) %7)
          to label %104 unwind label %.loopexit117

104:                                              ; preds = %103
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  %105 = load ptr, ptr %16, align 8, !tbaa !7
  %106 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %100)
  invoke void @_ZN3JPH13BodyInterface7AddBodyERKNS_6BodyIDENS_11EActivationE(ptr noundef nonnull align 8 dereferenceable(24) %105, ptr noundef nonnull align 4 dereferenceable(4) %106, i32 noundef 0)
          to label %107 unwind label %.loopexit122

107:                                              ; preds = %104
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %8) #10
  invoke void @_ZN3JPH22ConeConstraintSettingsC2Ev(ptr noundef nonnull align 16 dereferenceable(128) %8)
          to label %108 unwind label %123

108:                                              ; preds = %107
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %9, float noundef -2.500000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %109 unwind label %124

109:                                              ; preds = %108
  %110 = load double, ptr %9, align 16
  %111 = load double, ptr %18, align 8
  %112 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %3, double %110, double %111)
          to label %113 unwind label %124

113:                                              ; preds = %109
  %114 = extractvalue { double, double } %112, 0
  %115 = extractvalue { double, double } %112, 1
  store double %114, ptr %19, align 16
  store double %115, ptr %.sroa.5.0..sroa_idx, align 8, !tbaa !19
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %20, ptr noundef nonnull align 16 dereferenceable(16) %19, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #10
  invoke void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %10, float noundef 1.000000e+00, float noundef 0.000000e+00, float noundef 0.000000e+00)
          to label %116 unwind label %125

116:                                              ; preds = %113
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %21, ptr noundef nonnull align 16 dereferenceable(16) %10, i64 16, i1 false), !tbaa.struct !21
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %22, ptr noundef nonnull align 16 dereferenceable(16) %10, i64 16, i1 false)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  br i1 %34, label %129, label %126

.loopexit:                                        ; preds = %.peel.next
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %137

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

.loopexit91:                                      ; preds = %77
  %lpad.loopexit93 = landingpad { ptr, i32 }
          cleanup
  br label %120

.loopexit.split-lp92:                             ; preds = %45
  %lpad.loopexit.split-lp94 = landingpad { ptr, i32 }
          cleanup
  br label %120

.loopexit96:                                      ; preds = %83
  %lpad.loopexit99 = landingpad { ptr, i32 }
          cleanup
  br label %117

.loopexit.split-lp97:                             ; preds = %51
  %lpad.loopexit.split-lp100 = landingpad { ptr, i32 }
          cleanup
  br label %117

117:                                              ; preds = %.loopexit.split-lp97, %.loopexit96
  %.lcssa = phi ptr [ %82, %.loopexit96 ], [ %50, %.loopexit.split-lp97 ]
  %lpad.phi101 = phi { ptr, i32 } [ %lpad.loopexit99, %.loopexit96 ], [ %lpad.loopexit.split-lp100, %.loopexit.split-lp97 ]
  call void @_ZN3JPH12CapsuleShapedlEPv(ptr noundef %.lcssa) #10
  br label %120

.loopexit102:                                     ; preds = %84, %86, %92, %96
  %lpad.loopexit104 = landingpad { ptr, i32 }
          cleanup
  br label %119

.loopexit.split-lp103:                            ; preds = %52, %54, %58, %62
  %lpad.loopexit.split-lp105 = landingpad { ptr, i32 }
          cleanup
  br label %119

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

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

118:                                              ; preds = %.loopexit.split-lp108, %.loopexit107
  %lpad.phi111 = phi { ptr, i32 } [ %lpad.loopexit109, %.loopexit107 ], [ %lpad.loopexit.split-lp110, %.loopexit.split-lp108 ]
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %5) #10
  br label %119

119:                                              ; preds = %.loopexit102, %.loopexit.split-lp103, %118
  %.pn = phi { ptr, i32 } [ %lpad.phi111, %118 ], [ %lpad.loopexit104, %.loopexit102 ], [ %lpad.loopexit.split-lp105, %.loopexit.split-lp103 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #10
  br label %120

120:                                              ; preds = %.loopexit91, %.loopexit.split-lp92, %119, %117
  %.pn.pn = phi { ptr, i32 } [ %.pn, %119 ], [ %lpad.phi101, %117 ], [ %lpad.loopexit93, %.loopexit91 ], [ %lpad.loopexit.split-lp94, %.loopexit.split-lp92 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %5) #10
  br label %137

.loopexit112:                                     ; preds = %101
  %lpad.loopexit114 = landingpad { ptr, i32 }
          cleanup
  br label %122

.loopexit.split-lp113:                            ; preds = %67
  %lpad.loopexit.split-lp115 = landingpad { ptr, i32 }
          cleanup
  br label %122

.loopexit117:                                     ; preds = %103
  %lpad.loopexit119 = landingpad { ptr, i32 }
          cleanup
  br label %121

.loopexit.split-lp118:                            ; preds = %69
  %lpad.loopexit.split-lp120 = landingpad { ptr, i32 }
          cleanup
  br label %121

121:                                              ; preds = %.loopexit.split-lp118, %.loopexit117
  %lpad.phi121 = phi { ptr, i32 } [ %lpad.loopexit119, %.loopexit117 ], [ %lpad.loopexit.split-lp120, %.loopexit.split-lp118 ]
  call void @_ZN3JPH14CollisionGroupD2Ev(ptr noundef nonnull align 8 dereferenceable(16) %7) #10
  br label %122

122:                                              ; preds = %.loopexit112, %.loopexit.split-lp113, %121
  %.pn54 = phi { ptr, i32 } [ %lpad.phi121, %121 ], [ %lpad.loopexit114, %.loopexit112 ], [ %lpad.loopexit.split-lp115, %.loopexit.split-lp113 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #10
  br label %137

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

.loopexit.split-lp123:                            ; preds = %70
  %lpad.loopexit.split-lp125 = landingpad { ptr, i32 }
          cleanup
  br label %137

123:                                              ; preds = %107
  %lpad.loopexit129 = landingpad { ptr, i32 }
          cleanup
  br label %134

124:                                              ; preds = %109, %108
  %lpad.loopexit134 = landingpad { ptr, i32 }
          cleanup
  br label %133

125:                                              ; preds = %113
  %lpad.loopexit139 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #10
  br label %133

126:                                              ; preds = %116
  %127 = call noundef float @_ZN3JPH16DegreesToRadiansEf(float noundef 2.000000e+01)
  br label %129

128:                                              ; preds = %132, %129
  %lpad.loopexit144 = landingpad { ptr, i32 }
          cleanup
  br label %133

129:                                              ; preds = %116, %126
  %storemerge = phi float [ %127, %126 ], [ 0.000000e+00, %116 ]
  store float %storemerge, ptr %23, align 16, !tbaa !22
  %130 = load ptr, ptr %24, align 8, !tbaa !33
  %131 = invoke noundef ptr @_ZNK3JPH22ConeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128) %8, ptr noundef nonnull align 16 dereferenceable(122) %.05077, ptr noundef nonnull align 16 dereferenceable(122) %100)
          to label %132 unwind label %128

132:                                              ; preds = %129
  invoke void @_ZN3JPH13PhysicsSystem13AddConstraintEPNS_10ConstraintE(ptr noundef nonnull align 16 dereferenceable(1172) %130, ptr noundef %131)
          to label %135 unwind label %128

133:                                              ; preds = %128, %125, %124
  %.pn56 = phi { ptr, i32 } [ %lpad.loopexit144, %128 ], [ %lpad.loopexit139, %125 ], [ %lpad.loopexit134, %124 ]
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %8) #10
  br label %134

134:                                              ; preds = %133, %123
  %.pn56.pn = phi { ptr, i32 } [ %.pn56, %133 ], [ %lpad.loopexit129, %123 ]
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #10
  br label %137

135:                                              ; preds = %132
  call void @_ZN3JPH18ConstraintSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(128) %8) #10
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %8) #10
  %136 = add nuw nsw i32 %.05176, 1
  %exitcond89.not = icmp eq i32 %136, 5
  br i1 %exitcond89.not, label %.loopexit147, label %.peel.next, !llvm.loop !34

137:                                              ; preds = %.loopexit122, %.loopexit.split-lp123, %.loopexit, %.loopexit.split-lp, %134, %122, %120, %75
  %.pn56.pn.pn.pn.pn = phi { ptr, i32 } [ %76, %75 ], [ %.pn56.pn, %134 ], [ %.pn54, %122 ], [ %.pn.pn, %120 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit124, %.loopexit122 ], [ %lpad.loopexit.split-lp125, %.loopexit.split-lp123 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #10
  br label %138

138:                                              ; preds = %73, %137, %30
  %.pn63 = phi { ptr, i32 } [ %31, %30 ], [ %.pn56.pn.pn.pn.pn, %137 ], [ %74, %73 ]
  call void @_ZN3JPH3RefINS_16GroupFilterTableEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %2) #10
  br label %139

139:                                              ; preds = %138, %25
  %.pn63.pn = phi { ptr, i32 } [ %.pn63, %138 ], [ %26, %25 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #10
  resume { ptr, i32 } %.pn63.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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNK3JPH3RefINS_16GroupFilterTableEEptEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #6 align 2

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

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

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(16) ptr @_ZN3JPH4Vec3pLES0_(ptr noundef nonnull align 16 dereferenceable(16), double, double) local_unnamed_addr #8 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: alwaysinline mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH12CapsuleShapenwEm(i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12CapsuleShapeC2EffPKNS_15PhysicsMaterialE(ptr noundef nonnull align 8 dereferenceable(56), float noundef, float noundef, ptr noundef) unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN3JPH12CapsuleShapedlEPv(ptr noundef) local_unnamed_addr #4 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) #9

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

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

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

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

; Function Attrs: 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 #6 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 #6 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 #6 align 2

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

declare noundef ptr @_ZNK3JPH22ConeConstraintSettings6CreateERNS_4BodyES2_(ptr noundef nonnull align 16 dereferenceable(128), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122)) unnamed_addr #2

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress 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 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="128" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #9 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 24}
!8 = !{!"_ZTS4Test", !9, i64 8, !9, i64 16, !9, i64 24, !9, i64 32, !9, i64 40, !12, i64 48, !13, i64 56}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"bool", !10, i64 0}
!13 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !14, i64 0}
!14 = !{!"_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", !9, i64 0, !15, i64 8, !16, i64 16, !15, i64 24, !17, i64 32, !9, i64 48}
!15 = !{!"long", !10, i64 0}
!16 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !9, i64 0}
!17 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !18, i64 0, !15, i64 8}
!18 = !{!"float", !10, i64 0}
!19 = !{!10, !10, i64 0}
!20 = distinct !{!20, !6}
!21 = !{i64 0, i64 16, !19}
!22 = !{!23, !18, i64 112}
!23 = !{!"_ZTSN3JPH22ConeConstraintSettingsE", !24, i64 0, !31, i64 40, !32, i64 48, !32, i64 64, !32, i64 80, !32, i64 96, !18, i64 112}
!24 = !{!"_ZTSN3JPH25TwoBodyConstraintSettingsE", !25, i64 0}
!25 = !{!"_ZTSN3JPH18ConstraintSettingsE", !26, i64 0, !27, i64 8, !12, i64 12, !30, i64 16, !30, i64 20, !30, i64 24, !18, i64 28, !15, i64 32}
!26 = !{!"_ZTSN3JPH18SerializableObjectE"}
!27 = !{!"_ZTSN3JPH9RefTargetINS_18ConstraintSettingsEEE", !28, i64 0}
!28 = !{!"_ZTSSt6atomicIjE", !29, i64 0}
!29 = !{!"_ZTSSt13__atomic_baseIjE", !30, i64 0}
!30 = !{!"int", !10, i64 0}
!31 = !{!"_ZTSN3JPH16EConstraintSpaceE", !10, i64 0}
!32 = !{!"_ZTSN3JPH4Vec3E", !10, i64 0}
!33 = !{!8, !9, i64 16}
!34 = distinct !{!34, !6, !35}
!35 = !{!"llvm.loop.peeled.count", i32 1}


; Effective O3 passes: ADCEPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopFullUnrollPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass