; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/BroadPhase (BroadPhaseInsertionTest)

; 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::Color" = type { %union.anon.17 }
%union.anon.17 = type { i32 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<float>::param_type" }
%"struct.std::uniform_real_distribution<float>::param_type" = type { float, float }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.10 }
%union.anon.10 = type { <4 x float> }
%"class.std::linear_congruential_engine" = type { i64 }
%"struct.JPH::RayCast" = type { %"struct.JPH::RayCastT" }
%"struct.JPH::RayCastT" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::AllHitCollisionCollector" = type { %"class.JPH::CollisionCollector", %"class.JPH::Array.14" }
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::ObjectLayerFilter" = type { ptr }
%class.BroadPhaseInsertionTest = type <{ %class.BroadPhaseTest, %"class.std::linear_congruential_engine", i64, i32, [4 x i8] }>
%class.BroadPhaseTest = type { %class.Test, %class.BPLayerInterfaceImpl, ptr, ptr }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%class.BPLayerInterfaceImpl = type <{ %"class.JPH::BroadPhaseLayerInterface", [2 x %"class.JPH::BroadPhaseLayer"], [6 x i8] }>
%"class.JPH::BroadPhaseLayerInterface" = type { ptr }
%"class.JPH::BroadPhaseLayer" = type { i8 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::BroadPhaseCastResult" = type { %"class.JPH::BodyID", float }
%"class.JPH::AABox" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }

@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [105 x i8], align 1
@_ZN3JPH5TraceE = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZN3JPH5Color4sRedE = external global %"class.JPH::Color", align 4
@_ZN3JPH5Color6sGreenE = external global %"class.JPH::Color", align 4
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [59 x i8], align 1

; 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
declare dso_local noundef i32 @_ZNK3JPH11BodyManager12GetMaxBodiesEv(ptr noundef nonnull align 8 dereferenceable(297)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23BroadPhaseInsertionTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(164) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::uniform_int_distribution", align 4
  %12 = alloca %"class.std::uniform_real_distribution", align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %"struct.JPH::AssertLastParam", align 1
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = alloca %"class.JPH::Vec3", align 16
  %18 = alloca %"class.JPH::Vec3", align 16
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.JPH::Quat", align 16
  %21 = alloca ptr, align 8
  %22 = alloca i32, align 4
  %23 = alloca ptr, align 8
  %24 = alloca %"class.std::linear_congruential_engine", align 8
  %25 = alloca %"class.JPH::Vec3", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"struct.JPH::RayCast", align 16
  %28 = alloca %"class.JPH::Vec3", align 16
  %29 = alloca %"class.JPH::Vec3", align 16
  %30 = alloca %"class.JPH::Vec3", align 16
  %31 = alloca %"class.JPH::AllHitCollisionCollector", align 8
  %32 = alloca %"class.JPH::BroadPhaseLayerFilter", align 8
  %33 = alloca %"class.JPH::ObjectLayerFilter", align 8
  %34 = alloca i32, align 4
  %35 = alloca ptr, align 8
  %36 = alloca %"class.JPH::Vec3", align 16
  %37 = alloca %"class.JPH::Vec3", align 16
  %38 = alloca %"class.JPH::Vec3", align 16
  %39 = alloca %"class.JPH::Color", align 4
  %40 = alloca i32, align 4
  %41 = alloca %"class.JPH::Vec3", align 16
  %42 = alloca %"class.JPH::Color", align 4
  %43 = alloca %"class.JPH::AllHitCollisionCollector", align 8
  %44 = alloca %"class.JPH::BroadPhaseLayerFilter", align 8
  %45 = alloca %"class.JPH::ObjectLayerFilter", align 8
  %46 = alloca i32, align 4
  %47 = alloca ptr, align 8
  %48 = alloca ptr, align 8
  %49 = alloca ptr, align 8
  %50 = alloca i32, align 4
  %51 = alloca i8, align 1
  %52 = alloca ptr, align 8
  %53 = alloca ptr, align 8
  %54 = alloca ptr, align 8
  %55 = alloca ptr, align 8
  %56 = alloca ptr, align 8
  %57 = alloca ptr, align 8
  %58 = alloca i8, align 1
  %59 = alloca ptr, align 8
  %60 = alloca ptr, align 8
  %61 = alloca %"class.JPH::Vec3", align 16
  %62 = alloca %"class.JPH::Vec3", align 16
  %63 = alloca %"class.JPH::Vec3", align 16
  %64 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %65 = load ptr, ptr %3, align 8
  %66 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 3
  %67 = load i32, ptr %66, align 8, !tbaa !9
  %68 = icmp eq i32 %67, 1
  br i1 %68, label %69, label %79

69:                                               ; preds = %2
  %70 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 2
  %71 = load i64, ptr %70, align 8, !tbaa !24
  %72 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 3
  %73 = load ptr, ptr %72, align 8, !tbaa !25
  %74 = call noundef i32 @_ZNK3JPH11BodyManager12GetMaxBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %73)
  %75 = zext i32 %74 to i64
  %76 = icmp uge i64 %71, %75
  br i1 %76, label %77, label %79

77:                                               ; preds = %69
  %78 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 3
  store i32 -1, ptr %78, align 8, !tbaa !9
  br label %79

79:                                               ; preds = %77, %69, %2
  %80 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 3
  %81 = load i32, ptr %80, align 8, !tbaa !9
  %82 = icmp eq i32 %81, -1
  br i1 %82, label %83, label %89

83:                                               ; preds = %79
  %84 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 2
  %85 = load i64, ptr %84, align 8, !tbaa !24
  %86 = icmp eq i64 %85, 0
  br i1 %86, label %87, label %89

87:                                               ; preds = %83
  %88 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 3
  store i32 1, ptr %88, align 8, !tbaa !9
  br label %89

89:                                               ; preds = %87, %83, %79
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #13
  %90 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 3
  %91 = load ptr, ptr %90, align 8, !tbaa !25
  %92 = call noundef i32 @_ZNK3JPH11BodyManager12GetMaxBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %91)
  %93 = udiv i32 %92, 10
  store i32 %93, ptr %5, align 4, !tbaa !26
  %94 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 3
  %95 = load i32, ptr %94, align 8, !tbaa !9
  %96 = icmp slt i32 %95, 0
  br i1 %96, label %97, label %103

97:                                               ; preds = %89
  %98 = load i32, ptr %5, align 4, !tbaa !26
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 2
  %101 = load i64, ptr %100, align 8, !tbaa !24
  %102 = sub i64 %101, %99
  store i64 %102, ptr %100, align 8, !tbaa !24
  br label %103

103:                                              ; preds = %97, %89
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #13
  %104 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !25
  %106 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH11BodyManager9GetBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %105)
  %107 = call noundef ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %106)
  store ptr %107, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 2
  %109 = load i64, ptr %108, align 8, !tbaa !24
  %110 = icmp ugt i64 %109, 0
  br i1 %110, label %111, label %225

111:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #13
  store i32 100, ptr %7, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #13
  %112 = call noundef ptr @_ZN3JPH6BodyIDnaEm(i64 noundef 400)
  %113 = getelementptr inbounds %"class.JPH::BodyID", ptr %112, i64 100
  br label %114

114:                                              ; preds = %116, %111
  %115 = phi ptr [ %112, %111 ], [ %117, %116 ]
  invoke void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %115)
          to label %116 unwind label %128

116:                                              ; preds = %114
  %117 = getelementptr inbounds %"class.JPH::BodyID", ptr %115, i64 1
  %118 = icmp eq ptr %117, %113
  br i1 %118, label %119, label %114

119:                                              ; preds = %116
  store ptr %112, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #13
  %120 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 2
  %121 = load i64, ptr %120, align 8, !tbaa !24
  %122 = trunc i64 %121 to i32
  %123 = sub nsw i32 %122, 1
  call void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef 0, i32 noundef %123)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #13
  call void @_ZNSt25uniform_real_distributionIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %12, float noundef 1.000000e+00, float noundef 5.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #13
  store i32 0, ptr %13, align 4, !tbaa !26
  br label %124

124:                                              ; preds = %211, %119
  %125 = load i32, ptr %13, align 4, !tbaa !26
  %126 = icmp slt i32 %125, 100
  br i1 %126, label %132, label %127

127:                                              ; preds = %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #13
  br label %214

128:                                              ; preds = %114
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %9, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %10, align 4
  call void @_ZN3JPH6BodyIDdaEPv(ptr noundef %112) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #13
  br label %676

132:                                              ; preds = %124
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #13
  %133 = load ptr, ptr %6, align 8, !tbaa !5
  %134 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 1
  %135 = call noundef i32 @_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %11, ptr noundef nonnull align 8 dereferenceable(8) %134)
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds ptr, ptr %133, i64 %136
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  store ptr %138, ptr %14, align 8, !tbaa !5
  br label %139

139:                                              ; preds = %132
  %140 = load ptr, ptr %14, align 8, !tbaa !5
  %141 = call noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122) %140)
  br i1 %141, label %145, label %142

142:                                              ; preds = %139
  %143 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.1, ptr noundef @.str.2, i32 noundef 52)
  br i1 %143, label %144, label %145

144:                                              ; preds = %142
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #13, !srcloc !27
  br label %145

145:                                              ; preds = %144, %142, %139
  br label %146

146:                                              ; preds = %145
  br label %147

147:                                              ; preds = %146
  %148 = load ptr, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #13
  %149 = load ptr, ptr %14, align 8, !tbaa !5
  %150 = call { double, double } @_ZNK3JPH4Body11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %149)
  %151 = getelementptr inbounds %"class.JPH::Vec3", ptr %17, i32 0, i32 0
  %152 = getelementptr inbounds %union.anon, ptr %151, i32 0, i32 0
  %153 = getelementptr inbounds { double, double }, ptr %152, i32 0, i32 0
  %154 = extractvalue { double, double } %150, 0
  store double %154, ptr %153, align 16
  %155 = getelementptr inbounds { double, double }, ptr %152, i32 0, i32 1
  %156 = extractvalue { double, double } %150, 1
  store double %156, ptr %155, align 8
  %157 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 1
  %158 = call noundef float @_ZNSt25uniform_real_distributionIfEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %157)
  %159 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 1
  %160 = call { double, double } @_ZN3JPH4Vec37sRandomISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEES0_RT_(ptr noundef nonnull align 8 dereferenceable(8) %159)
  %161 = getelementptr inbounds %"class.JPH::Vec3", ptr %19, i32 0, i32 0
  %162 = getelementptr inbounds %union.anon, ptr %161, i32 0, i32 0
  %163 = getelementptr inbounds { double, double }, ptr %162, i32 0, i32 0
  %164 = extractvalue { double, double } %160, 0
  store double %164, ptr %163, align 16
  %165 = getelementptr inbounds { double, double }, ptr %162, i32 0, i32 1
  %166 = extractvalue { double, double } %160, 1
  store double %166, ptr %165, align 8
  %167 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %168 = load double, ptr %167, align 16
  %169 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %170 = load double, ptr %169, align 8
  %171 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %158, double %168, double %170)
  %172 = getelementptr inbounds %"class.JPH::Vec3", ptr %18, i32 0, i32 0
  %173 = getelementptr inbounds %union.anon, ptr %172, i32 0, i32 0
  %174 = getelementptr inbounds { double, double }, ptr %173, i32 0, i32 0
  %175 = extractvalue { double, double } %171, 0
  store double %175, ptr %174, align 16
  %176 = getelementptr inbounds { double, double }, ptr %173, i32 0, i32 1
  %177 = extractvalue { double, double } %171, 1
  store double %177, ptr %176, align 8
  %178 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 0
  %179 = load double, ptr %178, align 16
  %180 = getelementptr inbounds { double, double }, ptr %18, i32 0, i32 1
  %181 = load double, ptr %180, align 8
  %182 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %17, double %179, double %181)
  %183 = getelementptr inbounds %"class.JPH::Vec3", ptr %16, 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 } %182, 0
  store double %186, ptr %185, align 16
  %187 = getelementptr inbounds { double, double }, ptr %184, i32 0, i32 1
  %188 = extractvalue { double, double } %182, 1
  store double %188, ptr %187, align 8
  %189 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %190 = getelementptr inbounds %"class.JPH::Quat", ptr %20, i32 0, i32 0
  %191 = getelementptr inbounds %"class.JPH::Vec4", ptr %190, i32 0, i32 0
  %192 = getelementptr inbounds %union.anon.10, ptr %191, i32 0, i32 0
  %193 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 0
  %194 = extractvalue { double, double } %189, 0
  store double %194, ptr %193, align 16
  %195 = getelementptr inbounds { double, double }, ptr %192, i32 0, i32 1
  %196 = extractvalue { double, double } %189, 1
  store double %196, ptr %195, align 8
  %197 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 0
  %198 = load double, ptr %197, align 16
  %199 = getelementptr inbounds { double, double }, ptr %16, i32 0, i32 1
  %200 = load double, ptr %199, align 8
  %201 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 0
  %202 = load double, ptr %201, align 16
  %203 = getelementptr inbounds { double, double }, ptr %20, i32 0, i32 1
  %204 = load double, ptr %203, align 8
  call void @_ZN3JPH4Body30SetPositionAndRotationInternalENS_4Vec3ENS_4QuatEb(ptr noundef nonnull align 16 dereferenceable(122) %148, double %198, double %200, double %202, double %204, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #13
  %205 = load ptr, ptr %14, align 8, !tbaa !5
  %206 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %205)
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = load i32, ptr %13, align 4, !tbaa !26
  %209 = sext i32 %208 to i64
  %210 = getelementptr inbounds %"class.JPH::BodyID", ptr %207, i64 %209
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %210, ptr align 4 %206, i64 4, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #13
  br label %211

211:                                              ; preds = %147
  %212 = load i32, ptr %13, align 4, !tbaa !26
  %213 = add nsw i32 %212, 1
  store i32 %213, ptr %13, align 4, !tbaa !26
  br label %124, !llvm.loop !29

214:                                              ; preds = %127
  %215 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %216 = load ptr, ptr %215, align 8, !tbaa !31
  %217 = load ptr, ptr %8, align 8, !tbaa !5
  %218 = load ptr, ptr %216, align 8, !tbaa !32
  %219 = getelementptr inbounds ptr, ptr %218, i64 19
  %220 = load ptr, ptr %219, align 8
  call void %220(ptr noundef nonnull align 8 dereferenceable(16) %216, ptr noundef %217, i32 noundef 100, i1 noundef zeroext true)
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = icmp eq ptr %221, null
  br i1 %222, label %224, label %223

223:                                              ; preds = %214
  call void @_ZN3JPH6BodyIDdaEPv(ptr noundef %221) #13
  br label %224

224:                                              ; preds = %223, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #13
  br label %225

225:                                              ; preds = %224, %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #13
  %226 = load i32, ptr %5, align 4, !tbaa !26
  %227 = sext i32 %226 to i64
  %228 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %227, i64 4)
  %229 = extractvalue { i64, i1 } %228, 1
  %230 = extractvalue { i64, i1 } %228, 0
  %231 = select i1 %229, i64 -1, i64 %230
  %232 = call noundef ptr @_ZN3JPH6BodyIDnaEm(i64 noundef %231)
  %233 = icmp eq i64 %227, 0
  br i1 %233, label %241, label %234

234:                                              ; preds = %225
  %235 = getelementptr inbounds %"class.JPH::BodyID", ptr %232, i64 %227
  br label %236

236:                                              ; preds = %238, %234
  %237 = phi ptr [ %232, %234 ], [ %239, %238 ]
  invoke void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %237)
          to label %238 unwind label %247

238:                                              ; preds = %236
  %239 = getelementptr inbounds %"class.JPH::BodyID", ptr %237, i64 1
  %240 = icmp eq ptr %239, %235
  br i1 %240, label %241, label %236

241:                                              ; preds = %238, %225
  store ptr %232, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #13
  store i32 0, ptr %22, align 4, !tbaa !26
  br label %242

242:                                              ; preds = %265, %241
  %243 = load i32, ptr %22, align 4, !tbaa !26
  %244 = load i32, ptr %5, align 4, !tbaa !26
  %245 = icmp slt i32 %243, %244
  br i1 %245, label %251, label %246

246:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #13
  br label %268

247:                                              ; preds = %236
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %9, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %10, align 4
  call void @_ZN3JPH6BodyIDdaEPv(ptr noundef %232) #13
  br label %675

251:                                              ; preds = %242
  %252 = load ptr, ptr %6, align 8, !tbaa !5
  %253 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 2
  %254 = load i64, ptr %253, align 8, !tbaa !24
  %255 = load i32, ptr %22, align 4, !tbaa !26
  %256 = sext i32 %255 to i64
  %257 = add i64 %254, %256
  %258 = getelementptr inbounds ptr, ptr %252, i64 %257
  %259 = load ptr, ptr %258, align 8, !tbaa !5
  %260 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %259)
  %261 = load ptr, ptr %21, align 8, !tbaa !5
  %262 = load i32, ptr %22, align 4, !tbaa !26
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %"class.JPH::BodyID", ptr %261, i64 %263
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %264, ptr align 4 %260, i64 4, i1 false), !tbaa.struct !28
  br label %265

265:                                              ; preds = %251
  %266 = load i32, ptr %22, align 4, !tbaa !26
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %22, align 4, !tbaa !26
  br label %242, !llvm.loop !34

268:                                              ; preds = %246
  %269 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 3
  %270 = load i32, ptr %269, align 8, !tbaa !9
  %271 = icmp eq i32 %270, 1
  br i1 %271, label %272, label %305

272:                                              ; preds = %268
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #13
  %273 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %274 = load ptr, ptr %273, align 8, !tbaa !31
  %275 = load ptr, ptr %21, align 8, !tbaa !5
  %276 = load i32, ptr %5, align 4, !tbaa !26
  %277 = load ptr, ptr %274, align 8, !tbaa !32
  %278 = getelementptr inbounds ptr, ptr %277, i64 15
  %279 = load ptr, ptr %278, align 8
  %280 = call noundef ptr %279(ptr noundef nonnull align 8 dereferenceable(16) %274, ptr noundef %275, i32 noundef %276)
  store ptr %280, ptr %23, align 8, !tbaa !5
  %281 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %282 = load ptr, ptr %281, align 8, !tbaa !31
  %283 = load ptr, ptr %21, align 8, !tbaa !5
  %284 = load i32, ptr %5, align 4, !tbaa !26
  %285 = load ptr, ptr %23, align 8, !tbaa !5
  %286 = load ptr, ptr %282, align 8, !tbaa !32
  %287 = getelementptr inbounds ptr, ptr %286, i64 17
  %288 = load ptr, ptr %287, align 8
  call void %288(ptr noundef nonnull align 8 dereferenceable(16) %282, ptr noundef %283, i32 noundef %284, ptr noundef %285)
  %289 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %290 = load ptr, ptr %289, align 8, !tbaa !31
  %291 = load ptr, ptr %21, align 8, !tbaa !5
  %292 = load i32, ptr %5, align 4, !tbaa !26
  %293 = load ptr, ptr %290, align 8, !tbaa !32
  %294 = getelementptr inbounds ptr, ptr %293, i64 15
  %295 = load ptr, ptr %294, align 8
  %296 = call noundef ptr %295(ptr noundef nonnull align 8 dereferenceable(16) %290, ptr noundef %291, i32 noundef %292)
  store ptr %296, ptr %23, align 8, !tbaa !5
  %297 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %298 = load ptr, ptr %297, align 8, !tbaa !31
  %299 = load ptr, ptr %21, align 8, !tbaa !5
  %300 = load i32, ptr %5, align 4, !tbaa !26
  %301 = load ptr, ptr %23, align 8, !tbaa !5
  %302 = load ptr, ptr %298, align 8, !tbaa !32
  %303 = getelementptr inbounds ptr, ptr %302, i64 16
  %304 = load ptr, ptr %303, align 8
  call void %304(ptr noundef nonnull align 8 dereferenceable(16) %298, ptr noundef %299, i32 noundef %300, ptr noundef %301)
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #13
  br label %313

305:                                              ; preds = %268
  %306 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %307 = load ptr, ptr %306, align 8, !tbaa !31
  %308 = load ptr, ptr %21, align 8, !tbaa !5
  %309 = load i32, ptr %5, align 4, !tbaa !26
  %310 = load ptr, ptr %307, align 8, !tbaa !32
  %311 = getelementptr inbounds ptr, ptr %310, i64 18
  %312 = load ptr, ptr %311, align 8
  call void %312(ptr noundef nonnull align 8 dereferenceable(16) %307, ptr noundef %308, i32 noundef %309)
  br label %313

313:                                              ; preds = %305, %272
  %314 = load ptr, ptr %21, align 8, !tbaa !5
  %315 = icmp eq ptr %314, null
  br i1 %315, label %317, label %316

316:                                              ; preds = %313
  call void @_ZN3JPH6BodyIDdaEPv(ptr noundef %314) #13
  br label %317

317:                                              ; preds = %316, %313
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #13
  call void @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %24)
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #13
  %318 = call { double, double } @_ZN3JPH4Vec37sRandomISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEES0_RT_(ptr noundef nonnull align 8 dereferenceable(8) %24)
  %319 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %320 = getelementptr inbounds %union.anon, ptr %319, i32 0, i32 0
  %321 = getelementptr inbounds { double, double }, ptr %320, i32 0, i32 0
  %322 = extractvalue { double, double } %318, 0
  store double %322, ptr %321, align 16
  %323 = getelementptr inbounds { double, double }, ptr %320, i32 0, i32 1
  %324 = extractvalue { double, double } %318, 1
  store double %324, ptr %323, align 8
  %325 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %326 = load double, ptr %325, align 16
  %327 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %328 = load double, ptr %327, align 8
  %329 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 1.000000e+03, double %326, double %328)
  %330 = getelementptr inbounds %"class.JPH::Vec3", ptr %25, i32 0, i32 0
  %331 = getelementptr inbounds %union.anon, ptr %330, i32 0, i32 0
  %332 = getelementptr inbounds { double, double }, ptr %331, i32 0, i32 0
  %333 = extractvalue { double, double } %329, 0
  store double %333, ptr %332, align 16
  %334 = getelementptr inbounds { double, double }, ptr %331, i32 0, i32 1
  %335 = extractvalue { double, double } %329, 1
  store double %335, ptr %334, align 8
  call void @llvm.lifetime.start.p0(i64 32, ptr %27) #13
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %28, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !35
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %30, ptr align 16 %25, i64 16, i1 false), !tbaa.struct !35
  %336 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 0
  %337 = load double, ptr %336, align 16
  %338 = getelementptr inbounds { double, double }, ptr %30, i32 0, i32 1
  %339 = load double, ptr %338, align 8
  %340 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef -2.000000e+00, double %337, double %339)
  %341 = getelementptr inbounds %"class.JPH::Vec3", ptr %29, i32 0, i32 0
  %342 = getelementptr inbounds %union.anon, ptr %341, i32 0, i32 0
  %343 = getelementptr inbounds { double, double }, ptr %342, i32 0, i32 0
  %344 = extractvalue { double, double } %340, 0
  store double %344, ptr %343, align 16
  %345 = getelementptr inbounds { double, double }, ptr %342, i32 0, i32 1
  %346 = extractvalue { double, double } %340, 1
  store double %346, ptr %345, align 8
  %347 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 0
  %348 = load double, ptr %347, align 16
  %349 = getelementptr inbounds { double, double }, ptr %28, i32 0, i32 1
  %350 = load double, ptr %349, align 8
  %351 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 0
  %352 = load double, ptr %351, align 16
  %353 = getelementptr inbounds { double, double }, ptr %29, i32 0, i32 1
  %354 = load double, ptr %353, align 8
  call void @_ZN3JPH7RayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32) %27, double %348, double %350, double %352, double %354)
  call void @llvm.lifetime.start.p0(i64 48, ptr %31) #13
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #13
  %355 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %356 = load ptr, ptr %355, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #13
  call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 8, i1 false)
  call void @_ZN3JPH21BroadPhaseLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr %33) #13
  call void @llvm.memset.p0.i64(ptr align 8 %33, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17ObjectLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #13
  %357 = load ptr, ptr %356, align 8, !tbaa !32
  %358 = getelementptr inbounds ptr, ptr %357, i64 2
  %359 = load ptr, ptr %358, align 8
  invoke void %359(ptr noundef nonnull align 8 dereferenceable(8) %356, ptr noundef nonnull align 16 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(24) %31, ptr noundef nonnull align 8 dereferenceable(8) %32, ptr noundef nonnull align 8 dereferenceable(8) %33)
          to label %360 unwind label %405

360:                                              ; preds = %317
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #13
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #13
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #13
  %361 = getelementptr inbounds %"class.JPH::AllHitCollisionCollector", ptr %31, i32 0, i32 1
  %362 = invoke noundef i64 @_ZNK3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %361)
          to label %363 unwind label %409

363:                                              ; preds = %360
  %364 = trunc i64 %362 to i32
  store i32 %364, ptr %34, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %35) #13
  %365 = getelementptr inbounds %"class.JPH::AllHitCollisionCollector", ptr %31, i32 0, i32 1
  %366 = invoke noundef ptr @_ZN3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %365)
          to label %367 unwind label %413

367:                                              ; preds = %363
  store ptr %366, ptr %35, align 8, !tbaa !5
  %368 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  %369 = load i32, ptr %34, align 4, !tbaa !26
  invoke void (ptr, ...) %368(ptr noundef @.str.3, i32 noundef %369)
          to label %370 unwind label %413

370:                                              ; preds = %367
  %371 = getelementptr inbounds %class.Test, ptr %65, i32 0, i32 4
  %372 = load ptr, ptr %371, align 8, !tbaa !37
  %373 = getelementptr inbounds %"struct.JPH::RayCastT", ptr %27, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %36, ptr align 16 %373, i64 16, i1 false), !tbaa.struct !35
  %374 = getelementptr inbounds %"struct.JPH::RayCastT", ptr %27, i32 0, i32 0
  %375 = getelementptr inbounds %"struct.JPH::RayCastT", ptr %27, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %38, ptr align 16 %375, i64 16, i1 false), !tbaa.struct !35
  %376 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 0
  %377 = load double, ptr %376, align 16
  %378 = getelementptr inbounds { double, double }, ptr %38, i32 0, i32 1
  %379 = load double, ptr %378, align 8
  %380 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %374, double %377, double %379)
          to label %381 unwind label %413

381:                                              ; preds = %370
  %382 = getelementptr inbounds %"class.JPH::Vec3", ptr %37, i32 0, i32 0
  %383 = getelementptr inbounds %union.anon, ptr %382, i32 0, i32 0
  %384 = getelementptr inbounds { double, double }, ptr %383, i32 0, i32 0
  %385 = extractvalue { double, double } %380, 0
  store double %385, ptr %384, align 16
  %386 = getelementptr inbounds { double, double }, ptr %383, i32 0, i32 1
  %387 = extractvalue { double, double } %380, 1
  store double %387, ptr %386, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %39, ptr align 4 @_ZN3JPH5Color4sRedE, i64 4, i1 false), !tbaa.struct !38
  %388 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 0
  %389 = load double, ptr %388, align 16
  %390 = getelementptr inbounds { double, double }, ptr %36, i32 0, i32 1
  %391 = load double, ptr %390, align 8
  %392 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 0
  %393 = load double, ptr %392, align 16
  %394 = getelementptr inbounds { double, double }, ptr %37, i32 0, i32 1
  %395 = load double, ptr %394, align 8
  %396 = getelementptr inbounds %"class.JPH::Color", ptr %39, i32 0, i32 0
  %397 = getelementptr inbounds %union.anon.17, ptr %396, i32 0, i32 0
  %398 = load i32, ptr %397, align 4
  invoke void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %372, double %389, double %391, double %393, double %395, i32 %398)
          to label %399 unwind label %413

399:                                              ; preds = %381
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #13
  store i32 0, ptr %40, align 4, !tbaa !26
  br label %400

400:                                              ; preds = %442, %399
  %401 = load i32, ptr %40, align 4, !tbaa !26
  %402 = load i32, ptr %34, align 4, !tbaa !26
  %403 = icmp slt i32 %401, %402
  br i1 %403, label %417, label %404

404:                                              ; preds = %400
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #13
  br label %449

405:                                              ; preds = %317
  %406 = landingpad { ptr, i32 }
          cleanup
  %407 = extractvalue { ptr, i32 } %406, 0
  store ptr %407, ptr %9, align 8
  %408 = extractvalue { ptr, i32 } %406, 1
  store i32 %408, ptr %10, align 4
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %33) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %33) #13
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #13
  br label %674

409:                                              ; preds = %360
  %410 = landingpad { ptr, i32 }
          cleanup
  %411 = extractvalue { ptr, i32 } %410, 0
  store ptr %411, ptr %9, align 8
  %412 = extractvalue { ptr, i32 } %410, 1
  store i32 %412, ptr %10, align 4
  br label %673

413:                                              ; preds = %449, %381, %370, %367, %363
  %414 = landingpad { ptr, i32 }
          cleanup
  %415 = extractvalue { ptr, i32 } %414, 0
  store ptr %415, ptr %9, align 8
  %416 = extractvalue { ptr, i32 } %414, 1
  store i32 %416, ptr %10, align 4
  br label %672

417:                                              ; preds = %400
  %418 = getelementptr inbounds %class.Test, ptr %65, i32 0, i32 4
  %419 = load ptr, ptr %418, align 8, !tbaa !37
  %420 = load ptr, ptr %35, align 8, !tbaa !5
  %421 = load i32, ptr %40, align 4, !tbaa !26
  %422 = sext i32 %421 to i64
  %423 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %420, i64 %422
  %424 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %423, i32 0, i32 1
  %425 = load float, ptr %424, align 4, !tbaa !39
  %426 = invoke { double, double } @_ZNK3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_7RayCastEE13GetPointOnRayEf(ptr noundef nonnull align 16 dereferenceable(32) %27, float noundef %425)
          to label %427 unwind label %445

427:                                              ; preds = %417
  %428 = getelementptr inbounds %"class.JPH::Vec3", ptr %41, i32 0, i32 0
  %429 = getelementptr inbounds %union.anon, ptr %428, i32 0, i32 0
  %430 = getelementptr inbounds { double, double }, ptr %429, i32 0, i32 0
  %431 = extractvalue { double, double } %426, 0
  store double %431, ptr %430, align 16
  %432 = getelementptr inbounds { double, double }, ptr %429, i32 0, i32 1
  %433 = extractvalue { double, double } %426, 1
  store double %433, ptr %432, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 @_ZN3JPH5Color6sGreenE, i64 4, i1 false), !tbaa.struct !38
  %434 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 0
  %435 = load double, ptr %434, align 16
  %436 = getelementptr inbounds { double, double }, ptr %41, i32 0, i32 1
  %437 = load double, ptr %436, align 8
  %438 = getelementptr inbounds %"class.JPH::Color", ptr %42, i32 0, i32 0
  %439 = getelementptr inbounds %union.anon.17, ptr %438, i32 0, i32 0
  %440 = load i32, ptr %439, align 4
  invoke void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %419, double %435, double %437, i32 %440, float noundef 1.000000e+01)
          to label %441 unwind label %445

441:                                              ; preds = %427
  br label %442

442:                                              ; preds = %441
  %443 = load i32, ptr %40, align 4, !tbaa !26
  %444 = add nsw i32 %443, 1
  store i32 %444, ptr %40, align 4, !tbaa !26
  br label %400, !llvm.loop !42

445:                                              ; preds = %427, %417
  %446 = landingpad { ptr, i32 }
          cleanup
  %447 = extractvalue { ptr, i32 } %446, 0
  store ptr %447, ptr %9, align 8
  %448 = extractvalue { ptr, i32 } %446, 1
  store i32 %448, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #13
  br label %672

449:                                              ; preds = %404
  %450 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %451 = load ptr, ptr %450, align 8, !tbaa !31
  %452 = load ptr, ptr %451, align 8, !tbaa !32
  %453 = getelementptr inbounds ptr, ptr %452, i64 9
  %454 = load ptr, ptr %453, align 8
  invoke void %454(ptr noundef nonnull align 8 dereferenceable(16) %451)
          to label %455 unwind label %413

455:                                              ; preds = %449
  call void @llvm.lifetime.start.p0(i64 48, ptr %43) #13
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43) #13
  %456 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 2
  %457 = load ptr, ptr %456, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #13
  call void @llvm.memset.p0.i64(ptr align 8 %44, i8 0, i64 8, i1 false)
  call void @_ZN3JPH21BroadPhaseLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44) #13
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #13
  call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 8, i1 false)
  call void @_ZN3JPH17ObjectLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #13
  %458 = load ptr, ptr %457, align 8, !tbaa !32
  %459 = getelementptr inbounds ptr, ptr %458, i64 2
  %460 = load ptr, ptr %459, align 8
  invoke void %460(ptr noundef nonnull align 8 dereferenceable(8) %457, ptr noundef nonnull align 16 dereferenceable(32) %27, ptr noundef nonnull align 8 dereferenceable(24) %43, ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull align 8 dereferenceable(8) %45)
          to label %461 unwind label %477

461:                                              ; preds = %455
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #13
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #13
  call void @llvm.lifetime.start.p0(i64 4, ptr %46) #13
  %462 = getelementptr inbounds %"class.JPH::AllHitCollisionCollector", ptr %43, i32 0, i32 1
  %463 = invoke noundef i64 @_ZNK3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %462)
          to label %464 unwind label %481

464:                                              ; preds = %461
  %465 = trunc i64 %463 to i32
  store i32 %465, ptr %46, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %47) #13
  %466 = getelementptr inbounds %"class.JPH::AllHitCollisionCollector", ptr %43, i32 0, i32 1
  %467 = invoke noundef ptr @_ZN3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %466)
          to label %468 unwind label %485

468:                                              ; preds = %464
  store ptr %467, ptr %47, align 8, !tbaa !5
  %469 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  %470 = load i32, ptr %46, align 4, !tbaa !26
  invoke void (ptr, ...) %469(ptr noundef @.str.4, i32 noundef %470)
          to label %471 unwind label %485

471:                                              ; preds = %468
  %472 = load i32, ptr %46, align 4, !tbaa !26
  %473 = load i32, ptr %34, align 4, !tbaa !26
  %474 = icmp sgt i32 %472, %473
  br i1 %474, label %475, label %489

475:                                              ; preds = %471
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.5) #14
          to label %476 unwind label %485

476:                                              ; preds = %475
  unreachable

477:                                              ; preds = %455
  %478 = landingpad { ptr, i32 }
          cleanup
  %479 = extractvalue { ptr, i32 } %478, 0
  store ptr %479, ptr %9, align 8
  %480 = extractvalue { ptr, i32 } %478, 1
  store i32 %480, ptr %10, align 4
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %45) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #13
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %44) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #13
  br label %671

481:                                              ; preds = %461
  %482 = landingpad { ptr, i32 }
          cleanup
  %483 = extractvalue { ptr, i32 } %482, 0
  store ptr %483, ptr %9, align 8
  %484 = extractvalue { ptr, i32 } %482, 1
  store i32 %484, ptr %10, align 4
  br label %670

485:                                              ; preds = %475, %468, %464
  %486 = landingpad { ptr, i32 }
          cleanup
  %487 = extractvalue { ptr, i32 } %486, 0
  store ptr %487, ptr %9, align 8
  %488 = extractvalue { ptr, i32 } %486, 1
  store i32 %488, ptr %10, align 4
  br label %669

489:                                              ; preds = %471
  call void @llvm.lifetime.start.p0(i64 8, ptr %48) #13
  %490 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %490, ptr %48, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %49) #13
  %491 = load ptr, ptr %47, align 8, !tbaa !5
  %492 = load i32, ptr %46, align 4, !tbaa !26
  %493 = sext i32 %492 to i64
  %494 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %491, i64 %493
  store ptr %494, ptr %49, align 8, !tbaa !5
  br label %495

495:                                              ; preds = %538, %489
  %496 = load ptr, ptr %48, align 8, !tbaa !5
  %497 = load ptr, ptr %49, align 8, !tbaa !5
  %498 = icmp ult ptr %496, %497
  br i1 %498, label %500, label %499

499:                                              ; preds = %495
  store i32 13, ptr %50, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #13
  br label %542

500:                                              ; preds = %495
  call void @llvm.lifetime.start.p0(i64 1, ptr %51) #13
  store i8 0, ptr %51, align 1, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 8, ptr %52) #13
  %501 = load ptr, ptr %35, align 8, !tbaa !5
  store ptr %501, ptr %52, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %53) #13
  %502 = load ptr, ptr %35, align 8, !tbaa !5
  %503 = load i32, ptr %34, align 4, !tbaa !26
  %504 = sext i32 %503 to i64
  %505 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %502, i64 %504
  store ptr %505, ptr %53, align 8, !tbaa !5
  br label %506

506:                                              ; preds = %524, %500
  %507 = load ptr, ptr %52, align 8, !tbaa !5
  %508 = load ptr, ptr %53, align 8, !tbaa !5
  %509 = icmp ult ptr %507, %508
  br i1 %509, label %511, label %510

510:                                              ; preds = %506
  store i32 16, ptr %50, align 4
  br label %527

511:                                              ; preds = %506
  %512 = load ptr, ptr %48, align 8, !tbaa !5
  %513 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %512, i32 0, i32 0
  %514 = load ptr, ptr %52, align 8, !tbaa !5
  %515 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %514, i32 0, i32 0
  %516 = invoke noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %513, ptr noundef nonnull align 4 dereferenceable(4) %515)
          to label %517 unwind label %519

517:                                              ; preds = %511
  br i1 %516, label %518, label %523

518:                                              ; preds = %517
  store i8 1, ptr %51, align 1, !tbaa !43
  store i32 16, ptr %50, align 4
  br label %527

519:                                              ; preds = %511
  %520 = landingpad { ptr, i32 }
          cleanup
  %521 = extractvalue { ptr, i32 } %520, 0
  store ptr %521, ptr %9, align 8
  %522 = extractvalue { ptr, i32 } %520, 1
  store i32 %522, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #13
  br label %541

523:                                              ; preds = %517
  br label %524

524:                                              ; preds = %523
  %525 = load ptr, ptr %52, align 8, !tbaa !5
  %526 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %525, i32 1
  store ptr %526, ptr %52, align 8, !tbaa !5
  br label %506, !llvm.loop !44

527:                                              ; preds = %518, %510
  call void @llvm.lifetime.end.p0(i64 8, ptr %53) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %52) #13
  br label %528

528:                                              ; preds = %527
  %529 = load i8, ptr %51, align 1, !tbaa !43, !range !45, !noundef !46
  %530 = trunc i8 %529 to i1
  br i1 %530, label %537, label %531

531:                                              ; preds = %528
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.6) #14
          to label %532 unwind label %533

532:                                              ; preds = %531
  unreachable

533:                                              ; preds = %531
  %534 = landingpad { ptr, i32 }
          cleanup
  %535 = extractvalue { ptr, i32 } %534, 0
  store ptr %535, ptr %9, align 8
  %536 = extractvalue { ptr, i32 } %534, 1
  store i32 %536, ptr %10, align 4
  br label %541

537:                                              ; preds = %528
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #13
  br label %538

538:                                              ; preds = %537
  %539 = load ptr, ptr %48, align 8, !tbaa !5
  %540 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %539, i32 1
  store ptr %540, ptr %48, align 8, !tbaa !5
  br label %495, !llvm.loop !47

541:                                              ; preds = %533, %519
  call void @llvm.lifetime.end.p0(i64 1, ptr %51) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %49) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %48) #13
  br label %669

542:                                              ; preds = %499
  call void @llvm.lifetime.start.p0(i64 8, ptr %54) #13
  %543 = getelementptr inbounds %class.BroadPhaseTest, ptr %65, i32 0, i32 3
  %544 = load ptr, ptr %543, align 8, !tbaa !25
  %545 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH11BodyManager9GetBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %544)
          to label %546 unwind label %558

546:                                              ; preds = %542
  store ptr %545, ptr %54, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %55) #13
  %547 = load ptr, ptr %54, align 8, !tbaa !5
  %548 = invoke noundef ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %547)
          to label %549 unwind label %562

549:                                              ; preds = %546
  store ptr %548, ptr %55, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %56) #13
  %550 = load ptr, ptr %54, align 8, !tbaa !5
  %551 = invoke noundef ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %550)
          to label %552 unwind label %566

552:                                              ; preds = %549
  store ptr %551, ptr %56, align 8, !tbaa !5
  br label %553

553:                                              ; preds = %651, %552
  %554 = load ptr, ptr %55, align 8, !tbaa !5
  %555 = load ptr, ptr %56, align 8, !tbaa !5
  %556 = icmp ne ptr %554, %555
  br i1 %556, label %570, label %557

557:                                              ; preds = %553
  store i32 19, ptr %50, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #13
  br label %658

558:                                              ; preds = %542
  %559 = landingpad { ptr, i32 }
          cleanup
  %560 = extractvalue { ptr, i32 } %559, 0
  store ptr %560, ptr %9, align 8
  %561 = extractvalue { ptr, i32 } %559, 1
  store i32 %561, ptr %10, align 4
  br label %657

562:                                              ; preds = %546
  %563 = landingpad { ptr, i32 }
          cleanup
  %564 = extractvalue { ptr, i32 } %563, 0
  store ptr %564, ptr %9, align 8
  %565 = extractvalue { ptr, i32 } %563, 1
  store i32 %565, ptr %10, align 4
  br label %656

566:                                              ; preds = %549
  %567 = landingpad { ptr, i32 }
          cleanup
  %568 = extractvalue { ptr, i32 } %567, 0
  store ptr %568, ptr %9, align 8
  %569 = extractvalue { ptr, i32 } %567, 1
  store i32 %569, ptr %10, align 4
  br label %655

570:                                              ; preds = %553
  call void @llvm.lifetime.start.p0(i64 8, ptr %57) #13
  %571 = load ptr, ptr %55, align 8, !tbaa !5
  %572 = load ptr, ptr %571, align 8, !tbaa !5
  store ptr %572, ptr %57, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr %58) #13
  store i8 0, ptr %58, align 1, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 8, ptr %59) #13
  %573 = load ptr, ptr %47, align 8, !tbaa !5
  store ptr %573, ptr %59, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %60) #13
  %574 = load ptr, ptr %47, align 8, !tbaa !5
  %575 = load i32, ptr %46, align 4, !tbaa !26
  %576 = sext i32 %575 to i64
  %577 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %574, i64 %576
  store ptr %577, ptr %60, align 8, !tbaa !5
  br label %578

578:                                              ; preds = %597, %570
  %579 = load ptr, ptr %59, align 8, !tbaa !5
  %580 = load ptr, ptr %60, align 8, !tbaa !5
  %581 = icmp ult ptr %579, %580
  br i1 %581, label %583, label %582

582:                                              ; preds = %578
  store i32 21, ptr %50, align 4
  br label %600

583:                                              ; preds = %578
  %584 = load ptr, ptr %59, align 8, !tbaa !5
  %585 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %584, i32 0, i32 0
  %586 = load ptr, ptr %57, align 8, !tbaa !5
  %587 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %586)
          to label %588 unwind label %592

588:                                              ; preds = %583
  %589 = invoke noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %585, ptr noundef nonnull align 4 dereferenceable(4) %587)
          to label %590 unwind label %592

590:                                              ; preds = %588
  br i1 %589, label %591, label %596

591:                                              ; preds = %590
  store i8 1, ptr %58, align 1, !tbaa !43
  store i32 21, ptr %50, align 4
  br label %600

592:                                              ; preds = %588, %583
  %593 = landingpad { ptr, i32 }
          cleanup
  %594 = extractvalue { ptr, i32 } %593, 0
  store ptr %594, ptr %9, align 8
  %595 = extractvalue { ptr, i32 } %593, 1
  store i32 %595, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #13
  br label %654

596:                                              ; preds = %590
  br label %597

597:                                              ; preds = %596
  %598 = load ptr, ptr %59, align 8, !tbaa !5
  %599 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %598, i32 1
  store ptr %599, ptr %59, align 8, !tbaa !5
  br label %578, !llvm.loop !48

600:                                              ; preds = %591, %582
  call void @llvm.lifetime.end.p0(i64 8, ptr %60) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %59) #13
  br label %601

601:                                              ; preds = %600
  %602 = load ptr, ptr %57, align 8, !tbaa !5
  %603 = invoke noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122) %602)
          to label %604 unwind label %639

604:                                              ; preds = %601
  br i1 %603, label %605, label %644

605:                                              ; preds = %604
  %606 = getelementptr inbounds %"struct.JPH::RayCastT", ptr %27, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %61, ptr align 16 %606, i64 16, i1 false), !tbaa.struct !35
  %607 = getelementptr inbounds %"struct.JPH::RayCastT", ptr %27, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %62, ptr align 16 %607, i64 16, i1 false), !tbaa.struct !35
  %608 = load ptr, ptr %57, align 8, !tbaa !5
  %609 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %608)
          to label %610 unwind label %639

610:                                              ; preds = %605
  %611 = getelementptr inbounds %"class.JPH::AABox", ptr %609, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %63, ptr align 16 %611, i64 16, i1 false), !tbaa.struct !35
  %612 = load ptr, ptr %57, align 8, !tbaa !5
  %613 = invoke noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %612)
          to label %614 unwind label %639

614:                                              ; preds = %610
  %615 = getelementptr inbounds %"class.JPH::AABox", ptr %613, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %64, ptr align 16 %615, i64 16, i1 false), !tbaa.struct !35
  %616 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 0
  %617 = load double, ptr %616, align 16
  %618 = getelementptr inbounds { double, double }, ptr %61, i32 0, i32 1
  %619 = load double, ptr %618, align 8
  %620 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 0
  %621 = load double, ptr %620, align 16
  %622 = getelementptr inbounds { double, double }, ptr %62, i32 0, i32 1
  %623 = load double, ptr %622, align 8
  %624 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 0
  %625 = load double, ptr %624, align 16
  %626 = getelementptr inbounds { double, double }, ptr %63, i32 0, i32 1
  %627 = load double, ptr %626, align 8
  %628 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 0
  %629 = load double, ptr %628, align 16
  %630 = getelementptr inbounds { double, double }, ptr %64, i32 0, i32 1
  %631 = load double, ptr %630, align 8
  %632 = invoke noundef zeroext i1 @_ZN3JPH12RayAABoxHitsENS_4Vec3ES0_S0_S0_(double %617, double %619, double %621, double %623, double %625, double %627, double %629, double %631)
          to label %633 unwind label %639

633:                                              ; preds = %614
  br i1 %632, label %634, label %644

634:                                              ; preds = %633
  %635 = load i8, ptr %58, align 1, !tbaa !43, !range !45, !noundef !46
  %636 = trunc i8 %635 to i1
  br i1 %636, label %643, label %637

637:                                              ; preds = %634
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.7) #14
          to label %638 unwind label %639

638:                                              ; preds = %637
  unreachable

639:                                              ; preds = %647, %637, %614, %610, %605, %601
  %640 = landingpad { ptr, i32 }
          cleanup
  %641 = extractvalue { ptr, i32 } %640, 0
  store ptr %641, ptr %9, align 8
  %642 = extractvalue { ptr, i32 } %640, 1
  store i32 %642, ptr %10, align 4
  br label %654

643:                                              ; preds = %634
  br label %650

644:                                              ; preds = %633, %604
  %645 = load i8, ptr %58, align 1, !tbaa !43, !range !45, !noundef !46
  %646 = trunc i8 %645 to i1
  br i1 %646, label %647, label %649

647:                                              ; preds = %644
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef @.str.8) #14
          to label %648 unwind label %639

648:                                              ; preds = %647
  unreachable

649:                                              ; preds = %644
  br label %650

650:                                              ; preds = %649, %643
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #13
  br label %651

651:                                              ; preds = %650
  %652 = load ptr, ptr %55, align 8, !tbaa !5
  %653 = getelementptr inbounds ptr, ptr %652, i32 1
  store ptr %653, ptr %55, align 8, !tbaa !5
  br label %553

654:                                              ; preds = %639, %592
  call void @llvm.lifetime.end.p0(i64 1, ptr %58) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %57) #13
  br label %655

655:                                              ; preds = %654, %566
  call void @llvm.lifetime.end.p0(i64 8, ptr %56) #13
  br label %656

656:                                              ; preds = %655, %562
  call void @llvm.lifetime.end.p0(i64 8, ptr %55) #13
  br label %657

657:                                              ; preds = %656, %558
  call void @llvm.lifetime.end.p0(i64 8, ptr %54) #13
  br label %669

658:                                              ; preds = %557
  %659 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 3
  %660 = load i32, ptr %659, align 8, !tbaa !9
  %661 = icmp sgt i32 %660, 0
  br i1 %661, label %662, label %668

662:                                              ; preds = %658
  %663 = load i32, ptr %5, align 4, !tbaa !26
  %664 = sext i32 %663 to i64
  %665 = getelementptr inbounds %class.BroadPhaseInsertionTest, ptr %65, i32 0, i32 2
  %666 = load i64, ptr %665, align 8, !tbaa !24
  %667 = add i64 %666, %664
  store i64 %667, ptr %665, align 8, !tbaa !24
  br label %668

668:                                              ; preds = %662, %658
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #13
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43) #13
  call void @llvm.lifetime.end.p0(i64 48, ptr %43) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #13
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #13
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #13
  ret void

669:                                              ; preds = %657, %541, %485
  call void @llvm.lifetime.end.p0(i64 8, ptr %47) #13
  br label %670

670:                                              ; preds = %669, %481
  call void @llvm.lifetime.end.p0(i64 4, ptr %46) #13
  br label %671

671:                                              ; preds = %670, %477
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %43) #13
  call void @llvm.lifetime.end.p0(i64 48, ptr %43) #13
  br label %672

672:                                              ; preds = %671, %445, %413
  call void @llvm.lifetime.end.p0(i64 8, ptr %35) #13
  br label %673

673:                                              ; preds = %672, %409
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #13
  br label %674

674:                                              ; preds = %673, %405
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #13
  call void @llvm.lifetime.end.p0(i64 48, ptr %31) #13
  call void @llvm.lifetime.end.p0(i64 32, ptr %27) #13
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #13
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #13
  br label %675

675:                                              ; preds = %674, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #13
  br label %676

676:                                              ; preds = %675, %128
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #13
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #13
  br label %677

677:                                              ; preds = %676
  %678 = load ptr, ptr %9, align 8
  %679 = load i32, ptr %10, align 4
  %680 = insertvalue { ptr, i32 } poison, ptr %678, 0
  %681 = insertvalue { ptr, i32 } %680, i32 %679, 1
  resume { ptr, i32 } %681
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122)) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) #6

declare void @_ZN3JPH4Body30SetPositionAndRotationInternalENS_4Vec3ENS_4QuatEb(ptr noundef nonnull align 16 dereferenceable(122), double, double, double, double, i1 noundef zeroext) #7

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNSt25uniform_real_distributionIfEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Vec37sRandomISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEES0_RT_(ptr noundef nonnull align 8 dereferenceable(8)) #6 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPH4Quat9sIdentityEv() #4 align 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)) #3 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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #10

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH7RayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #6 align 2

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #11

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef, double, double, double, double, i32) #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef, double, double, i32, float noundef) #6

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

; Function Attrs: noreturn
declare void @_Z10FatalErrorPKcz(ptr noundef, ...) #12

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12RayAABoxHitsENS_4Vec3ES0_S0_S0_(double, double, double, double, double, double, double, double) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122)) #3 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { alwaysinline mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { "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 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #11 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #12 = { noreturn "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 #13 = { nounwind }
attributes #14 = { noreturn }

!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, !23, i64 160}
!10 = !{!"_ZTS23BroadPhaseInsertionTest", !11, i64 0, !22, i64 144, !16, i64 152, !23, i64 160}
!11 = !{!"_ZTS14BroadPhaseTest", !12, i64 0, !20, i64 112, !6, i64 128, !6, i64 136}
!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", !19, i64 0, !16, i64 8}
!19 = !{!"float", !7, i64 0}
!20 = !{!"_ZTS20BPLayerInterfaceImpl", !21, i64 0, !7, i64 8}
!21 = !{!"_ZTSN3JPH24BroadPhaseLayerInterfaceE"}
!22 = !{!"_ZTSSt26linear_congruential_engineImLm16807ELm0ELm2147483647EE", !16, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!10, !16, i64 152}
!25 = !{!11, !6, i64 136}
!26 = !{!23, !23, i64 0}
!27 = !{i64 2160139383}
!28 = !{i64 0, i64 4, !26}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!11, !6, i64 128}
!32 = !{!33, !33, i64 0}
!33 = !{!"vtable pointer", !8, i64 0}
!34 = distinct !{!34, !30}
!35 = !{i64 0, i64 16, !36}
!36 = !{!7, !7, i64 0}
!37 = !{!12, !6, i64 32}
!38 = !{i64 0, i64 4, !36}
!39 = !{!40, !19, i64 4}
!40 = !{!"_ZTSN3JPH20BroadPhaseCastResultE", !41, i64 0, !19, i64 4}
!41 = !{!"_ZTSN3JPH6BodyIDE", !23, i64 0}
!42 = distinct !{!42, !30}
!43 = !{!13, !13, i64 0}
!44 = distinct !{!44, !30}
!45 = !{i8 0, i8 2}
!46 = !{}
!47 = distinct !{!47, !30}
!48 = distinct !{!48, !30}


; 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::Color" = type { %union.anon.17 }
%union.anon.17 = type { i32 }
%"class.std::uniform_int_distribution" = type { %"struct.std::uniform_int_distribution<>::param_type" }
%"struct.std::uniform_int_distribution<>::param_type" = type { i32, i32 }
%"class.std::uniform_real_distribution" = type { %"struct.std::uniform_real_distribution<float>::param_type" }
%"struct.std::uniform_real_distribution<float>::param_type" = type { float, float }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.std::linear_congruential_engine" = type { i64 }
%"struct.JPH::RayCast" = type { %"struct.JPH::RayCastT" }
%"struct.JPH::RayCastT" = type { %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::AllHitCollisionCollector" = type { %"class.JPH::CollisionCollector", %"class.JPH::Array.14" }
%"class.JPH::CollisionCollector" = type { ptr, float, ptr }
%"class.JPH::Array.14" = type { i64, i64, ptr }
%"class.JPH::BroadPhaseLayerFilter" = type { ptr }
%"class.JPH::ObjectLayerFilter" = type { ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::BroadPhaseCastResult" = type { %"class.JPH::BodyID", float }

@.str.1 = external hidden unnamed_addr constant [22 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [105 x i8], align 1
@_ZN3JPH5TraceE = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [32 x i8], align 1
@_ZN3JPH5Color4sRedE = external local_unnamed_addr global %"class.JPH::Color", align 4
@_ZN3JPH5Color6sGreenE = external local_unnamed_addr global %"class.JPH::Color", align 4
@.str.4 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [65 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [59 x i8], align 1

; 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
declare dso_local noundef i32 @_ZNK3JPH11BodyManager12GetMaxBodiesEv(ptr noundef nonnull align 8 dereferenceable(297)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN23BroadPhaseInsertionTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(164) %0, ptr nocapture noundef nonnull readnone align 16 dereferenceable(80) %1) unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::uniform_int_distribution", align 4
  %4 = alloca %"class.std::uniform_real_distribution", align 4
  %5 = alloca %"class.JPH::Vec3", align 16
  %6 = alloca %"class.std::linear_congruential_engine", align 8
  %7 = alloca %"struct.JPH::RayCast", align 16
  %8 = alloca %"class.JPH::AllHitCollisionCollector", align 8
  %9 = alloca %"class.JPH::BroadPhaseLayerFilter", align 8
  %10 = alloca %"class.JPH::ObjectLayerFilter", align 8
  %11 = alloca %"class.JPH::AllHitCollisionCollector", align 8
  %12 = alloca %"class.JPH::BroadPhaseLayerFilter", align 8
  %13 = alloca %"class.JPH::ObjectLayerFilter", align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 160
  %15 = load i32, ptr %14, align 8, !tbaa !5
  %16 = icmp eq i32 %15, 1
  br i1 %16, label %17, label %25

17:                                               ; preds = %2
  %18 = getelementptr inbounds i8, ptr %0, i64 152
  %19 = load i64, ptr %18, align 8, !tbaa !23
  %20 = getelementptr inbounds i8, ptr %0, i64 136
  %21 = load ptr, ptr %20, align 8, !tbaa !24
  %22 = tail call noundef i32 @_ZNK3JPH11BodyManager12GetMaxBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %21)
  %23 = zext i32 %22 to i64
  %.not = icmp ult i64 %19, %23
  br i1 %.not, label %._crit_edge179, label %24

._crit_edge179:                                   ; preds = %17
  %.pre = load i32, ptr %14, align 8, !tbaa !5
  br label %25

24:                                               ; preds = %17
  store i32 -1, ptr %14, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %._crit_edge179, %24, %2
  %26 = phi i32 [ %.pre, %._crit_edge179 ], [ -1, %24 ], [ %15, %2 ]
  %27 = icmp eq i32 %26, -1
  %28 = getelementptr inbounds i8, ptr %0, i64 152
  %29 = load i64, ptr %28, align 8
  %30 = icmp eq i64 %29, 0
  %or.cond = select i1 %27, i1 %30, i1 false
  br i1 %or.cond, label %31, label %32

31:                                               ; preds = %25
  store i32 1, ptr %14, align 8, !tbaa !5
  br label %32

32:                                               ; preds = %31, %25
  %33 = getelementptr inbounds i8, ptr %0, i64 136
  %34 = load ptr, ptr %33, align 8, !tbaa !24
  %35 = tail call noundef i32 @_ZNK3JPH11BodyManager12GetMaxBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %34)
  %36 = udiv i32 %35, 10
  %37 = load i32, ptr %14, align 8, !tbaa !5
  %38 = icmp slt i32 %37, 0
  br i1 %38, label %39, label %43

39:                                               ; preds = %32
  %40 = zext nneg i32 %36 to i64
  %41 = load i64, ptr %28, align 8, !tbaa !23
  %42 = sub i64 %41, %40
  store i64 %42, ptr %28, align 8, !tbaa !23
  br label %43

43:                                               ; preds = %39, %32
  %44 = load ptr, ptr %33, align 8, !tbaa !24
  %45 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH11BodyManager9GetBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %44)
  %46 = tail call noundef ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
  %47 = load i64, ptr %28, align 8, !tbaa !23
  %.not132 = icmp eq i64 %47, 0
  br i1 %.not132, label %93, label %48

48:                                               ; preds = %43
  %49 = tail call noundef ptr @_ZN3JPH6BodyIDnaEm(i64 noundef 400)
  br label %50

50:                                               ; preds = %50, %48
  %.idx = phi i64 [ 0, %48 ], [ %.add, %50 ]
  %.ptr = getelementptr inbounds i8, ptr %49, i64 %.idx
  tail call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %.ptr)
  %.add = add nuw nsw i64 %.idx, 4
  %51 = icmp eq i64 %.add, 400
  br i1 %51, label %52, label %50

52:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #10
  %53 = load i64, ptr %28, align 8, !tbaa !23
  %54 = trunc i64 %53 to i32
  %55 = add nsw i32 %54, -1
  call void @_ZNSt24uniform_int_distributionIiEC2Eii(ptr noundef nonnull align 4 dereferenceable(8) %3, i32 noundef 0, i32 noundef %55)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #10
  call void @_ZNSt25uniform_real_distributionIfEC2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 1.000000e+00, float noundef 5.000000e+00)
  %56 = getelementptr inbounds i8, ptr %0, i64 144
  %57 = getelementptr inbounds i8, ptr %5, i64 8
  br label %58

58:                                               ; preds = %52, %67
  %indvars.iv = phi i64 [ 0, %52 ], [ %indvars.iv.next, %67 ]
  %59 = call noundef i32 @_ZNSt24uniform_int_distributionIiEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEiRT_(ptr noundef nonnull align 4 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %56)
  %60 = sext i32 %59 to i64
  %61 = getelementptr inbounds ptr, ptr %46, i64 %60
  %62 = load ptr, ptr %61, align 8, !tbaa !25
  %63 = call noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122) %62)
  br i1 %63, label %67, label %64

64:                                               ; preds = %58
  %65 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2, i32 noundef 52)
  br i1 %65, label %66, label %67

66:                                               ; preds = %64
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #10, !srcloc !26
  br label %67

67:                                               ; preds = %66, %64, %58
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #10
  %68 = call { double, double } @_ZNK3JPH4Body11GetPositionEv(ptr noundef nonnull align 16 dereferenceable(122) %62)
  %69 = extractvalue { double, double } %68, 0
  store double %69, ptr %5, align 16
  %70 = extractvalue { double, double } %68, 1
  store double %70, ptr %57, align 8
  %71 = call noundef float @_ZNSt25uniform_real_distributionIfEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8) %4, ptr noundef nonnull align 8 dereferenceable(8) %56)
  %72 = call { double, double } @_ZN3JPH4Vec37sRandomISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEES0_RT_(ptr noundef nonnull align 8 dereferenceable(8) %56)
  %73 = extractvalue { double, double } %72, 0
  %74 = extractvalue { double, double } %72, 1
  %75 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef %71, double %73, double %74)
  %76 = extractvalue { double, double } %75, 0
  %77 = extractvalue { double, double } %75, 1
  %78 = call { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %5, double %76, double %77)
  %79 = extractvalue { double, double } %78, 0
  %80 = extractvalue { double, double } %78, 1
  %81 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %82 = extractvalue { double, double } %81, 0
  %83 = extractvalue { double, double } %81, 1
  call void @_ZN3JPH4Body30SetPositionAndRotationInternalENS_4Vec3ENS_4QuatEb(ptr noundef nonnull align 16 dereferenceable(122) %62, double %79, double %80, double %82, double %83, i1 noundef zeroext true)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #10
  %84 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %62)
  %85 = getelementptr inbounds %"class.JPH::BodyID", ptr %49, i64 %indvars.iv
  %86 = load i32, ptr %84, align 4, !tbaa !27
  store i32 %86, ptr %85, align 4, !tbaa !27
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, 100
  br i1 %exitcond.not, label %87, label %58, !llvm.loop !28

87:                                               ; preds = %67
  %88 = getelementptr inbounds i8, ptr %0, i64 128
  %89 = load ptr, ptr %88, align 8, !tbaa !30
  %90 = load ptr, ptr %89, align 8, !tbaa !31
  %91 = getelementptr inbounds i8, ptr %90, i64 152
  %92 = load ptr, ptr %91, align 8
  call void %92(ptr noundef nonnull align 8 dereferenceable(16) %89, ptr noundef nonnull %49, i32 noundef 100, i1 noundef zeroext true)
  call void @_ZN3JPH6BodyIDdaEPv(ptr noundef nonnull %49) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #10
  br label %93

93:                                               ; preds = %87, %43
  %94 = zext nneg i32 %36 to i64
  %95 = shl nuw nsw i64 %94, 2
  %96 = call noundef ptr @_ZN3JPH6BodyIDnaEm(i64 noundef %95)
  %97 = icmp ult i32 %35, 10
  br i1 %97, label %._crit_edge, label %98

98:                                               ; preds = %93
  %99 = getelementptr inbounds %"class.JPH::BodyID", ptr %96, i64 %94
  br label %100

100:                                              ; preds = %100, %98
  %101 = phi ptr [ %96, %98 ], [ %102, %100 ]
  call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %101)
  %102 = getelementptr inbounds i8, ptr %101, i64 4
  %103 = icmp eq ptr %102, %99
  br i1 %103, label %.loopexit143, label %100

.loopexit143:                                     ; preds = %100
  br i1 %97, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %93, %.loopexit143
  %104 = load i32, ptr %14, align 8, !tbaa !5
  %105 = icmp eq i32 %104, 1
  %106 = getelementptr inbounds i8, ptr %0, i64 128
  %107 = load ptr, ptr %106, align 8, !tbaa !30
  %108 = load ptr, ptr %107, align 8, !tbaa !31
  br i1 %105, label %116, label %133

.lr.ph:                                           ; preds = %.loopexit143, %.lr.ph
  %indvars.iv170 = phi i64 [ %indvars.iv.next171, %.lr.ph ], [ 0, %.loopexit143 ]
  %109 = load i64, ptr %28, align 8, !tbaa !23
  %110 = getelementptr ptr, ptr %46, i64 %109
  %111 = getelementptr ptr, ptr %110, i64 %indvars.iv170
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %112)
  %114 = getelementptr inbounds %"class.JPH::BodyID", ptr %96, i64 %indvars.iv170
  %115 = load i32, ptr %113, align 4, !tbaa !27
  store i32 %115, ptr %114, align 4, !tbaa !27
  %indvars.iv.next171 = add nuw nsw i64 %indvars.iv170, 1
  %exitcond173.not = icmp eq i64 %indvars.iv.next171, %94
  br i1 %exitcond173.not, label %._crit_edge, label %.lr.ph, !llvm.loop !33

116:                                              ; preds = %._crit_edge
  %117 = getelementptr inbounds i8, ptr %108, i64 120
  %118 = load ptr, ptr %117, align 8
  %119 = call noundef ptr %118(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef %96, i32 noundef %36)
  %120 = load ptr, ptr %106, align 8, !tbaa !30
  %121 = load ptr, ptr %120, align 8, !tbaa !31
  %122 = getelementptr inbounds i8, ptr %121, i64 136
  %123 = load ptr, ptr %122, align 8
  call void %123(ptr noundef nonnull align 8 dereferenceable(16) %120, ptr noundef %96, i32 noundef %36, ptr noundef %119)
  %124 = load ptr, ptr %106, align 8, !tbaa !30
  %125 = load ptr, ptr %124, align 8, !tbaa !31
  %126 = getelementptr inbounds i8, ptr %125, i64 120
  %127 = load ptr, ptr %126, align 8
  %128 = call noundef ptr %127(ptr noundef nonnull align 8 dereferenceable(16) %124, ptr noundef %96, i32 noundef %36)
  %129 = load ptr, ptr %106, align 8, !tbaa !30
  %130 = load ptr, ptr %129, align 8, !tbaa !31
  %131 = getelementptr inbounds i8, ptr %130, i64 128
  %132 = load ptr, ptr %131, align 8
  call void %132(ptr noundef nonnull align 8 dereferenceable(16) %129, ptr noundef %96, i32 noundef %36, ptr noundef %128)
  br label %136

133:                                              ; preds = %._crit_edge
  %134 = getelementptr inbounds i8, ptr %108, i64 144
  %135 = load ptr, ptr %134, align 8
  call void %135(ptr noundef nonnull align 8 dereferenceable(16) %107, ptr noundef %96, i32 noundef %36)
  br label %136

136:                                              ; preds = %133, %116
  %137 = icmp eq ptr %96, null
  br i1 %137, label %139, label %138

138:                                              ; preds = %136
  call void @_ZN3JPH6BodyIDdaEPv(ptr noundef nonnull %96) #10
  br label %139

139:                                              ; preds = %138, %136
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #10
  call void @_ZNSt26linear_congruential_engineImLm16807ELm0ELm2147483647EEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %140 = call { double, double } @_ZN3JPH4Vec37sRandomISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEES0_RT_(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %141 = extractvalue { double, double } %140, 0
  %142 = extractvalue { double, double } %140, 1
  %143 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef 1.000000e+03, double %141, double %142)
  %144 = extractvalue { double, double } %143, 0
  %145 = extractvalue { double, double } %143, 1
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #10
  %146 = call { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef -2.000000e+00, double %144, double %145)
  %147 = extractvalue { double, double } %146, 0
  %148 = extractvalue { double, double } %146, 1
  call void @_ZN3JPH7RayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32) %7, double %144, double %145, double %147, double %148)
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #10
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  %149 = getelementptr inbounds i8, ptr %0, i64 128
  %150 = load ptr, ptr %149, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #10
  store i64 0, ptr %9, align 8
  call void @_ZN3JPH21BroadPhaseLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #10
  store i64 0, ptr %10, align 8
  call void @_ZN3JPH17ObjectLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  %151 = load ptr, ptr %150, align 8, !tbaa !31
  %152 = getelementptr inbounds i8, ptr %151, i64 16
  %153 = load ptr, ptr %152, align 8
  invoke void %153(ptr noundef nonnull align 8 dereferenceable(8) %150, ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(24) %8, ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
          to label %154 unwind label %173

154:                                              ; preds = %139
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  %155 = getelementptr inbounds i8, ptr %8, i64 24
  %156 = call noundef i64 @_ZNK3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %155)
  %157 = trunc i64 %156 to i32
  %158 = call noundef ptr @_ZN3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %155)
  %159 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !25
  invoke void (ptr, ...) %159(ptr noundef nonnull @.str.3, i32 noundef %157)
          to label %160 unwind label %175

160:                                              ; preds = %154
  %161 = getelementptr inbounds i8, ptr %0, i64 32
  %162 = load ptr, ptr %161, align 8, !tbaa !34
  %.sroa.049.0.copyload = load double, ptr %7, align 16
  %.sroa.250.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 8
  %.sroa.250.0.copyload = load double, ptr %.sroa.250.0..sroa_idx, align 8, !tbaa !35
  %163 = getelementptr inbounds i8, ptr %7, i64 16
  %.sroa.045.0.copyload = load double, ptr %163, align 16
  %.sroa.246.0..sroa_idx = getelementptr inbounds i8, ptr %7, i64 24
  %.sroa.246.0.copyload = load double, ptr %.sroa.246.0..sroa_idx, align 8, !tbaa !35
  %164 = invoke { double, double } @_ZNK3JPH4Vec3plES0_(ptr noundef nonnull align 16 dereferenceable(16) %7, double %.sroa.045.0.copyload, double %.sroa.246.0.copyload)
          to label %165 unwind label %175

165:                                              ; preds = %160
  %166 = extractvalue { double, double } %164, 0
  %167 = extractvalue { double, double } %164, 1
  %.sroa.044.0.copyload = load i32, ptr @_ZN3JPH5Color4sRedE, align 4, !tbaa !35
  invoke void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef %162, double %.sroa.049.0.copyload, double %.sroa.250.0.copyload, double %166, double %167, i32 %.sroa.044.0.copyload)
          to label %.preheader unwind label %175

.preheader:                                       ; preds = %165
  %168 = icmp sgt i32 %157, 0
  br i1 %168, label %.lr.ph147.preheader, label %._crit_edge148

.lr.ph147.preheader:                              ; preds = %.preheader
  %wide.trip.count177 = and i64 %156, 2147483647
  br label %.lr.ph147

._crit_edge148:                                   ; preds = %184, %.preheader
  %169 = load ptr, ptr %149, align 8, !tbaa !30
  %170 = load ptr, ptr %169, align 8, !tbaa !31
  %171 = getelementptr inbounds i8, ptr %170, i64 72
  %172 = load ptr, ptr %171, align 8
  invoke void %172(ptr noundef nonnull align 8 dereferenceable(16) %169)
          to label %187 unwind label %175

173:                                              ; preds = %139
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %10) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %9) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #10
  br label %252

175:                                              ; preds = %._crit_edge148, %165, %160, %154
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %252

.lr.ph147:                                        ; preds = %.lr.ph147.preheader, %184
  %indvars.iv174 = phi i64 [ 0, %.lr.ph147.preheader ], [ %indvars.iv.next175, %184 ]
  %177 = load ptr, ptr %161, align 8, !tbaa !34
  %178 = getelementptr inbounds %"class.JPH::BroadPhaseCastResult", ptr %158, i64 %indvars.iv174, i32 1
  %179 = load float, ptr %178, align 4, !tbaa !36
  %180 = invoke { double, double } @_ZNK3JPH8RayCastTINS_4Vec3ENS_5Mat44ENS_7RayCastEE13GetPointOnRayEf(ptr noundef nonnull align 16 dereferenceable(32) %7, float noundef %179)
          to label %181 unwind label %185

181:                                              ; preds = %.lr.ph147
  %182 = extractvalue { double, double } %180, 0
  %183 = extractvalue { double, double } %180, 1
  %.sroa.038.0.copyload = load i32, ptr @_ZN3JPH5Color6sGreenE, align 4, !tbaa !35
  invoke void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef %177, double %182, double %183, i32 %.sroa.038.0.copyload, float noundef 1.000000e+01)
          to label %184 unwind label %185

184:                                              ; preds = %181
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next175, %wide.trip.count177
  br i1 %exitcond178.not, label %._crit_edge148, label %.lr.ph147, !llvm.loop !39

185:                                              ; preds = %181, %.lr.ph147
  %186 = landingpad { ptr, i32 }
          cleanup
  br label %252

187:                                              ; preds = %._crit_edge148
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %11) #10
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #10
  %188 = load ptr, ptr %149, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #10
  store i64 0, ptr %12, align 8
  call void @_ZN3JPH21BroadPhaseLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #10
  store i64 0, ptr %13, align 8
  call void @_ZN3JPH17ObjectLayerFilterC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  %189 = load ptr, ptr %188, align 8, !tbaa !31
  %190 = getelementptr inbounds i8, ptr %189, i64 16
  %191 = load ptr, ptr %190, align 8
  invoke void %191(ptr noundef nonnull align 8 dereferenceable(8) %188, ptr noundef nonnull align 16 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13)
          to label %192 unwind label %202

192:                                              ; preds = %187
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  %193 = getelementptr inbounds i8, ptr %11, i64 24
  %194 = call noundef i64 @_ZNK3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %193)
  %195 = trunc i64 %194 to i32
  %196 = call noundef ptr @_ZN3JPH5ArrayINS_20BroadPhaseCastResultENS_12STLAllocatorIS1_EEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %193)
  %197 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !25
  invoke void (ptr, ...) %197(ptr noundef nonnull @.str.4, i32 noundef %195)
          to label %198 unwind label %204

198:                                              ; preds = %192
  %199 = icmp sgt i32 %195, %157
  br i1 %199, label %200, label %206

200:                                              ; preds = %198
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef nonnull @.str.5) #11
          to label %201 unwind label %204

201:                                              ; preds = %200
  unreachable

202:                                              ; preds = %187
  %203 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH17ObjectLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #10
  call void @_ZN3JPH21BroadPhaseLayerFilterD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #10
  br label %251

204:                                              ; preds = %200, %192
  %205 = landingpad { ptr, i32 }
          cleanup
  br label %251

206:                                              ; preds = %198
  %sext = shl i64 %194, 32
  %207 = ashr exact i64 %sext, 29
  %208 = getelementptr inbounds i8, ptr %196, i64 %207
  %209 = icmp sgt i64 %207, 0
  br i1 %209, label %.lr.ph155, label %._crit_edge156

.lr.ph155:                                        ; preds = %206
  %sext135 = shl i64 %156, 32
  %210 = ashr exact i64 %sext135, 29
  %211 = getelementptr inbounds i8, ptr %158, i64 %210
  %212 = icmp sgt i64 %210, 0
  br i1 %212, label %.lr.ph151, label %.critedge

._crit_edge156:                                   ; preds = %225, %206
  %213 = load ptr, ptr %33, align 8, !tbaa !24
  %214 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZN3JPH11BodyManager9GetBodiesEv(ptr noundef nonnull align 8 dereferenceable(297) %213)
  %215 = call noundef ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %214)
  %216 = call noundef ptr @_ZN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %214)
  %.not134163 = icmp eq ptr %215, %216
  br i1 %.not134163, label %._crit_edge167, label %.lr.ph166

.lr.ph151:                                        ; preds = %.lr.ph155, %225
  %.0119153 = phi ptr [ %226, %225 ], [ %196, %.lr.ph155 ]
  br label %220

217:                                              ; preds = %220
  %218 = getelementptr inbounds i8, ptr %.0121149, i64 8
  %219 = icmp ult ptr %218, %211
  br i1 %219, label %220, label %.critedge, !llvm.loop !40

220:                                              ; preds = %.lr.ph151, %217
  %.0121149 = phi ptr [ %158, %.lr.ph151 ], [ %218, %217 ]
  %221 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %.0119153, ptr noundef nonnull align 4 dereferenceable(4) %.0121149)
  br i1 %221, label %225, label %217

.critedge:                                        ; preds = %217, %.lr.ph155
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef nonnull @.str.6) #11
          to label %222 unwind label %223

222:                                              ; preds = %.critedge
  unreachable

223:                                              ; preds = %.critedge
  %224 = landingpad { ptr, i32 }
          cleanup
  br label %251

225:                                              ; preds = %220
  %226 = getelementptr inbounds i8, ptr %.0119153, i64 8
  %227 = icmp ult ptr %226, %208
  br i1 %227, label %.lr.ph151, label %._crit_edge156, !llvm.loop !41

._crit_edge167:                                   ; preds = %245, %._crit_edge156
  %228 = load i32, ptr %14, align 8, !tbaa !5
  %229 = icmp sgt i32 %228, 0
  br i1 %229, label %247, label %250

.lr.ph166:                                        ; preds = %._crit_edge156, %245
  %.0124164 = phi ptr [ %246, %245 ], [ %215, %._crit_edge156 ]
  %230 = load ptr, ptr %.0124164, align 8, !tbaa !25
  br i1 %209, label %.lr.ph159, label %._crit_edge160

.lr.ph159:                                        ; preds = %.lr.ph166, %.lr.ph159
  %.0122157 = phi ptr [ %233, %.lr.ph159 ], [ %196, %.lr.ph166 ]
  %231 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %230)
  %232 = call noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4) %.0122157, ptr noundef nonnull align 4 dereferenceable(4) %231)
  %233 = getelementptr inbounds i8, ptr %.0122157, i64 8
  %234 = icmp uge ptr %233, %208
  %or.cond182.not = select i1 %232, i1 true, i1 %234
  br i1 %or.cond182.not, label %._crit_edge160, label %.lr.ph159, !llvm.loop !42

._crit_edge160:                                   ; preds = %.lr.ph159, %.lr.ph166
  %.lcssa = phi i1 [ false, %.lr.ph166 ], [ %232, %.lr.ph159 ]
  %235 = call noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122) %230)
  br i1 %235, label %236, label %244

236:                                              ; preds = %._crit_edge160
  %.sroa.05.0.copyload = load double, ptr %7, align 16
  %.sroa.26.0.copyload = load double, ptr %.sroa.250.0..sroa_idx, align 8, !tbaa !35
  %.sroa.03.0.copyload = load double, ptr %163, align 16
  %.sroa.24.0.copyload = load double, ptr %.sroa.246.0..sroa_idx, align 8, !tbaa !35
  %237 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %230)
  %.sroa.01.0.copyload = load double, ptr %237, align 16
  %.sroa.22.0..sroa_idx = getelementptr inbounds i8, ptr %237, i64 8
  %.sroa.22.0.copyload = load double, ptr %.sroa.22.0..sroa_idx, align 8, !tbaa !35
  %238 = call noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122) %230)
  %239 = getelementptr inbounds i8, ptr %238, i64 16
  %.sroa.0.0.copyload = load double, ptr %239, align 16
  %.sroa.2.0..sroa_idx = getelementptr inbounds i8, ptr %238, i64 24
  %.sroa.2.0.copyload = load double, ptr %.sroa.2.0..sroa_idx, align 8, !tbaa !35
  %240 = invoke noundef zeroext i1 @_ZN3JPH12RayAABoxHitsENS_4Vec3ES0_S0_S0_(double %.sroa.05.0.copyload, double %.sroa.26.0.copyload, double %.sroa.03.0.copyload, double %.sroa.24.0.copyload, double %.sroa.01.0.copyload, double %.sroa.22.0.copyload, double %.sroa.0.0.copyload, double %.sroa.2.0.copyload)
          to label %241 unwind label %.loopexit

241:                                              ; preds = %236
  br i1 %240, label %242, label %244

242:                                              ; preds = %241
  br i1 %.lcssa, label %245, label %.invoke

.invoke:                                          ; preds = %242, %244
  %243 = phi ptr [ @.str.8, %244 ], [ @.str.7, %242 ]
  invoke void (ptr, ...) @_Z10FatalErrorPKcz(ptr noundef nonnull %243) #11
          to label %.cont unwind label %.loopexit.split-lp

.cont:                                            ; preds = %.invoke
  unreachable

.loopexit:                                        ; preds = %236
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %251

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

244:                                              ; preds = %241, %._crit_edge160
  br i1 %.lcssa, label %.invoke, label %245

245:                                              ; preds = %244, %242
  %246 = getelementptr inbounds i8, ptr %.0124164, i64 8
  %.not134 = icmp eq ptr %246, %216
  br i1 %.not134, label %._crit_edge167, label %.lr.ph166

247:                                              ; preds = %._crit_edge167
  %248 = load i64, ptr %28, align 8, !tbaa !23
  %249 = add i64 %248, %94
  store i64 %249, ptr %28, align 8, !tbaa !23
  br label %250

250:                                              ; preds = %247, %._crit_edge167
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #10
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  ret void

251:                                              ; preds = %.loopexit, %.loopexit.split-lp, %204, %223, %202
  %.pn.pn = phi { ptr, i32 } [ %203, %202 ], [ %205, %204 ], [ %224, %223 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %11) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %11) #10
  br label %252

252:                                              ; preds = %175, %185, %251, %173
  %.pn138.pn = phi { ptr, i32 } [ %174, %173 ], [ %186, %185 ], [ %.pn.pn, %251 ], [ %176, %175 ]
  call void @_ZN3JPH24AllHitCollisionCollectorINS_18CollisionCollectorINS_20BroadPhaseCastResultENS_31CollisionCollectorTraitsCastRayEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #10
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #10
  resume { ptr, i32 } %.pn138.pn
}

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

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH4Body14IsInBroadPhaseEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #6

declare void @_ZN3JPH4Body30SetPositionAndRotationInternalENS_4Vec3ENS_4QuatEb(ptr noundef nonnull align 16 dereferenceable(122), double, double, double, double, i1 noundef zeroext) local_unnamed_addr #7

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local { double, double } @_ZN3JPHmlEfNS_4Vec3E(float noundef, double, double) local_unnamed_addr #8

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZNSt25uniform_real_distributionIfEclISt26linear_congruential_engineImLm16807ELm0ELm2147483647EEEEfRT_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH7RayCastCI2NS_8RayCastTINS_4Vec3ENS_5Mat44ES0_EEES2_S2_(ptr noundef nonnull align 16 dereferenceable(32), double, double, double, double) unnamed_addr #6 align 2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z10DrawLineSPPN3JPH13DebugRendererENS_4Vec3ES2_NS_5ColorE(ptr noundef, double, double, double, double, i32) local_unnamed_addr #6

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z12DrawMarkerSPPN3JPH13DebugRendererENS_4Vec3ENS_5ColorEf(ptr noundef, double, double, i32, float noundef) local_unnamed_addr #6

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

; Function Attrs: noreturn
declare void @_Z10FatalErrorPKcz(ptr noundef, ...) local_unnamed_addr #9

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH6BodyIDeqERKS0_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN3JPH12RayAABoxHitsENS_4Vec3ES0_S0_S0_(double, double, double, double, double, double, double, double) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 16 dereferenceable(32) ptr @_ZNK3JPH4Body19GetWorldSpaceBoundsEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #3 align 2

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

!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, !22, i64 160}
!6 = !{!"_ZTS23BroadPhaseInsertionTest", !7, i64 0, !21, i64 144, !15, i64 152, !22, i64 160}
!7 = !{!"_ZTS14BroadPhaseTest", !8, i64 0, !19, i64 112, !9, i64 128, !9, i64 136}
!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 = !{!"_ZTS20BPLayerInterfaceImpl", !20, i64 0, !10, i64 8}
!20 = !{!"_ZTSN3JPH24BroadPhaseLayerInterfaceE"}
!21 = !{!"_ZTSSt26linear_congruential_engineImLm16807ELm0ELm2147483647EE", !15, i64 0}
!22 = !{!"int", !10, i64 0}
!23 = !{!6, !15, i64 152}
!24 = !{!7, !9, i64 136}
!25 = !{!9, !9, i64 0}
!26 = !{i64 2160139383}
!27 = !{!22, !22, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!7, !9, i64 128}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !11, i64 0}
!33 = distinct !{!33, !29}
!34 = !{!8, !9, i64 32}
!35 = !{!10, !10, i64 0}
!36 = !{!37, !18, i64 4}
!37 = !{!"_ZTSN3JPH20BroadPhaseCastResultE", !38, i64 0, !18, i64 4}
!38 = !{!"_ZTSN3JPH6BodyIDE", !22, i64 0}
!39 = distinct !{!39, !29}
!40 = distinct !{!40, !29}
!41 = distinct !{!41, !29}
!42 = distinct !{!42, !29}


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