; LLVM IR from opset/openset :: src/oloop_cleaner.ll (ZN7openset5async15OpenLoopCleaner7respawnEv)

; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.openset::async::OpenLoopCleaner" = type { %"class.openset::async::OpenLoop", %"class.std::shared_ptr", %"class.openset::db::Customer", i64, ptr }
%"class.openset::async::OpenLoop" = type { ptr, i32, i32, %"class.std::__cxx11::basic_string", i64, i64, i8, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.openset::db::Customer" = type <{ %"class.openset::db::Grid", ptr, ptr, ptr, ptr, i32, [4 x i8] }>
%"class.openset::db::Grid" = type { ptr, %class.HeapStack, %"class.std::vector", ptr, %"class.std::vector.292", ptr, i64, ptr, ptr, ptr, i8, %"class.openset::db::IndexDiffing", i64, %class.HeapStack }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<openset::db::Col_s *, std::allocator<openset::db::Col_s *>>::_Vector_impl" }
%"struct.std::_Vector_base<openset::db::Col_s *, std::allocator<openset::db::Col_s *>>::_Vector_impl" = type { %"struct.std::_Vector_base<openset::db::Col_s *, std::allocator<openset::db::Col_s *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<openset::db::Col_s *, std::allocator<openset::db::Col_s *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.292" = type { %"struct.std::_Vector_base.293" }
%"struct.std::_Vector_base.293" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl" = type { %"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" }
%"struct.std::_Vector_base<long, std::allocator<long>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.openset::db::IndexDiffing" = type { %"class.robin_hood::detail::unordered_map", %"class.robin_hood::detail::unordered_map" }
%"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.openset::db::Table" = type { %"class.std::__cxx11::basic_string", %class.CriticalSection, ptr, %class.CriticalSection, %"class.std::unordered_map.300", %"class.std::unordered_map.314", %class.CriticalSection, %class.cvar, %"class.openset::db::Properties", %"class.openset::db::PropertyMapping", %"class.openset::revent::MessageBroker", %"class.std::unordered_map.377", %"class.std::unordered_map.391", %"class.openset::db::AttributeBlob", %"class.std::unordered_map.413", %"class.std::queue", i64, i8, i8, i32, i64, i64, i64, i64, i64, i32, i32, i64 }
%"class.std::unordered_map.300" = type { %"class.std::_Hashtable.301" }
%"class.std::_Hashtable.301" = 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.314" = type { %"class.std::_Hashtable.315" }
%"class.std::_Hashtable.315" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%class.CriticalSection = type { %"struct.std::atomic" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%class.cvar = type { i8, %"union.cvar::dataUnion", %"union.cvar::dataUnion", %"class.std::__cxx11::basic_string", ptr, ptr, ptr, ptr }
%"union.cvar::dataUnion" = type { i64 }
%"class.openset::db::Properties" = type <{ %class.CriticalSection, [7 x i8], [4096 x %"struct.openset::db::Properties::Property_s"], %"class.robin_hood::detail::unordered_map.328", %"class.robin_hood::detail::unordered_map.328", i32, [4 x i8] }>
%"struct.openset::db::Properties::Property_s" = type <{ %"class.std::__cxx11::basic_string", i32, i32, i8, i8, i8, [5 x i8] }>
%"class.robin_hood::detail::unordered_map.328" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"class.openset::db::PropertyMapping" = type { %class.CriticalSection, ptr, %"class.robin_hood::detail::unordered_map.333" }
%"class.robin_hood::detail::unordered_map.333" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"class.openset::revent::MessageBroker" = type { %class.CriticalSection, %"class.std::unordered_map.340", %"class.std::unordered_map.358" }
%"class.std::unordered_map.340" = type { %"class.std::_Hashtable.341" }
%"class.std::_Hashtable.341" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.358" = type { %"class.std::_Hashtable.359" }
%"class.std::_Hashtable.359" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.377" = type { %"class.std::_Hashtable.378" }
%"class.std::_Hashtable.378" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::unordered_map.391" = type { %"class.std::_Hashtable.392" }
%"class.std::_Hashtable.392" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.openset::db::AttributeBlob" = type <{ %"class.robin_hood::detail::unordered_map.405", %class.HeapStack, %class.CriticalSection, [7 x i8] }>
%"class.robin_hood::detail::unordered_map.405" = type { ptr, ptr, i64, i64, i64, i32, i32 }
%"class.std::unordered_map.413" = type { %"class.std::_Hashtable.414" }
%"class.std::_Hashtable.414" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::queue" = type { %"class.std::deque" }
%"class.std::deque" = type { %"class.std::_Deque_base" }
%"class.std::_Deque_base" = type { %"struct.std::_Deque_base<openset::db::TablePartitioned *, std::allocator<openset::db::TablePartitioned *>>::_Deque_impl" }
%"struct.std::_Deque_base<openset::db::TablePartitioned *, std::allocator<openset::db::TablePartitioned *>>::_Deque_impl" = type { %"struct.std::_Deque_base<openset::db::TablePartitioned *, std::allocator<openset::db::TablePartitioned *>>::_Deque_impl_data" }
%"struct.std::_Deque_base<openset::db::TablePartitioned *, std::allocator<openset::db::TablePartitioned *>>::_Deque_impl_data" = type { ptr, i64, %"struct.std::_Deque_iterator", %"struct.std::_Deque_iterator" }
%"struct.std::_Deque_iterator" = type { ptr, ptr, ptr, 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 ptr @_ZNKSt19__shared_ptr_accessIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

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

declare void @_ZN7openset5async8OpenLoop7suicideEv(ptr noundef nonnull align 8 dereferenceable(80)) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7openset5async15OpenLoopCleaner7respawnEv(ptr noundef nonnull align 8 dereferenceable(480) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %"class.std::shared_ptr", align 8
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i1, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %9 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 480) #7
  store i1 true, ptr %7, align 1
  %10 = getelementptr inbounds %"class.openset::async::OpenLoopCleaner", ptr %8, i32 0, i32 1
  call void @_ZNSt10shared_ptrIN7openset2db5TableEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %4, ptr noundef nonnull align 8 dereferenceable(16) %10) #6
  invoke void @_ZN7openset5async15OpenLoopCleanerC1ESt10shared_ptrINS_2db5TableEE(ptr noundef nonnull align 8 dereferenceable(480) %9, ptr noundef %4)
          to label %11 unwind label %18

11:                                               ; preds = %1
  store i1 false, ptr %7, align 1
  call void @_ZNSt12__shared_ptrIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  store ptr %9, ptr %3, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8, !tbaa !5
  %13 = getelementptr inbounds %"class.openset::async::OpenLoopCleaner", ptr %8, i32 0, i32 1
  %14 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  %15 = getelementptr inbounds %"class.openset::db::Table", ptr %14, i32 0, i32 23
  %16 = load i64, ptr %15, align 8, !tbaa !9
  call void @_ZN7openset5async8OpenLoop14scheduleFutureEm(ptr noundef nonnull align 8 dereferenceable(80) %12, i64 noundef %16)
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZNK7openset5async8OpenLoop5spawnEPS1_(ptr noundef nonnull align 8 dereferenceable(80) %8, ptr noundef %17)
  call void @_ZN7openset5async8OpenLoop7suicideEv(ptr noundef nonnull align 8 dereferenceable(80) %8)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

18:                                               ; preds = %1
  %19 = landingpad { ptr, i32 }
          cleanup
  %20 = extractvalue { ptr, i32 } %19, 0
  store ptr %20, ptr %5, align 8
  %21 = extractvalue { ptr, i32 } %19, 1
  store i32 %21, ptr %6, align 4
  call void @_ZNSt12__shared_ptrIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  %22 = load i1, ptr %7, align 1
  br i1 %22, label %23, label %24

23:                                               ; preds = %18
  call void @_ZdlPvm(ptr noundef %9, i64 noundef 480) #8
  br label %24

24:                                               ; preds = %23, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %25

25:                                               ; preds = %24
  %26 = load ptr, ptr %5, align 8
  %27 = load i32, ptr %6, align 4
  %28 = insertvalue { ptr, i32 } poison, ptr %26, 0
  %29 = insertvalue { ptr, i32 } %28, i32 %27, 1
  resume { ptr, i32 } %29
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

declare void @_ZN7openset5async8OpenLoop14scheduleFutureEm(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) #2

declare void @_ZNK7openset5async8OpenLoop5spawnEPS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) #2

declare void @_ZN7openset5async15OpenLoopCleanerC1ESt10shared_ptrINS_2db5TableEE(ptr, ptr)

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 = { "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 = { nobuiltin allocsize(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 = { nobuiltin 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 }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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, !13, i64 197568}
!10 = !{!"_ZTSN7openset2db5TableE", !11, i64 0, !14, i64 32, !6, i64 40, !14, i64 48, !18, i64 56, !23, i64 112, !14, i64 168, !25, i64 176, !27, i64 264, !30, i64 196984, !32, i64 197048, !37, i64 197168, !39, i64 197224, !41, i64 197280, !44, i64 197392, !46, i64 197448, !13, i64 197528, !17, i64 197536, !17, i64 197537, !29, i64 197540, !13, i64 197544, !13, i64 197552, !13, i64 197560, !13, i64 197568, !13, i64 197576, !29, i64 197584, !29, i64 197588, !13, i64 197592}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS15CriticalSection", !15, i64 0}
!15 = !{!"_ZTSSt6atomicIbE", !16, i64 0}
!16 = !{!"_ZTSSt13__atomic_baseIbE", !17, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db12SegmentTtl_sESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE", !19, i64 0}
!19 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7openset2db12SegmentTtl_sEESaISB_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !20, i64 16, !13, i64 24, !21, i64 32, !6, i64 48}
!20 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!21 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !22, i64 0, !13, i64 8}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db16SegmentRefresh_sESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE", !24, i64 0}
!24 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7openset2db16SegmentRefresh_sEESaISB_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !20, i64 16, !13, i64 24, !21, i64 32, !6, i64 48}
!25 = !{!"_ZTS4cvar", !26, i64 0, !7, i64 8, !7, i64 16, !11, i64 24, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!26 = !{!"_ZTSN4cvar9valueTypeE", !7, i64 0}
!27 = !{!"_ZTSN7openset2db10PropertiesE", !14, i64 0, !7, i64 8, !28, i64 196616, !28, i64 196664, !29, i64 196712}
!28 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7openset2db10Properties10Property_sENS_4hashIS7_EESt8equal_toIS7_EEE", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !29, i64 40, !29, i64 44}
!29 = !{!"int", !7, i64 0}
!30 = !{!"_ZTSN7openset2db15PropertyMappingE", !14, i64 0, !6, i64 8, !31, i64 16}
!31 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80ElPN7openset2db13PropertyMap_sENS_4hashIlEESt8equal_toIlEEE", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !29, i64 40, !29, i64 44}
!32 = !{!"_ZTSN7openset6revent13MessageBrokerE", !14, i64 0, !33, i64 8, !35, i64 64}
!33 = !{!"_ZTSSt13unordered_mapIlS_IlSt5queueIN7openset6revent16TriggerMessage_sESt5dequeIS3_SaIS3_EEESt4hashIlESt8equal_toIlESaISt4pairIKlS7_EEES9_SB_SaISC_ISD_SG_EEE", !34, i64 0}
!34 = !{!"_ZTSSt10_HashtableIlSt4pairIKlSt13unordered_mapIlSt5queueIN7openset6revent16TriggerMessage_sESt5dequeIS6_SaIS6_EEESt4hashIlESt8equal_toIlESaIS0_IS1_SA_EEEESaISI_ENSt8__detail10_Select1stESE_SC_NSK_18_Mod_range_hashingENSK_20_Default_ranged_hashENSK_20_Prime_rehash_policyENSK_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !20, i64 16, !13, i64 24, !21, i64 32, !6, i64 48}
!35 = !{!"_ZTSSt13unordered_mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_EN7openset6revent8Broker_sESt4hashIS7_ESt8equal_toIS7_ESaIS0_IKS7_SA_EEE", !36, i64 0}
!36 = !{!"_ZTSSt10_HashtableISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ES0_IKS7_N7openset6revent8Broker_sEESaISC_ENSt8__detail10_Select1stESt8equal_toIS7_ESt4hashIS7_ENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !20, i64 16, !13, i64 24, !21, i64 32, !6, i64 48}
!37 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE", !38, i64 0}
!38 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !20, i64 16, !13, i64 24, !21, i64 32, !6, i64 48}
!39 = !{!"_ZTSSt13unordered_mapIliSt4hashIlESt8equal_toIlESaISt4pairIKliEEE", !40, i64 0}
!40 = !{!"_ZTSSt10_HashtableIlSt4pairIKliESaIS2_ENSt8__detail10_Select1stESt8equal_toIlESt4hashIlENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !20, i64 16, !13, i64 24, !21, i64 32, !6, i64 48}
!41 = !{!"_ZTSN7openset2db13AttributeBlobE", !42, i64 0, !43, i64 48, !14, i64 104}
!42 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EEE", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !29, i64 40, !29, i64 44}
!43 = !{!"_ZTS9HeapStack", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !6, i64 40, !6, i64 48}
!44 = !{!"_ZTSSt13unordered_mapIiPN7openset2db16TablePartitionedESt4hashIiESt8equal_toIiESaISt4pairIKiS3_EEE", !45, i64 0}
!45 = !{!"_ZTSSt10_HashtableIiSt4pairIKiPN7openset2db16TablePartitionedEESaIS6_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !13, i64 8, !20, i64 16, !13, i64 24, !21, i64 32, !6, i64 48}
!46 = !{!"_ZTSSt5queueIPN7openset2db16TablePartitionedESt5dequeIS3_SaIS3_EEE", !47, i64 0}
!47 = !{!"_ZTSSt5dequeIPN7openset2db16TablePartitionedESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSSt11_Deque_baseIPN7openset2db16TablePartitionedESaIS3_EE", !49, i64 0}
!49 = !{!"_ZTSNSt11_Deque_baseIPN7openset2db16TablePartitionedESaIS3_EE11_Deque_implE", !50, i64 0}
!50 = !{!"_ZTSNSt11_Deque_baseIPN7openset2db16TablePartitionedESaIS3_EE16_Deque_impl_dataE", !6, i64 0, !13, i64 8, !51, i64 16, !51, i64 48}
!51 = !{!"_ZTSSt15_Deque_iteratorIPN7openset2db16TablePartitionedERS3_PS3_E", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}


; 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::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt19__shared_ptr_accessIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #0 align 2

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

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

declare void @_ZN7openset5async8OpenLoop7suicideEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7openset5async15OpenLoopCleaner7respawnEv(ptr noundef nonnull align 8 dereferenceable(480) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::shared_ptr", align 8
  %3 = tail call noalias noundef nonnull dereferenceable(480) ptr @_Znwm(i64 noundef 480) #5
  %4 = getelementptr inbounds i8, ptr %0, i64 80
  call void @_ZNSt10shared_ptrIN7openset2db5TableEEC2ERKS3_(ptr noundef nonnull align 8 dereferenceable(16) %2, ptr noundef nonnull align 8 dereferenceable(16) %4) #6
  invoke void @_ZN7openset5async15OpenLoopCleanerC1ESt10shared_ptrINS_2db5TableEE(ptr noundef nonnull align 8 dereferenceable(480) %3, ptr noundef nonnull %2)
          to label %5 unwind label %9

5:                                                ; preds = %1
  call void @_ZNSt12__shared_ptrIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  %6 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %4) #6
  %7 = getelementptr inbounds i8, ptr %6, i64 197568
  %8 = load i64, ptr %7, align 8, !tbaa !5
  call void @_ZN7openset5async8OpenLoop14scheduleFutureEm(ptr noundef nonnull align 8 dereferenceable(80) %3, i64 noundef %8)
  call void @_ZNK7openset5async8OpenLoop5spawnEPS1_(ptr noundef nonnull align 8 dereferenceable(80) %0, ptr noundef nonnull %3)
  call void @_ZN7openset5async8OpenLoop7suicideEv(ptr noundef nonnull align 8 dereferenceable(80) %0)
  ret void

9:                                                ; preds = %1
  %10 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN7openset2db5TableELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %2) #6
  call void @_ZdlPvm(ptr noundef nonnull %3, i64 noundef 480) #7
  resume { ptr, i32 } %10
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare void @_ZN7openset5async8OpenLoop14scheduleFutureEm(ptr noundef nonnull align 8 dereferenceable(80), i64 noundef) local_unnamed_addr #1

declare void @_ZNK7openset5async8OpenLoop5spawnEPS1_(ptr noundef nonnull align 8 dereferenceable(80), ptr noundef) local_unnamed_addr #1

declare void @_ZN7openset5async15OpenLoopCleanerC1ESt10shared_ptrINS_2db5TableEE(ptr, ptr) local_unnamed_addr

attributes #0 = { 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 #1 = { "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 = { nobuiltin allocsize(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 = { nobuiltin 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 #5 = { builtin allocsize(0) }
attributes #6 = { nounwind }
attributes #7 = { builtin 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, !12, i64 197568}
!6 = !{!"_ZTSN7openset2db5TableE", !7, i64 0, !13, i64 32, !9, i64 40, !13, i64 48, !17, i64 56, !22, i64 112, !13, i64 168, !24, i64 176, !26, i64 264, !29, i64 196984, !31, i64 197048, !36, i64 197168, !38, i64 197224, !40, i64 197280, !43, i64 197392, !45, i64 197448, !12, i64 197528, !16, i64 197536, !16, i64 197537, !28, i64 197540, !12, i64 197544, !12, i64 197552, !12, i64 197560, !12, i64 197568, !12, i64 197576, !28, i64 197584, !28, i64 197588, !12, i64 197592}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTS15CriticalSection", !14, i64 0}
!14 = !{!"_ZTSSt6atomicIbE", !15, i64 0}
!15 = !{!"_ZTSSt13__atomic_baseIbE", !16, i64 0}
!16 = !{!"bool", !10, i64 0}
!17 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db12SegmentTtl_sESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE", !18, i64 0}
!18 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7openset2db12SegmentTtl_sEESaISB_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !19, i64 16, !12, i64 24, !20, i64 32, !9, i64 48}
!19 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !9, i64 0}
!20 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !21, i64 0, !12, i64 8}
!21 = !{!"float", !10, i64 0}
!22 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEN7openset2db16SegmentRefresh_sESt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_S8_EEE", !23, i64 0}
!23 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_N7openset2db16SegmentRefresh_sEESaISB_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb1ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !19, i64 16, !12, i64 24, !20, i64 32, !9, i64 48}
!24 = !{!"_ZTS4cvar", !25, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80}
!25 = !{!"_ZTSN4cvar9valueTypeE", !10, i64 0}
!26 = !{!"_ZTSN7openset2db10PropertiesE", !13, i64 0, !10, i64 8, !27, i64 196616, !27, i64 196664, !28, i64 196712}
!27 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN7openset2db10Properties10Property_sENS_4hashIS7_EESt8equal_toIS7_EEE", !9, i64 0, !9, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !28, i64 40, !28, i64 44}
!28 = !{!"int", !10, i64 0}
!29 = !{!"_ZTSN7openset2db15PropertyMappingE", !13, i64 0, !9, i64 8, !30, i64 16}
!30 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80ElPN7openset2db13PropertyMap_sENS_4hashIlEESt8equal_toIlEEE", !9, i64 0, !9, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !28, i64 40, !28, i64 44}
!31 = !{!"_ZTSN7openset6revent13MessageBrokerE", !13, i64 0, !32, i64 8, !34, i64 64}
!32 = !{!"_ZTSSt13unordered_mapIlS_IlSt5queueIN7openset6revent16TriggerMessage_sESt5dequeIS3_SaIS3_EEESt4hashIlESt8equal_toIlESaISt4pairIKlS7_EEES9_SB_SaISC_ISD_SG_EEE", !33, i64 0}
!33 = !{!"_ZTSSt10_HashtableIlSt4pairIKlSt13unordered_mapIlSt5queueIN7openset6revent16TriggerMessage_sESt5dequeIS6_SaIS6_EEESt4hashIlESt8equal_toIlESaIS0_IS1_SA_EEEESaISI_ENSt8__detail10_Select1stESE_SC_NSK_18_Mod_range_hashingENSK_20_Default_ranged_hashENSK_20_Prime_rehash_policyENSK_17_Hashtable_traitsILb0ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !19, i64 16, !12, i64 24, !20, i64 32, !9, i64 48}
!34 = !{!"_ZTSSt13unordered_mapISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_EN7openset6revent8Broker_sESt4hashIS7_ESt8equal_toIS7_ESaIS0_IKS7_SA_EEE", !35, i64 0}
!35 = !{!"_ZTSSt10_HashtableISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_ES0_IKS7_N7openset6revent8Broker_sEESaISC_ENSt8__detail10_Select1stESt8equal_toIS7_ESt4hashIS7_ENSE_18_Mod_range_hashingENSE_20_Default_ranged_hashENSE_20_Prime_rehash_policyENSE_17_Hashtable_traitsILb1ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !19, i64 16, !12, i64 24, !20, i64 32, !9, i64 48}
!36 = !{!"_ZTSSt13unordered_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiSt4hashIS5_ESt8equal_toIS5_ESaISt4pairIKS5_iEEE", !37, i64 0}
!37 = !{!"_ZTSSt10_HashtableINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_iESaIS8_ENSt8__detail10_Select1stESt8equal_toIS5_ESt4hashIS5_ENSA_18_Mod_range_hashingENSA_20_Default_ranged_hashENSA_20_Prime_rehash_policyENSA_17_Hashtable_traitsILb1ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !19, i64 16, !12, i64 24, !20, i64 32, !9, i64 48}
!38 = !{!"_ZTSSt13unordered_mapIliSt4hashIlESt8equal_toIlESaISt4pairIKliEEE", !39, i64 0}
!39 = !{!"_ZTSSt10_HashtableIlSt4pairIKliESaIS2_ENSt8__detail10_Select1stESt8equal_toIlESt4hashIlENS4_18_Mod_range_hashingENS4_20_Default_ranged_hashENS4_20_Prime_rehash_policyENS4_17_Hashtable_traitsILb0ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !19, i64 16, !12, i64 24, !20, i64 32, !9, i64 48}
!40 = !{!"_ZTSN7openset2db13AttributeBlobE", !41, i64 0, !42, i64 48, !13, i64 104}
!41 = !{!"_ZTSN10robin_hood6detail13unordered_mapILb1ELm80EN7openset2db10attr_key_sEPcNS_4hashIS4_EESt8equal_toIS4_EEE", !9, i64 0, !9, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !28, i64 40, !28, i64 44}
!42 = !{!"_ZTS9HeapStack", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !9, i64 40, !9, i64 48}
!43 = !{!"_ZTSSt13unordered_mapIiPN7openset2db16TablePartitionedESt4hashIiESt8equal_toIiESaISt4pairIKiS3_EEE", !44, i64 0}
!44 = !{!"_ZTSSt10_HashtableIiSt4pairIKiPN7openset2db16TablePartitionedEESaIS6_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS8_18_Mod_range_hashingENS8_20_Default_ranged_hashENS8_20_Prime_rehash_policyENS8_17_Hashtable_traitsILb0ELb0ELb1EEEE", !9, i64 0, !12, i64 8, !19, i64 16, !12, i64 24, !20, i64 32, !9, i64 48}
!45 = !{!"_ZTSSt5queueIPN7openset2db16TablePartitionedESt5dequeIS3_SaIS3_EEE", !46, i64 0}
!46 = !{!"_ZTSSt5dequeIPN7openset2db16TablePartitionedESaIS3_EE", !47, i64 0}
!47 = !{!"_ZTSSt11_Deque_baseIPN7openset2db16TablePartitionedESaIS3_EE", !48, i64 0}
!48 = !{!"_ZTSNSt11_Deque_baseIPN7openset2db16TablePartitionedESaIS3_EE11_Deque_implE", !49, i64 0}
!49 = !{!"_ZTSNSt11_Deque_baseIPN7openset2db16TablePartitionedESaIS3_EE16_Deque_impl_dataE", !9, i64 0, !12, i64 8, !50, i64 16, !50, i64 48}
!50 = !{!"_ZTSSt15_Deque_iteratorIPN7openset2db16TablePartitionedERS3_PS3_E", !9, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}


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