; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Physics (PhysicsScene)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::unordered_map.129" = type { %"class.std::_Hashtable.130" }
%"class.std::_Hashtable.130" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Array.28" = type { i64, i64, ptr }
%"class.JPH::BodyLockRead" = type { %"class.JPH::BodyLockBase" }
%"class.JPH::BodyLockBase" = type { ptr, ptr, ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.13", %"class.JPH::RefConst.14" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst", i32, i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst.14" = type { ptr }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.16", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst.16" = type { ptr }
%"class.JPH::Array.32" = type { i64, i64, ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Ref.124" = type { ptr }
%"class.JPH::PhysicsScene" = type { %"class.JPH::RefTarget", %"class.JPH::Array", %"class.JPH::Array.6", %"class.JPH::Array.9" }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::Array.6" = type { i64, i64, ptr }
%"class.JPH::Array.9" = type { i64, i64, ptr }
%"struct.std::pair" = type { %"class.JPH::BodyID", i32 }
%"class.JPH::Ref.147" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [89 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12PhysicsScene7AddBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(256)) #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12PhysicsScene11AddSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(111)) #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH10StaticCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH12PhysicsScene17FromPhysicsSystemEPKNS_13PhysicsSystemE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef %1) #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::unordered_map.129", align 8
  %6 = alloca %"class.JPH::BodyID", align 4
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca %"class.JPH::Array.28", align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.JPH::BodyLockRead", align 8
  %16 = alloca ptr, align 8
  %17 = alloca %"class.JPH::BodyCreationSettings", align 16
  %18 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %19 = alloca %"class.JPH::Array.32", align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %26 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %27 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %28 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %29 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %30 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %31 = alloca %"struct.JPH::AssertLastParam", align 1
  %32 = alloca %"class.JPH::Ref.124", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %33 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr %5) #6
  call void @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #6
  invoke void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %34 unwind label %53

34:                                               ; preds = %2
  %35 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 4 dereferenceable(4) %6)
          to label %36 unwind label %53

36:                                               ; preds = %34
  store i32 -1, ptr %35, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #6
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3JPH13PhysicsSystem9GetBodiesERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 16 dereferenceable(1140) %37, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %38 unwind label %57

38:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = invoke noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem20GetBodyLockInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1140) %39)
          to label %41 unwind label %61

41:                                               ; preds = %38
  store ptr %40, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  store ptr %9, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = invoke noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
          to label %44 unwind label %65

44:                                               ; preds = %41
  store ptr %43, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %45 = load ptr, ptr %11, align 8, !tbaa !5
  %46 = invoke noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %45)
          to label %47 unwind label %69

47:                                               ; preds = %44
  store ptr %46, ptr %13, align 8, !tbaa !5
  br label %48

48:                                               ; preds = %134, %47
  %49 = load ptr, ptr %12, align 8, !tbaa !5
  %50 = load ptr, ptr %13, align 8, !tbaa !5
  %51 = icmp ne ptr %49, %50
  br i1 %51, label %73, label %52

52:                                               ; preds = %48
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %141

53:                                               ; preds = %34, %2
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %7, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #6
  br label %269

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

61:                                               ; preds = %38
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %7, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %8, align 4
  br label %267

65:                                               ; preds = %41
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %7, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %8, align 4
  br label %140

69:                                               ; preds = %44
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %7, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %8, align 4
  br label %139

73:                                               ; preds = %48
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %74 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %74, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %75 = load ptr, ptr %10, align 8, !tbaa !5
  %76 = load ptr, ptr %14, align 8, !tbaa !5
  invoke void @_ZN3JPH12BodyLockReadCI2NS_12BodyLockBaseILb0EKNS_4BodyEEEERKNS_17BodyLockInterfaceERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %15, ptr noundef nonnull align 8 dereferenceable(16) %75, ptr noundef nonnull align 4 dereferenceable(4) %76)
          to label %77 unwind label %97

77:                                               ; preds = %73
  %78 = invoke noundef zeroext i1 @_ZNK3JPH12BodyLockBaseILb0EKNS_4BodyEE9SucceededEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %79 unwind label %101

79:                                               ; preds = %77
  br i1 %78, label %80, label %133

80:                                               ; preds = %79
  %81 = getelementptr inbounds %"class.JPH::PhysicsScene", ptr %33, i32 0, i32 1
  %82 = invoke noundef i64 @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %81)
          to label %83 unwind label %101

83:                                               ; preds = %80
  %84 = trunc i64 %82 to i32
  %85 = load ptr, ptr %14, align 8, !tbaa !5
  %86 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEEixERS8_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 4 dereferenceable(4) %85)
          to label %87 unwind label %101

87:                                               ; preds = %83
  store i32 %84, ptr %86, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #6
  %88 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZNK3JPH12BodyLockBaseILb0EKNS_4BodyEE7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(24) %15)
          to label %89 unwind label %105

89:                                               ; preds = %87
  store ptr %88, ptr %16, align 8, !tbaa !5
  %90 = load ptr, ptr %16, align 8, !tbaa !5
  %91 = invoke noundef zeroext i1 @_ZNK3JPH4Body11IsRigidBodyEv(ptr noundef nonnull align 16 dereferenceable(122) %90)
          to label %92 unwind label %105

92:                                               ; preds = %89
  br i1 %91, label %93, label %118

93:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 256, ptr %17) #6
  %94 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZNK3JPH4Body23GetBodyCreationSettingsEv(ptr dead_on_unwind writable sret(%"class.JPH::BodyCreationSettings") align 16 %17, ptr noundef nonnull align 16 dereferenceable(122) %94)
          to label %95 unwind label %109

95:                                               ; preds = %93
  invoke void @_ZN3JPH12PhysicsScene7AddBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80) %33, ptr noundef nonnull align 16 dereferenceable(256) %17)
          to label %96 unwind label %113

96:                                               ; preds = %95
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #6
  br label %131

97:                                               ; preds = %73
  %98 = landingpad { ptr, i32 }
          cleanup
  %99 = extractvalue { ptr, i32 } %98, 0
  store ptr %99, ptr %7, align 8
  %100 = extractvalue { ptr, i32 } %98, 1
  store i32 %100, ptr %8, align 4
  br label %138

101:                                              ; preds = %83, %80, %77
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %7, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %8, align 4
  br label %137

105:                                              ; preds = %89, %87
  %106 = landingpad { ptr, i32 }
          cleanup
  %107 = extractvalue { ptr, i32 } %106, 0
  store ptr %107, ptr %7, align 8
  %108 = extractvalue { ptr, i32 } %106, 1
  store i32 %108, ptr %8, align 4
  br label %132

109:                                              ; preds = %93
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %7, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %8, align 4
  br label %117

113:                                              ; preds = %95
  %114 = landingpad { ptr, i32 }
          cleanup
  %115 = extractvalue { ptr, i32 } %114, 0
  store ptr %115, ptr %7, align 8
  %116 = extractvalue { ptr, i32 } %114, 1
  store i32 %116, ptr %8, align 4
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %17) #6
  br label %117

117:                                              ; preds = %113, %109
  call void @llvm.lifetime.end.p0(i64 256, ptr %17) #6
  br label %132

118:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 112, ptr %18) #6
  %119 = load ptr, ptr %16, align 8, !tbaa !5
  invoke void @_ZNK3JPH4Body27GetSoftBodyCreationSettingsEv(ptr dead_on_unwind writable sret(%"class.JPH::SoftBodyCreationSettings") align 16 %18, ptr noundef nonnull align 16 dereferenceable(122) %119)
          to label %120 unwind label %122

120:                                              ; preds = %118
  invoke void @_ZN3JPH12PhysicsScene11AddSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80) %33, ptr noundef nonnull align 16 dereferenceable(111) %18)
          to label %121 unwind label %126

121:                                              ; preds = %120
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %18) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr %18) #6
  br label %131

122:                                              ; preds = %118
  %123 = landingpad { ptr, i32 }
          cleanup
  %124 = extractvalue { ptr, i32 } %123, 0
  store ptr %124, ptr %7, align 8
  %125 = extractvalue { ptr, i32 } %123, 1
  store i32 %125, ptr %8, align 4
  br label %130

126:                                              ; preds = %120
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %7, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %8, align 4
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %18) #6
  br label %130

130:                                              ; preds = %126, %122
  call void @llvm.lifetime.end.p0(i64 112, ptr %18) #6
  br label %132

131:                                              ; preds = %121, %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %133

132:                                              ; preds = %130, %117, %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #6
  br label %137

133:                                              ; preds = %131, %79
  call void @_ZN3JPH12BodyLockBaseILb0EKNS_4BodyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %134

134:                                              ; preds = %133
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = getelementptr inbounds %"class.JPH::BodyID", ptr %135, i32 1
  store ptr %136, ptr %12, align 8, !tbaa !5
  br label %48

137:                                              ; preds = %132, %101
  call void @_ZN3JPH12BodyLockBaseILb0EKNS_4BodyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %138

138:                                              ; preds = %137, %97
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  br label %139

139:                                              ; preds = %138, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  br label %140

140:                                              ; preds = %139, %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  br label %267

141:                                              ; preds = %52
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNK3JPH13PhysicsSystem14GetConstraintsEv(ptr dead_on_unwind writable sret(%"class.JPH::Array.32") align 8 %19, ptr noundef nonnull align 16 dereferenceable(1140) %142)
          to label %143 unwind label %155

143:                                              ; preds = %141
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #6
  store ptr %19, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #6
  %144 = load ptr, ptr %20, align 8, !tbaa !5
  %145 = invoke noundef ptr @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %144)
          to label %146 unwind label %159

146:                                              ; preds = %143
  store ptr %145, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #6
  %147 = load ptr, ptr %20, align 8, !tbaa !5
  %148 = invoke noundef ptr @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %147)
          to label %149 unwind label %163

149:                                              ; preds = %146
  store ptr %148, ptr %22, align 8, !tbaa !5
  br label %150

150:                                              ; preds = %259, %149
  %151 = load ptr, ptr %21, align 8, !tbaa !5
  %152 = load ptr, ptr %22, align 8, !tbaa !5
  %153 = icmp ne ptr %151, %152
  br i1 %153, label %167, label %154

154:                                              ; preds = %150
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  br label %265

155:                                              ; preds = %141
  %156 = landingpad { ptr, i32 }
          cleanup
  %157 = extractvalue { ptr, i32 } %156, 0
  store ptr %157, ptr %7, align 8
  %158 = extractvalue { ptr, i32 } %156, 1
  store i32 %158, ptr %8, align 4
  br label %266

159:                                              ; preds = %143
  %160 = landingpad { ptr, i32 }
          cleanup
  %161 = extractvalue { ptr, i32 } %160, 0
  store ptr %161, ptr %7, align 8
  %162 = extractvalue { ptr, i32 } %160, 1
  store i32 %162, ptr %8, align 4
  br label %264

163:                                              ; preds = %146
  %164 = landingpad { ptr, i32 }
          cleanup
  %165 = extractvalue { ptr, i32 } %164, 0
  store ptr %165, ptr %7, align 8
  %166 = extractvalue { ptr, i32 } %164, 1
  store i32 %166, ptr %8, align 4
  br label %263

167:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #6
  %168 = load ptr, ptr %21, align 8, !tbaa !5
  %169 = invoke noundef ptr @_ZNK3JPH3RefINS_10ConstraintEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %168)
          to label %170 unwind label %214

170:                                              ; preds = %167
  store ptr %169, ptr %23, align 8, !tbaa !5
  %171 = load ptr, ptr %23, align 8, !tbaa !5
  %172 = load ptr, ptr %171, align 8, !tbaa !11
  %173 = getelementptr inbounds ptr, ptr %172, i64 2
  %174 = load ptr, ptr %173, align 8
  %175 = invoke noundef i32 %174(ptr noundef nonnull align 8 dereferenceable(32) %171)
          to label %176 unwind label %214

176:                                              ; preds = %170
  %177 = icmp eq i32 %175, 1
  br i1 %177, label %178, label %258

178:                                              ; preds = %176
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #6
  %179 = load ptr, ptr %23, align 8, !tbaa !5
  store ptr %179, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #6
  %180 = load ptr, ptr %24, align 8, !tbaa !5
  %181 = invoke noundef ptr @_ZNK3JPH17TwoBodyConstraint8GetBody1Ev(ptr noundef nonnull align 8 dereferenceable(48) %180)
          to label %182 unwind label %218

182:                                              ; preds = %178
  %183 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %181)
          to label %184 unwind label %218

184:                                              ; preds = %182
  %185 = invoke ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 4 dereferenceable(4) %183)
          to label %186 unwind label %218

186:                                              ; preds = %184
  %187 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %26, i32 0, i32 0
  %188 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %187, i32 0, i32 0
  store ptr %185, ptr %188, align 8
  call void @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEC2ERKNS_14_Node_iteratorIS5_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %26) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %189 = load ptr, ptr %24, align 8, !tbaa !5
  %190 = invoke noundef ptr @_ZNK3JPH17TwoBodyConstraint8GetBody2Ev(ptr noundef nonnull align 8 dereferenceable(48) %189)
          to label %191 unwind label %222

191:                                              ; preds = %186
  %192 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %190)
          to label %193 unwind label %222

193:                                              ; preds = %191
  %194 = invoke ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %5, ptr noundef nonnull align 4 dereferenceable(4) %192)
          to label %195 unwind label %222

195:                                              ; preds = %193
  %196 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %28, i32 0, i32 0
  %197 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %196, i32 0, i32 0
  store ptr %194, ptr %197, align 8
  call void @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEC2ERKNS_14_Node_iteratorIS5_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %28) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %198

198:                                              ; preds = %195
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %199 = call ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %5) #6
  %200 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %29, i32 0, i32 0
  %201 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %200, i32 0, i32 0
  store ptr %199, ptr %201, align 8
  %202 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN3JPH6BodyIDEjELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(8) %29) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #6
  br i1 %202, label %203, label %208

203:                                              ; preds = %198
  %204 = call ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %5) #6
  %205 = getelementptr inbounds %"struct.std::__detail::_Node_iterator", ptr %30, i32 0, i32 0
  %206 = getelementptr inbounds %"struct.std::__detail::_Node_iterator_base", ptr %205, i32 0, i32 0
  store ptr %204, ptr %206, align 8
  %207 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN3JPH6BodyIDEjELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %27, ptr noundef nonnull align 8 dereferenceable(8) %30) #6
  br i1 %207, label %211, label %208

208:                                              ; preds = %203, %198
  %209 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.2, ptr noundef @.str.3, i32 noundef 253)
          to label %210 unwind label %226

210:                                              ; preds = %208
  br label %211

211:                                              ; preds = %210, %203
  %212 = phi i1 [ false, %203 ], [ %209, %210 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br i1 %212, label %213, label %230

213:                                              ; preds = %211
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !13
  br label %230

214:                                              ; preds = %170, %167
  %215 = landingpad { ptr, i32 }
          cleanup
  %216 = extractvalue { ptr, i32 } %215, 0
  store ptr %216, ptr %7, align 8
  %217 = extractvalue { ptr, i32 } %215, 1
  store i32 %217, ptr %8, align 4
  br label %262

218:                                              ; preds = %184, %182, %178
  %219 = landingpad { ptr, i32 }
          cleanup
  %220 = extractvalue { ptr, i32 } %219, 0
  store ptr %220, ptr %7, align 8
  %221 = extractvalue { ptr, i32 } %219, 1
  store i32 %221, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #6
  br label %257

222:                                              ; preds = %193, %191, %186
  %223 = landingpad { ptr, i32 }
          cleanup
  %224 = extractvalue { ptr, i32 } %223, 0
  store ptr %224, ptr %7, align 8
  %225 = extractvalue { ptr, i32 } %223, 1
  store i32 %225, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  br label %256

226:                                              ; preds = %208
  %227 = landingpad { ptr, i32 }
          cleanup
  %228 = extractvalue { ptr, i32 } %227, 0
  store ptr %228, ptr %7, align 8
  %229 = extractvalue { ptr, i32 } %227, 1
  store i32 %229, ptr %8, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  br label %256

230:                                              ; preds = %213, %211
  br label %231

231:                                              ; preds = %230
  br label %232

232:                                              ; preds = %231
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  %233 = load ptr, ptr %23, align 8, !tbaa !5
  %234 = load ptr, ptr %233, align 8, !tbaa !11
  %235 = getelementptr inbounds ptr, ptr %234, i64 15
  %236 = load ptr, ptr %235, align 8
  invoke void %236(ptr dead_on_unwind writable sret(%"class.JPH::Ref.124") align 8 %32, ptr noundef nonnull align 8 dereferenceable(32) %233)
          to label %237 unwind label %247

237:                                              ; preds = %232
  %238 = invoke noundef ptr @_ZN3JPH10StaticCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8) %32)
          to label %239 unwind label %251

239:                                              ; preds = %237
  %240 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %25) #6
  %241 = getelementptr inbounds %"struct.std::pair", ptr %240, i32 0, i32 1
  %242 = load i32, ptr %241, align 4, !tbaa !14
  %243 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %27) #6
  %244 = getelementptr inbounds %"struct.std::pair", ptr %243, i32 0, i32 1
  %245 = load i32, ptr %244, align 4, !tbaa !14
  invoke void @_ZN3JPH12PhysicsScene13AddConstraintEPKNS_25TwoBodyConstraintSettingsEjj(ptr noundef nonnull align 8 dereferenceable(80) %33, ptr noundef %238, i32 noundef %242, i32 noundef %245)
          to label %246 unwind label %251

246:                                              ; preds = %239
  call void @_ZN3JPH3RefINS_18ConstraintSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %258

247:                                              ; preds = %232
  %248 = landingpad { ptr, i32 }
          cleanup
  %249 = extractvalue { ptr, i32 } %248, 0
  store ptr %249, ptr %7, align 8
  %250 = extractvalue { ptr, i32 } %248, 1
  store i32 %250, ptr %8, align 4
  br label %255

251:                                              ; preds = %239, %237
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %7, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %8, align 4
  call void @_ZN3JPH3RefINS_18ConstraintSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %32) #6
  br label %255

255:                                              ; preds = %251, %247
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  br label %256

256:                                              ; preds = %255, %226, %222
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #6
  br label %257

257:                                              ; preds = %256, %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #6
  br label %262

258:                                              ; preds = %246, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %259

259:                                              ; preds = %258
  %260 = load ptr, ptr %21, align 8, !tbaa !5
  %261 = getelementptr inbounds %"class.JPH::Ref.147", ptr %260, i32 1
  store ptr %261, ptr %21, align 8, !tbaa !5
  br label %150

262:                                              ; preds = %257, %214
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #6
  br label %263

263:                                              ; preds = %262, %163
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #6
  br label %264

264:                                              ; preds = %263, %159
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #6
  call void @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  br label %266

265:                                              ; preds = %154
  call void @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  call void @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #6
  ret void

266:                                              ; preds = %264, %155
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  br label %267

267:                                              ; preds = %266, %140, %61
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %268

268:                                              ; preds = %267, %57
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #6
  br label %269

269:                                              ; preds = %268, %53
  call void @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %5) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr %5) #6
  br label %270

270:                                              ; preds = %269
  %271 = load ptr, ptr %7, align 8
  %272 = load i32, ptr %8, align 4
  %273 = insertvalue { ptr, i32 } poison, ptr %271, 0
  %274 = insertvalue { ptr, i32 } %273, i32 %272, 1
  resume { ptr, i32 } %274
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem9GetBodiesERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 16 dereferenceable(1140), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH12BodyLockReadCI2NS_12BodyLockBaseILb0EKNS_4BodyEEEERKNS_17BodyLockInterfaceERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(122) ptr @_ZNK3JPH12BodyLockBaseILb0EKNS_4BodyEE7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

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

declare void @_ZNK3JPH4Body23GetBodyCreationSettingsEv(ptr dead_on_unwind writable sret(%"class.JPH::BodyCreationSettings") align 16, ptr noundef nonnull align 16 dereferenceable(122)) #5

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

declare void @_ZNK3JPH4Body27GetSoftBodyCreationSettingsEv(ptr dead_on_unwind writable sret(%"class.JPH::SoftBodyCreationSettings") align 16, ptr noundef nonnull align 16 dereferenceable(122)) #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem14GetConstraintsEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array.32") align 8, ptr noundef nonnull align 16 dereferenceable(1140)) #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{i64 2159210459}
!14 = !{!15, !10, i64 4}
!15 = !{!"_ZTSSt4pairIKN3JPH6BodyIDEjE", !16, i64 0, !10, i64 4}
!16 = !{!"_ZTSN3JPH6BodyIDE", !10, i64 0}


; 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.std::unordered_map.129" = type { %"class.std::_Hashtable.130" }
%"class.std::_Hashtable.130" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::Array.28" = type { i64, i64, ptr }
%"class.JPH::BodyLockRead" = type { %"class.JPH::BodyLockBase" }
%"class.JPH::BodyLockBase" = type { ptr, ptr, ptr }
%"class.JPH::BodyCreationSettings" = type { %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Vec3", i64, i16, %"class.JPH::CollisionGroup", i8, i8, i8, i8, i8, i8, i8, i8, i8, i8, float, float, float, float, float, float, float, i32, i32, i8, float, %"class.JPH::MassProperties", %"class.JPH::RefConst.13", %"class.JPH::RefConst.14" }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.12 }
%union.anon.12 = type { <4 x float> }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::CollisionGroup" = type { %"class.JPH::RefConst", i32, i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::MassProperties" = type { float, %"class.JPH::Mat44" }
%"class.JPH::Mat44" = type { [4 x %"class.JPH::Vec4"] }
%"class.JPH::RefConst.13" = type { ptr }
%"class.JPH::RefConst.14" = type { ptr }
%"class.JPH::SoftBodyCreationSettings" = type <{ %"class.JPH::RefConst.16", [8 x i8], %"class.JPH::Vec3", %"class.JPH::Quat", i64, i16, [6 x i8], %"class.JPH::CollisionGroup", i32, float, float, float, float, float, float, i8, i8, i8, i8 }>
%"class.JPH::RefConst.16" = type { ptr }
%"class.JPH::Array.32" = type { i64, i64, ptr }
%"struct.std::__detail::_Node_const_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"class.JPH::Ref.124" = type { ptr }

@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [89 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12PhysicsScene7AddBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(256)) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH12PhysicsScene11AddSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef nonnull align 16 dereferenceable(111)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH10StaticCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH12PhysicsScene17FromPhysicsSystemEPKNS_13PhysicsSystemE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef %1) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::unordered_map.129", align 8
  %4 = alloca %"class.JPH::BodyID", align 4
  %5 = alloca %"class.JPH::Array.28", align 8
  %6 = alloca %"class.JPH::BodyLockRead", align 8
  %7 = alloca %"class.JPH::BodyCreationSettings", align 16
  %8 = alloca %"class.JPH::SoftBodyCreationSettings", align 16
  %9 = alloca %"class.JPH::Array.32", align 8
  %10 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %11 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %12 = alloca %"struct.std::__detail::_Node_const_iterator", align 8
  %13 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %14 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %15 = alloca %"struct.std::__detail::_Node_iterator", align 8
  %16 = alloca %"class.JPH::Ref.124", align 8
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #6
  call void @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #6
  call void @_ZN3JPH6BodyIDC2Ev(ptr noundef nonnull align 4 dereferenceable(4) %4)
  %17 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEEixEOS1_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
          to label %18 unwind label %24

18:                                               ; preds = %2
  store i32 -1, ptr %17, align 4, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #6
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  invoke void @_ZNK3JPH13PhysicsSystem9GetBodiesERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 16 dereferenceable(1140) %1, ptr noundef nonnull align 8 dereferenceable(24) %5)
          to label %19 unwind label %26

19:                                               ; preds = %18
  %20 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNK3JPH13PhysicsSystem20GetBodyLockInterfaceEv(ptr noundef nonnull align 16 dereferenceable(1140) %1)
  %21 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %22 = call noundef ptr @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %5)
  %.not59 = icmp eq ptr %21, %22
  br i1 %.not59, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %19
  %23 = getelementptr inbounds i8, ptr %0, i64 8
  br label %28

._crit_edge:                                      ; preds = %61, %19
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  invoke void @_ZNK3JPH13PhysicsSystem14GetConstraintsEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Array.32") align 8 %9, ptr noundef nonnull align 16 dereferenceable(1140) %1)
          to label %65 unwind label %68

24:                                               ; preds = %2
  %25 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #6
  br label %129

26:                                               ; preds = %18
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %128

28:                                               ; preds = %.lr.ph, %61
  %.04160 = phi ptr [ %21, %.lr.ph ], [ %62, %61 ]
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  invoke void @_ZN3JPH12BodyLockReadCI2NS_12BodyLockBaseILb0EKNS_4BodyEEEERKNS_17BodyLockInterfaceERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 4 dereferenceable(4) %.04160)
          to label %29 unwind label %42

29:                                               ; preds = %28
  %30 = call noundef zeroext i1 @_ZNK3JPH12BodyLockBaseILb0EKNS_4BodyEE9SucceededEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
  br i1 %30, label %31, label %61

31:                                               ; preds = %29
  %32 = call noundef i64 @_ZNK3JPH5ArrayINS_20BodyCreationSettingsENS_12STLAllocatorIS1_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23)
  %33 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEEixERS8_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %.04160)
          to label %34 unwind label %44

34:                                               ; preds = %31
  %35 = trunc i64 %32 to i32
  store i32 %35, ptr %33, align 4, !tbaa !5
  %36 = invoke noundef nonnull align 16 dereferenceable(122) ptr @_ZNK3JPH12BodyLockBaseILb0EKNS_4BodyEE7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(24) %6)
          to label %37 unwind label %46

37:                                               ; preds = %34
  %38 = call noundef zeroext i1 @_ZNK3JPH4Body11IsRigidBodyEv(ptr noundef nonnull align 16 dereferenceable(122) %36)
  br i1 %38, label %39, label %53

39:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 256, ptr nonnull %7) #6
  invoke void @_ZNK3JPH4Body23GetBodyCreationSettingsEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::BodyCreationSettings") align 16 %7, ptr noundef nonnull align 16 dereferenceable(122) %36)
          to label %40 unwind label %48

40:                                               ; preds = %39
  invoke void @_ZN3JPH12PhysicsScene7AddBodyERKNS_20BodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 16 dereferenceable(256) %7)
          to label %41 unwind label %50

41:                                               ; preds = %40
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #6
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #6
  br label %61

42:                                               ; preds = %28
  %43 = landingpad { ptr, i32 }
          cleanup
  br label %64

44:                                               ; preds = %31
  %45 = landingpad { ptr, i32 }
          cleanup
  br label %63

46:                                               ; preds = %34
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %63

48:                                               ; preds = %39
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %52

50:                                               ; preds = %40
  %51 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH20BodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(256) %7) #6
  br label %52

52:                                               ; preds = %50, %48
  %.pn51 = phi { ptr, i32 } [ %51, %50 ], [ %49, %48 ]
  call void @llvm.lifetime.end.p0(i64 256, ptr nonnull %7) #6
  br label %63

53:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %8) #6
  invoke void @_ZNK3JPH4Body27GetSoftBodyCreationSettingsEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::SoftBodyCreationSettings") align 16 %8, ptr noundef nonnull align 16 dereferenceable(122) %36)
          to label %54 unwind label %56

54:                                               ; preds = %53
  invoke void @_ZN3JPH12PhysicsScene11AddSoftBodyERKNS_24SoftBodyCreationSettingsE(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull align 16 dereferenceable(111) %8)
          to label %55 unwind label %58

55:                                               ; preds = %54
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %8) #6
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #6
  br label %61

56:                                               ; preds = %53
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %60

58:                                               ; preds = %54
  %59 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH24SoftBodyCreationSettingsD2Ev(ptr noundef nonnull align 16 dereferenceable(111) %8) #6
  br label %60

60:                                               ; preds = %58, %56
  %.pn49 = phi { ptr, i32 } [ %59, %58 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %8) #6
  br label %63

61:                                               ; preds = %41, %55, %29
  call void @_ZN3JPH12BodyLockBaseILb0EKNS_4BodyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  %62 = getelementptr inbounds i8, ptr %.04160, i64 4
  %.not = icmp eq ptr %62, %22
  br i1 %.not, label %._crit_edge, label %28

63:                                               ; preds = %46, %52, %60, %44
  %.pn51.pn.pn = phi { ptr, i32 } [ %45, %44 ], [ %.pn51, %52 ], [ %.pn49, %60 ], [ %47, %46 ]
  call void @_ZN3JPH12BodyLockBaseILb0EKNS_4BodyEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %64

64:                                               ; preds = %63, %42
  %.pn51.pn.pn.pn = phi { ptr, i32 } [ %.pn51.pn.pn, %63 ], [ %43, %42 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %128

65:                                               ; preds = %._crit_edge
  %66 = call noundef ptr @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %67 = call noundef ptr @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9)
  %.not4361 = icmp eq ptr %66, %67
  br i1 %.not4361, label %._crit_edge65, label %.lr.ph64

._crit_edge65:                                    ; preds = %124, %65
  call void @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  call void @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #6
  ret void

68:                                               ; preds = %._crit_edge
  %69 = landingpad { ptr, i32 }
          cleanup
  br label %127

.lr.ph64:                                         ; preds = %65, %124
  %.04262 = phi ptr [ %125, %124 ], [ %66, %65 ]
  %70 = call noundef ptr @_ZNK3JPH3RefINS_10ConstraintEEcvPS1_Ev(ptr noundef nonnull align 8 dereferenceable(8) %.04262)
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %73 = load ptr, ptr %72, align 8
  %74 = invoke noundef i32 %73(ptr noundef nonnull align 8 dereferenceable(32) %70)
          to label %75 unwind label %95

75:                                               ; preds = %.lr.ph64
  %76 = icmp eq i32 %74, 1
  br i1 %76, label %77, label %124

77:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  %78 = call noundef ptr @_ZNK3JPH17TwoBodyConstraint8GetBody1Ev(ptr noundef nonnull align 8 dereferenceable(48) %70)
  %79 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %78)
  %80 = invoke ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %79)
          to label %81 unwind label %97

81:                                               ; preds = %77
  store ptr %80, ptr %11, align 8
  call void @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEC2ERKNS_14_Node_iteratorIS5_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  %82 = call noundef ptr @_ZNK3JPH17TwoBodyConstraint8GetBody2Ev(ptr noundef nonnull align 8 dereferenceable(48) %70)
  %83 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %82)
  %84 = invoke ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE4findERS8_(ptr noundef nonnull align 8 dereferenceable(56) %3, ptr noundef nonnull align 4 dereferenceable(4) %83)
          to label %85 unwind label %99

85:                                               ; preds = %81
  store ptr %84, ptr %13, align 8
  call void @_ZNSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEC2ERKNS_14_Node_iteratorIS5_Lb0ELb1EEE(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %13) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %86 = call ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  store ptr %86, ptr %14, align 8
  %87 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN3JPH6BodyIDEjELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %14) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #6
  br i1 %87, label %88, label %91

88:                                               ; preds = %85
  %89 = call ptr @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEE3endEv(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  store ptr %89, ptr %15, align 8
  %90 = call noundef zeroext i1 @_ZNSt8__detailneERKNS_19_Node_iterator_baseISt4pairIKN3JPH6BodyIDEjELb1EEES8_(ptr noundef nonnull align 8 dereferenceable(8) %12, ptr noundef nonnull align 8 dereferenceable(8) %15) #6
  br i1 %90, label %.critedge, label %91

91:                                               ; preds = %88, %85
  %92 = invoke noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.2, ptr noundef nonnull @.str.3, i32 noundef 253)
          to label %93 unwind label %101

93:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br i1 %92, label %94, label %103

94:                                               ; preds = %93
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #6, !srcloc !11
  br label %103

95:                                               ; preds = %.lr.ph64
  %96 = landingpad { ptr, i32 }
          cleanup
  br label %126

97:                                               ; preds = %77
  %98 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  br label %123

99:                                               ; preds = %81
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  br label %122

101:                                              ; preds = %91
  %102 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %122

.critedge:                                        ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %103

103:                                              ; preds = %.critedge, %94, %93
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #6
  %104 = load ptr, ptr %70, align 8, !tbaa !9
  %105 = getelementptr inbounds i8, ptr %104, i64 120
  %106 = load ptr, ptr %105, align 8
  invoke void %106(ptr dead_on_unwind nonnull writable sret(%"class.JPH::Ref.124") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %70)
          to label %107 unwind label %117

107:                                              ; preds = %103
  %108 = invoke noundef ptr @_ZN3JPH10StaticCastINS_25TwoBodyConstraintSettingsENS_18ConstraintSettingsETnNSt9enable_ifIXoosr3stdE12is_base_of_vIT_T0_Esr3stdE12is_base_of_vIS5_S4_EEbE4typeELb1EEEPS4_RKNS_3RefIS5_EE(ptr noundef nonnull align 8 dereferenceable(8) %16)
          to label %109 unwind label %119

109:                                              ; preds = %107
  %110 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #6
  %111 = getelementptr inbounds i8, ptr %110, i64 4
  %112 = load i32, ptr %111, align 4, !tbaa !12
  %113 = call noundef ptr @_ZNKSt8__detail20_Node_const_iteratorISt4pairIKN3JPH6BodyIDEjELb0ELb1EEptEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #6
  %114 = getelementptr inbounds i8, ptr %113, i64 4
  %115 = load i32, ptr %114, align 4, !tbaa !12
  invoke void @_ZN3JPH12PhysicsScene13AddConstraintEPKNS_25TwoBodyConstraintSettingsEjj(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef %108, i32 noundef %112, i32 noundef %115)
          to label %116 unwind label %119

116:                                              ; preds = %109
  call void @_ZN3JPH3RefINS_18ConstraintSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %124

117:                                              ; preds = %103
  %118 = landingpad { ptr, i32 }
          cleanup
  br label %121

119:                                              ; preds = %109, %107
  %120 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3JPH3RefINS_18ConstraintSettingsEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %16) #6
  br label %121

121:                                              ; preds = %119, %117
  %.pn = phi { ptr, i32 } [ %120, %119 ], [ %118, %117 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #6
  br label %122

122:                                              ; preds = %121, %101, %99
  %.pn.pn = phi { ptr, i32 } [ %.pn, %121 ], [ %102, %101 ], [ %100, %99 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #6
  br label %123

123:                                              ; preds = %122, %97
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %122 ], [ %98, %97 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  br label %126

124:                                              ; preds = %116, %75
  %125 = getelementptr inbounds i8, ptr %.04262, i64 8
  %.not43 = icmp eq ptr %125, %67
  br i1 %.not43, label %._crit_edge65, label %.lr.ph64

126:                                              ; preds = %123, %95
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %123 ], [ %96, %95 ]
  call void @_ZN3JPH5ArrayINS_3RefINS_10ConstraintEEENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  br label %127

127:                                              ; preds = %126, %68
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %126 ], [ %69, %68 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %128

128:                                              ; preds = %64, %127, %26
  %.pn51.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %27, %26 ], [ %.pn51.pn.pn.pn, %64 ], [ %.pn.pn.pn.pn.pn, %127 ]
  call void @_ZN3JPH5ArrayINS_6BodyIDENS_12STLAllocatorIS1_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #6
  br label %129

129:                                              ; preds = %128, %24
  %.pn51.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn51.pn.pn.pn.pn.pn, %128 ], [ %25, %24 ]
  call void @_ZNSt13unordered_mapIN3JPH6BodyIDEjSt4hashIS1_ESt8equal_toIS1_ENS0_12STLAllocatorISt4pairIKS1_jEEEED2Ev(ptr noundef nonnull align 8 dereferenceable(56) %3) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn51.pn.pn.pn.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem9GetBodiesERNS_5ArrayINS_6BodyIDENS_12STLAllocatorIS2_EEEE(ptr noundef nonnull align 16 dereferenceable(1140), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH12BodyLockReadCI2NS_12BodyLockBaseILb0EKNS_4BodyEEEERKNS_17BodyLockInterfaceERKNS_6BodyIDE(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(4)) unnamed_addr #4 align 2

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 16 dereferenceable(122) ptr @_ZNK3JPH12BodyLockBaseILb0EKNS_4BodyEE7GetBodyEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #4 align 2

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

declare void @_ZNK3JPH4Body23GetBodyCreationSettingsEv(ptr dead_on_unwind writable sret(%"class.JPH::BodyCreationSettings") align 16, ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #5

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

declare void @_ZNK3JPH4Body27GetSoftBodyCreationSettingsEv(ptr dead_on_unwind writable sret(%"class.JPH::SoftBodyCreationSettings") align 16, ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #5

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH13PhysicsSystem14GetConstraintsEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array.32") align 8, ptr noundef nonnull align 16 dereferenceable(1140)) local_unnamed_addr #1 align 2

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

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

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

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

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

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

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

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

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

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

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

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

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{i64 2159210459}
!12 = !{!13, !6, i64 4}
!13 = !{!"_ZTSSt4pairIKN3JPH6BodyIDEjE", !14, i64 0, !6, i64 4}
!14 = !{!"_ZTSN3JPH6BodyIDE", !6, i64 0}


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