; LLVM IR from jrouwe/JoltPhysics :: Samples/Tests/General (SimCollideBodyVsBodyTest)

; 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.52 }
%union.anon.52 = type { i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.JPH::Vec3" = type { %union.anon.20 }
%union.anon.20 = type { <4 x float> }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.21 }
%union.anon.21 = type { <4 x float> }
%"class.Test::PreUpdateParams" = type { float, [12 x i8], %struct.CameraState }
%struct.CameraState = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, [12 x i8] }>
%class.SimCollideBodyVsBodyTest = type { %class.Test, %"class.JPH::ContactListener", i32, float, %"class.JPH::BodyID", %"class.JPH::Array" }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::ContactListener" = type { ptr }
%"class.JPH::Array" = type { i64, i64, ptr }

@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@_ZN3JPH13DebugRenderer9sInstanceE = external global ptr, align 8
@_ZN3JPH5Color6sWhiteE = external global %"class.JPH::Color", align 4

; 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: 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) #1

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24SimCollideBodyVsBodyTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef nonnull align 16 dereferenceable(80) %1) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::function", align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::function", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.std::function", align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.std::function", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.std::function", align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.JPH::Vec3", align 16
  %20 = alloca %"class.std::basic_string_view", align 8
  %21 = alloca %"class.JPH::Color", align 4
  %22 = alloca i32, align 4
  %23 = alloca %"class.JPH::BodyID", align 4
  %24 = alloca %"class.JPH::Vec3", align 16
  %25 = alloca %"class.JPH::Quat", align 16
  %26 = alloca %"class.JPH::Vec3", align 16
  %27 = alloca %"class.JPH::Vec3", align 16
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %3, align 8
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %"class.Test::PreUpdateParams", ptr %29, i32 0, i32 0
  %31 = load float, ptr %30, align 16, !tbaa !9
  %32 = getelementptr inbounds %class.SimCollideBodyVsBodyTest, ptr %28, i32 0, i32 3
  %33 = load float, ptr %32, align 4, !tbaa !14
  %34 = fadd float %33, %31
  store float %34, ptr %32, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  store ptr null, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #10
  %35 = getelementptr inbounds %class.SimCollideBodyVsBodyTest, ptr %28, i32 0, i32 3
  %36 = load float, ptr %35, align 4, !tbaa !14
  %37 = fdiv float %36, 3.000000e+00
  %38 = fptosi float %37 to i32
  %39 = srem i32 %38, 5
  store i32 %39, ptr %6, align 4, !tbaa !27
  %40 = load i32, ptr %6, align 4, !tbaa !27
  switch i32 %40, label %41 [
    i32 1, label %49
    i32 2, label %57
    i32 3, label %65
    i32 4, label %73
  ]

41:                                               ; preds = %2
  store ptr @.str.2, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 2
  %43 = load ptr, ptr %42, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #10
  store ptr @_ZN3JPH13PhysicsSystem28sDefaultSimCollideBodyVsBodyERKNS_4BodyES3_RKNS_5Mat44ES6_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE, ptr %8, align 8, !tbaa !5
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #10
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %43, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %44 unwind label %45

44:                                               ; preds = %41
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #10
  br label %81

45:                                               ; preds = %41
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %9, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #10
  br label %170

49:                                               ; preds = %2
  store ptr @.str.3, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 2
  %51 = load ptr, ptr %50, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #10
  store ptr @_ZL25sCollideBodyVsBodyPerBodyIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %12, align 8, !tbaa !5
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #10
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %51, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %52 unwind label %53

52:                                               ; preds = %49
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  br label %81

53:                                               ; preds = %49
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %9, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #10
  br label %170

57:                                               ; preds = %2
  store ptr @.str.4, ptr %5, align 8, !tbaa !5
  %58 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 2
  %59 = load ptr, ptr %58, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #10
  store ptr @_ZL25sCollideBodyVsBodyPerBodyIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %14, align 8, !tbaa !5
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(8) %14) #10
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %59, ptr noundef nonnull align 8 dereferenceable(32) %13)
          to label %60 unwind label %61

60:                                               ; preds = %57
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #10
  br label %81

61:                                               ; preds = %57
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %9, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #10
  br label %170

65:                                               ; preds = %2
  store ptr @.str.5, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #10
  store ptr @_ZL25sCollideBodyVsBodyPerLeafIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %16, align 8, !tbaa !5
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(8) %16) #10
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %67, ptr noundef nonnull align 8 dereferenceable(32) %15)
          to label %68 unwind label %69

68:                                               ; preds = %65
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  br label %81

69:                                               ; preds = %65
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %9, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #10
  br label %170

73:                                               ; preds = %2
  store ptr @.str.6, ptr %5, align 8, !tbaa !5
  %74 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 2
  %75 = load ptr, ptr %74, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 32, ptr %17) #10
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #10
  store ptr @_ZL25sCollideBodyVsBodyPerLeafIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %18, align 8, !tbaa !5
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %17, ptr noundef nonnull align 8 dereferenceable(8) %18) #10
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %75, ptr noundef nonnull align 8 dereferenceable(32) %17)
          to label %76 unwind label %77

76:                                               ; preds = %73
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  br label %81

77:                                               ; preds = %73
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %9, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %10, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #10
  call void @llvm.lifetime.end.p0(i64 32, ptr %17) #10
  br label %170

81:                                               ; preds = %76, %68, %60, %52, %44
  %82 = load ptr, ptr @_ZN3JPH13DebugRenderer9sInstanceE, align 8, !tbaa !5
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %19, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #10
  %83 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef %83) #10
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %21, ptr align 4 @_ZN3JPH5Color6sWhiteE, i64 4, i1 false), !tbaa.struct !29
  %84 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 0
  %85 = load double, ptr %84, align 16
  %86 = getelementptr inbounds { double, double }, ptr %19, i32 0, i32 1
  %87 = load double, ptr %86, align 8
  %88 = getelementptr inbounds %"class.JPH::Color", ptr %21, i32 0, i32 0
  %89 = getelementptr inbounds %union.anon.52, ptr %88, i32 0, i32 0
  %90 = load i32, ptr %89, align 4
  %91 = load ptr, ptr %82, align 8, !tbaa !31
  %92 = getelementptr inbounds ptr, ptr %91, i64 7
  %93 = load ptr, ptr %92, align 8
  call void %93(ptr noundef nonnull align 8 dereferenceable(320) %82, double %85, double %87, ptr noundef nonnull align 8 dereferenceable(16) %20, i32 %90, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #10
  %94 = load i32, ptr %6, align 4, !tbaa !27
  %95 = getelementptr inbounds %class.SimCollideBodyVsBodyTest, ptr %28, i32 0, i32 2
  %96 = load i32, ptr %95, align 8, !tbaa !33
  %97 = icmp ne i32 %94, %96
  br i1 %97, label %98, label %169

98:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #10
  store i32 0, ptr %22, align 4, !tbaa !27
  br label %99

99:                                               ; preds = %160, %98
  %100 = load i32, ptr %22, align 4, !tbaa !27
  %101 = getelementptr inbounds %class.SimCollideBodyVsBodyTest, ptr %28, i32 0, i32 5
  %102 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %101)
  %103 = trunc i64 %102 to i32
  %104 = icmp slt i32 %100, %103
  br i1 %104, label %106, label %105

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

106:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #10
  %107 = getelementptr inbounds %class.SimCollideBodyVsBodyTest, ptr %28, i32 0, i32 5
  %108 = load i32, ptr %22, align 4, !tbaa !27
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %110, i64 4, i1 false), !tbaa.struct !34
  %111 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !35
  %113 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK40019CCCCCCCCCCCCCCD)
  %114 = fneg float %113
  %115 = load i32, ptr %22, align 4, !tbaa !27
  %116 = sitofp i32 %115 to float
  %117 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK3FFF8000000000000000)
  %118 = call float @llvm.fmuladd.f32(float %116, float %117, float %114)
  %119 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK4001A000000000000000)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %24, float noundef %118, float noundef %119, float noundef 0.000000e+00)
  %120 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %121 = getelementptr inbounds %"class.JPH::Quat", ptr %25, i32 0, i32 0
  %122 = getelementptr inbounds %"class.JPH::Vec4", ptr %121, i32 0, i32 0
  %123 = getelementptr inbounds %union.anon.21, ptr %122, i32 0, i32 0
  %124 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 0
  %125 = extractvalue { double, double } %120, 0
  store double %125, ptr %124, align 16
  %126 = getelementptr inbounds { double, double }, ptr %123, i32 0, i32 1
  %127 = extractvalue { double, double } %120, 1
  store double %127, ptr %126, align 8
  %128 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %129 = getelementptr inbounds %"class.JPH::Vec3", ptr %26, i32 0, i32 0
  %130 = getelementptr inbounds %union.anon.20, ptr %129, i32 0, i32 0
  %131 = getelementptr inbounds { double, double }, ptr %130, i32 0, i32 0
  %132 = extractvalue { double, double } %128, 0
  store double %132, ptr %131, align 16
  %133 = getelementptr inbounds { double, double }, ptr %130, i32 0, i32 1
  %134 = extractvalue { double, double } %128, 1
  store double %134, ptr %133, align 8
  %135 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %136 = getelementptr inbounds %"class.JPH::Vec3", ptr %27, i32 0, i32 0
  %137 = getelementptr inbounds %union.anon.20, ptr %136, i32 0, i32 0
  %138 = getelementptr inbounds { double, double }, ptr %137, i32 0, i32 0
  %139 = extractvalue { double, double } %135, 0
  store double %139, ptr %138, align 16
  %140 = getelementptr inbounds { double, double }, ptr %137, i32 0, i32 1
  %141 = extractvalue { double, double } %135, 1
  store double %141, ptr %140, align 8
  %142 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 0
  %143 = load double, ptr %142, align 16
  %144 = getelementptr inbounds { double, double }, ptr %24, i32 0, i32 1
  %145 = load double, ptr %144, align 8
  %146 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 0
  %147 = load double, ptr %146, align 16
  %148 = getelementptr inbounds { double, double }, ptr %25, i32 0, i32 1
  %149 = load double, ptr %148, align 8
  %150 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 0
  %151 = load double, ptr %150, align 16
  %152 = getelementptr inbounds { double, double }, ptr %26, i32 0, i32 1
  %153 = load double, ptr %152, align 8
  %154 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 0
  %155 = load double, ptr %154, align 16
  %156 = getelementptr inbounds { double, double }, ptr %27, i32 0, i32 1
  %157 = load double, ptr %156, align 8
  call void @_ZN3JPH13BodyInterface30SetPositionRotationAndVelocityERKNS_6BodyIDENS_4Vec3ENS_4QuatES4_S4_(ptr noundef nonnull align 8 dereferenceable(24) %112, ptr noundef nonnull align 4 dereferenceable(4) %23, double %143, double %145, double %147, double %149, double %151, double %153, double %155, double %157)
  %158 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 3
  %159 = load ptr, ptr %158, align 8, !tbaa !35
  call void @_ZN3JPH13BodyInterface12ActivateBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %159, ptr noundef nonnull align 4 dereferenceable(4) %23)
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #10
  br label %160

160:                                              ; preds = %106
  %161 = load i32, ptr %22, align 4, !tbaa !27
  %162 = add nsw i32 %161, 1
  store i32 %162, ptr %22, align 4, !tbaa !27
  br label %99, !llvm.loop !36

163:                                              ; preds = %105
  %164 = getelementptr inbounds %class.Test, ptr %28, i32 0, i32 3
  %165 = load ptr, ptr %164, align 8, !tbaa !35
  %166 = getelementptr inbounds %class.SimCollideBodyVsBodyTest, ptr %28, i32 0, i32 4
  call void @_ZN3JPH13BodyInterface22InvalidateContactCacheERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %165, ptr noundef nonnull align 4 dereferenceable(4) %166)
  %167 = load i32, ptr %6, align 4, !tbaa !27
  %168 = getelementptr inbounds %class.SimCollideBodyVsBodyTest, ptr %28, i32 0, i32 2
  store i32 %167, ptr %168, align 8, !tbaa !33
  br label %169

169:                                              ; preds = %163, %81
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  ret void

170:                                              ; preds = %77, %69, %61, %53, %45
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  br label %171

171:                                              ; preds = %170
  %172 = load ptr, ptr %9, align 8
  %173 = load i32, ptr %10, align 4
  %174 = insertvalue { ptr, i32 } poison, ptr %172, 0
  %175 = insertvalue { ptr, i32 } %174, i32 %173, 1
  resume { ptr, i32 } %175
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 8 dereferenceable(32)) #4 align 2

declare void @_ZN3JPH13PhysicsSystem28sDefaultSimCollideBodyVsBodyERKNS_4BodyES3_RKNS_5Mat44ES6_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #5

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerBodyIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerBodyIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerLeafIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #4

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerLeafIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #4

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

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

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

declare void @_ZN3JPH13BodyInterface30SetPositionRotationAndVelocityERKNS_6BodyIDENS_4Vec3ENS_4QuatES4_S4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), double, double, double, double, double, double, double, double) #5

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef) #6

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

declare void @_ZN3JPH13BodyInterface12ActivateBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5

declare void @_ZN3JPH13BodyInterface22InvalidateContactCacheERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #5

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN4Test15PreUpdateParamsE", !11, i64 0, !12, i64 16}
!11 = !{!"float", !7, i64 0}
!12 = !{!"_ZTS11CameraState", !13, i64 0, !13, i64 16, !13, i64 32, !11, i64 48}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{!15, !11, i64 124}
!15 = !{!"_ZTS24SimCollideBodyVsBodyTest", !16, i64 0, !23, i64 112, !24, i64 120, !11, i64 124, !25, i64 128, !26, i64 136}
!16 = !{!"_ZTS4Test", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !17, i64 48, !18, i64 56}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableIN3JPH6BodyIDESt4pairIKS1_NSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toIS1_ESt4hashIS1_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !21, i64 16, !20, i64 24, !22, i64 32, !6, i64 48}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!22 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !11, i64 0, !20, i64 8}
!23 = !{!"_ZTSN3JPH15ContactListenerE"}
!24 = !{!"int", !7, i64 0}
!25 = !{!"_ZTSN3JPH6BodyIDE", !24, i64 0}
!26 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !20, i64 0, !20, i64 8, !6, i64 16}
!27 = !{!24, !24, i64 0}
!28 = !{!16, !6, i64 16}
!29 = !{i64 0, i64 4, !30}
!30 = !{!7, !7, i64 0}
!31 = !{!32, !32, i64 0}
!32 = !{!"vtable pointer", !8, i64 0}
!33 = !{!15, !24, i64 120}
!34 = !{i64 0, i64 4, !27}
!35 = !{!16, !6, i64 24}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}


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

%"class.JPH::Color" = type { %union.anon.52 }
%union.anon.52 = type { i32 }
%"class.std::function" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%"class.JPH::Vec3" = type { %union.anon.20 }
%union.anon.20 = type { <4 x float> }
%"class.std::basic_string_view" = type { i64, ptr }
%"class.JPH::BodyID" = type { i32 }

@.str.2 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [53 x i8], align 1
@_ZN3JPH13DebugRenderer9sInstanceE = external local_unnamed_addr global ptr, align 8
@_ZN3JPH5Color6sWhiteE = external local_unnamed_addr global %"class.JPH::Color", align 4

; 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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16), float noundef, float noundef, float noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN24SimCollideBodyVsBodyTest16PrePhysicsUpdateERKN4Test15PreUpdateParamsE(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr nocapture noundef nonnull readonly align 16 dereferenceable(80) %1) unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::function", align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::function", align 8
  %6 = alloca ptr, align 8
  %7 = alloca %"class.std::function", align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::function", align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"class.std::function", align 8
  %12 = alloca ptr, align 8
  %13 = alloca %"class.JPH::Vec3", align 16
  %14 = alloca %"class.std::basic_string_view", align 8
  %15 = alloca %"class.JPH::BodyID", align 4
  %16 = alloca %"class.JPH::Vec3", align 16
  %17 = load float, ptr %1, align 16, !tbaa !5
  %18 = getelementptr inbounds i8, ptr %0, i64 124
  %19 = load float, ptr %18, align 4, !tbaa !12
  %20 = fadd float %17, %19
  store float %20, ptr %18, align 4, !tbaa !12
  %21 = fdiv float %20, 3.000000e+00
  %22 = fptosi float %21 to i32
  %23 = srem i32 %22, 5
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !26
  switch i32 %23, label %26 [
    i32 1, label %30
    i32 2, label %34
    i32 3, label %38
    i32 4, label %42
  ]

26:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #9
  store ptr @_ZN3JPH13PhysicsSystem28sDefaultSimCollideBodyVsBodyERKNS_4BodyES3_RKNS_5Mat44ES6_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE, ptr %4, align 8, !tbaa !27
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef nonnull align 8 dereferenceable(8) %4) #9
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %25, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %27 unwind label %28

27:                                               ; preds = %26
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  br label %46

28:                                               ; preds = %26
  %29 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %3) #9
  br label %92

30:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #9
  store ptr @_ZL25sCollideBodyVsBodyPerBodyIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %6, align 8, !tbaa !27
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %6) #9
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %25, ptr noundef nonnull align 8 dereferenceable(32) %5)
          to label %31 unwind label %32

31:                                               ; preds = %30
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %46

32:                                               ; preds = %30
  %33 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #9
  br label %92

34:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #9
  store ptr @_ZL25sCollideBodyVsBodyPerBodyIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %8, align 8, !tbaa !27
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(8) %8) #9
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %25, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %35 unwind label %36

35:                                               ; preds = %34
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %46

36:                                               ; preds = %34
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #9
  br label %92

38:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #9
  store ptr @_ZL25sCollideBodyVsBodyPerLeafIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %10, align 8, !tbaa !27
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #9
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %25, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %39 unwind label %40

39:                                               ; preds = %38
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %46

40:                                               ; preds = %38
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #9
  br label %92

42:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #9
  store ptr @_ZL25sCollideBodyVsBodyPerLeafIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE, ptr %12, align 8, !tbaa !27
  call void @_ZNSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEEC2IPSH_vEEOT_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(8) %12) #9
  invoke void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172) %25, ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %43 unwind label %44

43:                                               ; preds = %42
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #9
  br label %46

44:                                               ; preds = %42
  %45 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #9
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #9
  br label %92

46:                                               ; preds = %43, %39, %35, %31, %27
  %.0 = phi ptr [ @.str.2, %27 ], [ @.str.6, %43 ], [ @.str.5, %39 ], [ @.str.4, %35 ], [ @.str.3, %31 ]
  %47 = load ptr, ptr @_ZN3JPH13DebugRenderer9sInstanceE, align 8, !tbaa !27
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %13, float noundef 0.000000e+00, float noundef 5.000000e+00, float noundef 0.000000e+00)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %14) #9
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef %.0) #9
  %.sroa.08.0.copyload = load i32, ptr @_ZN3JPH5Color6sWhiteE, align 4, !tbaa !28
  %48 = load double, ptr %13, align 16
  %49 = getelementptr inbounds i8, ptr %13, i64 8
  %50 = load double, ptr %49, align 8
  %51 = load ptr, ptr %47, align 8, !tbaa !29
  %52 = getelementptr inbounds i8, ptr %51, i64 56
  %53 = load ptr, ptr %52, align 8
  call void %53(ptr noundef nonnull align 8 dereferenceable(320) %47, double %48, double %50, ptr noundef nonnull align 8 dereferenceable(16) %14, i32 %.sroa.08.0.copyload, float noundef 5.000000e-01)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %14) #9
  %54 = getelementptr inbounds i8, ptr %0, i64 120
  %55 = load i32, ptr %54, align 8, !tbaa !31
  %.not = icmp eq i32 %23, %55
  br i1 %.not, label %91, label %.preheader

.preheader:                                       ; preds = %46
  %56 = getelementptr inbounds i8, ptr %0, i64 136
  %57 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
  %58 = trunc i64 %57 to i32
  %59 = icmp sgt i32 %58, 0
  br i1 %59, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %60 = getelementptr inbounds i8, ptr %0, i64 24
  %61 = getelementptr inbounds i8, ptr %16, i64 8
  br label %65

._crit_edge:                                      ; preds = %65, %.preheader
  %62 = getelementptr inbounds i8, ptr %0, i64 24
  %63 = load ptr, ptr %62, align 8, !tbaa !32
  %64 = getelementptr inbounds i8, ptr %0, i64 128
  call void @_ZN3JPH13BodyInterface22InvalidateContactCacheERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 4 dereferenceable(4) %64)
  store i32 %23, ptr %54, align 8, !tbaa !31
  br label %91

65:                                               ; preds = %.lr.ph, %65
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %65 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #9
  %66 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %56, i64 noundef %indvars.iv)
  %67 = load i32, ptr %66, align 4, !tbaa !33
  store i32 %67, ptr %15, align 4, !tbaa !33
  %68 = load ptr, ptr %60, align 8, !tbaa !32
  %69 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK40019CCCCCCCCCCCCCCD)
  %70 = fneg float %69
  %71 = trunc nuw nsw i64 %indvars.iv to i32
  %72 = uitofp nneg i32 %71 to float
  %73 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK3FFF8000000000000000)
  %74 = call float @llvm.fmuladd.f32(float %72, float %73, float %70)
  %75 = call noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef 0xK4001A000000000000000)
  call void @_ZN3JPH4Vec3C2Efff(ptr noundef nonnull align 16 dereferenceable(16) %16, float noundef %74, float noundef %75, float noundef 0.000000e+00)
  %76 = call { double, double } @_ZN3JPH4Quat9sIdentityEv()
  %77 = extractvalue { double, double } %76, 0
  %78 = extractvalue { double, double } %76, 1
  %79 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %80 = extractvalue { double, double } %79, 0
  %81 = extractvalue { double, double } %79, 1
  %82 = call { double, double } @_ZN3JPH4Vec35sZeroEv()
  %83 = extractvalue { double, double } %82, 0
  %84 = extractvalue { double, double } %82, 1
  %85 = load double, ptr %16, align 16
  %86 = load double, ptr %61, align 8
  call void @_ZN3JPH13BodyInterface30SetPositionRotationAndVelocityERKNS_6BodyIDENS_4Vec3ENS_4QuatES4_S4_(ptr noundef nonnull align 8 dereferenceable(24) %68, ptr noundef nonnull align 4 dereferenceable(4) %15, double %85, double %86, double %77, double %78, double %80, double %81, double %83, double %84)
  %87 = load ptr, ptr %60, align 8, !tbaa !32
  call void @_ZN3JPH13BodyInterface12ActivateBodyERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %87, ptr noundef nonnull align 4 dereferenceable(4) %15)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #9
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %88 = call noundef i64 @_ZNK3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %56)
  %sext = shl i64 %88, 32
  %89 = ashr exact i64 %sext, 32
  %90 = icmp slt i64 %indvars.iv.next, %89
  br i1 %90, label %65, label %._crit_edge, !llvm.loop !34

91:                                               ; preds = %._crit_edge, %46
  ret void

92:                                               ; preds = %44, %40, %36, %32, %28
  %.pn = phi { ptr, i32 } [ %29, %28 ], [ %45, %44 ], [ %41, %40 ], [ %37, %36 ], [ %33, %32 ]
  resume { ptr, i32 } %.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH13PhysicsSystem23SetSimCollideBodyVsBodyERKSt8functionIFvRKNS_4BodyES4_RKNS_5Mat44ES7_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterEEE(ptr noundef nonnull align 16 dereferenceable(1172), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

declare void @_ZN3JPH13PhysicsSystem28sDefaultSimCollideBodyVsBodyERKNS_4BodyES3_RKNS_5Mat44ES6_RNS_20CollideShapeSettingsERNS_18CollisionCollectorINS_18CollideShapeResultENS_36CollisionCollectorTraitsCollideShapeEEERKNS_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #4

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

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

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerBodyIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerBodyIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerLeafIN3JPH24AnyHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL25sCollideBodyVsBodyPerLeafIN3JPH28ClosestHitCollisionCollectorINS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEEEEEvRKNS0_4BodyES9_RKNS0_5Mat44ESC_RNS0_20CollideShapeSettingsERS5_RKNS0_11ShapeFilterE(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(64), ptr noundef nonnull align 16 dereferenceable(37), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(12)) #3

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

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

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

declare void @_ZN3JPH13BodyInterface30SetPositionRotationAndVelocityERKNS_6BodyIDENS_4Vec3ENS_4QuatES4_S4_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4), double, double, double, double, double, double, double, double) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef float @_ZN3JPH8literalsli2_rEe(x86_fp80 noundef) local_unnamed_addr #5

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 0}
!6 = !{!"_ZTSN4Test15PreUpdateParamsE", !7, i64 0, !10, i64 16}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS11CameraState", !11, i64 0, !11, i64 16, !11, i64 32, !7, i64 48}
!11 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!12 = !{!13, !7, i64 124}
!13 = !{!"_ZTS24SimCollideBodyVsBodyTest", !14, i64 0, !22, i64 112, !23, i64 120, !7, i64 124, !24, i64 128, !25, i64 136}
!14 = !{!"_ZTS4Test", !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !16, i64 48, !17, i64 56}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"bool", !8, i64 0}
!17 = !{!"_ZTSSt13unordered_mapIN3JPH6BodyIDENSt7__cxx1112basic_stringIcSt11char_traitsIcENS0_12STLAllocatorIcEEEESt4hashIS1_ESt8equal_toIS1_ESaISt4pairIKS1_S8_EEE", !18, i64 0}
!18 = !{!"_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", !15, i64 0, !19, i64 8, !20, i64 16, !19, i64 24, !21, i64 32, !15, i64 48}
!19 = !{!"long", !8, i64 0}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !15, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !7, i64 0, !19, i64 8}
!22 = !{!"_ZTSN3JPH15ContactListenerE"}
!23 = !{!"int", !8, i64 0}
!24 = !{!"_ZTSN3JPH6BodyIDE", !23, i64 0}
!25 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !19, i64 0, !19, i64 8, !15, i64 16}
!26 = !{!14, !15, i64 16}
!27 = !{!15, !15, i64 0}
!28 = !{!8, !8, i64 0}
!29 = !{!30, !30, i64 0}
!30 = !{!"vtable pointer", !9, i64 0}
!31 = !{!13, !23, i64 120}
!32 = !{!14, !15, i64 24}
!33 = !{!23, !23, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass