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

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.15 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.15 = type { i64, [8 x i8] }
%"struct.JPH::AssertLastParam" = type { i8 }
%"struct.JPH::CollisionEstimationResult" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::StaticArray.39", [12 x i8] }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::StaticArray.39" = type { i32, [64 x %"struct.JPH::StaticArray<JPH::CollisionEstimationResult::Impulse, 64>::Storage"] }
%"struct.JPH::StaticArray<JPH::CollisionEstimationResult::Impulse, 64>::Storage" = type { [12 x i8] }
%"class.std::lock_guard" = type { ptr }
%"struct.ContactListenerTest::PredictedVelocity" = type { %"class.JPH::BodyID", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::BodyID" = type { i32 }
%class.ContactListenerTest = type { %class.Test, %"class.JPH::ContactListener", [5 x ptr], %"class.JPH::Mutex", %"class.JPH::Array" }
%class.Test = type { ptr, ptr, ptr, ptr, ptr, ptr, i8, %"class.std::unordered_map" }
%"class.std::unordered_map" = type { %"class.std::_Hashtable" }
%"class.std::_Hashtable" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"struct.std::__detail::_Hash_node_base" = type { ptr }
%"struct.std::__detail::_Prime_rehash_policy" = type { float, i64 }
%"class.JPH::ContactListener" = type { ptr }
%"class.JPH::Mutex" = type { %"class.std::mutex", %"class.std::thread::id" }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::thread::id" = type { i64 }
%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::ContactSettings" = type { float, float, float, float, float, float, i8, %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"struct.JPH::CollisionEstimationResult::Impulse" = type { float, float, float }

@_ZN3JPH5TraceE = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [99 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) #1 align 2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 16 dereferenceable(16)) #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ContactListenerTest22MakeBody5PartialSensorERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(2128), ptr noundef nonnull align 16 dereferenceable(64)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19ContactListenerTest14OnContactAddedERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr noundef nonnull align 16 dereferenceable(2128) %3, ptr noundef nonnull align 16 dereferenceable(64) %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca %"struct.JPH::AssertLastParam", align 1
  %12 = alloca %"struct.JPH::CollisionEstimationResult", align 16
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca %"class.std::__cxx11::basic_string", align 8
  %24 = alloca %"class.std::__cxx11::basic_string", align 8
  %25 = alloca %"class.std::lock_guard", align 8
  %26 = alloca %"struct.ContactListenerTest::PredictedVelocity", align 16
  %27 = alloca %"struct.ContactListenerTest::PredictedVelocity", align 16
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %28 = load ptr, ptr %6, align 8
  %29 = load ptr, ptr %7, align 8, !tbaa !5
  %30 = getelementptr inbounds %class.ContactListenerTest, ptr %28, i32 0, i32 2
  %31 = getelementptr inbounds [5 x ptr], ptr %30, i64 0, i64 0
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  %33 = icmp eq ptr %29, %32
  br i1 %33, label %40, label %34

34:                                               ; preds = %5
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %class.ContactListenerTest, ptr %28, i32 0, i32 2
  %37 = getelementptr inbounds [5 x ptr], ptr %36, i64 0, i64 0
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = icmp eq ptr %35, %38
  br i1 %39, label %40, label %53

40:                                               ; preds = %34, %5
  br label %41

41:                                               ; preds = %40
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.JPH::ContactSettings", ptr %42, i32 0, i32 1
  %44 = load float, ptr %43, align 4, !tbaa !9
  %45 = fcmp oeq float %44, 0.000000e+00
  br i1 %45, label %49, label %46

46:                                               ; preds = %41
  %47 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 120)
  br i1 %47, label %48, label %49

48:                                               ; preds = %46
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !14
  br label %49

49:                                               ; preds = %48, %46, %41
  br label %50

50:                                               ; preds = %49
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.JPH::ContactSettings", ptr %51, i32 0, i32 1
  store float 1.000000e+00, ptr %52, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %50, %34
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %9, align 8, !tbaa !5
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN19ContactListenerTest22MakeBody5PartialSensorERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(232) %28, ptr noundef nonnull align 16 dereferenceable(122) %54, ptr noundef nonnull align 16 dereferenceable(122) %55, ptr noundef nonnull align 16 dereferenceable(2128) %56, ptr noundef nonnull align 16 dereferenceable(64) %57)
  call void @llvm.lifetime.start.p0(i64 880, ptr %12) #7
  call void @_ZN3JPH25CollisionEstimationResultC2Ev(ptr noundef nonnull align 16 dereferenceable(868) %12) #7
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = load ptr, ptr %9, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %"class.JPH::ContactSettings", ptr %61, i32 0, i32 0
  %63 = load float, ptr %62, align 16, !tbaa !15
  %64 = load ptr, ptr %10, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.JPH::ContactSettings", ptr %64, i32 0, i32 1
  %66 = load float, ptr %65, align 4, !tbaa !9
  invoke void @_ZN3JPH25EstimateCollisionResponseERKNS_4BodyES2_RKNS_15ContactManifoldERNS_25CollisionEstimationResultEfffj(ptr noundef nonnull align 16 dereferenceable(122) %58, ptr noundef nonnull align 16 dereferenceable(122) %59, ptr noundef nonnull align 16 dereferenceable(2128) %60, ptr noundef nonnull align 16 dereferenceable(868) %12, float noundef %63, float noundef %66, float noundef 1.000000e+00, i32 noundef 10)
          to label %67 unwind label %80

67:                                               ; preds = %53
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %68 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 6
  store ptr %68, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %69 = load ptr, ptr %16, align 8, !tbaa !5
  %70 = invoke noundef ptr @_ZN3JPH11StaticArrayINS_25CollisionEstimationResult7ImpulseELj64EE5beginEv(ptr noundef nonnull align 4 dereferenceable(772) %69)
          to label %71 unwind label %84

71:                                               ; preds = %67
  store ptr %70, ptr %17, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %72 = load ptr, ptr %16, align 8, !tbaa !5
  %73 = invoke noundef ptr @_ZN3JPH11StaticArrayINS_25CollisionEstimationResult7ImpulseELj64EE3endEv(ptr noundef nonnull align 4 dereferenceable(772) %72)
          to label %74 unwind label %88

74:                                               ; preds = %71
  store ptr %73, ptr %18, align 8, !tbaa !5
  br label %75

75:                                               ; preds = %109, %74
  %76 = load ptr, ptr %17, align 8, !tbaa !5
  %77 = load ptr, ptr %18, align 8, !tbaa !5
  %78 = icmp ne ptr %76, %77
  br i1 %78, label %92, label %79

79:                                               ; preds = %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %123

80:                                               ; preds = %53
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %13, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %14, align 4
  br label %219

84:                                               ; preds = %67
  %85 = landingpad { ptr, i32 }
          cleanup
  %86 = extractvalue { ptr, i32 } %85, 0
  store ptr %86, ptr %13, align 8
  %87 = extractvalue { ptr, i32 } %85, 1
  store i32 %87, ptr %14, align 4
  br label %122

88:                                               ; preds = %71
  %89 = landingpad { ptr, i32 }
          cleanup
  %90 = extractvalue { ptr, i32 } %89, 0
  store ptr %90, ptr %13, align 8
  %91 = extractvalue { ptr, i32 } %89, 1
  store i32 %91, ptr %14, align 4
  br label %121

92:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %93 = load ptr, ptr %17, align 8, !tbaa !5
  store ptr %93, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  %94 = load ptr, ptr %19, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult::Impulse", ptr %94, i32 0, i32 0
  %96 = load float, ptr %95, align 4, !tbaa !16
  %97 = fpext float %96 to double
  %98 = load ptr, ptr %19, align 8, !tbaa !5
  %99 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult::Impulse", ptr %98, i32 0, i32 1
  %100 = load float, ptr %99, align 4, !tbaa !18
  %101 = fpext float %100 to double
  %102 = load ptr, ptr %19, align 8, !tbaa !5
  %103 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult::Impulse", ptr %102, i32 0, i32 2
  %104 = load float, ptr %103, align 4, !tbaa !19
  %105 = fpext float %104 to double
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, ptr noundef @.str.5, double noundef %97, double noundef %101, double noundef %105)
          to label %106 unwind label %112

106:                                              ; preds = %92
  %107 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEpLERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %15, ptr noundef nonnull align 8 dereferenceable(32) %20)
          to label %108 unwind label %116

108:                                              ; preds = %106
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult::Impulse", ptr %110, i32 1
  store ptr %111, ptr %17, align 8, !tbaa !5
  br label %75

112:                                              ; preds = %92
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %13, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %14, align 4
  br label %120

116:                                              ; preds = %106
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %13, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %14, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  br label %120

120:                                              ; preds = %116, %112
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %121

121:                                              ; preds = %120, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %122

122:                                              ; preds = %121, %84
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %218

123:                                              ; preds = %79
  %124 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %125)
          to label %127 unwind label %171

127:                                              ; preds = %123
  %128 = invoke noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %126)
          to label %129 unwind label %171

129:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 32, ptr %21) #7
  %130 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 0
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 16 dereferenceable(16) %130)
          to label %131 unwind label %175

131:                                              ; preds = %129
  %132 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %22) #7
  %133 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 1
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 16 dereferenceable(16) %133)
          to label %134 unwind label %179

134:                                              ; preds = %131
  %135 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %136)
          to label %138 unwind label %183

138:                                              ; preds = %134
  %139 = invoke noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %137)
          to label %140 unwind label %183

140:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 32, ptr %23) #7
  %141 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 2
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %23, ptr noundef nonnull align 16 dereferenceable(16) %141)
          to label %142 unwind label %187

142:                                              ; preds = %140
  %143 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %24) #7
  %144 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 3
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %24, ptr noundef nonnull align 16 dereferenceable(16) %144)
          to label %145 unwind label %191

145:                                              ; preds = %142
  %146 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  %147 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  invoke void (ptr, ...) %124(ptr noundef @.str.6, i32 noundef %128, ptr noundef %132, ptr noundef %135, i32 noundef %139, ptr noundef %143, ptr noundef %146, ptr noundef %147)
          to label %148 unwind label %195

148:                                              ; preds = %145
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %149 = getelementptr inbounds %class.ContactListenerTest, ptr %28, i32 0, i32 3
  invoke void @_ZNSt10lock_guardIN3JPH5MutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %25, ptr noundef nonnull align 8 dereferenceable(48) %149)
          to label %150 unwind label %204

150:                                              ; preds = %148
  %151 = getelementptr inbounds %class.ContactListenerTest, ptr %28, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %26) #7
  %152 = getelementptr inbounds %"struct.ContactListenerTest::PredictedVelocity", ptr %26, i32 0, i32 0
  %153 = load ptr, ptr %7, align 8, !tbaa !5
  %154 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %153)
          to label %155 unwind label %208

155:                                              ; preds = %150
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %152, ptr align 4 %154, i64 4, i1 false), !tbaa.struct !20
  %156 = getelementptr inbounds %"struct.ContactListenerTest::PredictedVelocity", ptr %26, i32 0, i32 1
  %157 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %156, ptr align 16 %157, i64 16, i1 false), !tbaa.struct !23
  %158 = getelementptr inbounds %"struct.ContactListenerTest::PredictedVelocity", ptr %26, i32 0, i32 2
  %159 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %158, ptr align 16 %159, i64 16, i1 false), !tbaa.struct !23
  invoke void @_ZN3JPH5ArrayIN19ContactListenerTest17PredictedVelocityENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %151, ptr noundef nonnull align 16 dereferenceable(48) %26)
          to label %160 unwind label %208

160:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  %161 = getelementptr inbounds %class.ContactListenerTest, ptr %28, i32 0, i32 4
  call void @llvm.lifetime.start.p0(i64 48, ptr %27) #7
  %162 = getelementptr inbounds %"struct.ContactListenerTest::PredictedVelocity", ptr %27, i32 0, i32 0
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %163)
          to label %165 unwind label %212

165:                                              ; preds = %160
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %162, ptr align 4 %164, i64 4, i1 false), !tbaa.struct !20
  %166 = getelementptr inbounds %"struct.ContactListenerTest::PredictedVelocity", ptr %27, i32 0, i32 1
  %167 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 2
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %166, ptr align 16 %167, i64 16, i1 false), !tbaa.struct !23
  %168 = getelementptr inbounds %"struct.ContactListenerTest::PredictedVelocity", ptr %27, i32 0, i32 2
  %169 = getelementptr inbounds %"struct.JPH::CollisionEstimationResult", ptr %12, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %168, ptr align 16 %169, i64 16, i1 false), !tbaa.struct !23
  invoke void @_ZN3JPH5ArrayIN19ContactListenerTest17PredictedVelocityENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %161, ptr noundef nonnull align 16 dereferenceable(48) %27)
          to label %170 unwind label %212

170:                                              ; preds = %165
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #7
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  call void @_ZN3JPH25CollisionEstimationResultD2Ev(ptr noundef nonnull align 16 dereferenceable(868) %12) #7
  call void @llvm.lifetime.end.p0(i64 880, ptr %12) #7
  ret void

171:                                              ; preds = %127, %123
  %172 = landingpad { ptr, i32 }
          cleanup
  %173 = extractvalue { ptr, i32 } %172, 0
  store ptr %173, ptr %13, align 8
  %174 = extractvalue { ptr, i32 } %172, 1
  store i32 %174, ptr %14, align 4
  br label %218

175:                                              ; preds = %129
  %176 = landingpad { ptr, i32 }
          cleanup
  %177 = extractvalue { ptr, i32 } %176, 0
  store ptr %177, ptr %13, align 8
  %178 = extractvalue { ptr, i32 } %176, 1
  store i32 %178, ptr %14, align 4
  br label %203

179:                                              ; preds = %131
  %180 = landingpad { ptr, i32 }
          cleanup
  %181 = extractvalue { ptr, i32 } %180, 0
  store ptr %181, ptr %13, align 8
  %182 = extractvalue { ptr, i32 } %180, 1
  store i32 %182, ptr %14, align 4
  br label %202

183:                                              ; preds = %138, %134
  %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 %201

187:                                              ; preds = %140
  %188 = landingpad { ptr, i32 }
          cleanup
  %189 = extractvalue { ptr, i32 } %188, 0
  store ptr %189, ptr %13, align 8
  %190 = extractvalue { ptr, i32 } %188, 1
  store i32 %190, ptr %14, align 4
  br label %200

191:                                              ; preds = %142
  %192 = landingpad { ptr, i32 }
          cleanup
  %193 = extractvalue { ptr, i32 } %192, 0
  store ptr %193, ptr %13, align 8
  %194 = extractvalue { ptr, i32 } %192, 1
  store i32 %194, ptr %14, align 4
  br label %199

195:                                              ; preds = %145
  %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
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %24) #7
  br label %199

199:                                              ; preds = %195, %191
  call void @llvm.lifetime.end.p0(i64 32, ptr %24) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %23) #7
  br label %200

200:                                              ; preds = %199, %187
  call void @llvm.lifetime.end.p0(i64 32, ptr %23) #7
  br label %201

201:                                              ; preds = %200, %183
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %202

202:                                              ; preds = %201, %179
  call void @llvm.lifetime.end.p0(i64 32, ptr %22) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %203

203:                                              ; preds = %202, %175
  call void @llvm.lifetime.end.p0(i64 32, ptr %21) #7
  br label %218

204:                                              ; preds = %148
  %205 = landingpad { ptr, i32 }
          cleanup
  %206 = extractvalue { ptr, i32 } %205, 0
  store ptr %206, ptr %13, align 8
  %207 = extractvalue { ptr, i32 } %205, 1
  store i32 %207, ptr %14, align 4
  br label %217

208:                                              ; preds = %155, %150
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %13, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %26) #7
  br label %216

212:                                              ; preds = %165, %160
  %213 = landingpad { ptr, i32 }
          cleanup
  %214 = extractvalue { ptr, i32 } %213, 0
  store ptr %214, ptr %13, align 8
  %215 = extractvalue { ptr, i32 } %213, 1
  store i32 %215, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 48, ptr %27) #7
  br label %216

216:                                              ; preds = %212, %208
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %25) #7
  br label %217

217:                                              ; preds = %216, %204
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %218

218:                                              ; preds = %217, %203, %171, %122
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #7
  br label %219

219:                                              ; preds = %218, %80
  call void @_ZN3JPH25CollisionEstimationResultD2Ev(ptr noundef nonnull align 16 dereferenceable(868) %12) #7
  call void @llvm.lifetime.end.p0(i64 880, ptr %12) #7
  br label %220

220:                                              ; preds = %219
  %221 = load ptr, ptr %13, align 8
  %222 = load i32, ptr %14, align 4
  %223 = insertvalue { ptr, i32 } poison, ptr %221, 0
  %224 = insertvalue { ptr, i32 } %223, i32 %222, 1
  resume { ptr, i32 } %224
}

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

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

declare void @_ZN3JPH25EstimateCollisionResponseERKNS_4BodyES2_RKNS_15ContactManifoldERNS_25CollisionEstimationResultEfffj(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(2128), ptr noundef nonnull align 16 dereferenceable(868), float noundef, float noundef, float noundef, i32 noundef) #6

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

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

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

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) #6

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTSN3JPH15ContactSettingsE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !13, i64 32, !13, i64 48}
!11 = !{!"float", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{i64 2160293110}
!15 = !{!10, !11, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN3JPH25CollisionEstimationResult7ImpulseE", !11, i64 0, !11, i64 4, !11, i64 8}
!18 = !{!17, !11, i64 4}
!19 = !{!17, !11, i64 8}
!20 = !{i64 0, i64 4, !21}
!21 = !{!22, !22, i64 0}
!22 = !{!"int", !7, i64 0}
!23 = !{i64 0, i64 16, !24}
!24 = !{!7, !7, 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider", i64, %union.anon.15 }
%"struct.std::__cxx11::basic_string<char, std::char_traits<char>, JPH::STLAllocator<char>>::_Alloc_hider" = type { ptr }
%union.anon.15 = type { i64, [8 x i8] }
%"struct.JPH::CollisionEstimationResult" = type <{ %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::StaticArray.39", [12 x i8] }>
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::StaticArray.39" = type { i32, [64 x %"struct.JPH::StaticArray<JPH::CollisionEstimationResult::Impulse, 64>::Storage"] }
%"struct.JPH::StaticArray<JPH::CollisionEstimationResult::Impulse, 64>::Storage" = type { [12 x i8] }
%"class.std::lock_guard" = type { ptr }
%"struct.ContactListenerTest::PredictedVelocity" = type { %"class.JPH::BodyID", %"class.JPH::Vec3", %"class.JPH::Vec3" }
%"class.JPH::BodyID" = type { i32 }

@_ZN3JPH5TraceE = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [98 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [99 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 nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122)) local_unnamed_addr #1 align 2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 16 dereferenceable(16)) local_unnamed_addr #2

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN19ContactListenerTest22MakeBody5PartialSensorERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(232), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(2128), ptr noundef nonnull align 16 dereferenceable(64)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN19ContactListenerTest14OnContactAddedERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr noundef nonnull align 16 dereferenceable(2128) %3, ptr noundef nonnull align 16 dereferenceable(64) %4) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"struct.JPH::CollisionEstimationResult", align 16
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::lock_guard", align 8
  %14 = alloca %"struct.ContactListenerTest::PredictedVelocity", align 16
  %15 = alloca %"struct.ContactListenerTest::PredictedVelocity", align 16
  %16 = getelementptr inbounds i8, ptr %0, i64 120
  %17 = load ptr, ptr %16, align 8, !tbaa !5
  %18 = icmp eq ptr %17, %1
  %19 = icmp eq ptr %17, %2
  %or.cond = or i1 %18, %19
  br i1 %or.cond, label %20, label %28

20:                                               ; preds = %5
  %21 = getelementptr inbounds i8, ptr %4, i64 4
  %22 = load float, ptr %21, align 4, !tbaa !9
  %23 = fcmp oeq float %22, 0.000000e+00
  br i1 %23, label %27, label %24

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

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

27:                                               ; preds = %20, %24, %26
  store float 1.000000e+00, ptr %21, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %5, %27
  tail call void @_ZN19ContactListenerTest22MakeBody5PartialSensorERKN3JPH4BodyES3_RKNS0_15ContactManifoldERNS0_15ContactSettingsE(ptr noundef nonnull align 8 dereferenceable(232) %0, ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr noundef nonnull align 16 dereferenceable(2128) %3, ptr noundef nonnull align 16 dereferenceable(64) %4)
  call void @llvm.lifetime.start.p0(i64 880, ptr nonnull %6) #7
  call void @_ZN3JPH25CollisionEstimationResultC2Ev(ptr noundef nonnull align 16 dereferenceable(868) %6) #7
  %29 = load float, ptr %4, align 16, !tbaa !15
  %30 = getelementptr inbounds i8, ptr %4, i64 4
  %31 = load float, ptr %30, align 4, !tbaa !9
  invoke void @_ZN3JPH25EstimateCollisionResponseERKNS_4BodyES2_RKNS_15ContactManifoldERNS_25CollisionEstimationResultEfffj(ptr noundef nonnull align 16 dereferenceable(122) %1, ptr noundef nonnull align 16 dereferenceable(122) %2, ptr noundef nonnull align 16 dereferenceable(2128) %3, ptr noundef nonnull align 16 dereferenceable(868) %6, float noundef %29, float noundef %31, float noundef 1.000000e+00, i32 noundef 10)
          to label %32 unwind label %39

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  %33 = getelementptr inbounds i8, ptr %6, i64 96
  %34 = call noundef ptr @_ZN3JPH11StaticArrayINS_25CollisionEstimationResult7ImpulseELj64EE5beginEv(ptr noundef nonnull align 4 dereferenceable(772) %33)
  %35 = call noundef ptr @_ZN3JPH11StaticArrayINS_25CollisionEstimationResult7ImpulseELj64EE3endEv(ptr noundef nonnull align 4 dereferenceable(772) %33)
  %.not50 = icmp eq ptr %34, %35
  br i1 %.not50, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %51, %32
  %36 = load ptr, ptr @_ZN3JPH5TraceE, align 8, !tbaa !5
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %38 = call noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %37)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %9) #7
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %9, ptr noundef nonnull align 16 dereferenceable(16) %6)
          to label %58 unwind label %86

39:                                               ; preds = %28
  %40 = landingpad { ptr, i32 }
          cleanup
  br label %109

.lr.ph:                                           ; preds = %32, %51
  %.03751 = phi ptr [ %52, %51 ], [ %34, %32 ]
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %8) #7
  %41 = load float, ptr %.03751, align 4, !tbaa !16
  %42 = fpext float %41 to double
  %43 = getelementptr inbounds i8, ptr %.03751, i64 4
  %44 = load float, ptr %43, align 4, !tbaa !18
  %45 = fpext float %44 to double
  %46 = getelementptr inbounds i8, ptr %.03751, i64 8
  %47 = load float, ptr %46, align 4, !tbaa !19
  %48 = fpext float %47 to double
  invoke void (ptr, ptr, ...) @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %8, ptr noundef nonnull @.str.5, double noundef %42, double noundef %45, double noundef %48)
          to label %49 unwind label %53

49:                                               ; preds = %.lr.ph
  %50 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEEpLERKS6_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %51 unwind label %55

51:                                               ; preds = %49
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  %52 = getelementptr inbounds i8, ptr %.03751, i64 12
  %.not = icmp eq ptr %52, %35
  br i1 %.not, label %._crit_edge, label %.lr.ph

53:                                               ; preds = %.lr.ph
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %49
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  br label %57

57:                                               ; preds = %55, %53
  %.pn46 = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %8) #7
  br label %108

58:                                               ; preds = %._crit_edge
  %59 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  %60 = getelementptr inbounds i8, ptr %6, i64 16
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %10, ptr noundef nonnull align 16 dereferenceable(16) %60)
          to label %61 unwind label %88

61:                                               ; preds = %58
  %62 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  %63 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  %64 = call noundef i32 @_ZNK3JPH6BodyID8GetIndexEv(ptr noundef nonnull align 4 dereferenceable(4) %63)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  %65 = getelementptr inbounds i8, ptr %6, i64 32
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %11, ptr noundef nonnull align 16 dereferenceable(16) %65)
          to label %66 unwind label %90

66:                                               ; preds = %61
  %67 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  %68 = getelementptr inbounds i8, ptr %6, i64 48
  invoke void @_ZN3JPH15ConvertToStringINS_4Vec3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcENS_12STLAllocatorIcEEEERKT_(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 16 dereferenceable(16) %68)
          to label %69 unwind label %92

69:                                               ; preds = %66
  %70 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  %71 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  invoke void (ptr, ...) %36(ptr noundef nonnull @.str.6, i32 noundef %38, ptr noundef %59, ptr noundef %62, i32 noundef %64, ptr noundef %67, ptr noundef %70, ptr noundef %71)
          to label %72 unwind label %94

72:                                               ; preds = %69
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %73 = getelementptr inbounds i8, ptr %0, i64 160
  invoke void @_ZNSt10lock_guardIN3JPH5MutexEEC2ERS1_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(48) %73)
          to label %74 unwind label %100

74:                                               ; preds = %72
  %75 = getelementptr inbounds i8, ptr %0, i64 208
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %14) #7
  %76 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %1)
  %77 = load i32, ptr %76, align 4, !tbaa !20
  store i32 %77, ptr %14, align 16, !tbaa !20
  %78 = getelementptr inbounds i8, ptr %14, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %78, ptr noundef nonnull align 16 dereferenceable(16) %6, i64 16, i1 false), !tbaa.struct !22
  %79 = getelementptr inbounds i8, ptr %14, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %79, ptr noundef nonnull align 16 dereferenceable(16) %60, i64 16, i1 false), !tbaa.struct !22
  invoke void @_ZN3JPH5ArrayIN19ContactListenerTest17PredictedVelocityENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 16 dereferenceable(48) %14)
          to label %80 unwind label %102

80:                                               ; preds = %74
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %15) #7
  %81 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK3JPH4Body5GetIDEv(ptr noundef nonnull align 16 dereferenceable(122) %2)
  %82 = load i32, ptr %81, align 4, !tbaa !20
  store i32 %82, ptr %15, align 16, !tbaa !20
  %83 = getelementptr inbounds i8, ptr %15, i64 16
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %83, ptr noundef nonnull align 16 dereferenceable(16) %65, i64 16, i1 false), !tbaa.struct !22
  %84 = getelementptr inbounds i8, ptr %15, i64 32
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %84, ptr noundef nonnull align 16 dereferenceable(16) %68, i64 16, i1 false), !tbaa.struct !22
  invoke void @_ZN3JPH5ArrayIN19ContactListenerTest17PredictedVelocityENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %75, ptr noundef nonnull align 16 dereferenceable(48) %15)
          to label %85 unwind label %104

85:                                               ; preds = %80
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #7
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @_ZN3JPH25CollisionEstimationResultD2Ev(ptr noundef nonnull align 16 dereferenceable(868) %6) #7
  call void @llvm.lifetime.end.p0(i64 880, ptr nonnull %6) #7
  ret void

86:                                               ; preds = %._crit_edge
  %87 = landingpad { ptr, i32 }
          cleanup
  br label %99

88:                                               ; preds = %58
  %89 = landingpad { ptr, i32 }
          cleanup
  br label %98

90:                                               ; preds = %61
  %91 = landingpad { ptr, i32 }
          cleanup
  br label %97

92:                                               ; preds = %66
  %93 = landingpad { ptr, i32 }
          cleanup
  br label %96

94:                                               ; preds = %69
  %95 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %96

96:                                               ; preds = %94, %92
  %.pn = phi { ptr, i32 } [ %95, %94 ], [ %93, %92 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  br label %97

97:                                               ; preds = %96, %90
  %.pn.pn = phi { ptr, i32 } [ %.pn, %96 ], [ %91, %90 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br label %98

98:                                               ; preds = %97, %88
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %97 ], [ %89, %88 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  br label %99

99:                                               ; preds = %98, %86
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %98 ], [ %87, %86 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %9) #7
  br label %108

100:                                              ; preds = %72
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %107

102:                                              ; preds = %74
  %103 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %14) #7
  br label %106

104:                                              ; preds = %80
  %105 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %15) #7
  br label %106

106:                                              ; preds = %104, %102
  %.pn43 = phi { ptr, i32 } [ %105, %104 ], [ %103, %102 ]
  call void @_ZNSt10lock_guardIN3JPH5MutexEED2Ev(ptr noundef nonnull align 8 dereferenceable(8) %13) #7
  br label %107

107:                                              ; preds = %106, %100
  %.pn43.pn = phi { ptr, i32 } [ %.pn43, %106 ], [ %101, %100 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %108

108:                                              ; preds = %107, %99, %57
  %.pn46.pn = phi { ptr, i32 } [ %.pn46, %57 ], [ %.pn43.pn, %107 ], [ %.pn.pn.pn.pn, %99 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcEN3JPH12STLAllocatorIcEEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  br label %109

109:                                              ; preds = %108, %39
  %.pn46.pn.pn = phi { ptr, i32 } [ %.pn46.pn, %108 ], [ %40, %39 ]
  call void @_ZN3JPH25CollisionEstimationResultD2Ev(ptr noundef nonnull align 16 dereferenceable(868) %6) #7
  call void @llvm.lifetime.end.p0(i64 880, ptr nonnull %6) #7
  resume { ptr, i32 } %.pn46.pn.pn
}

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

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

declare void @_ZN3JPH25EstimateCollisionResponseERKNS_4BodyES2_RKNS_15ContactManifoldERNS_25CollisionEstimationResultEfffj(ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(122), ptr noundef nonnull align 16 dereferenceable(2128), ptr noundef nonnull align 16 dereferenceable(868), float noundef, float noundef, float noundef, i32 noundef) local_unnamed_addr #6

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

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

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

declare void @_ZN3JPH12StringFormatB5cxx11EPKcz(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef, ...) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3JPH5ArrayIN19ContactListenerTest17PredictedVelocityENS_12STLAllocatorIS2_EEE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 16 dereferenceable(48)) local_unnamed_addr #5 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTSN3JPH15ContactSettingsE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !13, i64 32, !13, i64 48}
!11 = !{!"float", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!14 = !{i64 2160293110}
!15 = !{!10, !11, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN3JPH25CollisionEstimationResult7ImpulseE", !11, i64 0, !11, i64 4, !11, i64 8}
!18 = !{!17, !11, i64 4}
!19 = !{!17, !11, i64 8}
!20 = !{!21, !21, i64 0}
!21 = !{!"int", !7, i64 0}
!22 = !{i64 0, i64 16, !23}
!23 = !{!7, !7, i64 0}


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