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

; 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"

%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::ContactConstraintManager::ContactAllocator" = type { %"class.JPH::LFHMAllocatorContext.base", i32, i32, i32 }
%"class.JPH::LFHMAllocatorContext.base" = type <{ ptr, i32, i32, i32 }>
%"class.JPH::Array" = type { i64, i64, ptr }
%"struct.JPH::BodyPair" = type { %"class.JPH::BodyID", %"class.JPH::BodyID" }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Array.7" = type { i64, i64, ptr }
%"class.JPH::SubShapeIDPair" = type { %"class.JPH::BodyID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::SubShapeID" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::ContactConstraintManager::CachedBodyPair" = type { %"class.JPH::Float3", %"class.JPH::Float3", i32 }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::ContactConstraintManager::CachedManifold" = type { i32, %"class.JPH::Float3", %"struct.std::atomic.5", i16, [1 x %"class.JPH::ContactConstraintManager::CachedContactPoint"] }
%"struct.std::atomic.5" = type { %"struct.std::__atomic_base.6" }
%"struct.std::__atomic_base.6" = type { i16 }
%"class.JPH::ContactConstraintManager::CachedContactPoint" = type { %"class.JPH::Float3", %"class.JPH::Float3", float, %"class.JPH::Vector" }
%"class.JPH::Vector" = type { [2 x float] }
%"class.JPH::ContactConstraintManager::ManifoldCache" = type <{ %"class.JPH::LFHMAllocator", %"class.JPH::LockFreeHashMap", %"class.JPH::LockFreeHashMap.0", i8, [7 x i8] }>
%"class.JPH::LFHMAllocator" = type { ptr, i32, %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::LockFreeHashMap" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }
%"class.JPH::LockFreeHashMap.0" = type { ptr, %"struct.std::atomic", ptr, i32, i32 }

@.str.1 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; 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) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager18CachedContactPoint12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(18)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager14CachedManifold12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(18)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager14CachedBodyPair12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(18)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_14SubShapeIDPairEmi(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(16), i64 noundef, i32 noundef) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(56) ptr @_ZN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH24ContactConstraintManager13ManifoldCache8ToHandleEPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_8BodyPairEm(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllBodyPairsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS0_14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllManifoldsSortedERKNS0_14CachedBodyPairERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorISC_EEEE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(56) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH24ContactConstraintManager13ManifoldCache24GetAllCCDManifoldsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(24)) #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue6GetKeyEv(ptr noundef nonnull align 4 dereferenceable(76)) #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue6GetKeyEv(ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH24ContactConstraintManager13ManifoldCache12RestoreStateERKS1_RNS_13StateRecorderEPKNS_19StateRecorderFilterE(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef nonnull align 8 dereferenceable(81) %1, ptr noundef nonnull align 8 dereferenceable(18) %2, ptr noundef %3) #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca %"struct.JPH::AssertLastParam", align 1
  %10 = alloca i8, align 1
  %11 = alloca %"class.JPH::ContactConstraintManager::ContactAllocator", align 8
  %12 = alloca %"class.JPH::Array", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca %"struct.JPH::BodyPair", align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca %"class.JPH::Array.7", align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca %"class.JPH::SubShapeIDPair", align 4
  %27 = alloca i64, align 8
  %28 = alloca i16, align 2
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  %32 = alloca %"class.JPH::ContactConstraintManager::CachedBodyPair", align 4
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca %"class.JPH::SubShapeIDPair", align 4
  %36 = alloca i16, align 2
  %37 = alloca %"class.JPH::ContactConstraintManager::CachedManifold", align 4
  %38 = alloca i32, align 4
  %39 = alloca %"class.JPH::Array.7", align 8
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca %"class.JPH::SubShapeIDPair", align 4
  %43 = alloca i64, align 8
  %44 = alloca ptr, align 8
  %45 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %46 = load ptr, ptr %5, align 8
  br label %47

47:                                               ; preds = %4
  %48 = getelementptr inbounds %"class.JPH::ContactConstraintManager::ManifoldCache", ptr %46, i32 0, i32 3
  %49 = load i8, ptr %48, align 8, !tbaa !9, !range !18, !noundef !19
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %54

51:                                               ; preds = %47
  %52 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.6, ptr noundef @.str.1, i32 noundef 501)
  br i1 %52, label %53, label %54

53:                                               ; preds = %51
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !20
  br label %54

54:                                               ; preds = %53, %51, %47
  br label %55

55:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #6
  store i8 1, ptr %10, align 1, !tbaa !21
  call void @llvm.lifetime.start.p0(i64 32, ptr %11) #6
  call void @_ZN3JPH24ContactConstraintManager13ManifoldCache19GetContactAllocatorEv(ptr dead_on_unwind writable sret(%"class.JPH::ContactConstraintManager::ContactAllocator") align 8 %11, ptr noundef nonnull align 8 dereferenceable(81) %46)
  call void @llvm.lifetime.start.p0(i64 24, ptr %12) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  %56 = load ptr, ptr %7, align 8, !tbaa !5
  %57 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %56)
          to label %58 unwind label %62

58:                                               ; preds = %55
  br i1 %57, label %59, label %66

59:                                               ; preds = %58
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllBodyPairsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS0_14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81) %60, ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %61 unwind label %62

61:                                               ; preds = %59
  br label %66

62:                                               ; preds = %59, %55
  %63 = landingpad { ptr, i32 }
          cleanup
  %64 = extractvalue { ptr, i32 } %63, 0
  store ptr %64, ptr %13, align 8
  %65 = extractvalue { ptr, i32 } %63, 1
  store i32 %65, ptr %14, align 4
  br label %566

66:                                               ; preds = %61, %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %67)
          to label %69 unwind label %74

69:                                               ; preds = %66
  br i1 %68, label %70, label %78

70:                                               ; preds = %69
  %71 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %72 unwind label %74

72:                                               ; preds = %70
  %73 = trunc i64 %71 to i32
  store i32 %73, ptr %15, align 4, !tbaa !22
  br label %78

74:                                               ; preds = %78, %70, %66
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %13, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %14, align 4
  br label %565

78:                                               ; preds = %72, %69
  %79 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %79, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %80 unwind label %74

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #6
  store i32 0, ptr %16, align 4, !tbaa !22
  br label %81

81:                                               ; preds = %437, %80
  %82 = load i32, ptr %16, align 4, !tbaa !22
  %83 = load i32, ptr %15, align 4, !tbaa !22
  %84 = icmp ult i32 %82, %83
  br i1 %84, label %86, label %85

85:                                               ; preds = %81
  store i32 4, ptr %17, align 4
  br label %441

86:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  invoke void @_ZN3JPH8BodyPairC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %87 unwind label %105

87:                                               ; preds = %86
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %88)
          to label %90 unwind label %105

90:                                               ; preds = %87
  br i1 %89, label %91, label %109

91:                                               ; preds = %90
  %92 = load i32, ptr %16, align 4, !tbaa !22
  %93 = zext i32 %92 to i64
  %94 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %95 unwind label %105

95:                                               ; preds = %91
  %96 = icmp ult i64 %93, %94
  br i1 %96, label %97, label %109

97:                                               ; preds = %95
  %98 = load i32, ptr %16, align 4, !tbaa !22
  %99 = zext i32 %98 to i64
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %99)
          to label %101 unwind label %105

101:                                              ; preds = %97
  %102 = load ptr, ptr %100, align 8, !tbaa !5
  %103 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue6GetKeyEv(ptr noundef nonnull align 8 dereferenceable(40) %102)
          to label %104 unwind label %105

104:                                              ; preds = %101
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %18, ptr align 8 %103, i64 8, i1 false), !tbaa.struct !23
  br label %109

105:                                              ; preds = %114, %109, %101, %97, %91, %87, %86
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %13, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %14, align 4
  br label %440

109:                                              ; preds = %104, %95, %90
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadINS_8BodyPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %110, ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %111 unwind label %105

111:                                              ; preds = %109
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = icmp eq ptr %112, null
  br i1 %113, label %123, label %114

114:                                              ; preds = %111
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = getelementptr inbounds %"struct.JPH::BodyPair", ptr %18, i32 0, i32 0
  %117 = getelementptr inbounds %"struct.JPH::BodyPair", ptr %18, i32 0, i32 1
  %118 = load ptr, ptr %115, align 8, !tbaa !24
  %119 = getelementptr inbounds ptr, ptr %118, i64 5
  %120 = load ptr, ptr %119, align 8
  %121 = invoke noundef zeroext i1 %120(ptr noundef nonnull align 8 dereferenceable(8) %115, ptr noundef nonnull align 4 dereferenceable(4) %116, ptr noundef nonnull align 4 dereferenceable(4) %117)
          to label %122 unwind label %105

122:                                              ; preds = %114
  br i1 %121, label %123, label %367

123:                                              ; preds = %122, %111
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #6
  %124 = invoke noundef i64 @_ZNK3JPH8BodyPair7GetHashEv(ptr noundef nonnull align 8 dereferenceable(8) %18)
          to label %125 unwind label %132

125:                                              ; preds = %123
  store i64 %124, ptr %19, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  %126 = load i64, ptr %19, align 8, !tbaa !26
  %127 = invoke noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_8BodyPairEm(ptr noundef nonnull align 8 dereferenceable(81) %46, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %126)
          to label %128 unwind label %136

128:                                              ; preds = %125
  store ptr %127, ptr %20, align 8, !tbaa !5
  %129 = load ptr, ptr %20, align 8, !tbaa !5
  %130 = icmp eq ptr %129, null
  br i1 %130, label %131, label %140

131:                                              ; preds = %128
  store i8 0, ptr %10, align 1, !tbaa !21
  store i32 4, ptr %17, align 4
  br label %359

132:                                              ; preds = %123
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %13, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %14, align 4
  br label %366

136:                                              ; preds = %125
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %13, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %14, align 4
  br label %365

140:                                              ; preds = %128
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %141 = load ptr, ptr %20, align 8, !tbaa !5
  %142 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40) %141)
          to label %143 unwind label %162

143:                                              ; preds = %140
  store ptr %142, ptr %21, align 8, !tbaa !5
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %144)
          to label %146 unwind label %162

146:                                              ; preds = %143
  br i1 %145, label %147, label %166

147:                                              ; preds = %146
  %148 = load i32, ptr %16, align 4, !tbaa !22
  %149 = zext i32 %148 to i64
  %150 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %12)
          to label %151 unwind label %162

151:                                              ; preds = %147
  %152 = icmp ult i64 %149, %150
  br i1 %152, label %153, label %166

153:                                              ; preds = %151
  %154 = load ptr, ptr %21, align 8, !tbaa !5
  %155 = load i32, ptr %16, align 4, !tbaa !22
  %156 = zext i32 %155 to i64
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %156)
          to label %158 unwind label %162

158:                                              ; preds = %153
  %159 = load ptr, ptr %157, align 8, !tbaa !5
  %160 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40) %159)
          to label %161 unwind label %162

161:                                              ; preds = %158
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %154, ptr align 4 %160, i64 28, i1 false)
  br label %166

162:                                              ; preds = %166, %158, %153, %147, %143, %140
  %163 = landingpad { ptr, i32 }
          cleanup
  %164 = extractvalue { ptr, i32 } %163, 0
  store ptr %164, ptr %13, align 8
  %165 = extractvalue { ptr, i32 } %163, 1
  store i32 %165, ptr %14, align 4
  br label %364

166:                                              ; preds = %161, %151, %146
  %167 = load ptr, ptr %21, align 8, !tbaa !5
  %168 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH24ContactConstraintManager14CachedBodyPair12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(28) %167, ptr noundef nonnull align 8 dereferenceable(18) %168)
          to label %169 unwind label %162

169:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %170)
          to label %172 unwind label %183

172:                                              ; preds = %169
  br i1 %171, label %173, label %187

173:                                              ; preds = %172
  %174 = load ptr, ptr %6, align 8, !tbaa !5
  %175 = load i32, ptr %16, align 4, !tbaa !22
  %176 = zext i32 %175 to i64
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %176)
          to label %178 unwind label %183

178:                                              ; preds = %173
  %179 = load ptr, ptr %177, align 8, !tbaa !5
  %180 = invoke noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40) %179)
          to label %181 unwind label %183

181:                                              ; preds = %178
  invoke void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllManifoldsSortedERKNS0_14CachedBodyPairERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorISC_EEEE(ptr noundef nonnull align 8 dereferenceable(81) %174, ptr noundef nonnull align 4 dereferenceable(28) %180, ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %182 unwind label %183

182:                                              ; preds = %181
  br label %187

183:                                              ; preds = %181, %178, %173, %169
  %184 = landingpad { ptr, i32 }
          cleanup
  %185 = extractvalue { ptr, i32 } %184, 0
  store ptr %185, ptr %13, align 8
  %186 = extractvalue { ptr, i32 } %184, 1
  store i32 %186, ptr %14, align 4
  br label %363

187:                                              ; preds = %182, %172
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #6
  store i32 0, ptr %23, align 4, !tbaa !22
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %188)
          to label %190 unwind label %195

190:                                              ; preds = %187
  br i1 %189, label %191, label %199

191:                                              ; preds = %190
  %192 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %193 unwind label %195

193:                                              ; preds = %191
  %194 = trunc i64 %192 to i32
  store i32 %194, ptr %23, align 4, !tbaa !22
  br label %199

195:                                              ; preds = %199, %191, %187
  %196 = landingpad { ptr, i32 }
          cleanup
  %197 = extractvalue { ptr, i32 } %196, 0
  store ptr %197, ptr %13, align 8
  %198 = extractvalue { ptr, i32 } %196, 1
  store i32 %198, ptr %14, align 4
  br label %362

199:                                              ; preds = %193, %190
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %200, ptr noundef nonnull align 4 dereferenceable(4) %23)
          to label %201 unwind label %195

201:                                              ; preds = %199
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #6
  store i32 -1, ptr %24, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !22
  br label %202

202:                                              ; preds = %346, %201
  %203 = load i32, ptr %25, align 4, !tbaa !22
  %204 = load i32, ptr %23, align 4, !tbaa !22
  %205 = icmp ult i32 %203, %204
  br i1 %205, label %207, label %206

206:                                              ; preds = %202
  store i32 7, ptr %17, align 4
  br label %354

207:                                              ; preds = %202
  call void @llvm.lifetime.start.p0(i64 16, ptr %26) #6
  invoke void @_ZN3JPH14SubShapeIDPairC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %26)
          to label %208 unwind label %226

208:                                              ; preds = %207
  %209 = load ptr, ptr %7, align 8, !tbaa !5
  %210 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %209)
          to label %211 unwind label %226

211:                                              ; preds = %208
  br i1 %210, label %212, label %230

212:                                              ; preds = %211
  %213 = load i32, ptr %25, align 4, !tbaa !22
  %214 = zext i32 %213 to i64
  %215 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %216 unwind label %226

216:                                              ; preds = %212
  %217 = icmp ult i64 %214, %215
  br i1 %217, label %218, label %230

218:                                              ; preds = %216
  %219 = load i32, ptr %25, align 4, !tbaa !22
  %220 = zext i32 %219 to i64
  %221 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %220)
          to label %222 unwind label %226

222:                                              ; preds = %218
  %223 = load ptr, ptr %221, align 8, !tbaa !5
  %224 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue6GetKeyEv(ptr noundef nonnull align 4 dereferenceable(76) %223)
          to label %225 unwind label %226

225:                                              ; preds = %222
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %224, i64 16, i1 false), !tbaa.struct !28
  br label %230

226:                                              ; preds = %230, %222, %218, %212, %208, %207
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %13, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %14, align 4
  br label %353

230:                                              ; preds = %225, %216, %211
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadINS_14SubShapeIDPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef nonnull align 4 dereferenceable(16) %26)
          to label %232 unwind label %226

232:                                              ; preds = %230
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  %233 = invoke noundef i64 @_ZNK3JPH14SubShapeIDPair7GetHashEv(ptr noundef nonnull align 4 dereferenceable(16) %26)
          to label %234 unwind label %254

234:                                              ; preds = %232
  store i64 %233, ptr %27, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 2, ptr %28) #6
  store i16 0, ptr %28, align 2, !tbaa !29
  %235 = load ptr, ptr %7, align 8, !tbaa !5
  %236 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %235)
          to label %237 unwind label %258

237:                                              ; preds = %234
  br i1 %236, label %238, label %262

238:                                              ; preds = %237
  %239 = load i32, ptr %25, align 4, !tbaa !22
  %240 = zext i32 %239 to i64
  %241 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %242 unwind label %258

242:                                              ; preds = %238
  %243 = icmp ult i64 %240, %241
  br i1 %243, label %244, label %262

244:                                              ; preds = %242
  %245 = load i32, ptr %25, align 4, !tbaa !22
  %246 = zext i32 %245 to i64
  %247 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %246)
          to label %248 unwind label %258

248:                                              ; preds = %244
  %249 = load ptr, ptr %247, align 8, !tbaa !5
  %250 = invoke noundef nonnull align 4 dereferenceable(56) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %249)
          to label %251 unwind label %258

251:                                              ; preds = %248
  %252 = getelementptr inbounds %"class.JPH::ContactConstraintManager::CachedManifold", ptr %250, i32 0, i32 3
  %253 = load i16, ptr %252, align 2, !tbaa !31
  store i16 %253, ptr %28, align 2, !tbaa !29
  br label %262

254:                                              ; preds = %232
  %255 = landingpad { ptr, i32 }
          cleanup
  %256 = extractvalue { ptr, i32 } %255, 0
  store ptr %256, ptr %13, align 8
  %257 = extractvalue { ptr, i32 } %255, 1
  store i32 %257, ptr %14, align 4
  br label %352

258:                                              ; preds = %262, %248, %244, %238, %234
  %259 = landingpad { ptr, i32 }
          cleanup
  %260 = extractvalue { ptr, i32 } %259, 0
  store ptr %260, ptr %13, align 8
  %261 = extractvalue { ptr, i32 } %259, 1
  store i32 %261, ptr %14, align 4
  br label %351

262:                                              ; preds = %251, %242, %237
  %263 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadItTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %263, ptr noundef nonnull align 2 dereferenceable(2) %28)
          to label %264 unwind label %258

264:                                              ; preds = %262
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %265 = load i64, ptr %27, align 8, !tbaa !26
  %266 = load i16, ptr %28, align 2, !tbaa !29
  %267 = zext i16 %266 to i32
  %268 = invoke noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_14SubShapeIDPairEmi(ptr noundef nonnull align 8 dereferenceable(81) %46, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 4 dereferenceable(16) %26, i64 noundef %265, i32 noundef %267)
          to label %269 unwind label %273

269:                                              ; preds = %264
  store ptr %268, ptr %29, align 8, !tbaa !5
  %270 = load ptr, ptr %29, align 8, !tbaa !5
  %271 = icmp eq ptr %270, null
  br i1 %271, label %272, label %277

272:                                              ; preds = %269
  store i8 0, ptr %10, align 1, !tbaa !21
  store i32 7, ptr %17, align 4
  br label %343

273:                                              ; preds = %264
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %13, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %14, align 4
  br label %350

277:                                              ; preds = %269
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  %278 = load ptr, ptr %29, align 8, !tbaa !5
  %279 = invoke noundef nonnull align 4 dereferenceable(56) ptr @_ZN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %278)
          to label %280 unwind label %307

280:                                              ; preds = %277
  store ptr %279, ptr %30, align 8, !tbaa !5
  %281 = load ptr, ptr %7, align 8, !tbaa !5
  %282 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %281)
          to label %283 unwind label %307

283:                                              ; preds = %280
  br i1 %282, label %284, label %311

284:                                              ; preds = %283
  %285 = load i32, ptr %25, align 4, !tbaa !22
  %286 = zext i32 %285 to i64
  %287 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %22)
          to label %288 unwind label %307

288:                                              ; preds = %284
  %289 = icmp ult i64 %286, %287
  br i1 %289, label %290, label %311

290:                                              ; preds = %288
  %291 = load ptr, ptr %30, align 8, !tbaa !5
  %292 = load i32, ptr %25, align 4, !tbaa !22
  %293 = zext i32 %292 to i64
  %294 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %293)
          to label %295 unwind label %307

295:                                              ; preds = %290
  %296 = load ptr, ptr %294, align 8, !tbaa !5
  %297 = invoke noundef nonnull align 4 dereferenceable(56) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %296)
          to label %298 unwind label %307

298:                                              ; preds = %295
  %299 = load i16, ptr %28, align 2, !tbaa !29
  %300 = zext i16 %299 to i32
  %301 = invoke noundef i32 @_ZN3JPH24ContactConstraintManager14CachedManifold21sGetRequiredTotalSizeEi(i32 noundef %300)
          to label %302 unwind label %307

302:                                              ; preds = %298
  %303 = sext i32 %301 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %291, ptr align 4 %297, i64 %303, i1 false)
  %304 = load i16, ptr %28, align 2, !tbaa !29
  %305 = load ptr, ptr %30, align 8, !tbaa !5
  %306 = getelementptr inbounds %"class.JPH::ContactConstraintManager::CachedManifold", ptr %305, i32 0, i32 3
  store i16 %304, ptr %306, align 2, !tbaa !31
  br label %311

307:                                              ; preds = %314, %311, %298, %295, %290, %284, %280, %277
  %308 = landingpad { ptr, i32 }
          cleanup
  %309 = extractvalue { ptr, i32 } %308, 0
  store ptr %309, ptr %13, align 8
  %310 = extractvalue { ptr, i32 } %308, 1
  store i32 %310, ptr %14, align 4
  br label %349

311:                                              ; preds = %302, %288, %283
  %312 = load ptr, ptr %30, align 8, !tbaa !5
  %313 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH24ContactConstraintManager14CachedManifold12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(56) %312, ptr noundef nonnull align 8 dereferenceable(18) %313)
          to label %314 unwind label %307

314:                                              ; preds = %311
  %315 = load i32, ptr %24, align 4, !tbaa !22
  %316 = load ptr, ptr %30, align 8, !tbaa !5
  %317 = getelementptr inbounds %"class.JPH::ContactConstraintManager::CachedManifold", ptr %316, i32 0, i32 0
  store i32 %315, ptr %317, align 4, !tbaa !37
  %318 = load ptr, ptr %29, align 8, !tbaa !5
  %319 = invoke noundef i32 @_ZNK3JPH24ContactConstraintManager13ManifoldCache8ToHandleEPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueE(ptr noundef nonnull align 8 dereferenceable(81) %46, ptr noundef %318)
          to label %320 unwind label %307

320:                                              ; preds = %314
  store i32 %319, ptr %24, align 4, !tbaa !22
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 0, ptr %31, align 4, !tbaa !22
  br label %321

321:                                              ; preds = %335, %320
  %322 = load i32, ptr %31, align 4, !tbaa !22
  %323 = load i16, ptr %28, align 2, !tbaa !29
  %324 = zext i16 %323 to i32
  %325 = icmp ult i32 %322, %324
  br i1 %325, label %327, label %326

326:                                              ; preds = %321
  store i32 10, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %342

327:                                              ; preds = %321
  %328 = load ptr, ptr %30, align 8, !tbaa !5
  %329 = getelementptr inbounds %"class.JPH::ContactConstraintManager::CachedManifold", ptr %328, i32 0, i32 4
  %330 = load i32, ptr %31, align 4, !tbaa !22
  %331 = zext i32 %330 to i64
  %332 = getelementptr inbounds [1 x %"class.JPH::ContactConstraintManager::CachedContactPoint"], ptr %329, i64 0, i64 %331
  %333 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH24ContactConstraintManager18CachedContactPoint12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(36) %332, ptr noundef nonnull align 8 dereferenceable(18) %333)
          to label %334 unwind label %338

334:                                              ; preds = %327
  br label %335

335:                                              ; preds = %334
  %336 = load i32, ptr %31, align 4, !tbaa !22
  %337 = add i32 %336, 1
  store i32 %337, ptr %31, align 4, !tbaa !22
  br label %321, !llvm.loop !38

338:                                              ; preds = %327
  %339 = landingpad { ptr, i32 }
          cleanup
  %340 = extractvalue { ptr, i32 } %339, 0
  store ptr %340, ptr %13, align 8
  %341 = extractvalue { ptr, i32 } %339, 1
  store i32 %341, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  br label %349

342:                                              ; preds = %326
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  store i32 0, ptr %17, align 4
  br label %343

343:                                              ; preds = %342, %272
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  %344 = load i32, ptr %17, align 4
  switch i32 %344, label %354 [
    i32 0, label %345
  ]

345:                                              ; preds = %343
  br label %346

346:                                              ; preds = %345
  %347 = load i32, ptr %25, align 4, !tbaa !22
  %348 = add i32 %347, 1
  store i32 %348, ptr %25, align 4, !tbaa !22
  br label %202, !llvm.loop !40

349:                                              ; preds = %338, %307
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  br label %350

350:                                              ; preds = %349, %273
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %351

351:                                              ; preds = %350, %258
  call void @llvm.lifetime.end.p0(i64 2, ptr %28) #6
  br label %352

352:                                              ; preds = %351, %254
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %353

353:                                              ; preds = %352, %226
  call void @llvm.lifetime.end.p0(i64 16, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  br label %362

354:                                              ; preds = %343, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %355

355:                                              ; preds = %354
  %356 = load i32, ptr %24, align 4, !tbaa !22
  %357 = load ptr, ptr %21, align 8, !tbaa !5
  %358 = getelementptr inbounds %"class.JPH::ContactConstraintManager::CachedBodyPair", ptr %357, i32 0, i32 2
  store i32 %356, ptr %358, align 4, !tbaa !41
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  store i32 0, ptr %17, align 4
  br label %359

359:                                              ; preds = %355, %131
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  %360 = load i32, ptr %17, align 4
  switch i32 %360, label %434 [
    i32 0, label %361
  ]

361:                                              ; preds = %359
  br label %433

362:                                              ; preds = %353, %195
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #6
  br label %363

363:                                              ; preds = %362, %183
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %364

364:                                              ; preds = %363, %162
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  br label %365

365:                                              ; preds = %364, %136
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %366

366:                                              ; preds = %365, %132
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  br label %440

367:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 28, ptr %32) #6
  %368 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH24ContactConstraintManager14CachedBodyPair12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(28) %32, ptr noundef nonnull align 8 dereferenceable(18) %368)
          to label %369 unwind label %377

369:                                              ; preds = %367
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 0, ptr %33, align 4, !tbaa !22
  %370 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %370, ptr noundef nonnull align 4 dereferenceable(4) %33)
          to label %371 unwind label %381

371:                                              ; preds = %369
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 0, ptr %34, align 4, !tbaa !22
  br label %372

372:                                              ; preds = %424, %371
  %373 = load i32, ptr %34, align 4, !tbaa !22
  %374 = load i32, ptr %33, align 4, !tbaa !22
  %375 = icmp ult i32 %373, %374
  br i1 %375, label %385, label %376

376:                                              ; preds = %372
  store i32 13, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %430

377:                                              ; preds = %367
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %13, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %14, align 4
  br label %432

381:                                              ; preds = %369
  %382 = landingpad { ptr, i32 }
          cleanup
  %383 = extractvalue { ptr, i32 } %382, 0
  store ptr %383, ptr %13, align 8
  %384 = extractvalue { ptr, i32 } %382, 1
  store i32 %384, ptr %14, align 4
  br label %431

385:                                              ; preds = %372
  call void @llvm.lifetime.start.p0(i64 16, ptr %35) #6
  invoke void @_ZN3JPH14SubShapeIDPairC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %35)
          to label %386 unwind label %399

386:                                              ; preds = %385
  %387 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadINS_14SubShapeIDPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %387, ptr noundef nonnull align 4 dereferenceable(16) %35)
          to label %388 unwind label %399

388:                                              ; preds = %386
  call void @llvm.lifetime.start.p0(i64 2, ptr %36) #6
  %389 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadItTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %389, ptr noundef nonnull align 2 dereferenceable(2) %36)
          to label %390 unwind label %403

390:                                              ; preds = %388
  call void @llvm.lifetime.start.p0(i64 56, ptr %37) #6
  call void @_ZN3JPH24ContactConstraintManager14CachedManifoldC2Ev(ptr noundef nonnull align 4 dereferenceable(56) %37) #6
  %391 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH24ContactConstraintManager14CachedManifold12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(56) %37, ptr noundef nonnull align 8 dereferenceable(18) %391)
          to label %392 unwind label %407

392:                                              ; preds = %390
  call void @llvm.lifetime.start.p0(i64 4, ptr %38) #6
  store i32 0, ptr %38, align 4, !tbaa !22
  br label %393

393:                                              ; preds = %416, %392
  %394 = load i32, ptr %38, align 4, !tbaa !22
  %395 = load i16, ptr %36, align 2, !tbaa !29
  %396 = zext i16 %395 to i32
  %397 = icmp ult i32 %394, %396
  br i1 %397, label %411, label %398

398:                                              ; preds = %393
  store i32 16, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %423

399:                                              ; preds = %386, %385
  %400 = landingpad { ptr, i32 }
          cleanup
  %401 = extractvalue { ptr, i32 } %400, 0
  store ptr %401, ptr %13, align 8
  %402 = extractvalue { ptr, i32 } %400, 1
  store i32 %402, ptr %14, align 4
  br label %429

403:                                              ; preds = %388
  %404 = landingpad { ptr, i32 }
          cleanup
  %405 = extractvalue { ptr, i32 } %404, 0
  store ptr %405, ptr %13, align 8
  %406 = extractvalue { ptr, i32 } %404, 1
  store i32 %406, ptr %14, align 4
  br label %428

407:                                              ; preds = %390
  %408 = landingpad { ptr, i32 }
          cleanup
  %409 = extractvalue { ptr, i32 } %408, 0
  store ptr %409, ptr %13, align 8
  %410 = extractvalue { ptr, i32 } %408, 1
  store i32 %410, ptr %14, align 4
  br label %427

411:                                              ; preds = %393
  %412 = getelementptr inbounds %"class.JPH::ContactConstraintManager::CachedManifold", ptr %37, i32 0, i32 4
  %413 = getelementptr inbounds [1 x %"class.JPH::ContactConstraintManager::CachedContactPoint"], ptr %412, i64 0, i64 0
  %414 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH24ContactConstraintManager18CachedContactPoint12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(36) %413, ptr noundef nonnull align 8 dereferenceable(18) %414)
          to label %415 unwind label %419

415:                                              ; preds = %411
  br label %416

416:                                              ; preds = %415
  %417 = load i32, ptr %38, align 4, !tbaa !22
  %418 = add i32 %417, 1
  store i32 %418, ptr %38, align 4, !tbaa !22
  br label %393, !llvm.loop !43

419:                                              ; preds = %411
  %420 = landingpad { ptr, i32 }
          cleanup
  %421 = extractvalue { ptr, i32 } %420, 0
  store ptr %421, ptr %13, align 8
  %422 = extractvalue { ptr, i32 } %420, 1
  store i32 %422, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %38) #6
  br label %427

423:                                              ; preds = %398
  call void @llvm.lifetime.end.p0(i64 56, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr %36) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  br label %424

424:                                              ; preds = %423
  %425 = load i32, ptr %34, align 4, !tbaa !22
  %426 = add i32 %425, 1
  store i32 %426, ptr %34, align 4, !tbaa !22
  br label %372, !llvm.loop !44

427:                                              ; preds = %419, %407
  call void @llvm.lifetime.end.p0(i64 56, ptr %37) #6
  br label %428

428:                                              ; preds = %427, %403
  call void @llvm.lifetime.end.p0(i64 2, ptr %36) #6
  br label %429

429:                                              ; preds = %428, %399
  call void @llvm.lifetime.end.p0(i64 16, ptr %35) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  br label %431

430:                                              ; preds = %376
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr %32) #6
  br label %433

431:                                              ; preds = %429, %381
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  br label %432

432:                                              ; preds = %431, %377
  call void @llvm.lifetime.end.p0(i64 28, ptr %32) #6
  br label %440

433:                                              ; preds = %430, %361
  store i32 0, ptr %17, align 4
  br label %434

434:                                              ; preds = %433, %359
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  %435 = load i32, ptr %17, align 4
  switch i32 %435, label %441 [
    i32 0, label %436
  ]

436:                                              ; preds = %434
  br label %437

437:                                              ; preds = %436
  %438 = load i32, ptr %16, align 4, !tbaa !22
  %439 = add i32 %438, 1
  store i32 %439, ptr %16, align 4, !tbaa !22
  br label %81, !llvm.loop !45

440:                                              ; preds = %432, %366, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %565

441:                                              ; preds = %434, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #6
  br label %442

442:                                              ; preds = %441
  call void @llvm.lifetime.start.p0(i64 24, ptr %39) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  %443 = load ptr, ptr %7, align 8, !tbaa !5
  %444 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %443)
          to label %445 unwind label %449

445:                                              ; preds = %442
  br i1 %444, label %446, label %453

446:                                              ; preds = %445
  %447 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZNK3JPH24ContactConstraintManager13ManifoldCache24GetAllCCDManifoldsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81) %447, ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %448 unwind label %449

448:                                              ; preds = %446
  br label %453

449:                                              ; preds = %446, %442
  %450 = landingpad { ptr, i32 }
          cleanup
  %451 = extractvalue { ptr, i32 } %450, 0
  store ptr %451, ptr %13, align 8
  %452 = extractvalue { ptr, i32 } %450, 1
  store i32 %452, ptr %14, align 4
  br label %564

453:                                              ; preds = %448, %445
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %454 = load ptr, ptr %7, align 8, !tbaa !5
  %455 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %454)
          to label %456 unwind label %461

456:                                              ; preds = %453
  br i1 %455, label %457, label %465

457:                                              ; preds = %456
  %458 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %459 unwind label %461

459:                                              ; preds = %457
  %460 = trunc i64 %458 to i32
  store i32 %460, ptr %40, align 4, !tbaa !22
  br label %465

461:                                              ; preds = %554, %465, %457, %453
  %462 = landingpad { ptr, i32 }
          cleanup
  %463 = extractvalue { ptr, i32 } %462, 0
  store ptr %463, ptr %13, align 8
  %464 = extractvalue { ptr, i32 } %462, 1
  store i32 %464, ptr %14, align 4
  br label %563

465:                                              ; preds = %459, %456
  %466 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %466, ptr noundef nonnull align 4 dereferenceable(4) %40)
          to label %467 unwind label %461

467:                                              ; preds = %465
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  store i32 0, ptr %41, align 4, !tbaa !22
  br label %468

468:                                              ; preds = %549, %467
  %469 = load i32, ptr %41, align 4, !tbaa !22
  %470 = load i32, ptr %40, align 4, !tbaa !22
  %471 = icmp ult i32 %469, %470
  br i1 %471, label %473, label %472

472:                                              ; preds = %468
  store i32 19, ptr %17, align 4
  br label %553

473:                                              ; preds = %468
  call void @llvm.lifetime.start.p0(i64 16, ptr %42) #6
  invoke void @_ZN3JPH14SubShapeIDPairC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %42)
          to label %474 unwind label %492

474:                                              ; preds = %473
  %475 = load ptr, ptr %7, align 8, !tbaa !5
  %476 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %475)
          to label %477 unwind label %492

477:                                              ; preds = %474
  br i1 %476, label %478, label %496

478:                                              ; preds = %477
  %479 = load i32, ptr %41, align 4, !tbaa !22
  %480 = zext i32 %479 to i64
  %481 = invoke noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %39)
          to label %482 unwind label %492

482:                                              ; preds = %478
  %483 = icmp ult i64 %480, %481
  br i1 %483, label %484, label %496

484:                                              ; preds = %482
  %485 = load i32, ptr %41, align 4, !tbaa !22
  %486 = zext i32 %485 to i64
  %487 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %486)
          to label %488 unwind label %492

488:                                              ; preds = %484
  %489 = load ptr, ptr %487, align 8, !tbaa !5
  %490 = invoke noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue6GetKeyEv(ptr noundef nonnull align 4 dereferenceable(76) %489)
          to label %491 unwind label %492

491:                                              ; preds = %488
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %42, ptr align 4 %490, i64 16, i1 false), !tbaa.struct !28
  br label %496

492:                                              ; preds = %506, %504, %501, %496, %488, %484, %478, %474, %473
  %493 = landingpad { ptr, i32 }
          cleanup
  %494 = extractvalue { ptr, i32 } %493, 0
  store ptr %494, ptr %13, align 8
  %495 = extractvalue { ptr, i32 } %493, 1
  store i32 %495, ptr %14, align 4
  br label %552

496:                                              ; preds = %491, %482, %477
  %497 = load ptr, ptr %7, align 8, !tbaa !5
  invoke void @_ZN3JPH8StreamIn4ReadINS_14SubShapeIDPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %497, ptr noundef nonnull align 4 dereferenceable(16) %42)
          to label %498 unwind label %492

498:                                              ; preds = %496
  %499 = load ptr, ptr %8, align 8, !tbaa !5
  %500 = icmp eq ptr %499, null
  br i1 %500, label %512, label %501

501:                                              ; preds = %498
  %502 = load ptr, ptr %8, align 8, !tbaa !5
  %503 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH14SubShapeIDPair10GetBody1IDEv(ptr noundef nonnull align 4 dereferenceable(16) %42)
          to label %504 unwind label %492

504:                                              ; preds = %501
  %505 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH14SubShapeIDPair10GetBody2IDEv(ptr noundef nonnull align 4 dereferenceable(16) %42)
          to label %506 unwind label %492

506:                                              ; preds = %504
  %507 = load ptr, ptr %502, align 8, !tbaa !24
  %508 = getelementptr inbounds ptr, ptr %507, i64 5
  %509 = load ptr, ptr %508, align 8
  %510 = invoke noundef zeroext i1 %509(ptr noundef nonnull align 8 dereferenceable(8) %502, ptr noundef nonnull align 4 dereferenceable(4) %503, ptr noundef nonnull align 4 dereferenceable(4) %505)
          to label %511 unwind label %492

511:                                              ; preds = %506
  br i1 %510, label %512, label %545

512:                                              ; preds = %511, %498
  call void @llvm.lifetime.start.p0(i64 8, ptr %43) #6
  %513 = invoke noundef i64 @_ZNK3JPH14SubShapeIDPair7GetHashEv(ptr noundef nonnull align 4 dereferenceable(16) %42)
          to label %514 unwind label %521

514:                                              ; preds = %512
  store i64 %513, ptr %43, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %44) #6
  %515 = load i64, ptr %43, align 8, !tbaa !26
  %516 = invoke noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_14SubShapeIDPairEmi(ptr noundef nonnull align 8 dereferenceable(81) %46, ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 4 dereferenceable(16) %42, i64 noundef %515, i32 noundef 0)
          to label %517 unwind label %525

517:                                              ; preds = %514
  store ptr %516, ptr %44, align 8, !tbaa !5
  %518 = load ptr, ptr %44, align 8, !tbaa !5
  %519 = icmp eq ptr %518, null
  br i1 %519, label %520, label %529

520:                                              ; preds = %517
  store i8 0, ptr %10, align 1, !tbaa !21
  store i32 19, ptr %17, align 4
  br label %536

521:                                              ; preds = %512
  %522 = landingpad { ptr, i32 }
          cleanup
  %523 = extractvalue { ptr, i32 } %522, 0
  store ptr %523, ptr %13, align 8
  %524 = extractvalue { ptr, i32 } %522, 1
  store i32 %524, ptr %14, align 4
  br label %544

525:                                              ; preds = %514
  %526 = landingpad { ptr, i32 }
          cleanup
  %527 = extractvalue { ptr, i32 } %526, 0
  store ptr %527, ptr %13, align 8
  %528 = extractvalue { ptr, i32 } %526, 1
  store i32 %528, ptr %14, align 4
  br label %543

529:                                              ; preds = %517
  call void @llvm.lifetime.start.p0(i64 8, ptr %45) #6
  %530 = load ptr, ptr %44, align 8, !tbaa !5
  %531 = invoke noundef nonnull align 4 dereferenceable(56) ptr @_ZN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %530)
          to label %532 unwind label %539

532:                                              ; preds = %529
  store ptr %531, ptr %45, align 8, !tbaa !5
  %533 = load ptr, ptr %45, align 8, !tbaa !5
  %534 = getelementptr inbounds %"class.JPH::ContactConstraintManager::CachedManifold", ptr %533, i32 0, i32 2
  %535 = call noundef zeroext i16 @_ZNSt13__atomic_baseItEoREt(ptr noundef nonnull align 2 dereferenceable(2) %534, i16 noundef zeroext 2) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  store i32 0, ptr %17, align 4
  br label %536

536:                                              ; preds = %532, %520
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  %537 = load i32, ptr %17, align 4
  switch i32 %537, label %546 [
    i32 0, label %538
  ]

538:                                              ; preds = %536
  br label %545

539:                                              ; preds = %529
  %540 = landingpad { ptr, i32 }
          cleanup
  %541 = extractvalue { ptr, i32 } %540, 0
  store ptr %541, ptr %13, align 8
  %542 = extractvalue { ptr, i32 } %540, 1
  store i32 %542, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %45) #6
  br label %543

543:                                              ; preds = %539, %525
  call void @llvm.lifetime.end.p0(i64 8, ptr %44) #6
  br label %544

544:                                              ; preds = %543, %521
  call void @llvm.lifetime.end.p0(i64 8, ptr %43) #6
  br label %552

545:                                              ; preds = %538, %511
  store i32 0, ptr %17, align 4
  br label %546

546:                                              ; preds = %545, %536
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  %547 = load i32, ptr %17, align 4
  switch i32 %547, label %553 [
    i32 0, label %548
  ]

548:                                              ; preds = %546
  br label %549

549:                                              ; preds = %548
  %550 = load i32, ptr %41, align 4, !tbaa !22
  %551 = add i32 %550, 1
  store i32 %551, ptr %41, align 4, !tbaa !22
  br label %468, !llvm.loop !46

552:                                              ; preds = %544, %492
  call void @llvm.lifetime.end.p0(i64 16, ptr %42) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %563

553:                                              ; preds = %546, %472
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  br label %554

554:                                              ; preds = %553
  %555 = load ptr, ptr %7, align 8, !tbaa !5
  %556 = invoke noundef zeroext i1 @_ZNK3JPH13StateRecorder10IsLastPartEv(ptr noundef nonnull align 8 dereferenceable(18) %555)
          to label %557 unwind label %461

557:                                              ; preds = %554
  br i1 %556, label %558, label %560

558:                                              ; preds = %557
  %559 = getelementptr inbounds %"class.JPH::ContactConstraintManager::ManifoldCache", ptr %46, i32 0, i32 3
  store i8 1, ptr %559, align 8, !tbaa !9
  br label %560

560:                                              ; preds = %558, %557
  %561 = load i8, ptr %10, align 1, !tbaa !21, !range !18, !noundef !19
  %562 = trunc i8 %561 to i1
  store i32 1, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  ret i1 %562

563:                                              ; preds = %552, %461
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  br label %564

564:                                              ; preds = %563, %449
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %39) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %39) #6
  br label %565

565:                                              ; preds = %564, %440, %74
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  br label %566

566:                                              ; preds = %565, %62
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #6
  br label %567

567:                                              ; preds = %566
  %568 = load ptr, ptr %13, align 8
  %569 = load i32, ptr %14, align 4
  %570 = insertvalue { ptr, i32 } poison, ptr %568, 0
  %571 = insertvalue { ptr, i32 } %570, i32 %569, 1
  resume { ptr, i32 } %571
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager13ManifoldCache19GetContactAllocatorEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::ContactConstraintManager::ContactAllocator") align 8, ptr noundef nonnull align 8 dereferenceable(81)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadINS_8BodyPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40)) #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3JPH14SubShapeIDPair7GetHashEv(ptr noundef nonnull align 4 dereferenceable(16)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadItTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 2 dereferenceable(2)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH24ContactConstraintManager14CachedManifold21sGetRequiredTotalSizeEi(i32 noundef) #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt13__atomic_baseItEoREt(ptr noundef nonnull align 2 dereferenceable(2), i16 noundef zeroext) #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13StateRecorder10IsLastPartEv(ptr noundef nonnull align 8 dereferenceable(18)) #4 align 2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { 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, !17, i64 80}
!10 = !{!"_ZTSN3JPH24ContactConstraintManager13ManifoldCacheE", !11, i64 0, !15, i64 16, !16, i64 48, !17, i64 80}
!11 = !{!"_ZTSN3JPH13LFHMAllocatorE", !6, i64 0, !12, i64 8, !13, i64 12}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !12, i64 0}
!15 = !{!"_ZTSN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEEE", !6, i64 0, !13, i64 8, !6, i64 16, !12, i64 24, !12, i64 28}
!16 = !{!"_ZTSN3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEEE", !6, i64 0, !13, i64 8, !6, i64 16, !12, i64 24, !12, i64 28}
!17 = !{!"bool", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{i64 2159363306}
!21 = !{!17, !17, i64 0}
!22 = !{!12, !12, i64 0}
!23 = !{i64 0, i64 4, !22, i64 4, i64 4, !22}
!24 = !{!25, !25, i64 0}
!25 = !{!"vtable pointer", !8, i64 0}
!26 = !{!27, !27, i64 0}
!27 = !{!"long", !7, i64 0}
!28 = !{i64 0, i64 4, !22, i64 4, i64 4, !22, i64 8, i64 4, !22, i64 12, i64 4, !22}
!29 = !{!30, !30, i64 0}
!30 = !{!"short", !7, i64 0}
!31 = !{!32, !30, i64 18}
!32 = !{!"_ZTSN3JPH24ContactConstraintManager14CachedManifoldE", !12, i64 0, !33, i64 4, !35, i64 16, !30, i64 18, !7, i64 20}
!33 = !{!"_ZTSN3JPH6Float3E", !34, i64 0, !34, i64 4, !34, i64 8}
!34 = !{!"float", !7, i64 0}
!35 = !{!"_ZTSSt6atomicItE", !36, i64 0}
!36 = !{!"_ZTSSt13__atomic_baseItE", !30, i64 0}
!37 = !{!32, !12, i64 0}
!38 = distinct !{!38, !39}
!39 = !{!"llvm.loop.mustprogress"}
!40 = distinct !{!40, !39}
!41 = !{!42, !12, i64 24}
!42 = !{!"_ZTSN3JPH24ContactConstraintManager14CachedBodyPairE", !33, i64 0, !33, i64 12, !12, i64 24}
!43 = distinct !{!43, !39}
!44 = distinct !{!44, !39}
!45 = distinct !{!45, !39}
!46 = distinct !{!46, !39}


; 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::ContactConstraintManager::ContactAllocator" = type { %"class.JPH::LFHMAllocatorContext.base", i32, i32, i32 }
%"class.JPH::LFHMAllocatorContext.base" = type <{ ptr, i32, i32, i32 }>
%"class.JPH::Array" = type { i64, i64, ptr }
%"struct.JPH::BodyPair" = type { %"class.JPH::BodyID", %"class.JPH::BodyID" }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Array.7" = type { i64, i64, ptr }
%"class.JPH::SubShapeIDPair" = type { %"class.JPH::BodyID", %"class.JPH::SubShapeID", %"class.JPH::BodyID", %"class.JPH::SubShapeID" }
%"class.JPH::SubShapeID" = type { i32 }
%"class.JPH::ContactConstraintManager::CachedBodyPair" = type { %"class.JPH::Float3", %"class.JPH::Float3", i32 }
%"class.JPH::Float3" = type { float, float, float }
%"class.JPH::ContactConstraintManager::CachedManifold" = type { i32, %"class.JPH::Float3", %"struct.std::atomic.5", i16, [1 x %"class.JPH::ContactConstraintManager::CachedContactPoint"] }
%"struct.std::atomic.5" = type { %"struct.std::__atomic_base.6" }
%"struct.std::__atomic_base.6" = type { i16 }
%"class.JPH::ContactConstraintManager::CachedContactPoint" = type { %"class.JPH::Float3", %"class.JPH::Float3", float, %"class.JPH::Vector" }
%"class.JPH::Vector" = type { [2 x float] }

@.str.1 = external hidden unnamed_addr constant [106 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [14 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager18CachedContactPoint12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(36), ptr noundef nonnull align 8 dereferenceable(18)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager14CachedManifold12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(18)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager14CachedBodyPair12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(18)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_14SubShapeIDPairEmi(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 4 dereferenceable(16), i64 noundef, i32 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(56) ptr @_ZN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK3JPH24ContactConstraintManager13ManifoldCache8ToHandleEPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_8BodyPairEm(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(8), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllBodyPairsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS0_14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllManifoldsSortedERKNS0_14CachedBodyPairERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorISC_EEEE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 4 dereferenceable(28), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(56) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH24ContactConstraintManager13ManifoldCache24GetAllCCDManifoldsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue6GetKeyEv(ptr noundef nonnull align 4 dereferenceable(76)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue6GetKeyEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH14SubShapeIDPair10GetBody1IDEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH14SubShapeIDPair10GetBody2IDEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #4 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH24ContactConstraintManager13ManifoldCache12RestoreStateERKS1_RNS_13StateRecorderEPKNS_19StateRecorderFilterE(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef nonnull align 8 dereferenceable(81) %1, ptr noundef nonnull align 8 dereferenceable(18) %2, ptr noundef %3) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.JPH::ContactConstraintManager::ContactAllocator", align 8
  %6 = alloca %"class.JPH::Array", align 8
  %7 = alloca i32, align 4
  %8 = alloca %"struct.JPH::BodyPair", align 8
  %9 = alloca %"class.JPH::Array.7", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.JPH::SubShapeIDPair", align 4
  %12 = alloca i16, align 2
  %13 = alloca %"class.JPH::ContactConstraintManager::CachedBodyPair", align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.JPH::SubShapeIDPair", align 4
  %16 = alloca i16, align 2
  %17 = alloca %"class.JPH::ContactConstraintManager::CachedManifold", align 4
  %18 = alloca %"class.JPH::Array.7", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.JPH::SubShapeIDPair", align 4
  %21 = getelementptr inbounds i8, ptr %0, i64 80
  %22 = load i8, ptr %21, align 8, !tbaa !5, !range !17, !noundef !18
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %24, label %27

24:                                               ; preds = %4
  %25 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.1, i32 noundef 501)
  br i1 %25, label %26, label %27

26:                                               ; preds = %24
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !19
  br label %27

27:                                               ; preds = %4, %24, %26
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #6
  call void @_ZN3JPH24ContactConstraintManager13ManifoldCache19GetContactAllocatorEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::ContactConstraintManager::ContactAllocator") align 8 %5, ptr noundef nonnull align 8 dereferenceable(81) %0)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  %28 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %28, label %29, label %32

29:                                               ; preds = %27
  invoke void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllBodyPairsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS0_14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81) %1, ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %32 unwind label %30

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

32:                                               ; preds = %29, %27
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #6
  %33 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %33, label %34, label %39

34:                                               ; preds = %32
  %35 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %36 = trunc i64 %35 to i32
  store i32 %36, ptr %7, align 4, !tbaa !20
  br label %39

37:                                               ; preds = %39
  %38 = landingpad { ptr, i32 }
          cleanup
  br label %304

39:                                               ; preds = %34, %32
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %7)
          to label %.preheader219 unwind label %37

.preheader219:                                    ; preds = %39
  %40 = load i32, ptr %7, align 4, !tbaa !20
  %.not270 = icmp eq i32 %40, 0
  br i1 %.not270, label %.loopexit220, label %.lr.ph260

.lr.ph260:                                        ; preds = %.preheader219
  %41 = icmp eq ptr %3, null
  %42 = getelementptr inbounds i8, ptr %8, i64 4
  %43 = getelementptr inbounds i8, ptr %17, i64 20
  br label %44

44:                                               ; preds = %.lr.ph260, %.thread184
  %indvars.iv290 = phi i64 [ 0, %.lr.ph260 ], [ %indvars.iv.next291, %.thread184 ]
  %.0259 = phi i1 [ true, %.lr.ph260 ], [ %.6.ph, %.thread184 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  invoke void @_ZN3JPH8BodyPairC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %45 unwind label %56

45:                                               ; preds = %44
  %46 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %46, label %47, label %58

47:                                               ; preds = %45
  %48 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %49 = icmp ugt i64 %48, %indvars.iv290
  br i1 %49, label %50, label %58

50:                                               ; preds = %47
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv290)
          to label %52 unwind label %56

52:                                               ; preds = %50
  %53 = load ptr, ptr %51, align 8, !tbaa !21
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue6GetKeyEv(ptr noundef nonnull align 8 dereferenceable(40) %53)
  %55 = load i64, ptr %54, align 8
  store i64 %55, ptr %8, align 8
  br label %58

56:                                               ; preds = %60, %58, %50, %44
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %222

58:                                               ; preds = %52, %47, %45
  invoke void @_ZN3JPH8StreamIn4ReadINS_8BodyPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %59 unwind label %56

59:                                               ; preds = %58
  br i1 %41, label %66, label %60

60:                                               ; preds = %59
  %61 = load ptr, ptr %3, align 8, !tbaa !22
  %62 = getelementptr inbounds i8, ptr %61, i64 40
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef zeroext i1 %63(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %8, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %65 unwind label %56

65:                                               ; preds = %60
  br i1 %64, label %66, label %187

66:                                               ; preds = %65, %59
  %67 = invoke noundef i64 @_ZNK3JPH8BodyPair7GetHashEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %68 unwind label %71

68:                                               ; preds = %66
  %69 = invoke noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_8BodyPairEm(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(8) %8, i64 noundef %67)
          to label %70 unwind label %73

70:                                               ; preds = %68
  %.not172 = icmp eq ptr %69, null
  br i1 %.not172, label %.thread194, label %75

71:                                               ; preds = %66
  %72 = landingpad { ptr, i32 }
          cleanup
  br label %222

73:                                               ; preds = %68
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %222

75:                                               ; preds = %70
  %76 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40) %69)
  %77 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %77, label %78, label %88

78:                                               ; preds = %75
  %79 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  %80 = icmp ugt i64 %79, %indvars.iv290
  br i1 %80, label %81, label %88

81:                                               ; preds = %78
  %82 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv290)
          to label %83 unwind label %86

83:                                               ; preds = %81
  %84 = load ptr, ptr %82, align 8, !tbaa !21
  %85 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40) %84)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %76, ptr noundef nonnull align 4 dereferenceable(28) %85, i64 28, i1 false)
  br label %88

86:                                               ; preds = %88, %81
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %222

88:                                               ; preds = %83, %78, %75
  invoke void @_ZN3JPH24ContactConstraintManager14CachedBodyPair12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(28) %76, ptr noundef nonnull align 8 dereferenceable(18) %2)
          to label %89 unwind label %86

89:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %90 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %90, label %91, label %98

91:                                               ; preds = %89
  %92 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv290)
          to label %93 unwind label %96

93:                                               ; preds = %91
  %94 = load ptr, ptr %92, align 8, !tbaa !21
  %95 = call noundef nonnull align 4 dereferenceable(28) ptr @_ZNK3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40) %94)
  invoke void @_ZNK3JPH24ContactConstraintManager13ManifoldCache21GetAllManifoldsSortedERKNS0_14CachedBodyPairERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorISC_EEEE(ptr noundef nonnull align 8 dereferenceable(81) %1, ptr noundef nonnull align 4 dereferenceable(28) %95, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %98 unwind label %96

96:                                               ; preds = %93, %91
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %186

98:                                               ; preds = %93, %89
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #6
  store i32 0, ptr %10, align 4, !tbaa !20
  %99 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %99, label %100, label %105

100:                                              ; preds = %98
  %101 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %102 = trunc i64 %101 to i32
  store i32 %102, ptr %10, align 4, !tbaa !20
  br label %105

103:                                              ; preds = %105
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %185

105:                                              ; preds = %100, %98
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %10)
          to label %.preheader216 unwind label %103

.preheader216:                                    ; preds = %105
  %106 = load i32, ptr %10, align 4, !tbaa !20
  %.not273 = icmp eq i32 %106, 0
  br i1 %.not273, label %.loopexit217, label %.lr.ph256

.lr.ph256:                                        ; preds = %.preheader216, %._crit_edge253
  %indvars.iv287 = phi i64 [ %indvars.iv.next288, %._crit_edge253 ], [ 0, %.preheader216 ]
  %.0140255 = phi i32 [ %168, %._crit_edge253 ], [ -1, %.preheader216 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #6
  invoke void @_ZN3JPH14SubShapeIDPairC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %107 unwind label %117

107:                                              ; preds = %.lr.ph256
  %108 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %108, label %109, label %119

109:                                              ; preds = %107
  %110 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %111 = icmp ugt i64 %110, %indvars.iv287
  br i1 %111, label %112, label %119

112:                                              ; preds = %109
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv287)
          to label %114 unwind label %117

114:                                              ; preds = %112
  %115 = load ptr, ptr %113, align 8, !tbaa !21
  %116 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue6GetKeyEv(ptr noundef nonnull align 4 dereferenceable(76) %115)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %11, ptr noundef nonnull align 4 dereferenceable(16) %116, i64 16, i1 false), !tbaa.struct !24
  br label %119

117:                                              ; preds = %119, %112, %.lr.ph256
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %183

119:                                              ; preds = %114, %109, %107
  invoke void @_ZN3JPH8StreamIn4ReadINS_14SubShapeIDPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %120 unwind label %117

120:                                              ; preds = %119
  %121 = invoke noundef i64 @_ZNK3JPH14SubShapeIDPair7GetHashEv(ptr noundef nonnull align 4 dereferenceable(16) %11)
          to label %122 unwind label %134

122:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %12) #6
  store i16 0, ptr %12, align 2, !tbaa !25
  %123 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %123, label %124, label %138

124:                                              ; preds = %122
  %125 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %126 = icmp ugt i64 %125, %indvars.iv287
  br i1 %126, label %127, label %138

127:                                              ; preds = %124
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv287)
          to label %129 unwind label %136

129:                                              ; preds = %127
  %130 = load ptr, ptr %128, align 8, !tbaa !21
  %131 = call noundef nonnull align 4 dereferenceable(56) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %130)
  %132 = getelementptr inbounds i8, ptr %131, i64 18
  %133 = load i16, ptr %132, align 2, !tbaa !27
  store i16 %133, ptr %12, align 2, !tbaa !25
  br label %138

134:                                              ; preds = %120
  %135 = landingpad { ptr, i32 }
          cleanup
  br label %183

136:                                              ; preds = %138, %127
  %137 = landingpad { ptr, i32 }
          cleanup
  br label %182

138:                                              ; preds = %129, %124, %122
  invoke void @_ZN3JPH8StreamIn4ReadItTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 2 dereferenceable(2) %12)
          to label %139 unwind label %136

139:                                              ; preds = %138
  %140 = load i16, ptr %12, align 2, !tbaa !25
  %141 = zext i16 %140 to i32
  %142 = invoke noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_14SubShapeIDPairEmi(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(16) %11, i64 noundef %121, i32 noundef %141)
          to label %143 unwind label %144

143:                                              ; preds = %139
  %.not = icmp eq ptr %142, null
  br i1 %.not, label %.thread, label %146

.thread:                                          ; preds = %143
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %.loopexit217

144:                                              ; preds = %139
  %145 = landingpad { ptr, i32 }
          cleanup
  br label %182

146:                                              ; preds = %143
  %147 = call noundef nonnull align 4 dereferenceable(56) ptr @_ZN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %142)
  %148 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %148, label %149, label %166

149:                                              ; preds = %146
  %150 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %151 = icmp ugt i64 %150, %indvars.iv287
  br i1 %151, label %152, label %166

152:                                              ; preds = %149
  %153 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %indvars.iv287)
          to label %154 unwind label %164

154:                                              ; preds = %152
  %155 = load ptr, ptr %153, align 8, !tbaa !21
  %156 = call noundef nonnull align 4 dereferenceable(56) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %155)
  %157 = load i16, ptr %12, align 2, !tbaa !25
  %158 = zext i16 %157 to i32
  %159 = invoke noundef i32 @_ZN3JPH24ContactConstraintManager14CachedManifold21sGetRequiredTotalSizeEi(i32 noundef %158)
          to label %160 unwind label %164

160:                                              ; preds = %154
  %161 = sext i32 %159 to i64
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %147, ptr nonnull align 4 %156, i64 %161, i1 false)
  %162 = load i16, ptr %12, align 2, !tbaa !25
  %163 = getelementptr inbounds i8, ptr %147, i64 18
  store i16 %162, ptr %163, align 2, !tbaa !27
  br label %166

164:                                              ; preds = %167, %166, %154, %152
  %165 = landingpad { ptr, i32 }
          cleanup
  br label %182

166:                                              ; preds = %160, %149, %146
  invoke void @_ZN3JPH24ContactConstraintManager14CachedManifold12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(56) %147, ptr noundef nonnull align 8 dereferenceable(18) %2)
          to label %167 unwind label %164

167:                                              ; preds = %166
  store i32 %.0140255, ptr %147, align 4, !tbaa !33
  %168 = invoke noundef i32 @_ZNK3JPH24ContactConstraintManager13ManifoldCache8ToHandleEPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueE(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef nonnull %142)
          to label %.preheader214 unwind label %164

.preheader214:                                    ; preds = %167
  %169 = load i16, ptr %12, align 2, !tbaa !25
  %.not274 = icmp eq i16 %169, 0
  br i1 %.not274, label %._crit_edge253, label %.lr.ph252

.lr.ph252:                                        ; preds = %.preheader214
  %170 = getelementptr inbounds i8, ptr %147, i64 20
  br label %171

171:                                              ; preds = %.lr.ph252, %173
  %indvars.iv = phi i64 [ 0, %.lr.ph252 ], [ %indvars.iv.next, %173 ]
  %172 = getelementptr inbounds [1 x %"class.JPH::ContactConstraintManager::CachedContactPoint"], ptr %170, i64 0, i64 %indvars.iv
  invoke void @_ZN3JPH24ContactConstraintManager18CachedContactPoint12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(36) %172, ptr noundef nonnull align 8 dereferenceable(18) %2)
          to label %173 unwind label %177

173:                                              ; preds = %171
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %174 = load i16, ptr %12, align 2, !tbaa !25
  %175 = zext i16 %174 to i64
  %176 = icmp ult i64 %indvars.iv.next, %175
  br i1 %176, label %171, label %._crit_edge253, !llvm.loop !34

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

._crit_edge253:                                   ; preds = %173, %.preheader214
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  %indvars.iv.next288 = add nuw nsw i64 %indvars.iv287, 1
  %179 = load i32, ptr %10, align 4, !tbaa !20
  %180 = zext i32 %179 to i64
  %181 = icmp ult i64 %indvars.iv.next288, %180
  br i1 %181, label %.lr.ph256, label %.loopexit217, !llvm.loop !36

182:                                              ; preds = %144, %177, %164, %136
  %.pn160.pn.pn = phi { ptr, i32 } [ %137, %136 ], [ %145, %144 ], [ %178, %177 ], [ %165, %164 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %12) #6
  br label %183

183:                                              ; preds = %134, %182, %117
  %.pn160.pn.pn.pn.pn = phi { ptr, i32 } [ %118, %117 ], [ %.pn160.pn.pn, %182 ], [ %135, %134 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #6
  br label %185

.loopexit217:                                     ; preds = %._crit_edge253, %.preheader216, %.thread
  %.2142 = phi i32 [ %.0140255, %.thread ], [ -1, %.preheader216 ], [ %168, %._crit_edge253 ]
  %.3 = phi i1 [ false, %.thread ], [ %.0259, %.preheader216 ], [ %.0259, %._crit_edge253 ]
  %184 = getelementptr inbounds i8, ptr %76, i64 24
  store i32 %.2142, ptr %184, align 4, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %.thread184

.thread194:                                       ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %.loopexit220

185:                                              ; preds = %183, %103
  %.pn160.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn160.pn.pn.pn.pn, %183 ], [ %104, %103 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #6
  br label %186

186:                                              ; preds = %185, %96
  %.pn160.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn160.pn.pn.pn.pn.pn, %185 ], [ %97, %96 ]
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %222

187:                                              ; preds = %65
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %13) #6
  invoke void @_ZN3JPH24ContactConstraintManager14CachedBodyPair12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(28) %13, ptr noundef nonnull align 8 dereferenceable(18) %2)
          to label %188 unwind label %190

188:                                              ; preds = %187
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %14) #6
  store i32 0, ptr %14, align 4, !tbaa !20
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %14)
          to label %.preheader218 unwind label %192

.preheader218:                                    ; preds = %188
  %189 = load i32, ptr %14, align 4, !tbaa !20
  %.not271 = icmp eq i32 %189, 0
  br i1 %.not271, label %._crit_edge250, label %.lr.ph249

._crit_edge250:                                   ; preds = %._crit_edge, %.preheader218
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #6
  br label %.thread184

190:                                              ; preds = %187
  %191 = landingpad { ptr, i32 }
          cleanup
  br label %218

192:                                              ; preds = %188
  %193 = landingpad { ptr, i32 }
          cleanup
  br label %217

.lr.ph249:                                        ; preds = %.preheader218, %._crit_edge
  %.0132248 = phi i32 [ %198, %._crit_edge ], [ 0, %.preheader218 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #6
  invoke void @_ZN3JPH14SubShapeIDPairC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %194 unwind label %201

194:                                              ; preds = %.lr.ph249
  invoke void @_ZN3JPH8StreamIn4ReadINS_14SubShapeIDPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(16) %15)
          to label %195 unwind label %201

195:                                              ; preds = %194
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %16) #6
  invoke void @_ZN3JPH8StreamIn4ReadItTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 2 dereferenceable(2) %16)
          to label %196 unwind label %203

196:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %17) #6
  call void @_ZN3JPH24ContactConstraintManager14CachedManifoldC2Ev(ptr noundef nonnull align 4 dereferenceable(56) %17) #6
  invoke void @_ZN3JPH24ContactConstraintManager14CachedManifold12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(56) %17, ptr noundef nonnull align 8 dereferenceable(18) %2)
          to label %.preheader215 unwind label %205

.preheader215:                                    ; preds = %196
  %197 = load i16, ptr %16, align 2, !tbaa !25
  %.not272 = icmp eq i16 %197, 0
  br i1 %.not272, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %207, %.preheader215
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  %198 = add nuw i32 %.0132248, 1
  %199 = load i32, ptr %14, align 4, !tbaa !20
  %200 = icmp ult i32 %198, %199
  br i1 %200, label %.lr.ph249, label %._crit_edge250, !llvm.loop !39

201:                                              ; preds = %194, %.lr.ph249
  %202 = landingpad { ptr, i32 }
          cleanup
  br label %216

203:                                              ; preds = %195
  %204 = landingpad { ptr, i32 }
          cleanup
  br label %215

205:                                              ; preds = %196
  %206 = landingpad { ptr, i32 }
          cleanup
  br label %214

.lr.ph:                                           ; preds = %.preheader215, %207
  %.0131247 = phi i32 [ %208, %207 ], [ 0, %.preheader215 ]
  invoke void @_ZN3JPH24ContactConstraintManager18CachedContactPoint12RestoreStateERNS_13StateRecorderE(ptr noundef nonnull align 4 dereferenceable(36) %43, ptr noundef nonnull align 8 dereferenceable(18) %2)
          to label %207 unwind label %212

207:                                              ; preds = %.lr.ph
  %208 = add nuw nsw i32 %.0131247, 1
  %209 = load i16, ptr %16, align 2, !tbaa !25
  %210 = zext i16 %209 to i32
  %211 = icmp ult i32 %208, %210
  br i1 %211, label %.lr.ph, label %._crit_edge, !llvm.loop !40

212:                                              ; preds = %.lr.ph
  %213 = landingpad { ptr, i32 }
          cleanup
  br label %214

214:                                              ; preds = %212, %205
  %.pn = phi { ptr, i32 } [ %213, %212 ], [ %206, %205 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %17) #6
  br label %215

215:                                              ; preds = %214, %203
  %.pn.pn = phi { ptr, i32 } [ %.pn, %214 ], [ %204, %203 ]
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %16) #6
  br label %216

216:                                              ; preds = %215, %201
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %215 ], [ %202, %201 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #6
  br label %217

217:                                              ; preds = %216, %192
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %216 ], [ %193, %192 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %14) #6
  br label %218

218:                                              ; preds = %217, %190
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %217 ], [ %191, %190 ]
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %13) #6
  br label %222

.thread184:                                       ; preds = %.loopexit217, %._crit_edge250
  %.6.ph = phi i1 [ %.3, %.loopexit217 ], [ %.0259, %._crit_edge250 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  %indvars.iv.next291 = add nuw nsw i64 %indvars.iv290, 1
  %219 = load i32, ptr %7, align 4, !tbaa !20
  %220 = zext i32 %219 to i64
  %221 = icmp ult i64 %indvars.iv.next291, %220
  br i1 %221, label %44, label %.loopexit220, !llvm.loop !41

222:                                              ; preds = %71, %86, %186, %73, %218, %56
  %.pn160.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn.pn, %218 ], [ %57, %56 ], [ %72, %71 ], [ %74, %73 ], [ %.pn160.pn.pn.pn.pn.pn.pn, %186 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  br label %304

.loopexit220:                                     ; preds = %.thread184, %.preheader219, %.thread194
  %.7 = phi i1 [ false, %.thread194 ], [ true, %.preheader219 ], [ %.6.ph, %.thread184 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %18) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  %223 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %223, label %224, label %227

224:                                              ; preds = %.loopexit220
  invoke void @_ZNK3JPH24ContactConstraintManager13ManifoldCache24GetAllCCDManifoldsSortedERNS_5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS0_14CachedManifoldEE8KeyValueENS_12STLAllocatorIS9_EEEE(ptr noundef nonnull align 8 dereferenceable(81) %1, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %227 unwind label %225

225:                                              ; preds = %224
  %226 = landingpad { ptr, i32 }
          cleanup
  br label %303

227:                                              ; preds = %224, %.loopexit220
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #6
  %228 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %228, label %229, label %234

229:                                              ; preds = %227
  %230 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %231 = trunc i64 %230 to i32
  store i32 %231, ptr %19, align 4, !tbaa !20
  br label %234

232:                                              ; preds = %234
  %233 = landingpad { ptr, i32 }
          cleanup
  br label %302

234:                                              ; preds = %229, %227
  invoke void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %.preheader unwind label %232

.preheader:                                       ; preds = %234
  %235 = load i32, ptr %19, align 4, !tbaa !20
  %.not275 = icmp eq i32 %235, 0
  br i1 %.not275, label %.loopexit, label %.lr.ph263

.lr.ph263:                                        ; preds = %.preheader
  %236 = icmp eq ptr %3, null
  br i1 %236, label %.lr.ph263.split.us, label %.lr.ph263.split

.lr.ph263.split.us:                               ; preds = %.lr.ph263, %253
  %indvars.iv295 = phi i64 [ %indvars.iv.next296, %253 ], [ 0, %.lr.ph263 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  invoke void @_ZN3JPH14SubShapeIDPairC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20)
          to label %237 unwind label %.split.us

237:                                              ; preds = %.lr.ph263.split.us
  %238 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %238, label %239, label %247

239:                                              ; preds = %237
  %240 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %241 = icmp ugt i64 %240, %indvars.iv295
  br i1 %241, label %242, label %247

242:                                              ; preds = %239
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv295)
          to label %244 unwind label %.split.us

244:                                              ; preds = %242
  %245 = load ptr, ptr %243, align 8, !tbaa !21
  %246 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue6GetKeyEv(ptr noundef nonnull align 4 dereferenceable(76) %245)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(16) %246, i64 16, i1 false), !tbaa.struct !24
  br label %247

247:                                              ; preds = %244, %239, %237
  invoke void @_ZN3JPH8StreamIn4ReadINS_14SubShapeIDPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(16) %20)
          to label %248 unwind label %.split.us

248:                                              ; preds = %247
  %249 = invoke noundef i64 @_ZNK3JPH14SubShapeIDPair7GetHashEv(ptr noundef nonnull align 4 dereferenceable(16) %20)
          to label %250 unwind label %.split265.us

250:                                              ; preds = %248
  %251 = invoke noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_14SubShapeIDPairEmi(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(16) %20, i64 noundef %249, i32 noundef 0)
          to label %252 unwind label %.split268.us

252:                                              ; preds = %250
  %.not180.us = icmp eq ptr %251, null
  br i1 %.not180.us, label %.thread210, label %253

253:                                              ; preds = %252
  %254 = call noundef nonnull align 4 dereferenceable(56) ptr @_ZN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %251)
  %255 = getelementptr inbounds i8, ptr %254, i64 16
  %256 = call noundef zeroext i16 @_ZNSt13__atomic_baseItEoREt(ptr noundef nonnull align 2 dereferenceable(2) %255, i16 noundef zeroext 2) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  %indvars.iv.next296 = add nuw nsw i64 %indvars.iv295, 1
  %257 = load i32, ptr %19, align 4, !tbaa !20
  %258 = zext i32 %257 to i64
  %259 = icmp ult i64 %indvars.iv.next296, %258
  br i1 %259, label %.lr.ph263.split.us, label %.loopexit, !llvm.loop !42

.split.us:                                        ; preds = %247, %242, %.lr.ph263.split.us
  %260 = landingpad { ptr, i32 }
          cleanup
  br label %298

.split265.us:                                     ; preds = %248
  %261 = landingpad { ptr, i32 }
          cleanup
  br label %298

.split268.us:                                     ; preds = %250
  %262 = landingpad { ptr, i32 }
          cleanup
  br label %298

.lr.ph263.split:                                  ; preds = %.lr.ph263, %294
  %indvars.iv292 = phi i64 [ %indvars.iv.next293, %294 ], [ 0, %.lr.ph263 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %20) #6
  invoke void @_ZN3JPH14SubShapeIDPairC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %20)
          to label %263 unwind label %.split

263:                                              ; preds = %.lr.ph263.split
  %264 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %264, label %265, label %274

265:                                              ; preds = %263
  %266 = call noundef i64 @_ZNK3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18)
  %267 = icmp ugt i64 %266, %indvars.iv292
  br i1 %267, label %268, label %274

268:                                              ; preds = %265
  %269 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %18, i64 noundef %indvars.iv292)
          to label %270 unwind label %.split

270:                                              ; preds = %268
  %271 = load ptr, ptr %269, align 8, !tbaa !21
  %272 = call noundef nonnull align 4 dereferenceable(16) ptr @_ZNK3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue6GetKeyEv(ptr noundef nonnull align 4 dereferenceable(76) %271)
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(16) %272, i64 16, i1 false), !tbaa.struct !24
  br label %274

.split:                                           ; preds = %275, %274, %268, %.lr.ph263.split
  %273 = landingpad { ptr, i32 }
          cleanup
  br label %298

274:                                              ; preds = %270, %265, %263
  invoke void @_ZN3JPH8StreamIn4ReadINS_14SubShapeIDPairETnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS4_(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 4 dereferenceable(16) %20)
          to label %275 unwind label %.split

275:                                              ; preds = %274
  %276 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH14SubShapeIDPair10GetBody1IDEv(ptr noundef nonnull align 4 dereferenceable(16) %20)
  %277 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH14SubShapeIDPair10GetBody2IDEv(ptr noundef nonnull align 4 dereferenceable(16) %20)
  %278 = load ptr, ptr %3, align 8, !tbaa !22
  %279 = getelementptr inbounds i8, ptr %278, i64 40
  %280 = load ptr, ptr %279, align 8
  %281 = invoke noundef zeroext i1 %280(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %276, ptr noundef nonnull align 4 dereferenceable(4) %277)
          to label %282 unwind label %.split

282:                                              ; preds = %275
  br i1 %281, label %283, label %294

283:                                              ; preds = %282
  %284 = invoke noundef i64 @_ZNK3JPH14SubShapeIDPair7GetHashEv(ptr noundef nonnull align 4 dereferenceable(16) %20)
          to label %285 unwind label %.split265

285:                                              ; preds = %283
  %286 = invoke noundef ptr @_ZN3JPH24ContactConstraintManager13ManifoldCache6CreateERNS0_16ContactAllocatorERKNS_14SubShapeIDPairEmi(ptr noundef nonnull align 8 dereferenceable(81) %0, ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 4 dereferenceable(16) %20, i64 noundef %284, i32 noundef 0)
          to label %287 unwind label %.split268

287:                                              ; preds = %285
  %.not180 = icmp eq ptr %286, null
  br i1 %.not180, label %.thread210, label %290

.split265:                                        ; preds = %283
  %288 = landingpad { ptr, i32 }
          cleanup
  br label %298

.split268:                                        ; preds = %285
  %289 = landingpad { ptr, i32 }
          cleanup
  br label %298

290:                                              ; preds = %287
  %291 = call noundef nonnull align 4 dereferenceable(56) ptr @_ZN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValue8GetValueEv(ptr noundef nonnull align 4 dereferenceable(76) %286)
  %292 = getelementptr inbounds i8, ptr %291, i64 16
  %293 = call noundef zeroext i16 @_ZNSt13__atomic_baseItEoREt(ptr noundef nonnull align 2 dereferenceable(2) %292, i16 noundef zeroext 2) #6
  br label %294

.thread210:                                       ; preds = %287, %252
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %.loopexit

294:                                              ; preds = %290, %282
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  %indvars.iv.next293 = add nuw nsw i64 %indvars.iv292, 1
  %295 = load i32, ptr %19, align 4, !tbaa !20
  %296 = zext i32 %295 to i64
  %297 = icmp ult i64 %indvars.iv.next293, %296
  br i1 %297, label %.lr.ph263.split, label %.loopexit, !llvm.loop !42

298:                                              ; preds = %.split268, %.split268.us, %.split265, %.split265.us, %.split, %.split.us
  %.pn173.pn = phi { ptr, i32 } [ %273, %.split ], [ %260, %.split.us ], [ %288, %.split265 ], [ %261, %.split265.us ], [ %289, %.split268 ], [ %262, %.split268.us ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %20) #6
  br label %302

.loopexit:                                        ; preds = %294, %253, %.preheader, %.thread210
  %.12 = phi i1 [ false, %.thread210 ], [ %.7, %.preheader ], [ %.7, %253 ], [ %.7, %294 ]
  %299 = call noundef zeroext i1 @_ZNK3JPH13StateRecorder10IsLastPartEv(ptr noundef nonnull align 8 dereferenceable(18) %2)
  br i1 %299, label %300, label %301

300:                                              ; preds = %.loopexit
  store i8 1, ptr %21, align 8, !tbaa !5
  br label %301

301:                                              ; preds = %300, %.loopexit
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  ret i1 %.12

302:                                              ; preds = %298, %232
  %.pn173.pn.pn = phi { ptr, i32 } [ %.pn173.pn, %298 ], [ %233, %232 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #6
  br label %303

303:                                              ; preds = %302, %225
  %.pn173.pn.pn.pn = phi { ptr, i32 } [ %.pn173.pn.pn, %302 ], [ %226, %225 ]
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %18) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %18) #6
  br label %304

304:                                              ; preds = %303, %222, %37
  %.pn173.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn173.pn.pn.pn, %303 ], [ %.pn160.pn.pn.pn.pn.pn.pn.pn.pn.pn.pn, %222 ], [ %38, %37 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #6
  br label %305

305:                                              ; preds = %304, %30
  %.pn173.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn173.pn.pn.pn.pn, %304 ], [ %31, %30 ]
  call void @_ZN3JPH5ArrayIPKNS_15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValueENS_12STLAllocatorIS8_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn173.pn.pn.pn.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH24ContactConstraintManager13ManifoldCache19GetContactAllocatorEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::ContactConstraintManager::ContactAllocator") align 8, ptr noundef nonnull align 8 dereferenceable(81)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13StateRecorder12IsValidatingEv(ptr noundef nonnull align 8 dereferenceable(18)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH8StreamIn4ReadIjTnNSt9enable_ifIXsr3stdE23is_trivially_copyable_vIT_EEbE4typeELb1EEEvRS3_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #3 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(28) ptr @_ZN3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEE8KeyValue8GetValueEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #4 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3JPH14SubShapeIDPair7GetHashEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN3JPH24ContactConstraintManager14CachedManifold21sGetRequiredTotalSizeEi(i32 noundef) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNSt13__atomic_baseItEoREt(ptr noundef nonnull align 2 dereferenceable(2), i16 noundef zeroext) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNK3JPH13StateRecorder10IsLastPartEv(ptr noundef nonnull align 8 dereferenceable(18)) local_unnamed_addr #4 align 2

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { inlinehint mustprogress 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 = { 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, !16, i64 80}
!6 = !{!"_ZTSN3JPH24ContactConstraintManager13ManifoldCacheE", !7, i64 0, !14, i64 16, !15, i64 48, !16, i64 80}
!7 = !{!"_ZTSN3JPH13LFHMAllocatorE", !8, i64 0, !11, i64 8, !12, i64 12}
!8 = !{!"any pointer", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"_ZTSSt6atomicIjE", !13, i64 0}
!13 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!14 = !{!"_ZTSN3JPH15LockFreeHashMapINS_14SubShapeIDPairENS_24ContactConstraintManager14CachedManifoldEEE", !8, i64 0, !12, i64 8, !8, i64 16, !11, i64 24, !11, i64 28}
!15 = !{!"_ZTSN3JPH15LockFreeHashMapINS_8BodyPairENS_24ContactConstraintManager14CachedBodyPairEEE", !8, i64 0, !12, i64 8, !8, i64 16, !11, i64 24, !11, i64 28}
!16 = !{!"bool", !9, i64 0}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{i64 2159363306}
!20 = !{!11, !11, i64 0}
!21 = !{!8, !8, i64 0}
!22 = !{!23, !23, i64 0}
!23 = !{!"vtable pointer", !10, i64 0}
!24 = !{i64 0, i64 4, !20, i64 4, i64 4, !20, i64 8, i64 4, !20, i64 12, i64 4, !20}
!25 = !{!26, !26, i64 0}
!26 = !{!"short", !9, i64 0}
!27 = !{!28, !26, i64 18}
!28 = !{!"_ZTSN3JPH24ContactConstraintManager14CachedManifoldE", !11, i64 0, !29, i64 4, !31, i64 16, !26, i64 18, !9, i64 20}
!29 = !{!"_ZTSN3JPH6Float3E", !30, i64 0, !30, i64 4, !30, i64 8}
!30 = !{!"float", !9, i64 0}
!31 = !{!"_ZTSSt6atomicItE", !32, i64 0}
!32 = !{!"_ZTSSt13__atomic_baseItE", !26, i64 0}
!33 = !{!28, !11, i64 0}
!34 = distinct !{!34, !35}
!35 = !{!"llvm.loop.mustprogress"}
!36 = distinct !{!36, !35}
!37 = !{!38, !11, i64 24}
!38 = !{!"_ZTSN3JPH24ContactConstraintManager14CachedBodyPairE", !29, i64 0, !29, i64 12, !11, i64 24}
!39 = distinct !{!39, !35}
!40 = distinct !{!40, !35}
!41 = distinct !{!41, !35}
!42 = distinct !{!42, !35}


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