; LLVM IR from opset/openset :: src (attributeblob)

; 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.openset::db::attr_key_s" = type <{ i32, i64 }>
%class.csLock = type { ptr }
%"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter" = type { ptr, ptr }
%"struct.robin_hood::pair" = type { %"struct.openset::db::attr_key_s", ptr }
%"struct.std::pair" = type <{ %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", i8, [7 x i8] }>
%"class.openset::db::AttributeBlob" = type <{ %"class.robin_hood::detail::unordered_map", %class.HeapStack, %class.CriticalSection, [7 x i8] }>
%"class.robin_hood::detail::unordered_map" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%class.HeapStack = type { i64, i64, i64, i64, i64, ptr, ptr }
%class.CriticalSection = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7openset2db10attr_key_s7makeKeyEil(ptr dead_on_unwind noalias writable sret(%"struct.openset::db::attr_key_s") align 1, i32 noundef, i64 noundef) #1 align 2

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 void @_ZN6csLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

declare noundef i64 @_Z8MakeHashRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7openset2db13AttributeBlob10storeValueEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca %"struct.openset::db::attr_key_s", align 1
  %11 = alloca %class.csLock, align 8
  %12 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca %"struct.robin_hood::pair", align 8
  %19 = alloca %"struct.std::pair", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %20 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #6
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = call noundef i64 @_Z8MakeHashRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %21)
  store i64 %22, ptr %8, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #6
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #6
  %23 = load i32, ptr %6, align 4, !tbaa !9
  %24 = load i64, ptr %8, align 8, !tbaa !11
  call void @_ZN7openset2db10attr_key_s7makeKeyEil(ptr dead_on_unwind writable sret(%"struct.openset::db::attr_key_s") align 1 %10, i32 noundef %23, i64 noundef %24)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  %25 = getelementptr inbounds %"class.openset::db::AttributeBlob", ptr %20, i32 0, i32 2
  call void @_ZN6csLockC2ER15CriticalSection(ptr noundef nonnull align 8 dereferenceable(8) %11, ptr noundef nonnull align 1 dereferenceable(1) %25)
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #6
  %26 = getelementptr inbounds %"class.openset::db::AttributeBlob", ptr %20, i32 0, i32 0
  %27 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 1 dereferenceable(12) %10)
          to label %28 unwind label %46

28:                                               ; preds = %3
  %29 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 0
  %30 = extractvalue { ptr, ptr } %27, 0
  store ptr %30, ptr %29, align 8
  %31 = getelementptr inbounds { ptr, ptr }, ptr %12, i32 0, i32 1
  %32 = extractvalue { ptr, ptr } %27, 1
  store ptr %32, ptr %31, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %33 = getelementptr inbounds %"class.openset::db::AttributeBlob", ptr %20, i32 0, i32 0
  %34 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %33)
          to label %35 unwind label %50

35:                                               ; preds = %28
  %36 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 0
  %37 = extractvalue { ptr, ptr } %34, 0
  store ptr %37, ptr %36, align 8
  %38 = getelementptr inbounds { ptr, ptr }, ptr %15, i32 0, i32 1
  %39 = extractvalue { ptr, ptr } %34, 1
  store ptr %39, ptr %38, align 8
  %40 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSB_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 8 dereferenceable(16) %15) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br i1 %40, label %41, label %54

41:                                               ; preds = %35
  %42 = invoke noundef ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %12)
          to label %43 unwind label %46

43:                                               ; preds = %41
  %44 = getelementptr inbounds %"struct.robin_hood::pair", ptr %42, i32 0, i32 1
  %45 = load ptr, ptr %44, align 8, !tbaa !13
  store ptr %45, ptr %4, align 8
  store i32 1, ptr %16, align 4
  br label %55

46:                                               ; preds = %41, %3
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %13, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %14, align 4
  br label %72

50:                                               ; preds = %28
  %51 = landingpad { ptr, i32 }
          cleanup
  %52 = extractvalue { ptr, i32 } %51, 0
  store ptr %52, ptr %13, align 8
  %53 = extractvalue { ptr, i32 } %51, 1
  store i32 %53, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  br label %72

54:                                               ; preds = %35
  store i32 0, ptr %16, align 4
  br label %55

55:                                               ; preds = %54, %43
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  %56 = load i32, ptr %16, align 4
  switch i32 %56, label %82 [
    i32 0, label %57
  ]

57:                                               ; preds = %55
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %58) #6
  store i64 %59, ptr %17, align 8, !tbaa !11
  %60 = getelementptr inbounds %"class.openset::db::AttributeBlob", ptr %20, i32 0, i32 1
  %61 = load i64, ptr %17, align 8, !tbaa !11
  %62 = add i64 %61, 1
  %63 = invoke noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %60, i64 noundef %62)
          to label %64 unwind label %73

64:                                               ; preds = %57
  store ptr %63, ptr %9, align 8, !tbaa !5
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = load ptr, ptr %7, align 8, !tbaa !5
  %67 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %66) #6
  %68 = call ptr @strcpy(ptr noundef %65, ptr noundef %67) #6
  %69 = getelementptr inbounds %"class.openset::db::AttributeBlob", ptr %20, i32 0, i32 0
  call void @llvm.lifetime.start.p0(i64 24, ptr %18) #6
  call void @_ZN10robin_hood4pairIN7openset2db10attr_key_sEPcEC2IRKS3_RS4_EEOT_OT0_(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef nonnull align 1 dereferenceable(12) %10, ptr noundef nonnull align 8 dereferenceable(8) %9) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %19) #6
  invoke void @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE6insertEONS_4pairIS4_S5_EE(ptr dead_on_unwind writable sret(%"struct.std::pair") align 8 %19, ptr noundef nonnull align 8 dereferenceable(48) %69, ptr noundef nonnull align 8 dereferenceable(24) %18)
          to label %70 unwind label %77

70:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %71, ptr %4, align 8
  store i32 1, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %82

72:                                               ; preds = %50, %46
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #6
  br label %84

73:                                               ; preds = %57
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %13, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %14, align 4
  br label %81

77:                                               ; preds = %64
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %13, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 24, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %18) #6
  br label %81

81:                                               ; preds = %77, %73
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  br label %84

82:                                               ; preds = %70, %55
  call void @_ZN6csLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  %83 = load ptr, ptr %4, align 8
  ret ptr %83

84:                                               ; preds = %81, %72
  call void @_ZN6csLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #6
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr %13, align 8
  %87 = load i32, ptr %14, align 4
  %88 = insertvalue { ptr, i32 } poison, ptr %86, 0
  %89 = insertvalue { ptr, i32 } %88, i32 %87, 1
  resume { ptr, i32 } %89
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(12)) #1 align 2

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

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

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

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

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE6insertEONS_4pairIS4_S5_EE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) #1 align 2

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

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

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

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


; 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.openset::db::attr_key_s" = type <{ i32, i64 }>
%class.csLock = type { ptr }
%"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter" = type { ptr, ptr }
%"struct.robin_hood::pair" = type { %"struct.openset::db::attr_key_s", ptr }
%"struct.std::pair" = type <{ %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", i8, [7 x i8] }>

; 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 uwtable
declare dso_local void @_ZN6csLockC2ER15CriticalSection(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7openset2db10attr_key_s7makeKeyEil(ptr dead_on_unwind noalias writable sret(%"struct.openset::db::attr_key_s") align 1, i32 noundef, i64 noundef) local_unnamed_addr #1 align 2

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 void @_ZN6csLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8)) unnamed_addr #2 align 2

declare noundef i64 @_Z8MakeHashRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN7openset2db13AttributeBlob10storeValueEiRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(105) %0, i32 noundef %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca %"struct.openset::db::attr_key_s", align 1
  %6 = alloca %class.csLock, align 8
  %7 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %8 = alloca %"class.robin_hood::detail::unordered_map<true, 80, openset::db::attr_key_s, char *, robin_hood::hash<openset::db::attr_key_s>, std::equal_to<openset::db::attr_key_s>>::Iter", align 8
  %9 = alloca %"struct.robin_hood::pair", align 8
  %10 = alloca %"struct.std::pair", align 8
  %11 = tail call noundef i64 @_Z8MakeHashRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  store ptr null, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %5) #6
  call void @_ZN7openset2db10attr_key_s7makeKeyEil(ptr dead_on_unwind nonnull writable sret(%"struct.openset::db::attr_key_s") align 1 %5, i32 noundef %1, i64 noundef %11)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %12 = getelementptr inbounds i8, ptr %0, i64 104
  call void @_ZN6csLockC2ER15CriticalSection(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 1 dereferenceable(1) %12)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #6
  %13 = invoke { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 1 dereferenceable(12) %5)
          to label %14 unwind label %26

14:                                               ; preds = %3
  %15 = extractvalue { ptr, ptr } %13, 0
  store ptr %15, ptr %7, align 8
  %16 = getelementptr inbounds i8, ptr %7, i64 8
  %17 = extractvalue { ptr, ptr } %13, 1
  store ptr %17, ptr %16, align 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #6
  %18 = call { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE3endEv(ptr noundef nonnull align 8 dereferenceable(48) %0)
  %19 = extractvalue { ptr, ptr } %18, 0
  store ptr %19, ptr %8, align 8
  %20 = getelementptr inbounds i8, ptr %8, i64 8
  %21 = extractvalue { ptr, ptr } %18, 1
  store ptr %21, ptr %20, align 8
  %22 = call noundef zeroext i1 @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEneILb0EEEbRKNSB_IXT_EEE(ptr noundef nonnull align 8 dereferenceable(16) %7, ptr noundef nonnull align 8 dereferenceable(16) %8) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #6
  br i1 %22, label %.thread, label %28

.thread:                                          ; preds = %14
  %23 = call noundef ptr @_ZNK10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4IterILb0EEptEv(ptr noundef nonnull align 8 dereferenceable(16) %7)
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %42

26:                                               ; preds = %3
  %27 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  br label %43

28:                                               ; preds = %14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #6
  %29 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6lengthEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %30 = getelementptr inbounds i8, ptr %0, i64 48
  %31 = add i64 %29, 1
  %32 = invoke noundef ptr @_ZN9HeapStack6newPtrEl(ptr noundef nonnull align 8 dereferenceable(56) %30, i64 noundef %31)
          to label %33 unwind label %38

33:                                               ; preds = %28
  store ptr %32, ptr %4, align 8, !tbaa !5
  %34 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #6
  %35 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %32, ptr noundef nonnull dereferenceable(1) %34) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %9) #6
  call void @_ZN10robin_hood4pairIN7openset2db10attr_key_sEPcEC2IRKS3_RS4_EEOT_OT0_(ptr noundef nonnull align 8 dereferenceable(24) %9, ptr noundef nonnull align 1 dereferenceable(12) %5, ptr noundef nonnull align 8 dereferenceable(8) %4) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  invoke void @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE6insertEONS_4pairIS4_S5_EE(ptr dead_on_unwind nonnull writable sret(%"struct.std::pair") align 8 %10, ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %9)
          to label %36 unwind label %40

36:                                               ; preds = %33
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  br label %42

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

40:                                               ; preds = %33
  %41 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %9) #6
  br label %43

42:                                               ; preds = %.thread, %36
  %.1 = phi ptr [ %37, %36 ], [ %25, %.thread ]
  call void @_ZN6csLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  ret ptr %.1

43:                                               ; preds = %38, %40, %26
  %.pn.pn = phi { ptr, i32 } [ %27, %26 ], [ %41, %40 ], [ %39, %38 ]
  call void @_ZN6csLockD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  resume { ptr, i32 } %.pn.pn
}

; Function Attrs: mustprogress uwtable
declare dso_local { ptr, ptr } @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE4findERKS4_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 1 dereferenceable(12)) local_unnamed_addr #1 align 2

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #5

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EE6insertEONS_4pairIS4_S5_EE(ptr dead_on_unwind noalias writable sret(%"struct.std::pair") align 8, ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #1 align 2

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

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


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass