; LLVM IR from zig-gamedev/zphysics :: libs/Jolt/Core/Factory.ll (ZN3JPH7Factory8RegisterEPKNS_4RTTIE)

; 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::basic_string_view" = type { i64, ptr }
%"struct.std::pair.25" = type <{ %"struct.std::__detail::_Node_iterator", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator" = type { %"struct.std::__detail::_Node_iterator_base" }
%"struct.std::__detail::_Node_iterator_base" = type { ptr }
%"struct.std::pair.27" = type <{ %"struct.std::__detail::_Node_iterator.21", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.21" = type { %"struct.std::__detail::_Node_iterator_base.22" }
%"struct.std::__detail::_Node_iterator_base.22" = type { ptr }
%"struct.JPH::AssertLastParam" = type { i8 }
%"class.JPH::Factory" = type { %"class.std::unordered_map", %"class.std::unordered_map.2" }
%"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.std::unordered_map.2" = type { %"class.std::_Hashtable.3" }
%"class.std::_Hashtable.3" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH7Factory4FindEPKc(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPKNS_4RTTIE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.std::basic_string_view", align 8
  %7 = alloca %"struct.std::pair.25", align 8
  %8 = alloca %"struct.std::pair.27", align 8
  %9 = alloca i32, align 4
  %10 = alloca { ptr, i8 }, align 8
  %11 = alloca %"struct.JPH::AssertLastParam", align 1
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  %15 = load ptr, ptr %5, align 8, !tbaa !5
  %16 = call noundef ptr @_ZNK3JPH4RTTI7GetNameEv(ptr noundef nonnull align 8 dereferenceable(104) %15)
  %17 = call noundef ptr @_ZN3JPH7Factory4FindEPKc(ptr noundef nonnull align 8 dereferenceable(112) %14, ptr noundef %16)
  %18 = icmp ne ptr %17, null
  br i1 %18, label %19, label %20

19:                                               ; preds = %2
  store i1 true, ptr %3, align 1
  br label %63

20:                                               ; preds = %2
  %21 = getelementptr inbounds %"class.JPH::Factory", ptr %14, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call noundef ptr @_ZNK3JPH4RTTI7GetNameEv(ptr noundef nonnull align 8 dereferenceable(104) %22)
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef %23) #7
  %24 = call { ptr, i8 } @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPKN3JPH4RTTIESt4hashIS3_ESt8equal_toIS3_ENS4_12STLAllocatorISt4pairIKS3_S7_EEEE11try_emplaceIJRS7_EEESD_INSt8__detail14_Node_iteratorISF_Lb0ELb1EEEbEOS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %21, ptr noundef nonnull align 8 dereferenceable(16) %6, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %25 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 0
  %26 = extractvalue { ptr, i8 } %24, 0
  store ptr %26, ptr %25, align 8
  %27 = getelementptr inbounds { ptr, i8 }, ptr %7, i32 0, i32 1
  %28 = extractvalue { ptr, i8 } %24, 1
  store i8 %28, ptr %27, align 8
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  %29 = getelementptr inbounds %"class.JPH::Factory", ptr %14, i32 0, i32 1
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  %30 = load ptr, ptr %5, align 8, !tbaa !5
  %31 = call noundef i32 @_ZNK3JPH4RTTI7GetHashEv(ptr noundef nonnull align 8 dereferenceable(104) %30)
  store i32 %31, ptr %9, align 4, !tbaa !9
  %32 = call { ptr, i8 } @_ZNSt13unordered_mapIjPKN3JPH4RTTIESt4hashIjESt8equal_toIjENS0_12STLAllocatorISt4pairIKjS3_EEEE11try_emplaceIJRS3_EEES9_INSt8__detail14_Node_iteratorISB_Lb0ELb0EEEbEOjDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %29, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 8 dereferenceable(8) %5)
  store { ptr, i8 } %32, ptr %10, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %10, i64 9, i1 false)
  %33 = getelementptr inbounds %"struct.std::pair.27", ptr %8, i32 0, i32 1
  %34 = load i8, ptr %33, align 8, !tbaa !11, !range !16, !noundef !17
  %35 = trunc i8 %34 to i1
  %36 = xor i1 %35, true
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  br i1 %36, label %37, label %43

37:                                               ; preds = %20
  br label %38

38:                                               ; preds = %37
  %39 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 43, ptr noundef @.str.2)
  br i1 %39, label %40, label %41

40:                                               ; preds = %38
  call void asm sideeffect "int $$0x3", "~{dirflag},~{fpsr},~{flags}"() #7, !srcloc !18
  br label %41

41:                                               ; preds = %40, %38
  br label %42

42:                                               ; preds = %41
  store i1 false, ptr %3, align 1
  br label %63

43:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %44

44:                                               ; preds = %57, %43
  %45 = load i32, ptr %12, align 4, !tbaa !9
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = call noundef i32 @_ZNK3JPH4RTTI17GetBaseClassCountEv(ptr noundef nonnull align 8 dereferenceable(104) %46)
  %48 = icmp slt i32 %45, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %44
  store i32 4, ptr %13, align 4
  br label %60

50:                                               ; preds = %44
  %51 = load ptr, ptr %5, align 8, !tbaa !5
  %52 = load i32, ptr %12, align 4, !tbaa !9
  %53 = call noundef ptr @_ZNK3JPH4RTTI12GetBaseClassEi(ptr noundef nonnull align 8 dereferenceable(104) %51, i32 noundef %52)
  %54 = call noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPKNS_4RTTIE(ptr noundef nonnull align 8 dereferenceable(112) %14, ptr noundef %53)
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i1 false, ptr %3, align 1
  store i32 1, ptr %13, align 4
  br label %60

56:                                               ; preds = %50
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %12, align 4, !tbaa !9
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %12, align 4, !tbaa !9
  br label %44, !llvm.loop !19

60:                                               ; preds = %55, %49
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  %61 = load i32, ptr %13, align 4
  switch i32 %61, label %65 [
    i32 4, label %62
    i32 1, label %63
  ]

62:                                               ; preds = %60
  store i1 true, ptr %3, align 1
  br label %63

63:                                               ; preds = %62, %60, %42, %19
  %64 = load i1, ptr %3, align 1
  ret i1 %64

65:                                               ; preds = %60
  unreachable
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPKN3JPH4RTTIESt4hashIS3_ESt8equal_toIS3_ENS4_12STLAllocatorISt4pairIKS3_S7_EEEE11try_emplaceIJRS7_EEESD_INSt8__detail14_Node_iteratorISF_Lb0ELb1EEEbEOS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) #1 align 2

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

declare noundef i32 @_ZNK3JPH4RTTI7GetHashEv(ptr noundef nonnull align 8 dereferenceable(104)) #4

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

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

declare noundef i32 @_ZNK3JPH4RTTI17GetBaseClassCountEv(ptr noundef nonnull align 8 dereferenceable(104)) #4

declare noundef ptr @_ZNK3JPH4RTTI12GetBaseClassEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #6 = { 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 #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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !15, i64 8}
!12 = !{!"_ZTSSt4pairINSt8__detail14_Node_iteratorIS_IKjPKN3JPH4RTTIEELb0ELb0EEEbE", !13, i64 0, !15, i64 8}
!13 = !{!"_ZTSNSt8__detail14_Node_iteratorISt4pairIKjPKN3JPH4RTTIEELb0ELb0EEE", !14, i64 0}
!14 = !{!"_ZTSNSt8__detail19_Node_iterator_baseISt4pairIKjPKN3JPH4RTTIEELb0EEE", !6, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{i8 0, i8 2}
!17 = !{}
!18 = !{i64 2156932824}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}


; 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::basic_string_view" = type { i64, ptr }

@.str = external hidden unnamed_addr constant [6 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [33 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: mustprogress uwtable
declare dso_local noundef ptr @_ZN3JPH7Factory4FindEPKc(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPKNS_4RTTIE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef nonnull %1) local_unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::basic_string_view", align 8
  %5 = alloca i32, align 4
  store ptr %1, ptr %3, align 8, !tbaa !5
  %6 = tail call noundef ptr @_ZNK3JPH4RTTI7GetNameEv(ptr noundef nonnull align 8 dereferenceable(104) %1)
  %7 = tail call noundef ptr @_ZN3JPH7Factory4FindEPKc(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %6)
  %.not = icmp eq ptr %7, null
  br i1 %.not, label %8, label %.loopexit

8:                                                ; preds = %2
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #6
  %9 = tail call noundef ptr @_ZNK3JPH4RTTI7GetNameEv(ptr noundef nonnull align 8 dereferenceable(104) %1)
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef %9) #6
  %10 = call { ptr, i8 } @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPKN3JPH4RTTIESt4hashIS3_ESt8equal_toIS3_ENS4_12STLAllocatorISt4pairIKS3_S7_EEEE11try_emplaceIJRS7_EEESD_INSt8__detail14_Node_iteratorISF_Lb0ELb1EEEbEOS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(56) %0, ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #6
  %11 = getelementptr inbounds i8, ptr %0, i64 56
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #6
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = call noundef i32 @_ZNK3JPH4RTTI7GetHashEv(ptr noundef nonnull align 8 dereferenceable(104) %12)
  store i32 %13, ptr %5, align 4, !tbaa !9
  %14 = call { ptr, i8 } @_ZNSt13unordered_mapIjPKN3JPH4RTTIESt4hashIjESt8equal_toIjENS0_12STLAllocatorISt4pairIKjS3_EEEE11try_emplaceIJRS3_EEES9_INSt8__detail14_Node_iteratorISB_Lb0ELb0EEEbEOjDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %11, ptr noundef nonnull align 4 dereferenceable(4) %5, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %.fca.1.extract = extractvalue { ptr, i8 } %14, 1
  %15 = trunc i8 %.fca.1.extract to i1
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #6
  br i1 %15, label %.preheader, label %19

.preheader:                                       ; preds = %8
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = call noundef i32 @_ZNK3JPH4RTTI17GetBaseClassCountEv(ptr noundef nonnull align 8 dereferenceable(104) %16)
  %18 = icmp slt i32 %17, 1
  br i1 %18, label %.loopexit, label %.lr.ph

19:                                               ; preds = %8
  %20 = call noundef zeroext i1 @_ZN3JPH23AssertFailedParamHelperEPKcS1_jS1_NS_15AssertLastParamE(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 43, ptr noundef nonnull @.str.2)
  br i1 %20, label %21, label %.loopexit

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

22:                                               ; preds = %.lr.ph
  %23 = add nuw nsw i32 %.079, 1
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = call noundef i32 @_ZNK3JPH4RTTI17GetBaseClassCountEv(ptr noundef nonnull align 8 dereferenceable(104) %24)
  %.not12 = icmp slt i32 %23, %25
  br i1 %.not12, label %.lr.ph, label %.loopexit, !llvm.loop !12

.lr.ph:                                           ; preds = %.preheader, %22
  %.079 = phi i32 [ %23, %22 ], [ 0, %.preheader ]
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = call noundef ptr @_ZNK3JPH4RTTI12GetBaseClassEi(ptr noundef nonnull align 8 dereferenceable(104) %26, i32 noundef %.079)
  %28 = call noundef zeroext i1 @_ZN3JPH7Factory8RegisterEPKNS_4RTTIE(ptr noundef nonnull align 8 dereferenceable(112) %0, ptr noundef %27)
  br i1 %28, label %22, label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %22, %.preheader, %21, %19, %2
  %.1 = phi i1 [ true, %2 ], [ false, %19 ], [ false, %21 ], [ true, %.preheader ], [ %28, %22 ], [ %28, %.lr.ph ]
  ret i1 %.1
}

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

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, i8 } @_ZNSt13unordered_mapISt17basic_string_viewIcSt11char_traitsIcEEPKN3JPH4RTTIESt4hashIS3_ESt8equal_toIS3_ENS4_12STLAllocatorISt4pairIKS3_S7_EEEE11try_emplaceIJRS7_EEESD_INSt8__detail14_Node_iteratorISF_Lb0ELb1EEEbEOS3_DpOT_(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

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

declare noundef i32 @_ZNK3JPH4RTTI7GetHashEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4

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

declare noundef i32 @_ZNK3JPH4RTTI17GetBaseClassCountEv(ptr noundef nonnull align 8 dereferenceable(104)) local_unnamed_addr #4

declare noundef ptr @_ZNK3JPH4RTTI12GetBaseClassEi(ptr noundef nonnull align 8 dereferenceable(104), i32 noundef) local_unnamed_addr #4

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

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

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


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass