; LLVM IR from wichue/nethello :: src/net (Socket)

; 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.std::weak_ptr.3" = type { %"class.std::__weak_ptr.4" }
%"class.std::__weak_ptr.4" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%class.anon.92 = type { %"class.std::function", %"class.std::weak_ptr.3" }
%"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.std::shared_ptr.93" = type { %"class.std::__shared_ptr.94" }
%"class.std::__shared_ptr.94" = type { ptr, %"class.std::__shared_count" }
%class.anon.96 = type { %"class.std::weak_ptr.3", %class.anon.92 }
%"class.std::shared_ptr.11" = type { %"class.std::__shared_ptr.12" }
%"class.std::__shared_ptr.12" = type { ptr, %"class.std::__shared_count" }
%class.anon.97 = type { %"class.std::weak_ptr.3", %class.anon.92 }
%"class.std::shared_ptr.101" = type { %"class.std::__shared_ptr.102" }
%"class.std::__shared_ptr.102" = type { ptr, %"class.std::__shared_count" }
%"class.chw::LogContextCapture" = type { %"class.std::shared_ptr.8", ptr }
%"class.std::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%"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::Socket" = type { %"class.std::enable_shared_from_this", i32, i32, %"struct.std::atomic", %"struct.std::atomic", i8, i8, %"class.std::shared_ptr.5", %"class.chw::BytesSpeed", %"class.chw::BytesSpeed", %"class.std::shared_ptr.11", %"class.std::shared_ptr.14", %"class.chw::Ticker", %"class.std::shared_ptr.17", %"class.std::shared_ptr.0", %"class.chw::MutexWrapper", %"class.std::function", %"class.std::function.20", %"class.std::function.22", %"class.std::function.24", %"class.chw::MutexWrapper", %struct.sockaddr_storage, %struct.sockaddr_storage, i32, %"class.std::function.27", %"class.std::shared_ptr.29", i32, %"class.chw::Ticker", %"class.std::shared_ptr.11", i32, double, %"class.std::shared_ptr.29", %struct.sockaddr_storage }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr.3" }
%"struct.std::atomic" = type { %"struct.std::__atomic_base" }
%"struct.std::__atomic_base" = type { i8 }
%"class.std::shared_ptr.5" = type { %"class.std::__shared_ptr.6" }
%"class.std::__shared_ptr.6" = type { ptr, %"class.std::__shared_count" }
%"class.chw::BytesSpeed" = type { i64, i64, i64, %"class.chw::Ticker" }
%"class.std::shared_ptr.14" = type { %"class.std::__shared_ptr.15" }
%"class.std::__shared_ptr.15" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.17" = type { %"class.std::__shared_ptr.18" }
%"class.std::__shared_ptr.18" = type { ptr, %"class.std::__shared_count" }
%"class.std::shared_ptr.0" = type { %"class.std::__shared_ptr.1" }
%"class.std::__shared_ptr.1" = type { ptr, %"class.std::__shared_count" }
%"class.std::function.20" = type { %"class.std::_Function_base", ptr }
%"class.std::function.22" = type { %"class.std::_Function_base", ptr }
%"class.std::function.24" = type { %"class.std::_Function_base", ptr }
%"class.chw::MutexWrapper" = type { i8, %"class.std::recursive_mutex" }
%"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::function.27" = type { %"class.std::_Function_base", ptr }
%"class.chw::Ticker" = type { i64, i64, i64, %"class.chw::LogContextCapture" }
%"class.std::shared_ptr.29" = type { %"class.std::__shared_ptr.30" }
%"class.std::__shared_ptr.30" = type { ptr, %"class.std::__shared_count" }
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@__FUNCTION__._ZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_t = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

declare void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_t(ptr noundef nonnull align 8 dereferenceable(1072) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i16 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(32) %3, float noundef %4, ptr noundef nonnull align 8 dereferenceable(32) %5, i16 noundef zeroext %6) #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i16, align 2
  %11 = alloca ptr, align 8
  %12 = alloca float, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i16, align 2
  %15 = alloca %"class.std::weak_ptr.3", align 8
  %16 = alloca %"class.std::shared_ptr", align 8
  %17 = alloca %class.anon.92, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::shared_ptr.93", align 8
  %21 = alloca %class.anon.96, align 8
  %22 = alloca %"class.std::shared_ptr.11", align 8
  %23 = alloca %class.anon.97, align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::shared_ptr.101", align 8
  %26 = alloca i32, align 4
  %27 = alloca %"class.chw::LogContextCapture", align 8
  %28 = alloca %"class.std::__cxx11::basic_string", align 8
  %29 = alloca %"class.std::__cxx11::basic_string", align 8
  %30 = alloca i16, align 2
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store i16 %2, ptr %10, align 2, !tbaa !9
  store ptr %3, ptr %11, align 8, !tbaa !5
  store float %4, ptr %12, align 4, !tbaa !11
  store ptr %5, ptr %13, align 8, !tbaa !5
  store i16 %6, ptr %14, align 2, !tbaa !9
  %31 = load ptr, ptr %8, align 8
  call void @_ZN3chw6Socket9closeSockEb(ptr noundef nonnull align 8 dereferenceable(1072) %31, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #7
  call void @_ZNSt23enable_shared_from_thisIN3chw6SocketEE16shared_from_thisEv(ptr dead_on_unwind writable sret(%"class.std::shared_ptr") align 8 %16, ptr noundef nonnull align 8 dereferenceable(16) %31)
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2IS1_vEERKSt10shared_ptrIT_E(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @_ZNSt12__shared_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr %17) #7
  %32 = getelementptr inbounds %class.anon.92, ptr %17, i32 0, i32 0
  %33 = load ptr, ptr %11, align 8, !tbaa !5
  invoke void @_ZNSt8functionIFvRKN3chw13SockExceptionEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef nonnull align 8 dereferenceable(32) %33)
          to label %34 unwind label %94

34:                                               ; preds = %7
  %35 = getelementptr inbounds %class.anon.92, ptr %17, i32 0, i32 1
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %35, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #7
  %36 = getelementptr inbounds %class.anon.96, ptr %21, i32 0, i32 0
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  %37 = getelementptr inbounds %class.anon.96, ptr %21, i32 0, i32 1
  invoke void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0C2ERKSH_"(ptr noundef nonnull align 8 dereferenceable(48) %37, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %38 unwind label %98

38:                                               ; preds = %34
  invoke void @"_ZSt11make_sharedISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEEJZNS2_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKS0_IFvRKNS2_13SockExceptionEEEfSH_tE3$_1EES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESR_E4typeEEDpOT0_"(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.93") align 8 %20, ptr noundef nonnull align 8 dereferenceable(64) %21)
          to label %39 unwind label %102

39:                                               ; preds = %38
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %21) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr %23) #7
  %40 = getelementptr inbounds %class.anon.97, ptr %23, i32 0, i32 0
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  %41 = getelementptr inbounds %class.anon.97, ptr %23, i32 0, i32 1
  invoke void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0C2ERKSH_"(ptr noundef nonnull align 8 dereferenceable(48) %41, ptr noundef nonnull align 8 dereferenceable(48) %17)
          to label %42 unwind label %107

42:                                               ; preds = %39
  %43 = getelementptr inbounds %"class.chw::Socket", ptr %31, i32 0, i32 14
  invoke void @"_ZSt11make_sharedIN3chw5TimerEJRfZNS0_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS0_13SockExceptionEEEfSB_tE3$_2RSt10shared_ptrINS0_9EventLoopEEEESL_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESQ_E4typeEEDpOT0_"(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.11") align 8 %22, ptr noundef nonnull align 4 dereferenceable(4) %12, ptr noundef nonnull align 8 dereferenceable(64) %23, ptr noundef nonnull align 8 dereferenceable(16) %43)
          to label %44 unwind label %111

44:                                               ; preds = %42
  %45 = getelementptr inbounds %"class.chw::Socket", ptr %31, i32 0, i32 10
  %46 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3chw5TimerEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @_ZNSt12__shared_ptrIN3chw5TimerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %22) #7
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_2D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %23) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  %48 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %47) #7
  %49 = invoke noundef zeroext i1 @_ZN3chw8SockUtil4isIPEPKc(ptr noundef %48)
          to label %50 unwind label %116

50:                                               ; preds = %44
  br i1 %49, label %51, label %163

51:                                               ; preds = %50
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  %52 = load ptr, ptr %9, align 8, !tbaa !5
  %53 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %52) #7
  %54 = load i16, ptr %10, align 2, !tbaa !9
  %55 = load ptr, ptr %13, align 8, !tbaa !5
  %56 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %55) #7
  %57 = load i16, ptr %14, align 2, !tbaa !9
  %58 = invoke noundef i32 @_ZN3chw8SockUtil7connectEPKctbS2_t(ptr noundef %53, i16 noundef zeroext %54, i1 noundef zeroext true, ptr noundef %56, i16 noundef zeroext %57)
          to label %59 unwind label %120

59:                                               ; preds = %51
  store i32 %58, ptr %24, align 4, !tbaa !13
  %60 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt19__shared_ptr_accessISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %20) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %25) #7
  %61 = load i32, ptr %24, align 4, !tbaa !13
  %62 = icmp eq i32 %61, -1
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  br i1 %62, label %63, label %64

63:                                               ; preds = %59
  call void @_ZNSt10shared_ptrIN3chw7SockNumEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr null) #7
  br label %66

64:                                               ; preds = %59
  store i32 0, ptr %26, align 4, !tbaa !15
  invoke void @_ZSt11make_sharedIN3chw7SockNumEJRiNS1_8SockTypeEEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind writable sret(%"class.std::shared_ptr.101") align 8 %25, ptr noundef nonnull align 4 dereferenceable(4) %24, ptr noundef nonnull align 4 dereferenceable(4) %26)
          to label %65 unwind label %124

65:                                               ; preds = %64
  br label %66

66:                                               ; preds = %65, %63
  invoke void @_ZNKSt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEEclES5_(ptr noundef nonnull align 8 dereferenceable(32) %60, ptr noundef nonnull align 8 dereferenceable(16) %25)
          to label %67 unwind label %128

67:                                               ; preds = %66
  call void @_ZNSt12__shared_ptrIN3chw7SockNumELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %27) #7
  %68 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %69 unwind label %133

69:                                               ; preds = %67
  invoke void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(144) %68, i32 noundef 0, ptr noundef @.str.2, ptr noundef @__FUNCTION__._ZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_t, i32 noundef 214, ptr noundef @.str.1)
          to label %70 unwind label %133

70:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 32, ptr %28) #7
  invoke void @_ZNK3chw6Socket13getIdentifierB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %28, ptr noundef nonnull align 8 dereferenceable(1072) %31)
          to label %71 unwind label %137

71:                                               ; preds = %70
  %72 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(32) %28)
          to label %73 unwind label %141

73:                                               ; preds = %71
  %74 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA16_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %72, ptr noundef nonnull align 1 dereferenceable(16) @.str.3)
          to label %75 unwind label %141

75:                                               ; preds = %73
  %76 = load ptr, ptr %9, align 8, !tbaa !5
  %77 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %74, ptr noundef nonnull align 8 dereferenceable(32) %76)
          to label %78 unwind label %141

78:                                               ; preds = %75
  %79 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA2_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %77, ptr noundef nonnull align 1 dereferenceable(2) @.str.4)
          to label %80 unwind label %141

80:                                               ; preds = %78
  %81 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRtEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %79, ptr noundef nonnull align 2 dereferenceable(2) %10)
          to label %82 unwind label %141

82:                                               ; preds = %80
  %83 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA11_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %81, ptr noundef nonnull align 1 dereferenceable(11) @.str.5)
          to label %84 unwind label %141

84:                                               ; preds = %82
  call void @llvm.lifetime.start.p0(i64 32, ptr %29) #7
  invoke void @_ZN3chw6Socket12get_local_ipB5cxx11Ev(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %29, ptr noundef nonnull align 8 dereferenceable(1072) %31)
          to label %85 unwind label %145

85:                                               ; preds = %84
  %86 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 8 dereferenceable(32) %29)
          to label %87 unwind label %149

87:                                               ; preds = %85
  %88 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA13_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %86, ptr noundef nonnull align 1 dereferenceable(13) @.str.6)
          to label %89 unwind label %149

89:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 2, ptr %30) #7
  %90 = invoke noundef zeroext i16 @_ZN3chw6Socket14get_local_portEv(ptr noundef nonnull align 8 dereferenceable(1072) %31)
          to label %91 unwind label %153

91:                                               ; preds = %89
  store i16 %90, ptr %30, align 2, !tbaa !9
  %92 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsItEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %88, ptr noundef nonnull align 2 dereferenceable(2) %30)
          to label %93 unwind label %153

93:                                               ; preds = %91
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %164

94:                                               ; preds = %7
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %18, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %19, align 4
  br label %167

98:                                               ; preds = %34
  %99 = landingpad { ptr, i32 }
          cleanup
  %100 = extractvalue { ptr, i32 } %99, 0
  store ptr %100, ptr %18, align 8
  %101 = extractvalue { ptr, i32 } %99, 1
  store i32 %101, ptr %19, align 4
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %36) #7
  br label %106

102:                                              ; preds = %38
  %103 = landingpad { ptr, i32 }
          cleanup
  %104 = extractvalue { ptr, i32 } %103, 0
  store ptr %104, ptr %18, align 8
  %105 = extractvalue { ptr, i32 } %103, 1
  store i32 %105, ptr %19, align 4
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %21) #7
  br label %106

106:                                              ; preds = %102, %98
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #7
  br label %166

107:                                              ; preds = %39
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %18, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %19, align 4
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %40) #7
  br label %115

111:                                              ; preds = %42
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %18, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %19, align 4
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_2D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %23) #7
  br label %115

115:                                              ; preds = %111, %107
  call void @llvm.lifetime.end.p0(i64 64, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #7
  br label %165

116:                                              ; preds = %44
  %117 = landingpad { ptr, i32 }
          cleanup
  %118 = extractvalue { ptr, i32 } %117, 0
  store ptr %118, ptr %18, align 8
  %119 = extractvalue { ptr, i32 } %117, 1
  store i32 %119, ptr %19, align 4
  br label %165

120:                                              ; preds = %51
  %121 = landingpad { ptr, i32 }
          cleanup
  %122 = extractvalue { ptr, i32 } %121, 0
  store ptr %122, ptr %18, align 8
  %123 = extractvalue { ptr, i32 } %121, 1
  store i32 %123, ptr %19, align 4
  br label %162

124:                                              ; preds = %64
  %125 = landingpad { ptr, i32 }
          cleanup
  %126 = extractvalue { ptr, i32 } %125, 0
  store ptr %126, ptr %18, align 8
  %127 = extractvalue { ptr, i32 } %125, 1
  store i32 %127, ptr %19, align 4
  br label %132

128:                                              ; preds = %66
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %18, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %19, align 4
  call void @_ZNSt12__shared_ptrIN3chw7SockNumELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %25) #7
  br label %132

132:                                              ; preds = %128, %124
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %25) #7
  br label %162

133:                                              ; preds = %69, %67
  %134 = landingpad { ptr, i32 }
          cleanup
  %135 = extractvalue { ptr, i32 } %134, 0
  store ptr %135, ptr %18, align 8
  %136 = extractvalue { ptr, i32 } %134, 1
  store i32 %136, ptr %19, align 4
  br label %161

137:                                              ; preds = %70
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %18, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %19, align 4
  br label %160

141:                                              ; preds = %82, %80, %78, %75, %73, %71
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %18, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %19, align 4
  br label %159

145:                                              ; preds = %84
  %146 = landingpad { ptr, i32 }
          cleanup
  %147 = extractvalue { ptr, i32 } %146, 0
  store ptr %147, ptr %18, align 8
  %148 = extractvalue { ptr, i32 } %146, 1
  store i32 %148, ptr %19, align 4
  br label %158

149:                                              ; preds = %87, %85
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %18, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %19, align 4
  br label %157

153:                                              ; preds = %91, %89
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %18, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 2, ptr %30) #7
  br label %157

157:                                              ; preds = %153, %149
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %29) #7
  br label %158

158:                                              ; preds = %157, %145
  call void @llvm.lifetime.end.p0(i64 32, ptr %29) #7
  br label %159

159:                                              ; preds = %158, %141
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %28) #7
  br label %160

160:                                              ; preds = %159, %137
  call void @llvm.lifetime.end.p0(i64 32, ptr %28) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %27) #7
  br label %161

161:                                              ; preds = %160, %133
  call void @llvm.lifetime.end.p0(i64 24, ptr %27) #7
  br label %162

162:                                              ; preds = %161, %132, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %165

163:                                              ; preds = %50
  br label %164

164:                                              ; preds = %163, %93
  call void @_ZNSt12__shared_ptrISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  ret void

165:                                              ; preds = %162, %116, %115
  call void @_ZNSt12__shared_ptrISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %20) #7
  br label %166

166:                                              ; preds = %165, %106
  call void @llvm.lifetime.end.p0(i64 16, ptr %20) #7
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %17) #7
  br label %167

167:                                              ; preds = %166, %94
  call void @llvm.lifetime.end.p0(i64 48, ptr %17) #7
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #7
  br label %168

168:                                              ; preds = %167
  %169 = load ptr, ptr %18, align 8
  %170 = load i32, ptr %19, align 4
  %171 = insertvalue { ptr, i32 } poison, ptr %169, 0
  %172 = insertvalue { ptr, i32 } %171, i32 %170, 1
  resume { ptr, i32 } %172
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt11make_sharedISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEEJZNS2_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKS0_IFvRKNS2_13SockExceptionEEEfSH_tE3$_1EES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESR_E4typeEEDpOT0_"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.93") align 8, ptr noundef nonnull align 8 dereferenceable(64)) #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0C2ERKSH_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt11make_sharedIN3chw5TimerEJRfZNS0_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS0_13SockExceptionEEEfSB_tE3$_2RSt10shared_ptrINS0_9EventLoopEEEESL_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESQ_E4typeEEDpOT0_"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.11") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16)) #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_2D2Ev"(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6 align 2

declare noundef zeroext i1 @_ZN3chw8SockUtil4isIPEPKc(ptr noundef) #1

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

declare noundef i32 @_ZN3chw8SockUtil7connectEPKctbS2_t(ptr noundef, i16 noundef zeroext, i1 noundef zeroext, ptr noundef, i16 noundef zeroext) #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3chw7SockNumEJRiNS1_8SockTypeEEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.101") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) #5

declare noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv() #1

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3chw6Socket13getIdentifierB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(1072)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA16_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(16)) #3 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA2_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(2)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRtEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 2 dereferenceable(2)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA11_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(11)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3chw6Socket12get_local_ipB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(1072)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA13_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(13)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsItEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 2 dereferenceable(2)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN3chw6Socket14get_local_portEv(ptr noundef nonnull align 8 dereferenceable(1072)) #3 align 2

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

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

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

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

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

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

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

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


; 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 }
%"class.std::weak_ptr.3" = type { %"class.std::__weak_ptr.4" }
%"class.std::__weak_ptr.4" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%class.anon.92 = type { %"class.std::function", %"class.std::weak_ptr.3" }
%"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.std::shared_ptr.93" = type { %"class.std::__shared_ptr.94" }
%"class.std::__shared_ptr.94" = type { ptr, %"class.std::__shared_count" }
%class.anon.96 = type { %"class.std::weak_ptr.3", %class.anon.92 }
%"class.std::shared_ptr.11" = type { %"class.std::__shared_ptr.12" }
%"class.std::__shared_ptr.12" = type { ptr, %"class.std::__shared_count" }
%class.anon.97 = type { %"class.std::weak_ptr.3", %class.anon.92 }
%"class.std::shared_ptr.101" = type { %"class.std::__shared_ptr.102" }
%"class.std::__shared_ptr.102" = type { ptr, %"class.std::__shared_count" }
%"class.chw::LogContextCapture" = type { %"class.std::shared_ptr.8", ptr }
%"class.std::shared_ptr.8" = type { %"class.std::__shared_ptr.9" }
%"class.std::__shared_ptr.9" = type { ptr, %"class.std::__shared_count" }
%"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] }

@.str.1 = external hidden unnamed_addr constant [1 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [68 x i8], align 1
@__FUNCTION__._ZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_t = external hidden unnamed_addr constant [10 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1

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

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

declare void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(144), i32 noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #2

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

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_t(ptr noundef nonnull align 8 dereferenceable(1072) %0, ptr noundef nonnull align 8 dereferenceable(32) %1, i16 noundef zeroext %2, ptr noundef nonnull align 8 dereferenceable(32) %3, float noundef %4, ptr noundef nonnull align 8 dereferenceable(32) %5, i16 noundef zeroext %6) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %8 = alloca i16, align 2
  %9 = alloca float, align 4
  %10 = alloca %"class.std::weak_ptr.3", align 8
  %11 = alloca %"class.std::shared_ptr", align 8
  %12 = alloca %class.anon.92, align 8
  %13 = alloca %"class.std::shared_ptr.93", align 8
  %14 = alloca %class.anon.96, align 8
  %15 = alloca %"class.std::shared_ptr.11", align 8
  %16 = alloca %class.anon.97, align 8
  %17 = alloca i32, align 4
  %18 = alloca %"class.std::shared_ptr.101", align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.chw::LogContextCapture", align 8
  %21 = alloca %"class.std::__cxx11::basic_string", align 8
  %22 = alloca %"class.std::__cxx11::basic_string", align 8
  %23 = alloca i16, align 2
  store i16 %2, ptr %8, align 2, !tbaa !5
  store float %4, ptr %9, align 4, !tbaa !9
  tail call void @_ZN3chw6Socket9closeSockEb(ptr noundef nonnull align 8 dereferenceable(1072) %0, i1 noundef zeroext true)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @_ZNSt23enable_shared_from_thisIN3chw6SocketEE16shared_from_thisEv(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr") align 8 %11, ptr noundef nonnull align 8 dereferenceable(16) %0)
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2IS1_vEERKSt10shared_ptrIT_E(ptr noundef nonnull align 8 dereferenceable(16) %10, ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @_ZNSt12__shared_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %11) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %12) #7
  invoke void @_ZNSt8functionIFvRKN3chw13SockExceptionEEEC2ERKS5_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %24 unwind label %75

24:                                               ; preds = %7
  %25 = getelementptr inbounds i8, ptr %12, i64 32
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %25, ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %14) #7
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %14, ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  %26 = getelementptr inbounds i8, ptr %14, i64 16
  invoke void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0C2ERKSH_"(ptr noundef nonnull align 8 dereferenceable(48) %26, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %27 unwind label %77

27:                                               ; preds = %24
  invoke void @"_ZSt11make_sharedISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEEJZNS2_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKS0_IFvRKNS2_13SockExceptionEEEfSH_tE3$_1EES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESR_E4typeEEDpOT0_"(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.93") align 8 %13, ptr noundef nonnull align 8 dereferenceable(64) %14)
          to label %28 unwind label %79

28:                                               ; preds = %27
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %14) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %15) #7
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %16) #7
  call void @_ZNSt8weak_ptrIN3chw6SocketEEC2ERKS2_(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  %29 = getelementptr inbounds i8, ptr %16, i64 16
  invoke void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0C2ERKSH_"(ptr noundef nonnull align 8 dereferenceable(48) %29, ptr noundef nonnull align 8 dereferenceable(48) %12)
          to label %30 unwind label %82

30:                                               ; preds = %28
  %31 = getelementptr inbounds i8, ptr %0, i64 288
  invoke void @"_ZSt11make_sharedIN3chw5TimerEJRfZNS0_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS0_13SockExceptionEEEfSB_tE3$_2RSt10shared_ptrINS0_9EventLoopEEEESL_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESQ_E4typeEEDpOT0_"(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.11") align 8 %15, ptr noundef nonnull align 4 dereferenceable(4) %9, ptr noundef nonnull align 8 dereferenceable(64) %16, ptr noundef nonnull align 8 dereferenceable(16) %31)
          to label %32 unwind label %84

32:                                               ; preds = %30
  %33 = getelementptr inbounds i8, ptr %0, i64 192
  %34 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt10shared_ptrIN3chw5TimerEEaSEOS2_(ptr noundef nonnull align 8 dereferenceable(16) %33, ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @_ZNSt12__shared_ptrIN3chw5TimerELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %15) #7
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_2D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %16) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  %35 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %36 = invoke noundef zeroext i1 @_ZN3chw8SockUtil4isIPEPKc(ptr noundef %35)
          to label %37 unwind label %87

37:                                               ; preds = %32
  br i1 %36, label %38, label %114

38:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #7
  %39 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %1) #7
  %40 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4dataEv(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  %41 = invoke noundef i32 @_ZN3chw8SockUtil7connectEPKctbS2_t(ptr noundef %39, i16 noundef zeroext %2, i1 noundef zeroext true, ptr noundef %40, i16 noundef zeroext %6)
          to label %42 unwind label %89

42:                                               ; preds = %38
  store i32 %41, ptr %17, align 4, !tbaa !11
  %43 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt19__shared_ptr_accessISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEELN9__gnu_cxx12_Lock_policyE2ELb0ELb0EEdeEv(ptr noundef nonnull align 1 dereferenceable(1) %13) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %18) #7
  %44 = load i32, ptr %17, align 4, !tbaa !11
  %45 = icmp eq i32 %44, -1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %19) #7
  br i1 %45, label %46, label %47

46:                                               ; preds = %42
  call void @_ZNSt10shared_ptrIN3chw7SockNumEEC2EDn(ptr noundef nonnull align 8 dereferenceable(16) %18, ptr null) #7
  br label %48

47:                                               ; preds = %42
  store i32 0, ptr %19, align 4, !tbaa !13
  invoke void @_ZSt11make_sharedIN3chw7SockNumEJRiNS1_8SockTypeEEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind nonnull writable sret(%"class.std::shared_ptr.101") align 8 %18, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %19)
          to label %48 unwind label %91

48:                                               ; preds = %47, %46
  invoke void @_ZNKSt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEEclES5_(ptr noundef nonnull align 8 dereferenceable(32) %43, ptr noundef nonnull align 8 dereferenceable(16) %18)
          to label %49 unwind label %93

49:                                               ; preds = %48
  call void @_ZNSt12__shared_ptrIN3chw7SockNumELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %20) #7
  %50 = invoke noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv()
          to label %51 unwind label %96

51:                                               ; preds = %49
  invoke void @_ZN3chw17LogContextCaptureC1ERNS_6LoggerENS_8LogLevelEPKcS5_iS5_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(144) %50, i32 noundef 0, ptr noundef nonnull @.str.2, ptr noundef nonnull @__FUNCTION__._ZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_t, i32 noundef 214, ptr noundef nonnull @.str.1)
          to label %52 unwind label %96

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %21) #7
  invoke void @_ZNK3chw6Socket13getIdentifierB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %21, ptr noundef nonnull align 8 dereferenceable(1072) %0)
          to label %53 unwind label %98

53:                                               ; preds = %52
  %54 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %20, ptr noundef nonnull align 8 dereferenceable(32) %21)
          to label %55 unwind label %100

55:                                               ; preds = %53
  %56 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA16_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 1 dereferenceable(16) @.str.3)
          to label %57 unwind label %100

57:                                               ; preds = %55
  %58 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef nonnull align 8 dereferenceable(32) %1)
          to label %59 unwind label %100

59:                                               ; preds = %57
  %60 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA2_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull align 1 dereferenceable(2) @.str.4)
          to label %61 unwind label %100

61:                                               ; preds = %59
  %62 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRtEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 2 dereferenceable(2) %8)
          to label %63 unwind label %100

63:                                               ; preds = %61
  %64 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA11_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %62, ptr noundef nonnull align 1 dereferenceable(11) @.str.5)
          to label %65 unwind label %100

65:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %22) #7
  invoke void @_ZN3chw6Socket12get_local_ipB5cxx11Ev(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %22, ptr noundef nonnull align 8 dereferenceable(1072) %0)
          to label %66 unwind label %102

66:                                               ; preds = %65
  %67 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %64, ptr noundef nonnull align 8 dereferenceable(32) %22)
          to label %68 unwind label %104

68:                                               ; preds = %66
  %69 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA13_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %67, ptr noundef nonnull align 1 dereferenceable(13) @.str.6)
          to label %70 unwind label %104

70:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 2, ptr nonnull %23) #7
  %71 = invoke noundef zeroext i16 @_ZN3chw6Socket14get_local_portEv(ptr noundef nonnull align 8 dereferenceable(1072) %0)
          to label %72 unwind label %106

72:                                               ; preds = %70
  store i16 %71, ptr %23, align 2, !tbaa !5
  %73 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsItEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24) %69, ptr noundef nonnull align 2 dereferenceable(2) %23)
          to label %74 unwind label %106

74:                                               ; preds = %72
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %23) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %114

75:                                               ; preds = %7
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %117

77:                                               ; preds = %24
  %78 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %14) #7
  br label %81

79:                                               ; preds = %27
  %80 = landingpad { ptr, i32 }
          cleanup
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_1D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %14) #7
  br label %81

81:                                               ; preds = %79, %77
  %.pn = phi { ptr, i32 } [ %80, %79 ], [ %78, %77 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %14) #7
  br label %116

82:                                               ; preds = %28
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %16) #7
  br label %86

84:                                               ; preds = %30
  %85 = landingpad { ptr, i32 }
          cleanup
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_2D2Ev"(ptr noundef nonnull align 8 dereferenceable(64) %16) #7
  br label %86

86:                                               ; preds = %84, %82
  %.pn21 = phi { ptr, i32 } [ %85, %84 ], [ %83, %82 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %16) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %15) #7
  br label %115

87:                                               ; preds = %32
  %88 = landingpad { ptr, i32 }
          cleanup
  br label %115

89:                                               ; preds = %38
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %113

91:                                               ; preds = %47
  %92 = landingpad { ptr, i32 }
          cleanup
  br label %95

93:                                               ; preds = %48
  %94 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt12__shared_ptrIN3chw7SockNumELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %18) #7
  br label %95

95:                                               ; preds = %93, %91
  %.pn23 = phi { ptr, i32 } [ %94, %93 ], [ %92, %91 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %19) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %18) #7
  br label %113

96:                                               ; preds = %51, %49
  %97 = landingpad { ptr, i32 }
          cleanup
  br label %112

98:                                               ; preds = %52
  %99 = landingpad { ptr, i32 }
          cleanup
  br label %111

100:                                              ; preds = %63, %61, %59, %57, %55, %53
  %101 = landingpad { ptr, i32 }
          cleanup
  br label %110

102:                                              ; preds = %65
  %103 = landingpad { ptr, i32 }
          cleanup
  br label %109

104:                                              ; preds = %68, %66
  %105 = landingpad { ptr, i32 }
          cleanup
  br label %108

106:                                              ; preds = %72, %70
  %107 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 2, ptr nonnull %23) #7
  br label %108

108:                                              ; preds = %106, %104
  %.pn25 = phi { ptr, i32 } [ %107, %106 ], [ %105, %104 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %22) #7
  br label %109

109:                                              ; preds = %108, %102
  %.pn25.pn = phi { ptr, i32 } [ %.pn25, %108 ], [ %103, %102 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %22) #7
  br label %110

110:                                              ; preds = %109, %100
  %.pn25.pn.pn = phi { ptr, i32 } [ %.pn25.pn, %109 ], [ %101, %100 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %21) #7
  br label %111

111:                                              ; preds = %110, %98
  %.pn25.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn, %110 ], [ %99, %98 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %21) #7
  call void @_ZN3chw17LogContextCaptureD1Ev(ptr noundef nonnull align 8 dereferenceable(24) %20) #7
  br label %112

112:                                              ; preds = %111, %96
  %.pn25.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn.pn, %111 ], [ %97, %96 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %20) #7
  br label %113

113:                                              ; preds = %112, %95, %89
  %.pn25.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn.pn.pn, %112 ], [ %.pn23, %95 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #7
  br label %115

114:                                              ; preds = %37, %74
  call void @_ZNSt12__shared_ptrISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %12) #7
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  ret void

115:                                              ; preds = %113, %87, %86
  %.pn25.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn.pn.pn.pn, %113 ], [ %88, %87 ], [ %.pn21, %86 ]
  call void @_ZNSt12__shared_ptrISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %13) #7
  br label %116

116:                                              ; preds = %115, %81
  %.pn25.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn.pn.pn.pn.pn, %115 ], [ %.pn, %81 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #7
  call void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0D2Ev"(ptr noundef nonnull align 8 dereferenceable(48) %12) #7
  br label %117

117:                                              ; preds = %116, %75
  %.pn25.pn.pn.pn.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn25.pn.pn.pn.pn.pn.pn.pn, %116 ], [ %76, %75 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %12) #7
  call void @_ZNSt10__weak_ptrIN3chw6SocketELN9__gnu_cxx12_Lock_policyE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #7
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %10) #7
  resume { ptr, i32 } %.pn25.pn.pn.pn.pn.pn.pn.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt11make_sharedISt8functionIFvRKSt10shared_ptrIN3chw7SockNumEEEEJZNS2_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKS0_IFvRKNS2_13SockExceptionEEEfSH_tE3$_1EES1_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESR_E4typeEEDpOT0_"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.93") align 8, ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_0C2ERKSH_"(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZSt11make_sharedIN3chw5TimerEJRfZNS0_6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS0_13SockExceptionEEEfSB_tE3$_2RSt10shared_ptrINS0_9EventLoopEEEESL_INSt9enable_ifIXntsr8is_arrayIT_EE5valueESQ_E4typeEEDpOT0_"(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.11") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 8 dereferenceable(64), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @"_ZZN3chw6Socket9connect_lERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEtRKSt8functionIFvRKNS_13SockExceptionEEEfS8_tEN3$_2D2Ev"(ptr noundef nonnull align 8 dereferenceable(64)) unnamed_addr #6 align 2

declare noundef zeroext i1 @_ZN3chw8SockUtil4isIPEPKc(ptr noundef) local_unnamed_addr #1

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

declare noundef i32 @_ZN3chw8SockUtil7connectEPKctbS2_t(ptr noundef, i16 noundef zeroext, i1 noundef zeroext, ptr noundef, i16 noundef zeroext) local_unnamed_addr #1

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt11make_sharedIN3chw7SockNumEJRiNS1_8SockTypeEEESt10shared_ptrINSt9enable_ifIXntsr8is_arrayIT_EE5valueES6_E4typeEEDpOT0_(ptr dead_on_unwind noalias writable sret(%"class.std::shared_ptr.101") align 8, ptr noundef nonnull align 4 dereferenceable(4), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #5

declare noundef nonnull align 8 dereferenceable(144) ptr @_ZN3chw9getLoggerEv() local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3chw6Socket13getIdentifierB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(1072)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA16_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(16)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA2_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(2)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRtEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA11_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(11)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3chw6Socket12get_local_ipB5cxx11Ev(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(1072)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsIRA13_KcEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 1 dereferenceable(13)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZN3chw17LogContextCapturelsItEERS0_OT_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 2 dereferenceable(2)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN3chw6Socket14get_local_portEv(ptr noundef nonnull align 8 dereferenceable(1072)) local_unnamed_addr #3 align 2

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

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

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

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

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

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

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

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


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