; LLVM IR from newbiediver/rioring :: examples/chatserver (receiver)

; 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::function" = 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 = type { i8 }
%"class.std::function.2" = type { %"class.std::_Function_base", ptr }
%class.anon.6 = type { i8 }
%"class.std::function.4" = type { %"class.std::_Function_base", ptr }
%class.anon.8 = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14event_receiver9on_acceptERSt10shared_ptrIN7rioring10tcp_socketEE(ptr noundef nonnull align 8 dereferenceable(16) %0) #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca %"class.std::function", align 8
  %7 = alloca %class.anon, align 1
  %8 = alloca %"class.std::function.2", align 8
  %9 = alloca %class.anon.6, align 1
  %10 = alloca %"class.std::function.4", align 8
  %11 = alloca %class.anon.8, align 1
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #6
  %12 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #7
  %13 = load ptr, ptr %2, align 8, !tbaa !5
  invoke void @_ZN6clientC1ERSt10shared_ptrIN7rioring10tcp_socketEE(ptr noundef nonnull align 8 dereferenceable(48) %12, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %14 unwind label %29

14:                                               ; preds = %1
  store ptr %12, ptr %3, align 8, !tbaa !5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %15) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #6
  call void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring11object_baseEERKSt10error_codeEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(1) %7) #6
  invoke void @_ZN7rioring11object_base18set_error_callbackESt8functionIFvRSt10shared_ptrIS0_ERKSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(64) %16, ptr noundef %6)
          to label %17 unwind label %33

17:                                               ; preds = %14
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %18) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %9) #6
  call void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEPNS1_9io_bufferEP8sockaddrEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZN7rioring13socket_object17set_receive_eventESt8functionIFvRSt10shared_ptrIS0_EPNS_9io_bufferEP8sockaddrEE(ptr noundef nonnull align 8 dereferenceable(66088) %19, ptr noundef %8)
          to label %20 unwind label %37

20:                                               ; preds = %17
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %21) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #6
  call void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 1 dereferenceable(1) %11) #6
  invoke void @_ZN7rioring13socket_object15set_close_eventESt8functionIFvRSt10shared_ptrIS0_EEE(ptr noundef nonnull align 8 dereferenceable(66088) %22, ptr noundef %10)
          to label %23 unwind label %41

23:                                               ; preds = %20
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  %24 = call noundef nonnull align 8 dereferenceable(104) ptr @_Z8get_poolv()
  %25 = load ptr, ptr %2, align 8, !tbaa !5
  %26 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %25) #6
  %27 = call noundef i64 @_ZNK7rioring11object_base9object_idEv(ptr noundef nonnull align 8 dereferenceable(64) %26)
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  call void @_ZN4pool3addEmP6client(ptr noundef nonnull align 8 dereferenceable(104) %24, i64 noundef %27, ptr noundef %28)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  ret void

29:                                               ; preds = %1
  %30 = landingpad { ptr, i32 }
          cleanup
  %31 = extractvalue { ptr, i32 } %30, 0
  store ptr %31, ptr %4, align 8
  %32 = extractvalue { ptr, i32 } %30, 1
  store i32 %32, ptr %5, align 4
  call void @_ZdlPvm(ptr noundef %12, i64 noundef 48) #8
  br label %45

33:                                               ; preds = %14
  %34 = landingpad { ptr, i32 }
          cleanup
  %35 = extractvalue { ptr, i32 } %34, 0
  store ptr %35, ptr %4, align 8
  %36 = extractvalue { ptr, i32 } %34, 1
  store i32 %36, ptr %5, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #6
  br label %45

37:                                               ; preds = %17
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %4, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %5, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %9) #6
  br label %45

41:                                               ; preds = %20
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %4, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %5, align 4
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #6
  br label %45

45:                                               ; preds = %41, %37, %33, %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #6
  br label %46

46:                                               ; preds = %45
  %47 = load ptr, ptr %4, align 8
  %48 = load i32, ptr %5, align 4
  %49 = insertvalue { ptr, i32 } poison, ptr %47, 0
  %50 = insertvalue { ptr, i32 } %49, i32 %48, 1
  resume { ptr, i32 } %50
}

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

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

declare void @_ZN6clientC1ERSt10shared_ptrIN7rioring10tcp_socketEE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN7rioring11object_base18set_error_callbackESt8functionIFvRSt10shared_ptrIS0_ERKSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring11object_baseEERKSt10error_codeEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

declare void @_ZN7rioring13socket_object17set_receive_eventESt8functionIFvRSt10shared_ptrIS0_EPNS_9io_bufferEP8sockaddrEE(ptr noundef nonnull align 8 dereferenceable(66088), ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEPNS1_9io_bufferEP8sockaddrEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

declare void @_ZN7rioring13socket_object15set_close_eventESt8functionIFvRSt10shared_ptrIS0_EEE(ptr noundef nonnull align 8 dereferenceable(66088), ptr noundef) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

declare noundef nonnull align 8 dereferenceable(104) ptr @_Z8get_poolv() #3

declare void @_ZN4pool3addEmP6client(ptr noundef nonnull align 8 dereferenceable(104), i64 noundef, ptr noundef) #3

declare noundef i64 @_ZNK7rioring11object_base9object_idEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { 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 #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"}


; 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::function" = 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 = type { i8 }
%"class.std::function.2" = type { %"class.std::_Function_base", ptr }
%class.anon.6 = type { i8 }
%"class.std::function.4" = type { %"class.std::_Function_base", ptr }
%class.anon.8 = type { i8 }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14event_receiver9on_acceptERSt10shared_ptrIN7rioring10tcp_socketEE(ptr noundef nonnull align 8 dereferenceable(16) %0) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::function", align 8
  %3 = alloca %class.anon, align 1
  %4 = alloca %"class.std::function.2", align 8
  %5 = alloca %class.anon.6, align 1
  %6 = alloca %"class.std::function.4", align 8
  %7 = alloca %class.anon.8, align 1
  %8 = tail call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #6
  invoke void @_ZN6clientC1ERSt10shared_ptrIN7rioring10tcp_socketEE(ptr noundef nonnull align 8 dereferenceable(48) %8, ptr noundef nonnull align 8 dereferenceable(16) %0)
          to label %9 unwind label %19

9:                                                ; preds = %1
  %10 = tail call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #7
  call void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring11object_baseEERKSt10error_codeEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull align 1 dereferenceable(1) %3) #7
  invoke void @_ZN7rioring11object_base18set_error_callbackESt8functionIFvRSt10shared_ptrIS0_ERKSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(64) %10, ptr noundef nonnull %2)
          to label %11 unwind label %21

11:                                               ; preds = %9
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  %12 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #7
  call void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEPNS1_9io_bufferEP8sockaddrEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull align 1 dereferenceable(1) %5) #7
  invoke void @_ZN7rioring13socket_object17set_receive_eventESt8functionIFvRSt10shared_ptrIS0_EPNS_9io_bufferEP8sockaddrEE(ptr noundef nonnull align 8 dereferenceable(66088) %12, ptr noundef nonnull %4)
          to label %13 unwind label %23

13:                                               ; preds = %11
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  %14 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #7
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 1 dereferenceable(1) %7) #7
  invoke void @_ZN7rioring13socket_object15set_close_eventESt8functionIFvRSt10shared_ptrIS0_EEE(ptr noundef nonnull align 8 dereferenceable(66088) %14, ptr noundef nonnull %6)
          to label %15 unwind label %25

15:                                               ; preds = %13
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  %16 = call noundef nonnull align 8 dereferenceable(104) ptr @_Z8get_poolv()
  %17 = call noundef ptr @_ZNKSt19__shared_ptr_accessIN7rioring10tcp_socketELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEptEv(ptr noundef nonnull align 1 dereferenceable(1) %0) #7
  %18 = call noundef i64 @_ZNK7rioring11object_base9object_idEv(ptr noundef nonnull align 8 dereferenceable(64) %17)
  call void @_ZN4pool3addEmP6client(ptr noundef nonnull align 8 dereferenceable(104) %16, i64 noundef %18, ptr noundef nonnull %8)
  ret void

19:                                               ; preds = %1
  %20 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %8, i64 noundef 48) #8
  br label %27

21:                                               ; preds = %9
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #7
  br label %27

23:                                               ; preds = %11
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #7
  br label %27

25:                                               ; preds = %13
  %26 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14_Function_baseD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br label %27

27:                                               ; preds = %25, %23, %21, %19
  %.pn = phi { ptr, i32 } [ %26, %25 ], [ %24, %23 ], [ %22, %21 ], [ %20, %19 ]
  resume { ptr, i32 } %.pn
}

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

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

declare void @_ZN6clientC1ERSt10shared_ptrIN7rioring10tcp_socketEE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_ZN7rioring11object_base18set_error_callbackESt8functionIFvRSt10shared_ptrIS0_ERKSt10error_codeEE(ptr noundef nonnull align 8 dereferenceable(64), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring11object_baseEERKSt10error_codeEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_0vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

declare void @_ZN7rioring13socket_object17set_receive_eventESt8functionIFvRSt10shared_ptrIS0_EPNS_9io_bufferEP8sockaddrEE(ptr noundef nonnull align 8 dereferenceable(66088), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEPNS1_9io_bufferEP8sockaddrEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_1vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

declare void @_ZN7rioring13socket_object15set_close_eventESt8functionIFvRSt10shared_ptrIS0_EEE(ptr noundef nonnull align 8 dereferenceable(66088), ptr noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @"_ZNSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEEEC2IZN14event_receiver9on_acceptERS0_INS1_10tcp_socketEEE3$_2vEEOT_"(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #5 align 2

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

declare noundef nonnull align 8 dereferenceable(104) ptr @_Z8get_poolv() local_unnamed_addr #3

declare void @_ZN4pool3addEmP6client(ptr noundef nonnull align 8 dereferenceable(104), i64 noundef, ptr noundef) local_unnamed_addr #3

declare noundef i64 @_ZNK7rioring11object_base9object_idEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = { 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 #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
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)"}


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