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

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

%"struct.std::pair.31" = type { %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator" = type { %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base" = type <{ ptr, i32 }>
%"struct.JPH::AssertLastParam" = type { i8 }
%"struct.std::pair" = type { %"class.JPH::CharacterVirtual::ContactKey", %"struct.JPH::CharacterVirtual::ListenerContactValue" }
%"class.JPH::CharacterVirtual::ContactKey" = type { %"class.JPH::BodyID", %"class.JPH::CharacterID", %"class.JPH::SubShapeID" }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"struct.JPH::CharacterVirtual::ListenerContactValue" = type { %"class.JPH::CharacterContactSettings", i32 }
%"class.JPH::CharacterContactSettings" = type { i8, i8 }
%"class.JPH::CharacterVirtual" = type <{ %"class.JPH::CharacterBase", %"class.JPH::CharacterID", [4 x i8], ptr, ptr, i8, [3 x i8], float, i32, i32, float, float, float, i32, float, float, i8, [3 x i8], float, float, [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Quat", %"class.JPH::Vec3", %"class.JPH::Array.2", i32, [4 x i8], %"class.JPH::UnorderedMap", float, i8, [3 x i8], i64, %"class.JPH::BodyID", [12 x i8] }>
%"class.JPH::CharacterBase" = type { ptr, %"class.JPH::RefTarget", ptr, %"class.JPH::RefConst", %"class.JPH::Vec3", %"class.JPH::Plane", float, i32, %"class.JPH::BodyID", %"class.JPH::SubShapeID", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::RefConst.1", i64 }
%"class.JPH::RefTarget" = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i32 }
%"class.JPH::RefConst" = type { ptr }
%"class.JPH::Plane" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec4" = type { %union.anon.0 }
%union.anon.0 = type { <4 x float> }
%"class.JPH::RefConst.1" = type { ptr }
%"class.JPH::Quat" = type { %"class.JPH::Vec4" }
%"class.JPH::Vec3" = type { %union.anon }
%union.anon = type { <4 x float> }
%"class.JPH::Array.2" = type { i64, i64, ptr }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.JPH::CharacterVirtual::Contact" = type <{ %"class.JPH::CharacterVirtual::ContactKey", [4 x i8], %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", %"class.JPH::Vec3", float, float, i8, i8, [6 x i8], ptr, i64, ptr, i8, i8, i8, [5 x i8] }>

@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE6insertERKS5_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.31") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(20)) #3 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual27StartTrackingContactChangesEv(ptr noundef nonnull align 16 dereferenceable(372) %0) #3 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca %"struct.JPH::AssertLastParam", align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %"struct.std::pair", align 4
  %9 = alloca %"struct.JPH::CharacterVirtual::ListenerContactValue", align 4
  %10 = alloca %"struct.std::pair.31", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %11, i32 0, i32 26
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = add nsw i32 %13, 1
  store i32 %14, ptr %12, align 8, !tbaa !9
  %15 = icmp sgt i32 %14, 1
  br i1 %15, label %16, label %17

16:                                               ; preds = %1
  br label %58

17:                                               ; preds = %1
  br label %18

18:                                               ; preds = %17
  %19 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %11, i32 0, i32 28
  %20 = call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %19)
  br i1 %20, label %24, label %21

21:                                               ; preds = %18
  %22 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef @.str.3, ptr noundef @.str.1, i32 noundef 1332)
  br i1 %22, label %23, label %24

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

24:                                               ; preds = %23, %21, %18
  br label %25

25:                                               ; preds = %24
  %26 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %11, i32 0, i32 3
  %27 = load ptr, ptr %26, align 8, !tbaa !34
  %28 = icmp eq ptr %27, null
  br i1 %28, label %29, label %30

29:                                               ; preds = %25
  br label %58

30:                                               ; preds = %25
  %31 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %11, i32 0, i32 28
  %32 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %11, i32 0, i32 25
  %33 = call noundef i64 @_ZNK3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %32)
  %34 = trunc i64 %33 to i32
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %31, i32 noundef %34)
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #6
  %35 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %11, i32 0, i32 25
  store ptr %35, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %36)
  store ptr %37, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  %38 = load ptr, ptr %4, align 8, !tbaa !5
  %39 = call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %38)
  store ptr %39, ptr %6, align 8, !tbaa !5
  br label %40

40:                                               ; preds = %55, %30
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = icmp ne ptr %41, %42
  br i1 %43, label %45, label %44

44:                                               ; preds = %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #6
  br label %58

45:                                               ; preds = %40
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load ptr, ptr %7, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %47, i32 0, i32 14
  %49 = load i8, ptr %48, align 8, !tbaa !35, !range !39, !noundef !40
  %50 = trunc i8 %49 to i1
  br i1 %50, label %51, label %54

51:                                               ; preds = %45
  %52 = getelementptr inbounds %"class.JPH::CharacterVirtual", ptr %11, i32 0, i32 28
  call void @llvm.lifetime.start.p0(i64 20, ptr %8) #6
  %53 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  call void @llvm.memset.p0.i64(ptr align 4 %9, i8 0, i64 8, i1 false)
  call void @_ZN3JPH16CharacterVirtual20ListenerContactValueC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %9) #6
  call void @_ZNSt4pairIN3JPH16CharacterVirtual10ContactKeyENS1_20ListenerContactValueEEC2IRKNS1_7ContactES3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 4 dereferenceable(20) %8, ptr noundef nonnull align 16 dereferenceable(123) %53, ptr noundef nonnull align 4 dereferenceable(8) %9)
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #6
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE6insertERKS5_(ptr dead_on_unwind writable sret(%"struct.std::pair.31") align 8 %10, ptr noundef nonnull align 8 dereferenceable(28) %52, ptr noundef nonnull align 4 dereferenceable(20) %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 20, ptr %8) #6
  br label %54

54:                                               ; preds = %51, %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  br label %55

55:                                               ; preds = %54
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.JPH::CharacterVirtual::Contact", ptr %56, i32 1
  store ptr %57, ptr %5, align 8, !tbaa !5
  br label %40

58:                                               ; preds = %44, %29, %16
  ret void
}

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

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

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

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #2 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { 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, !15, i64 312}
!10 = !{!"_ZTSN3JPH16CharacterVirtualE", !11, i64 0, !26, i64 144, !6, i64 152, !6, i64 160, !27, i64 168, !20, i64 172, !15, i64 176, !15, i64 180, !20, i64 184, !20, i64 188, !20, i64 192, !15, i64 196, !20, i64 200, !20, i64 204, !28, i64 208, !20, i64 212, !20, i64 216, !17, i64 224, !17, i64 240, !29, i64 256, !17, i64 272, !30, i64 288, !15, i64 312, !31, i64 320, !20, i64 352, !28, i64 356, !25, i64 360, !22, i64 368}
!11 = !{!"_ZTSN3JPH13CharacterBaseE", !12, i64 8, !6, i64 16, !16, i64 24, !17, i64 32, !18, i64 48, !20, i64 64, !21, i64 68, !22, i64 72, !23, i64 76, !17, i64 80, !17, i64 96, !17, i64 112, !24, i64 128, !25, i64 136}
!12 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !13, i64 0}
!13 = !{!"_ZTSSt6atomicIjE", !14, i64 0}
!14 = !{!"_ZTSSt13__atomic_baseIjE", !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !6, i64 0}
!17 = !{!"_ZTSN3JPH4Vec3E", !7, i64 0}
!18 = !{!"_ZTSN3JPH5PlaneE", !19, i64 0}
!19 = !{!"_ZTSN3JPH4Vec4E", !7, i64 0}
!20 = !{!"float", !7, i64 0}
!21 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !7, i64 0}
!22 = !{!"_ZTSN3JPH6BodyIDE", !15, i64 0}
!23 = !{!"_ZTSN3JPH10SubShapeIDE", !15, i64 0}
!24 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !6, i64 0}
!25 = !{!"long", !7, i64 0}
!26 = !{!"_ZTSN3JPH11CharacterIDE", !15, i64 0}
!27 = !{!"_ZTSN3JPH13EBackFaceModeE", !7, i64 0}
!28 = !{!"bool", !7, i64 0}
!29 = !{!"_ZTSN3JPH4QuatE", !19, i64 0}
!30 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !25, i64 0, !25, i64 8, !6, i64 16}
!31 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !32, i64 0}
!32 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !6, i64 0, !6, i64 8, !15, i64 16, !15, i64 20, !15, i64 24}
!33 = !{i64 2159829622}
!34 = !{!10, !6, i64 152}
!35 = !{!36, !28, i64 120}
!36 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !37, i64 0, !17, i64 16, !17, i64 32, !17, i64 48, !17, i64 64, !20, i64 80, !20, i64 84, !38, i64 88, !28, i64 89, !6, i64 96, !25, i64 104, !6, i64 112, !28, i64 120, !28, i64 121, !28, i64 122}
!37 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !22, i64 0, !26, i64 4, !23, i64 8}
!38 = !{!"_ZTSN3JPH11EMotionTypeE", !7, i64 0}
!39 = !{i8 0, i8 2}
!40 = !{}


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

%"struct.std::pair.31" = type { %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator", i8, [7 x i8] }
%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::iterator" = type { %"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base", [4 x i8] }
%"class.JPH::HashTable<JPH::CharacterVirtual::ContactKey, std::pair<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::UnorderedMapDetail<JPH::CharacterVirtual::ContactKey, JPH::CharacterVirtual::ListenerContactValue>, JPH::Hash<JPH::CharacterVirtual::ContactKey>, std::equal_to<JPH::CharacterVirtual::ContactKey>>::IteratorBase.base" = type <{ ptr, i32 }>
%"struct.std::pair" = type { %"class.JPH::CharacterVirtual::ContactKey", %"struct.JPH::CharacterVirtual::ListenerContactValue" }
%"class.JPH::CharacterVirtual::ContactKey" = type { %"class.JPH::BodyID", %"class.JPH::CharacterID", %"class.JPH::SubShapeID" }
%"class.JPH::BodyID" = type { i32 }
%"class.JPH::CharacterID" = type { i32 }
%"class.JPH::SubShapeID" = type { i32 }
%"struct.JPH::CharacterVirtual::ListenerContactValue" = type { %"class.JPH::CharacterContactSettings", i32 }
%"class.JPH::CharacterContactSettings" = type { i8, i8 }

@.str.1 = external hidden unnamed_addr constant [96 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [26 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE6insertERKS5_(ptr dead_on_unwind noalias writable sret(%"struct.std::pair.31") align 8, ptr noundef nonnull align 8 dereferenceable(28), ptr noundef nonnull align 4 dereferenceable(20)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_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_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3JPH16CharacterVirtual27StartTrackingContactChangesEv(ptr noundef nonnull align 16 dereferenceable(372) %0) local_unnamed_addr #2 align 2 {
  %2 = alloca %"struct.std::pair", align 4
  %3 = alloca %"struct.JPH::CharacterVirtual::ListenerContactValue", align 8
  %4 = alloca %"struct.std::pair.31", align 8
  %5 = getelementptr inbounds i8, ptr %0, i64 312
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %7 = add nsw i32 %6, 1
  store i32 %7, ptr %5, align 8, !tbaa !5
  %8 = icmp sgt i32 %6, 0
  br i1 %8, label %.loopexit, label %9

9:                                                ; preds = %1
  %10 = getelementptr inbounds i8, ptr %0, i64 320
  %11 = tail call noundef zeroext i1 @_ZNK3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(28) %10)
  br i1 %11, label %15, label %12

12:                                               ; preds = %9
  %13 = tail call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jNS_15AssertLastParamE(ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.1, i32 noundef 1332)
  br i1 %13, label %14, label %15

14:                                               ; preds = %12
  tail call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #5, !srcloc !32
  br label %15

15:                                               ; preds = %9, %12, %14
  %16 = getelementptr inbounds i8, ptr %0, i64 152
  %17 = load ptr, ptr %16, align 8, !tbaa !33
  %18 = icmp eq ptr %17, null
  br i1 %18, label %.loopexit, label %19

19:                                               ; preds = %15
  %20 = getelementptr inbounds i8, ptr %0, i64 288
  %21 = tail call noundef i64 @_ZNK3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %22 = trunc i64 %21 to i32
  tail call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE7reserveEj(ptr noundef nonnull align 8 dereferenceable(28) %10, i32 noundef %22)
  %23 = tail call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %24 = tail call noundef ptr @_ZN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %20)
  %.not9 = icmp eq ptr %23, %24
  br i1 %.not9, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %19, %29
  %.010 = phi ptr [ %30, %29 ], [ %23, %19 ]
  %25 = getelementptr inbounds i8, ptr %.010, i64 120
  %26 = load i8, ptr %25, align 8, !tbaa !34, !range !38, !noundef !39
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %29

28:                                               ; preds = %.lr.ph
  call void @llvm.lifetime.start.p0(i64 20, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  store i64 0, ptr %3, align 8
  call void @_ZN3JPH16CharacterVirtual20ListenerContactValueC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %3) #5
  call void @_ZNSt4pairIN3JPH16CharacterVirtual10ContactKeyENS1_20ListenerContactValueEEC2IRKNS1_7ContactES3_TnNSt9enable_ifIXaaclsr5_PCCPE22_MoveConstructiblePairIT_T0_EEclsr5_PCCPE30_ImplicitlyMoveConvertiblePairISA_SB_EEEbE4typeELb1EEEOSA_OSB_(ptr noundef nonnull align 4 dereferenceable(20) %2, ptr noundef nonnull align 16 dereferenceable(123) %.010, ptr noundef nonnull align 4 dereferenceable(8) %3)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %4) #5
  call void @_ZN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EE6insertERKS5_(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair.31") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %10, ptr noundef nonnull align 4 dereferenceable(20) %2)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 20, ptr nonnull %2) #5
  br label %29

29:                                               ; preds = %28, %.lr.ph
  %30 = getelementptr inbounds i8, ptr %.010, i64 128
  %.not = icmp eq ptr %30, %24
  br i1 %.not, label %.loopexit, label %.lr.ph

.loopexit:                                        ; preds = %29, %19, %15, %1
  ret void
}

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

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

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

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

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 312}
!6 = !{!"_ZTSN3JPH16CharacterVirtualE", !7, i64 0, !25, i64 144, !14, i64 152, !14, i64 160, !26, i64 168, !19, i64 172, !11, i64 176, !11, i64 180, !19, i64 184, !19, i64 188, !19, i64 192, !11, i64 196, !19, i64 200, !19, i64 204, !27, i64 208, !19, i64 212, !19, i64 216, !16, i64 224, !16, i64 240, !28, i64 256, !16, i64 272, !29, i64 288, !11, i64 312, !30, i64 320, !19, i64 352, !27, i64 356, !24, i64 360, !21, i64 368}
!7 = !{!"_ZTSN3JPH13CharacterBaseE", !8, i64 8, !14, i64 16, !15, i64 24, !16, i64 32, !17, i64 48, !19, i64 64, !20, i64 68, !21, i64 72, !22, i64 76, !16, i64 80, !16, i64 96, !16, i64 112, !23, i64 128, !24, i64 136}
!8 = !{!"_ZTSN3JPH9RefTargetINS_13CharacterBaseEEE", !9, i64 0}
!9 = !{!"_ZTSSt6atomicIjE", !10, i64 0}
!10 = !{!"_ZTSSt13__atomic_baseIjE", !11, i64 0}
!11 = !{!"int", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"any pointer", !12, i64 0}
!15 = !{!"_ZTSN3JPH8RefConstINS_5ShapeEEE", !14, i64 0}
!16 = !{!"_ZTSN3JPH4Vec3E", !12, i64 0}
!17 = !{!"_ZTSN3JPH5PlaneE", !18, i64 0}
!18 = !{!"_ZTSN3JPH4Vec4E", !12, i64 0}
!19 = !{!"float", !12, i64 0}
!20 = !{!"_ZTSN3JPH13CharacterBase12EGroundStateE", !12, i64 0}
!21 = !{!"_ZTSN3JPH6BodyIDE", !11, i64 0}
!22 = !{!"_ZTSN3JPH10SubShapeIDE", !11, i64 0}
!23 = !{!"_ZTSN3JPH8RefConstINS_15PhysicsMaterialEEE", !14, i64 0}
!24 = !{!"long", !12, i64 0}
!25 = !{!"_ZTSN3JPH11CharacterIDE", !11, i64 0}
!26 = !{!"_ZTSN3JPH13EBackFaceModeE", !12, i64 0}
!27 = !{!"bool", !12, i64 0}
!28 = !{!"_ZTSN3JPH4QuatE", !18, i64 0}
!29 = !{!"_ZTSN3JPH5ArrayINS_16CharacterVirtual7ContactENS_12STLAllocatorIS2_EEEE", !24, i64 0, !24, i64 8, !14, i64 16}
!30 = !{!"_ZTSN3JPH12UnorderedMapINS_16CharacterVirtual10ContactKeyENS1_20ListenerContactValueENS_4HashIS2_EESt8equal_toIS2_EEE", !31, i64 0}
!31 = !{!"_ZTSN3JPH9HashTableINS_16CharacterVirtual10ContactKeyESt4pairIS2_NS1_20ListenerContactValueEENS_18UnorderedMapDetailIS2_S4_EENS_4HashIS2_EESt8equal_toIS2_EEE", !14, i64 0, !14, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!32 = !{i64 2159829622}
!33 = !{!6, !14, i64 152}
!34 = !{!35, !27, i64 120}
!35 = !{!"_ZTSN3JPH16CharacterVirtual7ContactE", !36, i64 0, !16, i64 16, !16, i64 32, !16, i64 48, !16, i64 64, !19, i64 80, !19, i64 84, !37, i64 88, !27, i64 89, !14, i64 96, !24, i64 104, !14, i64 112, !27, i64 120, !27, i64 121, !27, i64 122}
!36 = !{!"_ZTSN3JPH16CharacterVirtual10ContactKeyE", !21, i64 0, !25, i64 4, !22, i64 8}
!37 = !{!"_ZTSN3JPH11EMotionTypeE", !12, i64 0}
!38 = !{i8 0, i8 2}
!39 = !{}


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