; LLVM IR from jrouwe/JoltPhysics :: Jolt/Physics (PhysicsSystem)

; 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::BodyAccess::Grant" = type { i8 }
%"class.JPH::BodyManager::GrantActiveBodiesAccess" = type { i8 }
%"class.JPH::PhysicsStepListenerContext" = type { float, i8, i8, ptr }
%"struct.JPH::PhysicsUpdateContext::Step" = type { ptr, i8, i8, %"struct.JPH::BroadPhase::UpdateState", i32, %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"struct.std::atomic", [60 x i8], %"class.JPH::StaticArray", i32, %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", %"struct.std::atomic", ptr, i32, %"struct.std::atomic", %"struct.std::atomic", ptr, i32, %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle", %"class.JPH::StaticArray.20", %"class.JPH::StaticArray.20", %"class.JPH::JobSystem::JobHandle", %"class.JPH::JobSystem::JobHandle" }
%"struct.JPH::BroadPhase::UpdateState" = type { [4 x ptr] }
%"class.JPH::StaticArray" = type { i32, [32 x %"struct.JPH::StaticArray<JPH::PhysicsUpdateContext::BodyPairQueue, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::PhysicsUpdateContext::BodyPairQueue, 32>::Storage" = type { [128 x i8] }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::StaticArray.20" = type { i32, [4 x i8], [32 x %"struct.JPH::StaticArray<JPH::JobSystem::JobHandle, 32>::Storage"] }
%"struct.JPH::StaticArray<JPH::JobSystem::JobHandle, 32>::Storage" = type { [8 x i8] }
%"class.JPH::JobSystem::JobHandle" = type { %"class.JPH::Ref" }
%"class.JPH::Ref" = type { ptr }
%"class.JPH::PhysicsUpdateContext" = type <{ ptr, ptr, ptr, ptr, float, float, %"struct.std::atomic", [4 x i8], ptr, ptr, ptr, %"class.JPH::Array.19", i32, [4 x i8], ptr, %"struct.std::atomic", [4 x i8] }>
%"class.JPH::Array.19" = type { %"class.JPH::STLTempAllocator", i64, i64, ptr }
%"class.JPH::STLTempAllocator" = type { ptr }
%"class.JPH::PhysicsSystem" = type <{ ptr, ptr, %"class.JPH::BodyManager", %"class.JPH::BodyLockInterfaceNoLock", %"class.JPH::BodyLockInterfaceLocking", %"class.JPH::BodyInterface", %"class.JPH::BodyInterface", %"class.JPH::NarrowPhaseQuery", %"class.JPH::NarrowPhaseQuery", ptr, ptr, ptr, %"class.std::function", %"struct.JPH::PhysicsSettings", [4 x i8], %"class.JPH::ContactConstraintManager", %"class.JPH::ConstraintManager", %"class.JPH::IslandBuilder", %"class.JPH::LargeIslandSplitter", %"class.JPH::Mutex", %"class.JPH::Array.10", %"class.JPH::Vec3", float, [12 x i8] }>
%"class.JPH::BodyManager" = type <{ %"class.JPH::Array", i32, [4 x i8], i64, %"class.JPH::Mutex", %"class.JPH::MutexArray", %"class.JPH::Array.0", %"class.JPH::Mutex", [2 x ptr], [2 x %"struct.std::atomic"], i32, [4 x i8], %"class.JPH::Mutex", %"class.JPH::Array.3", ptr, ptr, i8, [7 x i8] }>
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::MutexArray" = type <{ ptr, i32, [4 x i8] }>
%"class.JPH::Array.0" = type { i64, i64, ptr }
%"class.JPH::Array.3" = type { i64, i64, ptr }
%"class.JPH::BodyLockInterfaceNoLock" = type { %"class.JPH::BodyLockInterface" }
%"class.JPH::BodyLockInterface" = type { ptr, ptr }
%"class.JPH::BodyLockInterfaceLocking" = type { %"class.JPH::BodyLockInterface" }
%"class.JPH::BodyInterface" = type { ptr, ptr, ptr }
%"class.JPH::NarrowPhaseQuery" = type { ptr, ptr }
%"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 } }
%"struct.JPH::PhysicsSettings" = type <{ i32, i32, i32, float, float, float, float, float, float, float, float, float, float, float, i32, i32, float, float, float, i8, i8, i8, i8, i8, i8, i8, i8 }>
%"class.JPH::ContactConstraintManager" = type { [8 x i8], [2 x %"class.JPH::ContactConstraintManager::ManifoldCache"], i32, ptr, ptr, ptr, ptr, ptr, i32, %"struct.std::atomic", ptr }
%"class.JPH::ContactConstraintManager::ManifoldCache" = type <{ %"class.JPH::LFHMAllocator", %"class.JPH::LockFreeHashMap", %"class.JPH::LockFreeHashMap.6", i8, [7 x i8] }>
%"class.JPH::LFHMAllocator" = type { ptr, i32, %"struct.std::atomic" }
%"class.JPH::LockFreeHashMap" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }
%"class.JPH::LockFreeHashMap.6" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }
%"class.JPH::ConstraintManager" = type { ptr, %"class.JPH::Array.7", %"class.JPH::Mutex" }
%"class.JPH::Array.7" = type { i64, i64, ptr }
%"class.JPH::IslandBuilder" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, i32, i32, i32 }
%"class.JPH::LargeIslandSplitter" = type <{ i32, [4 x i8], ptr, ptr, ptr, i32, %"struct.std::atomic", i32, [4 x i8], ptr, %"struct.std::atomic", [4 x i8] }>
%"class.JPH::Mutex" = type { %"class.std::mutex", %"class.std::thread::id" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::thread::id" = type { i64 }
%"class.JPH::Array.10" = type { i64, i64, ptr }
%"class.JPH::Vec3" = type { %union.anon.13 }
%union.anon.13 = type { <4 x float> }

; 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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13PhysicsSystem16JobStepListenersEPNS_20PhysicsUpdateContext4StepE(ptr noundef nonnull align 16 dereferenceable(1172) %0, ptr noundef %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.JPH::BodyAccess::Grant", align 1
  %6 = alloca %"class.JPH::BodyManager::GrantActiveBodiesAccess", align 1
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.JPH::PhysicsStepListenerContext", align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr %5) #5
  call void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1) %5, i8 noundef zeroext 3, i8 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr %6) #5
  invoke void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessC2Ebb(ptr noundef nonnull align 1 dereferenceable(1) %6, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %18 unwind label %53

18:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %19, i32 0, i32 0
  %21 = load ptr, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds %"class.JPH::PhysicsUpdateContext", ptr %21, i32 0, i32 4
  %23 = load float, ptr %22, align 8, !tbaa !20
  %24 = getelementptr inbounds %"class.JPH::PhysicsStepListenerContext", ptr %9, i32 0, i32 0
  store float %23, ptr %24, align 8, !tbaa !26
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %25, i32 0, i32 1
  %27 = load i8, ptr %26, align 8, !tbaa !28, !range !29, !noundef !30
  %28 = trunc i8 %27 to i1
  %29 = getelementptr inbounds %"class.JPH::PhysicsStepListenerContext", ptr %9, i32 0, i32 1
  %30 = zext i1 %28 to i8
  store i8 %30, ptr %29, align 4, !tbaa !31
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %31, i32 0, i32 2
  %33 = load i8, ptr %32, align 1, !tbaa !32, !range !29, !noundef !30
  %34 = trunc i8 %33 to i1
  %35 = getelementptr inbounds %"class.JPH::PhysicsStepListenerContext", ptr %9, i32 0, i32 2
  %36 = zext i1 %34 to i8
  store i8 %36, ptr %35, align 1, !tbaa !33
  %37 = getelementptr inbounds %"class.JPH::PhysicsStepListenerContext", ptr %9, i32 0, i32 3
  store ptr %17, ptr %37, align 8, !tbaa !34
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %38 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %17, i32 0, i32 13
  %39 = getelementptr inbounds %"struct.JPH::PhysicsSettings", ptr %38, i32 0, i32 1
  %40 = load i32, ptr %39, align 4, !tbaa !35
  store i32 %40, ptr %10, align 4, !tbaa !61
  br label %41

41:                                               ; preds = %109, %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.JPH::PhysicsUpdateContext::Step", ptr %42, i32 0, i32 11
  %44 = load i32, ptr %10, align 4, !tbaa !61
  %45 = call noundef i32 @_ZNSt13__atomic_baseIjE9fetch_addEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %43, i32 noundef %44, i32 noundef 5) #5
  store i32 %45, ptr %11, align 4, !tbaa !61
  %46 = load i32, ptr %11, align 4, !tbaa !61
  %47 = zext i32 %46 to i64
  %48 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %17, i32 0, i32 20
  %49 = invoke noundef i64 @_ZNK3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %48)
          to label %50 unwind label %57

50:                                               ; preds = %41
  %51 = icmp uge i64 %47, %49
  br i1 %51, label %52, label %61

52:                                               ; preds = %50
  store i32 2, ptr %12, align 4
  br label %107

53:                                               ; preds = %2
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  br label %112

57:                                               ; preds = %41
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %7, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %8, align 4
  br label %110

61:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %62 = load i32, ptr %11, align 4, !tbaa !61
  store i32 %62, ptr %13, align 4, !tbaa !61
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %63 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %17, i32 0, i32 20
  %64 = invoke noundef i64 @_ZNK3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %63)
          to label %65 unwind label %78

65:                                               ; preds = %61
  %66 = trunc i64 %64 to i32
  store i32 %66, ptr %15, align 4, !tbaa !61
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %67 = load i32, ptr %11, align 4, !tbaa !61
  %68 = load i32, ptr %10, align 4, !tbaa !61
  %69 = add i32 %67, %68
  store i32 %69, ptr %16, align 4, !tbaa !61
  %70 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %71 unwind label %82

71:                                               ; preds = %65
  %72 = load i32, ptr %70, align 4, !tbaa !61
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  store i32 %72, ptr %14, align 4, !tbaa !61
  br label %73

73:                                               ; preds = %98, %71
  %74 = load i32, ptr %13, align 4, !tbaa !61
  %75 = load i32, ptr %14, align 4, !tbaa !61
  %76 = icmp ult i32 %74, %75
  br i1 %76, label %87, label %77

77:                                               ; preds = %73
  store i32 4, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %106

78:                                               ; preds = %61
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %7, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %8, align 4
  br label %86

82:                                               ; preds = %65
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %7, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %86

86:                                               ; preds = %82, %78
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  br label %105

87:                                               ; preds = %73
  %88 = getelementptr inbounds %"class.JPH::PhysicsSystem", ptr %17, i32 0, i32 20
  %89 = load i32, ptr %13, align 4, !tbaa !61
  %90 = zext i32 %89 to i64
  %91 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %90)
          to label %92 unwind label %101

92:                                               ; preds = %87
  %93 = load ptr, ptr %91, align 8, !tbaa !5
  %94 = load ptr, ptr %93, align 8, !tbaa !62
  %95 = getelementptr inbounds ptr, ptr %94, i64 2
  %96 = load ptr, ptr %95, align 8
  invoke void %96(ptr noundef nonnull align 8 dereferenceable(8) %93, ptr noundef nonnull align 8 dereferenceable(16) %9)
          to label %97 unwind label %101

97:                                               ; preds = %92
  br label %98

98:                                               ; preds = %97
  %99 = load i32, ptr %13, align 4, !tbaa !61
  %100 = add i32 %99, 1
  store i32 %100, ptr %13, align 4, !tbaa !61
  br label %73, !llvm.loop !64

101:                                              ; preds = %92, %87
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %105

105:                                              ; preds = %101, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %110

106:                                              ; preds = %77
  store i32 0, ptr %12, align 4
  br label %107

107:                                              ; preds = %106, %52
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %108 = load i32, ptr %12, align 4
  switch i32 %108, label %118 [
    i32 0, label %109
    i32 2, label %111
  ]

109:                                              ; preds = %107
  br label %41, !llvm.loop !66

110:                                              ; preds = %105, %57
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  br label %112

111:                                              ; preds = %107
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %6) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  ret void

112:                                              ; preds = %110, %53
  call void @llvm.lifetime.end.p0(i64 1, ptr %6) #5
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %5) #5
  br label %113

113:                                              ; preds = %112
  %114 = load ptr, ptr %7, align 8
  %115 = load i32, ptr %8, align 4
  %116 = insertvalue { ptr, i32 } poison, ptr %114, 0
  %117 = insertvalue { ptr, i32 } %116, i32 %115, 1
  resume { ptr, i32 } %117

118:                                              ; preds = %107
  unreachable
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessC2Ebb(ptr noundef nonnull align 1 dereferenceable(1), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIjE9fetch_addEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) #4 align 2

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !6, i64 0}
!10 = !{!"_ZTSN3JPH20PhysicsUpdateContext4StepE", !6, i64 0, !11, i64 8, !11, i64 9, !12, i64 16, !13, i64 48, !14, i64 52, !7, i64 56, !14, i64 116, !7, i64 120, !14, i64 180, !7, i64 184, !14, i64 244, !7, i64 248, !14, i64 308, !7, i64 312, !14, i64 372, !7, i64 376, !16, i64 436, !13, i64 4536, !14, i64 4540, !14, i64 4544, !14, i64 4548, !14, i64 4552, !14, i64 4556, !14, i64 4560, !6, i64 4568, !13, i64 4576, !14, i64 4580, !14, i64 4584, !6, i64 4592, !13, i64 4600, !17, i64 4608, !19, i64 4616, !19, i64 4880, !19, i64 5144, !19, i64 5408, !17, i64 5672, !19, i64 5680, !17, i64 5944, !17, i64 5952, !17, i64 5960, !19, i64 5968, !17, i64 6232, !19, i64 6240, !17, i64 6504, !17, i64 6512, !19, i64 6520, !17, i64 6784, !17, i64 6792, !19, i64 6800, !19, i64 7064, !17, i64 7328, !17, i64 7336}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTSN3JPH10BroadPhase11UpdateStateE", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"_ZTSSt6atomicIjE", !15, i64 0}
!15 = !{!"_ZTSSt13__atomic_baseIjE", !13, i64 0}
!16 = !{!"_ZTSN3JPH11StaticArrayINS_20PhysicsUpdateContext13BodyPairQueueELj32EEE", !13, i64 0, !7, i64 4}
!17 = !{!"_ZTSN3JPH9JobSystem9JobHandleE", !18, i64 0}
!18 = !{!"_ZTSN3JPH3RefINS_9JobSystem3JobEEE", !6, i64 0}
!19 = !{!"_ZTSN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEE", !13, i64 0, !7, i64 8}
!20 = !{!21, !22, i64 32}
!21 = !{!"_ZTSN3JPH20PhysicsUpdateContextE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !22, i64 32, !22, i64 36, !14, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !23, i64 72, !13, i64 104, !6, i64 112, !14, i64 120}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSN3JPH5ArrayINS_20PhysicsUpdateContext4StepENS_16STLTempAllocatorIS2_EEEE", !24, i64 0, !25, i64 8, !25, i64 16, !6, i64 24}
!24 = !{!"_ZTSN3JPH16STLTempAllocatorINS_20PhysicsUpdateContext4StepEEE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!27, !22, i64 0}
!27 = !{!"_ZTSN3JPH26PhysicsStepListenerContextE", !22, i64 0, !11, i64 4, !11, i64 5, !6, i64 8}
!28 = !{!10, !11, i64 8}
!29 = !{i8 0, i8 2}
!30 = !{}
!31 = !{!27, !11, i64 4}
!32 = !{!10, !11, i64 9}
!33 = !{!27, !11, i64 5}
!34 = !{!27, !6, i64 8}
!35 = !{!36, !13, i64 492}
!36 = !{!"_ZTSN3JPH13PhysicsSystemE", !6, i64 0, !6, i64 8, !37, i64 16, !46, i64 320, !48, i64 336, !49, i64 352, !49, i64 376, !50, i64 400, !50, i64 416, !6, i64 432, !6, i64 440, !6, i64 448, !51, i64 456, !53, i64 488, !54, i64 576, !55, i64 824, !57, i64 904, !58, i64 1016, !39, i64 1080, !59, i64 1128, !60, i64 1152, !22, i64 1168}
!37 = !{!"_ZTSN3JPH11BodyManagerE", !38, i64 0, !13, i64 24, !25, i64 32, !39, i64 40, !43, i64 88, !44, i64 104, !39, i64 128, !7, i64 176, !7, i64 192, !13, i64 200, !39, i64 208, !45, i64 256, !6, i64 280, !6, i64 288, !11, i64 296}
!38 = !{!"_ZTSN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!39 = !{!"_ZTSN3JPH5MutexE", !40, i64 0, !42, i64 40}
!40 = !{!"_ZTSSt5mutex", !41, i64 0}
!41 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!42 = !{!"_ZTSNSt6thread2idE", !25, i64 0}
!43 = !{!"_ZTSN3JPH10MutexArrayINS_11SharedMutexEEE", !6, i64 0, !13, i64 8}
!44 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!45 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!46 = !{!"_ZTSN3JPH23BodyLockInterfaceNoLockE", !47, i64 0}
!47 = !{!"_ZTSN3JPH17BodyLockInterfaceE", !6, i64 8}
!48 = !{!"_ZTSN3JPH24BodyLockInterfaceLockingE", !47, i64 0}
!49 = !{!"_ZTSN3JPH13BodyInterfaceE", !6, i64 0, !6, i64 8, !6, i64 16}
!50 = !{!"_ZTSN3JPH16NarrowPhaseQueryE", !6, i64 0, !6, i64 8}
!51 = !{!"_ZTSSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEE", !52, i64 0, !6, i64 24}
!52 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!53 = !{!"_ZTSN3JPH15PhysicsSettingsE", !13, i64 0, !13, i64 4, !13, i64 8, !22, i64 12, !22, i64 16, !22, i64 20, !22, i64 24, !22, i64 28, !22, i64 32, !22, i64 36, !22, i64 40, !22, i64 44, !22, i64 48, !22, i64 52, !13, i64 56, !13, i64 60, !22, i64 64, !22, i64 68, !22, i64 72, !11, i64 76, !11, i64 77, !11, i64 78, !11, i64 79, !11, i64 80, !11, i64 81, !11, i64 82}
!54 = !{!"_ZTSN3JPH24ContactConstraintManagerE", !7, i64 8, !13, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !6, i64 224, !13, i64 232, !14, i64 236, !6, i64 240}
!55 = !{!"_ZTSN3JPH17ConstraintManagerE", !6, i64 0, !56, i64 8, !39, i64 32}
!56 = !{!"_ZTSN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!57 = !{!"_ZTSN3JPH13IslandBuilderE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !13, i64 88, !13, i64 92, !13, i64 96, !13, i64 100, !13, i64 104, !13, i64 108}
!58 = !{!"_ZTSN3JPH19LargeIslandSplitterE", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !13, i64 32, !14, i64 36, !13, i64 40, !6, i64 48, !14, i64 56}
!59 = !{!"_ZTSN3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!60 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!61 = !{!13, !13, i64 0}
!62 = !{!63, !63, i64 0}
!63 = !{!"vtable pointer", !8, i64 0}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}
!66 = distinct !{!66, !65}


; 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::BodyAccess::Grant" = type { i8 }
%"class.JPH::BodyManager::GrantActiveBodiesAccess" = type { i8 }
%"class.JPH::PhysicsStepListenerContext" = type { float, i8, i8, ptr }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH13PhysicsSystem16JobStepListenersEPNS_20PhysicsUpdateContext4StepE(ptr noundef nonnull align 16 dereferenceable(1172) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::BodyAccess::Grant", align 1
  %4 = alloca %"class.JPH::BodyManager::GrantActiveBodiesAccess", align 1
  %5 = alloca %"class.JPH::PhysicsStepListenerContext", align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #5
  call void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1) %3, i8 noundef zeroext 3, i8 noundef zeroext 1)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #5
  invoke void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessC2Ebb(ptr noundef nonnull align 1 dereferenceable(1) %4, i1 noundef zeroext true, i1 noundef zeroext false)
          to label %8 unwind label %29

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #5
  %9 = load ptr, ptr %1, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %9, i64 32
  %11 = load float, ptr %10, align 8, !tbaa !19
  store float %11, ptr %5, align 8, !tbaa !25
  %12 = getelementptr inbounds i8, ptr %1, i64 8
  %13 = load i8, ptr %12, align 8, !tbaa !27, !range !28, !noundef !29
  %14 = getelementptr inbounds i8, ptr %5, i64 4
  store i8 %13, ptr %14, align 4, !tbaa !30
  %15 = getelementptr inbounds i8, ptr %1, i64 9
  %16 = load i8, ptr %15, align 1, !tbaa !31, !range !28, !noundef !29
  %17 = getelementptr inbounds i8, ptr %5, i64 5
  store i8 %16, ptr %17, align 1, !tbaa !32
  %18 = getelementptr inbounds i8, ptr %5, i64 8
  store ptr %0, ptr %18, align 8, !tbaa !33
  %19 = getelementptr inbounds i8, ptr %0, i64 492
  %20 = load i32, ptr %19, align 4, !tbaa !34
  %21 = getelementptr inbounds i8, ptr %1, i64 244
  %22 = call noundef i32 @_ZNSt13__atomic_baseIjE9fetch_addEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %20, i32 noundef 5) #5
  %23 = zext i32 %22 to i64
  %24 = getelementptr inbounds i8, ptr %0, i64 1128
  %25 = call noundef i64 @_ZNK3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %.not23 = icmp ugt i64 %25, %23
  br i1 %.not23, label %.lr.ph24, label %._crit_edge

.loopexit:                                        ; preds = %45, %.lr.ph24
  %26 = call noundef i32 @_ZNSt13__atomic_baseIjE9fetch_addEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4) %21, i32 noundef %20, i32 noundef 5) #5
  %27 = zext i32 %26 to i64
  %28 = call noundef i64 @_ZNK3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %.not = icmp ugt i64 %28, %27
  br i1 %.not, label %.lr.ph24, label %._crit_edge

29:                                               ; preds = %2
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %48

.lr.ph24:                                         ; preds = %8, %.loopexit
  %31 = phi i32 [ %26, %.loopexit ], [ %22, %8 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #5
  %32 = call noundef i64 @_ZNK3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %24)
  %33 = trunc i64 %32 to i32
  store i32 %33, ptr %6, align 4, !tbaa !60
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #5
  %34 = add i32 %31, %20
  store i32 %34, ptr %7, align 4, !tbaa !60
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZSt3minIjERKT_S2_S2_(ptr noundef nonnull align 4 dereferenceable(4) %6, ptr noundef nonnull align 4 dereferenceable(4) %7)
  %36 = load i32, ptr %35, align 4, !tbaa !60
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #5
  %37 = icmp ult i32 %31, %36
  br i1 %37, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %.lr.ph24
  %38 = zext i32 %31 to i64
  %wide.trip.count = zext i32 %36 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %45
  %indvars.iv = phi i64 [ %38, %.lr.ph.preheader ], [ %indvars.iv.next, %45 ]
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %24, i64 noundef %indvars.iv)
          to label %40 unwind label %46

40:                                               ; preds = %.lr.ph
  %41 = load ptr, ptr %39, align 8, !tbaa !61
  %42 = load ptr, ptr %41, align 8, !tbaa !62
  %43 = getelementptr inbounds i8, ptr %42, i64 16
  %44 = load ptr, ptr %43, align 8
  invoke void %44(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 8 dereferenceable(16) %5)
          to label %45 unwind label %46

45:                                               ; preds = %40
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !64

46:                                               ; preds = %40, %.lr.ph
  %47 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  br label %48

._crit_edge:                                      ; preds = %.loopexit, %8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #5
  call void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  ret void

48:                                               ; preds = %46, %29
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #5
  call void @_ZN3JPH10BodyAccess5GrantD2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH10BodyAccess5GrantC2ENS0_7EAccessES2_(ptr noundef nonnull align 1 dereferenceable(1), i8 noundef zeroext, i8 noundef zeroext) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH11BodyManager23GrantActiveBodiesAccessC2Ebb(ptr noundef nonnull align 1 dereferenceable(1), i1 noundef zeroext, i1 noundef zeroext) unnamed_addr #3 align 2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNSt13__atomic_baseIjE9fetch_addEjSt12memory_order(ptr noundef nonnull align 4 dereferenceable(4), i32 noundef, i32 noundef) local_unnamed_addr #4 align 2

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 = { 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 #4 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"_ZTSN3JPH20PhysicsUpdateContext4StepE", !7, i64 0, !10, i64 8, !10, i64 9, !11, i64 16, !12, i64 48, !13, i64 52, !8, i64 56, !13, i64 116, !8, i64 120, !13, i64 180, !8, i64 184, !13, i64 244, !8, i64 248, !13, i64 308, !8, i64 312, !13, i64 372, !8, i64 376, !15, i64 436, !12, i64 4536, !13, i64 4540, !13, i64 4544, !13, i64 4548, !13, i64 4552, !13, i64 4556, !13, i64 4560, !7, i64 4568, !12, i64 4576, !13, i64 4580, !13, i64 4584, !7, i64 4592, !12, i64 4600, !16, i64 4608, !18, i64 4616, !18, i64 4880, !18, i64 5144, !18, i64 5408, !16, i64 5672, !18, i64 5680, !16, i64 5944, !16, i64 5952, !16, i64 5960, !18, i64 5968, !16, i64 6232, !18, i64 6240, !16, i64 6504, !16, i64 6512, !18, i64 6520, !16, i64 6784, !16, i64 6792, !18, i64 6800, !18, i64 7064, !16, i64 7328, !16, i64 7336}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"bool", !8, i64 0}
!11 = !{!"_ZTSN3JPH10BroadPhase11UpdateStateE", !8, i64 0}
!12 = !{!"int", !8, i64 0}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!15 = !{!"_ZTSN3JPH11StaticArrayINS_20PhysicsUpdateContext13BodyPairQueueELj32EEE", !12, i64 0, !8, i64 4}
!16 = !{!"_ZTSN3JPH9JobSystem9JobHandleE", !17, i64 0}
!17 = !{!"_ZTSN3JPH3RefINS_9JobSystem3JobEEE", !7, i64 0}
!18 = !{!"_ZTSN3JPH11StaticArrayINS_9JobSystem9JobHandleELj32EEE", !12, i64 0, !8, i64 8}
!19 = !{!20, !21, i64 32}
!20 = !{!"_ZTSN3JPH20PhysicsUpdateContextE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !21, i64 32, !21, i64 36, !13, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !22, i64 72, !12, i64 104, !7, i64 112, !13, i64 120}
!21 = !{!"float", !8, i64 0}
!22 = !{!"_ZTSN3JPH5ArrayINS_20PhysicsUpdateContext4StepENS_16STLTempAllocatorIS2_EEEE", !23, i64 0, !24, i64 8, !24, i64 16, !7, i64 24}
!23 = !{!"_ZTSN3JPH16STLTempAllocatorINS_20PhysicsUpdateContext4StepEEE", !7, i64 0}
!24 = !{!"long", !8, i64 0}
!25 = !{!26, !21, i64 0}
!26 = !{!"_ZTSN3JPH26PhysicsStepListenerContextE", !21, i64 0, !10, i64 4, !10, i64 5, !7, i64 8}
!27 = !{!6, !10, i64 8}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!26, !10, i64 4}
!31 = !{!6, !10, i64 9}
!32 = !{!26, !10, i64 5}
!33 = !{!26, !7, i64 8}
!34 = !{!35, !12, i64 492}
!35 = !{!"_ZTSN3JPH13PhysicsSystemE", !7, i64 0, !7, i64 8, !36, i64 16, !45, i64 320, !47, i64 336, !48, i64 352, !48, i64 376, !49, i64 400, !49, i64 416, !7, i64 432, !7, i64 440, !7, i64 448, !50, i64 456, !52, i64 488, !53, i64 576, !54, i64 824, !56, i64 904, !57, i64 1016, !38, i64 1080, !58, i64 1128, !59, i64 1152, !21, i64 1168}
!36 = !{!"_ZTSN3JPH11BodyManagerE", !37, i64 0, !12, i64 24, !24, i64 32, !38, i64 40, !42, i64 88, !43, i64 104, !38, i64 128, !8, i64 176, !8, i64 192, !12, i64 200, !38, i64 208, !44, i64 256, !7, i64 280, !7, i64 288, !10, i64 296}
!37 = !{!"_ZTSN3JPH5ArrayIPNS_4BodyENS_12STLAllocatorIS2_EEEE", !24, i64 0, !24, i64 8, !7, i64 16}
!38 = !{!"_ZTSN3JPH5MutexE", !39, i64 0, !41, i64 40}
!39 = !{!"_ZTSSt5mutex", !40, i64 0}
!40 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!41 = !{!"_ZTSNSt6thread2idE", !24, i64 0}
!42 = !{!"_ZTSN3JPH10MutexArrayINS_11SharedMutexEEE", !7, i64 0, !12, i64 8}
!43 = !{!"_ZTSN3JPH5ArrayIhNS_12STLAllocatorIhEEEE", !24, i64 0, !24, i64 8, !7, i64 16}
!44 = !{!"_ZTSN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEE", !24, i64 0, !24, i64 8, !7, i64 16}
!45 = !{!"_ZTSN3JPH23BodyLockInterfaceNoLockE", !46, i64 0}
!46 = !{!"_ZTSN3JPH17BodyLockInterfaceE", !7, i64 8}
!47 = !{!"_ZTSN3JPH24BodyLockInterfaceLockingE", !46, i64 0}
!48 = !{!"_ZTSN3JPH13BodyInterfaceE", !7, i64 0, !7, i64 8, !7, i64 16}
!49 = !{!"_ZTSN3JPH16NarrowPhaseQueryE", !7, i64 0, !7, i64 8}
!50 = !{!"_ZTSSt8functionIFvRKN3JPH4BodyES3_RKNS0_5Mat44ES6_RNS0_20CollideShapeSettingsERNS0_18CollisionCollectorINS0_18CollideShapeResultENS0_36CollisionCollectorTraitsCollideShapeEEERKNS0_11ShapeFilterEEE", !51, i64 0, !7, i64 24}
!51 = !{!"_ZTSSt14_Function_base", !8, i64 0, !7, i64 16}
!52 = !{!"_ZTSN3JPH15PhysicsSettingsE", !12, i64 0, !12, i64 4, !12, i64 8, !21, i64 12, !21, i64 16, !21, i64 20, !21, i64 24, !21, i64 28, !21, i64 32, !21, i64 36, !21, i64 40, !21, i64 44, !21, i64 48, !21, i64 52, !12, i64 56, !12, i64 60, !21, i64 64, !21, i64 68, !21, i64 72, !10, i64 76, !10, i64 77, !10, i64 78, !10, i64 79, !10, i64 80, !10, i64 81, !10, i64 82}
!53 = !{!"_ZTSN3JPH24ContactConstraintManagerE", !8, i64 8, !12, i64 184, !7, i64 192, !7, i64 200, !7, i64 208, !7, i64 216, !7, i64 224, !12, i64 232, !13, i64 236, !7, i64 240}
!54 = !{!"_ZTSN3JPH17ConstraintManagerE", !7, i64 0, !55, i64 8, !38, i64 32}
!55 = !{!"_ZTSN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEEE", !24, i64 0, !24, i64 8, !7, i64 16}
!56 = !{!"_ZTSN3JPH13IslandBuilderE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !12, i64 88, !12, i64 92, !12, i64 96, !12, i64 100, !12, i64 104, !12, i64 108}
!57 = !{!"_ZTSN3JPH19LargeIslandSplitterE", !12, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !12, i64 32, !13, i64 36, !12, i64 40, !7, i64 48, !13, i64 56}
!58 = !{!"_ZTSN3JPH5ArrayIPNS_19PhysicsStepListenerENS_12STLAllocatorIS2_EEEE", !24, i64 0, !24, i64 8, !7, i64 16}
!59 = !{!"_ZTSN3JPH4Vec3E", !8, i64 0}
!60 = !{!12, !12, i64 0}
!61 = !{!7, !7, i64 0}
!62 = !{!63, !63, i64 0}
!63 = !{!"vtable pointer", !9, i64 0}
!64 = distinct !{!64, !65}
!65 = !{!"llvm.loop.mustprogress"}


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