; LLVM IR from jrouwe/JoltPhysics :: Jolt/Core/Factory.ll (ZNK3JPH7Factory13GetAllClassesEv)

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

%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator" = type { %"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::IteratorBase.base.12", [4 x i8] }
%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::IteratorBase.base.12" = type <{ ptr, i32 }>
%"class.JPH::Factory" = type { %"class.JPH::UnorderedMap", %"class.JPH::UnorderedMap.0" }
%"class.JPH::UnorderedMap" = type { %"class.JPH::HashTable.base", [4 x i8] }
%"class.JPH::HashTable.base" = type <{ ptr, ptr, i32, i32, i32 }>
%"class.JPH::UnorderedMap.0" = type { %"class.JPH::HashTable.base.2", [4 x i8] }
%"class.JPH::HashTable.base.2" = type <{ ptr, ptr, i32, i32, i32 }>
%"struct.std::pair" = type { %"class.std::basic_string_view", ptr }
%"class.std::basic_string_view" = type { i64, ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH7Factory13GetAllClassesEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::Array") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i1, align 1
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator", align 8
  %10 = alloca %"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator", align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %3, align 8
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  store i1 false, ptr %5, align 1
  call void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %13 = getelementptr inbounds %"class.JPH::Factory", ptr %12, i32 0, i32 0
  %14 = invoke noundef i32 @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28) %13)
          to label %15 unwind label %27

15:                                               ; preds = %2
  %16 = zext i32 %14 to i64
  invoke void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %16)
          to label %17 unwind label %27

17:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %18 = getelementptr inbounds %"class.JPH::Factory", ptr %12, i32 0, i32 0
  store ptr %18, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8 %9, ptr noundef nonnull align 8 dereferenceable(28) %19)
          to label %20 unwind label %31

20:                                               ; preds = %17
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %21 = load ptr, ptr %8, align 8, !tbaa !5
  invoke void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8 %10, ptr noundef nonnull align 8 dereferenceable(28) %21)
          to label %22 unwind label %35

22:                                               ; preds = %20
  br label %23

23:                                               ; preds = %47, %22
  %24 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseIKSG_NSG_14const_iteratorEEneERKSJ_(ptr noundef nonnull align 8 dereferenceable(12) %9, ptr noundef nonnull align 8 dereferenceable(12) %10)
          to label %25 unwind label %35

25:                                               ; preds = %23
  br i1 %24, label %39, label %26

26:                                               ; preds = %25
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %54

27:                                               ; preds = %15, %2
  %28 = landingpad { ptr, i32 }
          cleanup
  %29 = extractvalue { ptr, i32 } %28, 0
  store ptr %29, ptr %6, align 8
  %30 = extractvalue { ptr, i32 } %28, 1
  store i32 %30, ptr %7, align 4
  br label %58

31:                                               ; preds = %17
  %32 = landingpad { ptr, i32 }
          cleanup
  %33 = extractvalue { ptr, i32 } %32, 0
  store ptr %33, ptr %6, align 8
  %34 = extractvalue { ptr, i32 } %32, 1
  store i32 %34, ptr %7, align 4
  br label %53

35:                                               ; preds = %45, %23, %20
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = extractvalue { ptr, i32 } %36, 0
  store ptr %37, ptr %6, align 8
  %38 = extractvalue { ptr, i32 } %36, 1
  store i32 %38, ptr %7, align 4
  br label %52

39:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %40 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseIKSG_NSG_14const_iteratorEEdeEv(ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %41 unwind label %48

41:                                               ; preds = %39
  store ptr %40, ptr %11, align 8, !tbaa !5
  %42 = load ptr, ptr %11, align 8, !tbaa !5
  %43 = getelementptr inbounds %"struct.std::pair", ptr %42, i32 0, i32 1
  invoke void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %43)
          to label %44 unwind label %48

44:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %45

45:                                               ; preds = %44
  %46 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseIKSG_NSG_14const_iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %9)
          to label %47 unwind label %35

47:                                               ; preds = %45
  br label %23

48:                                               ; preds = %41, %39
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %6, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %52

52:                                               ; preds = %48, %35
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  br label %53

53:                                               ; preds = %52, %31
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %58

54:                                               ; preds = %26
  store i1 true, ptr %5, align 1
  %55 = load i1, ptr %5, align 1
  br i1 %55, label %57, label %56

56:                                               ; preds = %54
  call void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %57

57:                                               ; preds = %56, %54
  ret void

58:                                               ; preds = %53, %27
  call void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  br label %59

59:                                               ; preds = %58
  %60 = load ptr, ptr %6, align 8
  %61 = load i32, ptr %7, align 4
  %62 = insertvalue { ptr, i32 } poison, ptr %60, 0
  %63 = insertvalue { ptr, i32 } %62, i32 %61, 1
  resume { ptr, i32 } %63
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseIKSG_NSG_14const_iteratorEEdeEv(ptr noundef nonnull align 8 dereferenceable(12)) #2 align 2

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

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

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.JPH::Array" = type { i64, i64, ptr }
%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator" = type { %"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::IteratorBase.base.12", [4 x i8] }
%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::IteratorBase.base.12" = type <{ ptr, i32 }>

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

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK3JPH7Factory13GetAllClassesEv(ptr dead_on_unwind noalias nonnull writable sret(%"class.JPH::Array") align 8 %0, ptr noundef nonnull align 8 dereferenceable(64) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator", align 8
  %4 = alloca %"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator", align 8
  tail call void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  %5 = tail call noundef i32 @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(28) %1)
  %6 = zext i32 %5 to i64
  invoke void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEE7reserveEm(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %6)
          to label %7 unwind label %12

7:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #5
  invoke void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8 %3, ptr noundef nonnull align 8 dereferenceable(28) %1)
          to label %8 unwind label %14

8:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #5
  invoke void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind nonnull writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8 %4, ptr noundef nonnull align 8 dereferenceable(28) %1)
          to label %.preheader unwind label %.loopexit.split-lp

.preheader:                                       ; preds = %8, %20
  %9 = invoke noundef zeroext i1 @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseIKSG_NSG_14const_iteratorEEneERKSJ_(ptr noundef nonnull align 8 dereferenceable(12) %3, ptr noundef nonnull align 8 dereferenceable(12) %4)
          to label %10 unwind label %.loopexit

10:                                               ; preds = %.preheader
  br i1 %9, label %16, label %11

11:                                               ; preds = %10
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  ret void

12:                                               ; preds = %2
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %26

14:                                               ; preds = %7
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %25

.loopexit:                                        ; preds = %.preheader, %20
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %24

.loopexit.split-lp:                               ; preds = %8
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %24

16:                                               ; preds = %10
  %17 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseIKSG_NSG_14const_iteratorEEdeEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %18 unwind label %22

18:                                               ; preds = %16
  %19 = getelementptr inbounds i8, ptr %17, i64 16
  invoke void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEE9push_backERKS3_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(8) %19)
          to label %20 unwind label %22

20:                                               ; preds = %18
  %21 = invoke noundef nonnull align 8 dereferenceable(12) ptr @_ZN3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE12IteratorBaseIKSG_NSG_14const_iteratorEEppEv(ptr noundef nonnull align 8 dereferenceable(12) %3)
          to label %.preheader unwind label %.loopexit

22:                                               ; preds = %18, %16
  %23 = landingpad { ptr, i32 }
          cleanup
  br label %24

24:                                               ; preds = %.loopexit, %.loopexit.split-lp, %22
  %.pn = phi { ptr, i32 } [ %23, %22 ], [ %lpad.loopexit, %.loopexit ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #5
  br label %25

25:                                               ; preds = %24, %14
  %.pn.pn = phi { ptr, i32 } [ %.pn, %24 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #5
  br label %26

26:                                               ; preds = %25, %12
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %25 ], [ %13, %12 ]
  call void @_ZN3JPH5ArrayIPKNS_4RTTIENS_12STLAllocatorIS3_EEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %0) #5
  resume { ptr, i32 } %.pn.pn.pn
}

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE5beginEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3JPH9HashTableISt17basic_string_viewIcSt11char_traitsIcEESt4pairIS4_PKNS_4RTTIEENS_18UnorderedMapDetailIS4_S8_EENS_4HashIS4_EESt8equal_toIS4_EE3endEv(ptr dead_on_unwind noalias writable sret(%"class.JPH::HashTable<std::basic_string_view<char>, std::pair<std::basic_string_view<char>, const JPH::RTTI *>, JPH::UnorderedMapDetail<std::basic_string_view<char>, const JPH::RTTI *>, JPH::Hash<std::string_view>, std::equal_to<std::basic_string_view<char>>>::const_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(28)) local_unnamed_addr #2 align 2

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

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

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

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

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

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


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