; LLVM IR from wichue/nethello :: src/event/EventLoop.ll (ZN3chw9EventLoop8delEventEiSt8functionIFvbEE)

; 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.45" = type { %"class.std::__shared_ptr.46" }
%"class.std::__shared_ptr.46" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.58 = type { i8 }
%"struct.std::pair.60" = type <{ %"struct.std::__detail::_Node_iterator.62", i8, [7 x i8] }>
%"struct.std::__detail::_Node_iterator.62" = type { %"struct.std::__detail::_Node_iterator_base.63" }
%"struct.std::__detail::_Node_iterator_base.63" = type { ptr }
%"class.std::function.48" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.65 = type { ptr, i32, %"class.std::function.55" }
%"class.std::function.55" = type { %"class.std::_Function_base", ptr }
%"class.chw::EventLoop" = type { %"class.std::enable_shared_from_this", i8, %"class.std::__cxx11::basic_string", ptr, %"class.chw::Semaphore", %"class.chw::PipeWrap", %"class.std::mutex", %"class.chw::List", %"class.std::shared_ptr.3", i32, %"class.std::unordered_map", %"class.std::unordered_set", %"class.std::multimap" }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { 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.chw::Semaphore" = type { i64, %"class.std::recursive_mutex", %"class.std::_V2::condition_variable_any" }
%"class.std::recursive_mutex" = type { %"class.std::__recursive_mutex_base" }
%"class.std::__recursive_mutex_base" = type { %union.pthread_mutex_t }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::_V2::condition_variable_any" = type { %"class.std::condition_variable", %"class.std::shared_ptr" }
%"class.std::condition_variable" = type { %"class.std::__condvar" }
%"class.std::__condvar" = type { %union.pthread_cond_t }
%union.pthread_cond_t = type { %struct.__pthread_cond_s }
%struct.__pthread_cond_s = type { %union.__atomic_wide_counter, %union.__atomic_wide_counter, [2 x i32], [2 x i32], i32, i32, [2 x i32] }
%union.__atomic_wide_counter = type { i64 }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.chw::PipeWrap" = type { [2 x i32] }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__mutex_base" = type { %union.pthread_mutex_t }
%"class.chw::List" = type { %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::shared_ptr<chw::TaskCancelableImp<void ()>>, std::allocator<std::shared_ptr<chw::TaskCancelableImp<void ()>>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::shared_ptr<chw::TaskCancelableImp<void ()>>, std::allocator<std::shared_ptr<chw::TaskCancelableImp<void ()>>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.std::shared_ptr.3" = type { %"class.std::__shared_ptr.4" }
%"class.std::__shared_ptr.4" = type { ptr, %"class.std::__shared_count" }
%"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_set" = type { %"class.std::_Hashtable.11" }
%"class.std::_Hashtable.11" = type { ptr, i64, %"struct.std::__detail::_Hash_node_base", i64, %"struct.std::__detail::_Prime_rehash_policy", ptr }
%"class.std::multimap" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, std::shared_ptr<chw::TaskCancelableImp<unsigned long ()>>>, std::_Select1st<std::pair<const unsigned long, std::shared_ptr<chw::TaskCancelableImp<unsigned long ()>>>>, std::less<unsigned long>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<unsigned long, std::pair<const unsigned long, std::shared_ptr<chw::TaskCancelableImp<unsigned long ()>>>, std::_Select1st<std::pair<const unsigned long, std::shared_ptr<chw::TaskCancelableImp<unsigned long ()>>>>, std::less<unsigned long>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, 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 void @_ZNSt12__shared_ptrIN3chw17TaskCancelableImpIFvvEJEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3chw9EventLoop15isCurrentThreadEv(ptr noundef nonnull align 8 dereferenceable(432)) #1 align 2

; Function Attrs: nounwind
declare i32 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3chw9EventLoop5asyncESt8functionIFvvEEb(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.45") align 8, ptr noundef nonnull align 8 dereferenceable(432), ptr noundef, i1 noundef zeroext) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3chw9EventLoop8delEventEiSt8functionIFvbEE(ptr noundef nonnull align 8 dereferenceable(432) %0, i32 noundef %1, ptr noundef %2) #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca %class.anon.58, align 1
  %9 = alloca i32, align 4
  %10 = alloca %"struct.std::pair.60", align 8
  %11 = alloca %"class.std::shared_ptr.45", align 8
  %12 = alloca %"class.std::function.48", align 8
  %13 = alloca %class.anon.65, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  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
  %16 = load ptr, ptr %5, align 8
  %17 = call noundef zeroext i1 @_ZNKSt8functionIFvbEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  br i1 %17, label %20, label %18

18:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #5
  %19 = call noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvbEEaSIZN3chw9EventLoop8delEventEiS1_E3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS6_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceIS8_E4typeEE4typeES1_EE5valueESt5decayIS8_EE4type4typeESt15__invoke_resultIRSJ_JbEEEE5valueERS1_E4typeEOS8_"(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(1) %8) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #5
  br label %20

20:                                               ; preds = %18, %3
  %21 = call noundef zeroext i1 @_ZN3chw9EventLoop15isCurrentThreadEv(ptr noundef nonnull align 8 dereferenceable(432) %16)
  br i1 %21, label %22, label %41

22:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 -1, ptr %9, align 4, !tbaa !9
  %23 = getelementptr inbounds %"class.chw::EventLoop", ptr %16, i32 0, i32 10
  %24 = call noundef i64 @_ZNSt13unordered_mapIiSt10shared_ptrISt8functionIFviEEESt4hashIiESt8equal_toIiESaISt4pairIKiS4_EEE5eraseERSA_(ptr noundef nonnull align 8 dereferenceable(56) %23, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %25 = icmp ne i64 %24, 0
  br i1 %25, label %26, label %37

26:                                               ; preds = %22
  %27 = getelementptr inbounds %"class.chw::EventLoop", ptr %16, i32 0, i32 11
  %28 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE7emplaceIJRiEEESt4pairINSt8__detail14_Node_iteratorIiLb1ELb0EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %27, ptr noundef nonnull align 4 dereferenceable(4) %6)
  %29 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 0
  %30 = extractvalue { ptr, i8 } %28, 0
  store ptr %30, ptr %29, align 8
  %31 = getelementptr inbounds { ptr, i8 }, ptr %10, i32 0, i32 1
  %32 = extractvalue { ptr, i8 } %28, 1
  store i8 %32, ptr %31, align 8
  %33 = getelementptr inbounds %"class.chw::EventLoop", ptr %16, i32 0, i32 9
  %34 = load i32, ptr %33, align 8, !tbaa !11
  %35 = load i32, ptr %6, align 4, !tbaa !9
  %36 = call i32 @epoll_ctl(i32 noundef %34, i32 noundef 2, i32 noundef %35, ptr noundef null) #5
  store i32 %36, ptr %9, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %26, %22
  %38 = load i32, ptr %9, align 4, !tbaa !9
  %39 = icmp ne i32 %38, -1
  call void @_ZNKSt8functionIFvbEEclEb(ptr noundef nonnull align 8 dereferenceable(32) %2, i1 noundef zeroext %39)
  %40 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %40, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %57

41:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 48, ptr %13) #5
  %42 = getelementptr inbounds %class.anon.65, ptr %13, i32 0, i32 0
  store ptr %16, ptr %42, align 8, !tbaa !56
  %43 = getelementptr inbounds %class.anon.65, ptr %13, i32 0, i32 1
  %44 = load i32, ptr %6, align 4, !tbaa !9
  store i32 %44, ptr %43, align 8, !tbaa !60
  %45 = getelementptr inbounds %class.anon.65, ptr %13, i32 0, i32 2
  call void @_ZNSt8functionIFvbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %45, ptr noundef nonnull align 8 dereferenceable(32) %2)
  invoke void @"_ZNSt8functionIFvvEEC2IZN3chw9EventLoop8delEventEiS_IFvbEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(48) %13)
          to label %46 unwind label %48

46:                                               ; preds = %41
  invoke void @_ZN3chw9EventLoop5asyncESt8functionIFvvEEb(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.45") align 8 %11, ptr noundef nonnull align 8 dereferenceable(432) %16, ptr noundef %12, i1 noundef zeroext true)
          to label %47 unwind label %52

47:                                               ; preds = %46
  call void @_ZNSt12__shared_ptrIN3chw17TaskCancelableImpIFvvEJEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  call void @"_ZZN3chw9EventLoop8delEventEiSt8functionIFvbEEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  store i32 0, ptr %4, align 4
  br label %57

48:                                               ; preds = %41
  %49 = landingpad { ptr, i32 }
          cleanup
  %50 = extractvalue { ptr, i32 } %49, 0
  store ptr %50, ptr %14, align 8
  %51 = extractvalue { ptr, i32 } %49, 1
  store i32 %51, ptr %15, align 4
  br label %56

52:                                               ; preds = %46
  %53 = landingpad { ptr, i32 }
          cleanup
  %54 = extractvalue { ptr, i32 } %53, 0
  store ptr %54, ptr %14, align 8
  %55 = extractvalue { ptr, i32 } %53, 1
  store i32 %55, ptr %15, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #5
  br label %56

56:                                               ; preds = %52, %48
  call void @"_ZZN3chw9EventLoop8delEventEiSt8functionIFvbEEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %13) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr %13) #5
  br label %59

57:                                               ; preds = %47, %37
  %58 = load i32, ptr %4, align 4
  ret i32 %58

59:                                               ; preds = %56
  %60 = load ptr, ptr %14, align 8
  %61 = load i32, ptr %15, 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 noundef zeroext i1 @_ZNKSt8functionIFvbEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvbEEaSIZN3chw9EventLoop8delEventEiS1_E3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS6_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceIS8_E4typeEE4typeES1_EE5valueESt5decayIS8_EE4type4typeESt15__invoke_resultIRSJ_JbEEEE5valueERS1_E4typeEOS8_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvbEEclEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3chw9EventLoop8delEventEiS_IFvbEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3chw9EventLoop8delEventEiSt8functionIFvbEEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !10, i64 264}
!12 = !{!"_ZTSN3chw9EventLoopE", !13, i64 0, !17, i64 16, !18, i64 24, !6, i64 56, !21, i64 64, !30, i64 176, !31, i64 184, !33, i64 224, !39, i64 248, !10, i64 264, !41, i64 272, !46, i64 328, !48, i64 384}
!13 = !{!"_ZTSSt23enable_shared_from_thisIN3chw9EventLoopEE", !14, i64 0}
!14 = !{!"_ZTSSt8weak_ptrIN3chw9EventLoopEE", !15, i64 0}
!15 = !{!"_ZTSSt10__weak_ptrIN3chw9EventLoopELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!17 = !{!"bool", !7, i64 0}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !19, i64 0, !20, i64 8, !7, i64 16}
!19 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!20 = !{!"long", !7, i64 0}
!21 = !{!"_ZTSN3chw9SemaphoreE", !20, i64 0, !22, i64 8, !24, i64 48}
!22 = !{!"_ZTSSt15recursive_mutex", !23, i64 0}
!23 = !{!"_ZTSSt22__recursive_mutex_base", !7, i64 0}
!24 = !{!"_ZTSNSt3_V222condition_variable_anyE", !25, i64 0, !27, i64 48}
!25 = !{!"_ZTSSt18condition_variable", !26, i64 0}
!26 = !{!"_ZTSSt9__condvar", !7, i64 0}
!27 = !{!"_ZTSSt10shared_ptrISt5mutexE", !28, i64 0}
!28 = !{!"_ZTSSt12__shared_ptrISt5mutexLN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !29, i64 8}
!29 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!30 = !{!"_ZTSN3chw8PipeWrapE", !7, i64 0}
!31 = !{!"_ZTSSt5mutex", !32, i64 0}
!32 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!33 = !{!"_ZTSN3chw4ListISt10shared_ptrINS_17TaskCancelableImpIFvvEJEEEEEE", !34, i64 0}
!34 = !{!"_ZTSNSt7__cxx114listISt10shared_ptrIN3chw17TaskCancelableImpIFvvEJEEEESaIS6_EEE", !35, i64 0}
!35 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN3chw17TaskCancelableImpIFvvEJEEEESaIS6_EEE", !36, i64 0}
!36 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN3chw17TaskCancelableImpIFvvEJEEEESaIS6_EE10_List_implE", !37, i64 0}
!37 = !{!"_ZTSNSt8__detail17_List_node_headerE", !38, i64 0, !20, i64 16}
!38 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!39 = !{!"_ZTSSt10shared_ptrIN3chw6LoggerEE", !40, i64 0}
!40 = !{!"_ZTSSt12__shared_ptrIN3chw6LoggerELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !29, i64 8}
!41 = !{!"_ZTSSt13unordered_mapIiSt10shared_ptrISt8functionIFviEEESt4hashIiESt8equal_toIiESaISt4pairIKiS4_EEE", !42, i64 0}
!42 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt10shared_ptrISt8functionIFviEEEESaIS7_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE", !6, i64 0, !20, i64 8, !43, i64 16, !20, i64 24, !44, i64 32, !6, i64 48}
!43 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !6, i64 0}
!44 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !45, i64 0, !20, i64 8}
!45 = !{!"float", !7, i64 0}
!46 = !{!"_ZTSSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE", !47, i64 0}
!47 = !{!"_ZTSSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !6, i64 0, !20, i64 8, !43, i64 16, !20, i64 24, !44, i64 32, !6, i64 48}
!48 = !{!"_ZTSSt8multimapImSt10shared_ptrIN3chw17TaskCancelableImpIFmvEJEEEESt4lessImESaISt4pairIKmS5_EEE", !49, i64 0}
!49 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmSt10shared_ptrIN3chw17TaskCancelableImpIFmvEJEEEEESt10_Select1stIS8_ESt4lessImESaIS8_EE", !50, i64 0}
!50 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmSt10shared_ptrIN3chw17TaskCancelableImpIFmvEJEEEEESt10_Select1stIS8_ESt4lessImESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !51, i64 0, !53, i64 8}
!51 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !52, i64 0}
!52 = !{!"_ZTSSt4lessImE"}
!53 = !{!"_ZTSSt15_Rb_tree_header", !54, i64 0, !20, i64 32}
!54 = !{!"_ZTSSt18_Rb_tree_node_base", !55, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!55 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!56 = !{!57, !6, i64 0}
!57 = !{!"_ZTSZN3chw9EventLoop8delEventEiSt8functionIFvbEEE3$_1", !6, i64 0, !10, i64 8, !58, i64 16}
!58 = !{!"_ZTSSt8functionIFvbEE", !59, i64 0, !6, i64 24}
!59 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!60 = !{!57, !10, i64 8}


; 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.45" = type { %"class.std::__shared_ptr.46" }
%"class.std::__shared_ptr.46" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%class.anon.58 = type { i8 }
%"class.std::function.48" = type { %"class.std::_Function_base", ptr }
%"class.std::_Function_base" = type { %"union.std::_Any_data", ptr }
%"union.std::_Any_data" = type { %"union.std::_Nocopy_types" }
%"union.std::_Nocopy_types" = type { { i64, i64 } }
%class.anon.65 = type { ptr, i32, %"class.std::function.55" }
%"class.std::function.55" = type { %"class.std::_Function_base", ptr }

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN3chw9EventLoop15isCurrentThreadEv(ptr noundef nonnull align 8 dereferenceable(432)) local_unnamed_addr #1 align 2

; Function Attrs: nounwind
declare i32 @epoll_ctl(i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3chw9EventLoop5asyncESt8functionIFvvEEb(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.45") align 8, ptr noundef nonnull align 8 dereferenceable(432), ptr noundef, i1 noundef zeroext) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN3chw9EventLoop8delEventEiSt8functionIFvbEE(ptr noundef nonnull align 8 dereferenceable(432) %0, i32 noundef %1, ptr noundef nonnull %2) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca i32, align 4
  %5 = alloca %class.anon.58, align 1
  %6 = alloca %"class.std::shared_ptr.45", align 8
  %7 = alloca %"class.std::function.48", align 8
  %8 = alloca %class.anon.65, align 8
  store i32 %1, ptr %4, align 4, !tbaa !5
  %9 = tail call noundef zeroext i1 @_ZNKSt8functionIFvbEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32) %2) #5
  br i1 %9, label %12, label %10

10:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #5
  %11 = call noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvbEEaSIZN3chw9EventLoop8delEventEiS1_E3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS6_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceIS8_E4typeEE4typeES1_EE5valueESt5decayIS8_EE4type4typeESt15__invoke_resultIRSJ_JbEEEE5valueERS1_E4typeEOS8_"(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(1) %5) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #5
  br label %12

12:                                               ; preds = %10, %3
  %13 = call noundef zeroext i1 @_ZN3chw9EventLoop15isCurrentThreadEv(ptr noundef nonnull align 8 dereferenceable(432) %0)
  br i1 %13, label %14, label %26

14:                                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 272
  %16 = call noundef i64 @_ZNSt13unordered_mapIiSt10shared_ptrISt8functionIFviEEESt4hashIiESt8equal_toIiESaISt4pairIKiS4_EEE5eraseERSA_(ptr noundef nonnull align 8 dereferenceable(56) %15, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %.not = icmp eq i64 %16, 0
  br i1 %.not, label %24, label %17

17:                                               ; preds = %14
  %18 = getelementptr inbounds i8, ptr %0, i64 328
  %19 = call { ptr, i8 } @_ZNSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE7emplaceIJRiEEESt4pairINSt8__detail14_Node_iteratorIiLb1ELb0EEEbEDpOT_(ptr noundef nonnull align 8 dereferenceable(56) %18, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %20 = getelementptr inbounds i8, ptr %0, i64 264
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = load i32, ptr %4, align 4, !tbaa !5
  %23 = call i32 @epoll_ctl(i32 noundef %21, i32 noundef 2, i32 noundef %22, ptr noundef null) #5
  br label %24

24:                                               ; preds = %17, %14
  %.07 = phi i32 [ %23, %17 ], [ -1, %14 ]
  %25 = icmp ne i32 %.07, -1
  call void @_ZNKSt8functionIFvbEEclEb(ptr noundef nonnull align 8 dereferenceable(32) %2, i1 noundef zeroext %25)
  br label %36

26:                                               ; preds = %12
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %8) #5
  store ptr %0, ptr %8, align 8, !tbaa !55
  %27 = getelementptr inbounds i8, ptr %8, i64 8
  store i32 %1, ptr %27, align 8, !tbaa !59
  %28 = getelementptr inbounds i8, ptr %8, i64 16
  call void @_ZNSt8functionIFvbEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(32) %28, ptr noundef nonnull align 8 dereferenceable(32) %2)
  invoke void @"_ZNSt8functionIFvvEEC2IZN3chw9EventLoop8delEventEiS_IFvbEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %29 unwind label %31

29:                                               ; preds = %26
  invoke void @_ZN3chw9EventLoop5asyncESt8functionIFvvEEb(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.45") align 8 %6, ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef nonnull %7, i1 noundef zeroext true)
          to label %30 unwind label %33

30:                                               ; preds = %29
  call void @_ZNSt12__shared_ptrIN3chw17TaskCancelableImpIFvvEJEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %6) #5
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  call void @"_ZZN3chw9EventLoop8delEventEiSt8functionIFvbEEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #5
  br label %36

31:                                               ; preds = %26
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %35

33:                                               ; preds = %29
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #5
  br label %35

35:                                               ; preds = %33, %31
  %.pn = phi { ptr, i32 } [ %34, %33 ], [ %32, %31 ]
  call void @"_ZZN3chw9EventLoop8delEventEiSt8functionIFvbEEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %8) #5
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %8) #5
  resume { ptr, i32 } %.pn

36:                                               ; preds = %30, %24
  %.06 = phi i32 [ %.07, %24 ], [ 0, %30 ]
  ret i32 %.06
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8functionIFvbEEcvbEv(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(32) ptr @"_ZNSt8functionIFvbEEaSIZN3chw9EventLoop8delEventEiS1_E3$_0EENSt9enable_ifIXsrNS1_9_CallableIT_NS6_IXntsr7is_sameINSt9remove_cvINSt16remove_referenceIS8_E4typeEE4typeES1_EE5valueESt5decayIS8_EE4type4typeESt15__invoke_resultIRSJ_JbEEEE5valueERS1_E4typeEOS8_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) local_unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt8functionIFvbEEclEb(ptr noundef nonnull align 8 dereferenceable(32), i1 noundef zeroext) local_unnamed_addr #3 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNSt8functionIFvvEEC2IZN3chw9EventLoop8delEventEiS_IFvbEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3chw9EventLoop8delEventEiSt8functionIFvbEEEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #4 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #1 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 = { 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 #3 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 264}
!10 = !{!"_ZTSN3chw9EventLoopE", !11, i64 0, !16, i64 16, !17, i64 24, !14, i64 56, !20, i64 64, !29, i64 176, !30, i64 184, !32, i64 224, !38, i64 248, !6, i64 264, !40, i64 272, !45, i64 328, !47, i64 384}
!11 = !{!"_ZTSSt23enable_shared_from_thisIN3chw9EventLoopEE", !12, i64 0}
!12 = !{!"_ZTSSt8weak_ptrIN3chw9EventLoopEE", !13, i64 0}
!13 = !{!"_ZTSSt10__weak_ptrIN3chw9EventLoopELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !15, i64 8}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0}
!16 = !{!"bool", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!"_ZTSN3chw9SemaphoreE", !19, i64 0, !21, i64 8, !23, i64 48}
!21 = !{!"_ZTSSt15recursive_mutex", !22, i64 0}
!22 = !{!"_ZTSSt22__recursive_mutex_base", !7, i64 0}
!23 = !{!"_ZTSNSt3_V222condition_variable_anyE", !24, i64 0, !26, i64 48}
!24 = !{!"_ZTSSt18condition_variable", !25, i64 0}
!25 = !{!"_ZTSSt9__condvar", !7, i64 0}
!26 = !{!"_ZTSSt10shared_ptrISt5mutexE", !27, i64 0}
!27 = !{!"_ZTSSt12__shared_ptrISt5mutexLN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !28, i64 8}
!28 = !{!"_ZTSSt14__shared_countILN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0}
!29 = !{!"_ZTSN3chw8PipeWrapE", !7, i64 0}
!30 = !{!"_ZTSSt5mutex", !31, i64 0}
!31 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!32 = !{!"_ZTSN3chw4ListISt10shared_ptrINS_17TaskCancelableImpIFvvEJEEEEEE", !33, i64 0}
!33 = !{!"_ZTSNSt7__cxx114listISt10shared_ptrIN3chw17TaskCancelableImpIFvvEJEEEESaIS6_EEE", !34, i64 0}
!34 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN3chw17TaskCancelableImpIFvvEJEEEESaIS6_EEE", !35, i64 0}
!35 = !{!"_ZTSNSt7__cxx1110_List_baseISt10shared_ptrIN3chw17TaskCancelableImpIFvvEJEEEESaIS6_EE10_List_implE", !36, i64 0}
!36 = !{!"_ZTSNSt8__detail17_List_node_headerE", !37, i64 0, !19, i64 16}
!37 = !{!"_ZTSNSt8__detail15_List_node_baseE", !14, i64 0, !14, i64 8}
!38 = !{!"_ZTSSt10shared_ptrIN3chw6LoggerEE", !39, i64 0}
!39 = !{!"_ZTSSt12__shared_ptrIN3chw6LoggerELN9__gnu_cxx12_Lock_policyE2EE", !14, i64 0, !28, i64 8}
!40 = !{!"_ZTSSt13unordered_mapIiSt10shared_ptrISt8functionIFviEEESt4hashIiESt8equal_toIiESaISt4pairIKiS4_EEE", !41, i64 0}
!41 = !{!"_ZTSSt10_HashtableIiSt4pairIKiSt10shared_ptrISt8functionIFviEEEESaIS7_ENSt8__detail10_Select1stESt8equal_toIiESt4hashIiENS9_18_Mod_range_hashingENS9_20_Default_ranged_hashENS9_20_Prime_rehash_policyENS9_17_Hashtable_traitsILb0ELb0ELb1EEEE", !14, i64 0, !19, i64 8, !42, i64 16, !19, i64 24, !43, i64 32, !14, i64 48}
!42 = !{!"_ZTSNSt8__detail15_Hash_node_baseE", !14, i64 0}
!43 = !{!"_ZTSNSt8__detail20_Prime_rehash_policyE", !44, i64 0, !19, i64 8}
!44 = !{!"float", !7, i64 0}
!45 = !{!"_ZTSSt13unordered_setIiSt4hashIiESt8equal_toIiESaIiEE", !46, i64 0}
!46 = !{!"_ZTSSt10_HashtableIiiSaIiENSt8__detail9_IdentityESt8equal_toIiESt4hashIiENS1_18_Mod_range_hashingENS1_20_Default_ranged_hashENS1_20_Prime_rehash_policyENS1_17_Hashtable_traitsILb0ELb1ELb1EEEE", !14, i64 0, !19, i64 8, !42, i64 16, !19, i64 24, !43, i64 32, !14, i64 48}
!47 = !{!"_ZTSSt8multimapImSt10shared_ptrIN3chw17TaskCancelableImpIFmvEJEEEESt4lessImESaISt4pairIKmS5_EEE", !48, i64 0}
!48 = !{!"_ZTSSt8_Rb_treeImSt4pairIKmSt10shared_ptrIN3chw17TaskCancelableImpIFmvEJEEEEESt10_Select1stIS8_ESt4lessImESaIS8_EE", !49, i64 0}
!49 = !{!"_ZTSNSt8_Rb_treeImSt4pairIKmSt10shared_ptrIN3chw17TaskCancelableImpIFmvEJEEEEESt10_Select1stIS8_ESt4lessImESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !50, i64 0, !52, i64 8}
!50 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessImEE", !51, i64 0}
!51 = !{!"_ZTSSt4lessImE"}
!52 = !{!"_ZTSSt15_Rb_tree_header", !53, i64 0, !19, i64 32}
!53 = !{!"_ZTSSt18_Rb_tree_node_base", !54, i64 0, !14, i64 8, !14, i64 16, !14, i64 24}
!54 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!55 = !{!56, !14, i64 0}
!56 = !{!"_ZTSZN3chw9EventLoop8delEventEiSt8functionIFvbEEE3$_1", !14, i64 0, !6, i64 8, !57, i64 16}
!57 = !{!"_ZTSSt8functionIFvbEE", !58, i64 0, !14, i64 24}
!58 = !{!"_ZTSSt14_Function_base", !7, i64 0, !14, i64 16}
!59 = !{!56, !6, i64 8}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass