; LLVM IR from yinqiwen/ardb :: src/common/channel/socket (socket_channel)

; 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.ardb::SocketInetAddress" = type <{ %"class.ardb::Address", %"union.ardb::SocketInetAddress::MyAddrUnion", [2 x i8] }>
%"class.ardb::Address" = type { ptr }
%"union.ardb::SocketInetAddress::MyAddrUnion" = type { %struct.sockaddr, [94 x i8] }
%struct.sockaddr = type { i16, [14 x i8] }
%"struct.ardb::InstanceOf" = type { i8 }
%"struct.ardb::InstanceOf.0" = type { i8 }
%"struct.ardb::InstanceOf.1" = type { i8 }
%"class.ardb::SocketChannel" = type <{ %"class.ardb::Channel", ptr, ptr, i32, [4 x i8] }>
%"class.ardb::Channel" = type { %"class.ardb::Runnable", %"struct.ardb::ChannelOptions", i8, i8, i32, %"class.ardb::ChannelPipeline", ptr, i32, i32, %"class.ardb::Buffer", %"class.ardb::Buffer", i32, ptr, ptr, ptr, ptr, i8, i8, i8, ptr, ptr, ptr }
%"class.ardb::Runnable" = type { ptr }
%"struct.ardb::ChannelOptions" = type <{ i32, i32, i8, [3 x i8], i32, i8, [3 x i8], i32, i32, i32, i8, i8, [2 x i8] }>
%"class.ardb::ChannelPipeline" = type { ptr, ptr, ptr, %"class.btree::btree_map" }
%"class.btree::btree_map" = type { %"class.btree::btree_map_container" }
%"class.btree::btree_map_container" = type { %"class.btree::btree_unique_container" }
%"class.btree::btree_unique_container" = type { %"class.btree::btree_container" }
%"class.btree::btree_container" = type { %"class.btree::btree" }
%"class.btree::btree" = type { %"struct.btree::btree<btree::btree_map_params<std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *, std::less<std::__cxx11::basic_string<char>>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *>>, 256>>::empty_base_handle" }
%"struct.btree::btree<btree::btree_map_params<std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *, std::less<std::__cxx11::basic_string<char>>, std::allocator<std::pair<const std::__cxx11::basic_string<char>, ardb::ChannelHandlerContext *>>, 256>>::empty_base_handle" = type { ptr }
%"class.ardb::Buffer" = type <{ ptr, i64, i64, i64, i8, [7 x i8] }>

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@__FUNCTION__._ZN4ardb13SocketChannel9DoConnectEPNS_7AddressE = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() #0

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() #0

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

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

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

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb10InstanceOfINS_17SocketHostAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4ardb16get_inet_addressERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr dead_on_unwind writable sret(%"class.ardb::SocketInetAddress") align 8, ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK4ardb17SocketHostAddress7GetPortEv(ptr noundef nonnull align 8 dereferenceable(42)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSEOS0_(ptr noundef nonnull align 8 dereferenceable(118), ptr noundef nonnull align 8 dereferenceable(118)) #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb10InstanceOfINS_17SocketInetAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSERKS0_(ptr noundef nonnull align 8 dereferenceable(118), ptr noundef nonnull align 8 dereferenceable(118)) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb10InstanceOfINS_17SocketUnixAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) unnamed_addr #5 align 2

declare void @_ZN4ardb16get_inet_addressERKNS_17SocketUnixAddressE(ptr dead_on_unwind writable sret(%"class.ardb::SocketInetAddress") align 8, ptr noundef nonnull align 8 dereferenceable(40)) #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb13SocketChannel11GetSocketFDEi(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4ardb17SocketInetAddress9GetDomainEv(ptr noundef nonnull align 8 dereferenceable(118)) #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4ardb17SocketInetAddress18GetRawSockAddrSizeEv(ptr noundef nonnull align 8 dereferenceable(118)) #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb13SocketChannel9DoConnectEPNS_7AddressE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef %1) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"class.ardb::SocketInetAddress", align 8
  %7 = alloca %"struct.ardb::InstanceOf", align 1
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %"class.ardb::SocketInetAddress", align 8
  %12 = alloca %"struct.ardb::InstanceOf.0", align 1
  %13 = alloca ptr, align 8
  %14 = alloca %"struct.ardb::InstanceOf.1", align 1
  %15 = alloca ptr, align 8
  %16 = alloca %"class.ardb::SocketInetAddress", align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %4, align 8
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = icmp eq ptr null, %22
  br i1 %23, label %24, label %25

24:                                               ; preds = %2
  store i1 false, ptr %3, align 1
  br label %146

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 120, ptr %6) #7
  call void @_ZN4ardb17SocketInetAddressC2Ev(ptr noundef nonnull align 8 dereferenceable(118) %6)
  call void @llvm.lifetime.start.p0(i64 1, ptr %7) #7
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4ardb10InstanceOfINS_17SocketHostAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef %26)
          to label %27 unwind label %41

27:                                               ; preds = %25
  %28 = getelementptr inbounds %"struct.ardb::InstanceOf", ptr %7, i32 0, i32 0
  %29 = load i8, ptr %28, align 1, !tbaa !9, !range !12, !noundef !13
  %30 = trunc i8 %29 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  br i1 %30, label %31, label %49

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %32, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr %11) #7
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNK4ardb17SocketHostAddress7GetHostB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(42) %33)
          to label %35 unwind label %45

35:                                               ; preds = %31
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = invoke noundef zeroext i16 @_ZNK4ardb17SocketHostAddress7GetPortEv(ptr noundef nonnull align 8 dereferenceable(42) %36)
          to label %38 unwind label %45

38:                                               ; preds = %35
  invoke void @_ZN4ardb16get_inet_addressERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr dead_on_unwind writable sret(%"class.ardb::SocketInetAddress") align 8 %11, ptr noundef nonnull align 8 dereferenceable(32) %34, i16 noundef zeroext %37)
          to label %39 unwind label %45

39:                                               ; preds = %38
  %40 = call noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSEOS0_(ptr noundef nonnull align 8 dereferenceable(118) %6, ptr noundef nonnull align 8 dereferenceable(118) %11) #7
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %11) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %85

41:                                               ; preds = %25
  %42 = landingpad { ptr, i32 }
          cleanup
  %43 = extractvalue { ptr, i32 } %42, 0
  store ptr %43, ptr %8, align 8
  %44 = extractvalue { ptr, i32 } %42, 1
  store i32 %44, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %7) #7
  br label %145

45:                                               ; preds = %38, %35, %31
  %46 = landingpad { ptr, i32 }
          cleanup
  %47 = extractvalue { ptr, i32 } %46, 0
  store ptr %47, ptr %8, align 8
  %48 = extractvalue { ptr, i32 } %46, 1
  store i32 %48, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %145

49:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 1, ptr %12) #7
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4ardb10InstanceOfINS_17SocketInetAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1) %12, ptr noundef %50)
          to label %51 unwind label %59

51:                                               ; preds = %49
  %52 = getelementptr inbounds %"struct.ardb::InstanceOf.0", ptr %12, i32 0, i32 0
  %53 = load i8, ptr %52, align 1, !tbaa !14, !range !12, !noundef !13
  %54 = trunc i8 %53 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br i1 %54, label %55, label %63

55:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %56, ptr %13, align 8, !tbaa !5
  %57 = load ptr, ptr %13, align 8, !tbaa !5
  %58 = call noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSERKS0_(ptr noundef nonnull align 8 dereferenceable(118) %6, ptr noundef nonnull align 8 dereferenceable(118) %57) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %84

59:                                               ; preds = %49
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %8, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %12) #7
  br label %145

63:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 1, ptr %14) #7
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN4ardb10InstanceOfINS_17SocketUnixAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1) %14, ptr noundef %64)
          to label %65 unwind label %74

65:                                               ; preds = %63
  %66 = getelementptr inbounds %"struct.ardb::InstanceOf.1", ptr %14, i32 0, i32 0
  %67 = load i8, ptr %66, align 1, !tbaa !16, !range !12, !noundef !13
  %68 = trunc i8 %67 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  br i1 %68, label %69, label %82

69:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %70 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %70, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 120, ptr %16) #7
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  invoke void @_ZN4ardb16get_inet_addressERKNS_17SocketUnixAddressE(ptr dead_on_unwind writable sret(%"class.ardb::SocketInetAddress") align 8 %16, ptr noundef nonnull align 8 dereferenceable(40) %71)
          to label %72 unwind label %78

72:                                               ; preds = %69
  %73 = call noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSEOS0_(ptr noundef nonnull align 8 dereferenceable(118) %6, ptr noundef nonnull align 8 dereferenceable(118) %16) #7
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %16) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %83

74:                                               ; preds = %63
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %8, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 1, ptr %14) #7
  br label %145

78:                                               ; preds = %69
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %8, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 120, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %145

82:                                               ; preds = %65
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %144

83:                                               ; preds = %72
  br label %84

84:                                               ; preds = %83, %55
  br label %85

85:                                               ; preds = %84, %39
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  %86 = invoke noundef i32 @_ZNK4ardb17SocketInetAddress9GetDomainEv(ptr noundef nonnull align 8 dereferenceable(118) %6)
          to label %87 unwind label %108

87:                                               ; preds = %85
  %88 = invoke noundef i32 @_ZN4ardb13SocketChannel11GetSocketFDEi(ptr noundef nonnull align 8 dereferenceable(276) %21, i32 noundef %86)
          to label %89 unwind label %108

89:                                               ; preds = %87
  store i32 %88, ptr %18, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %90 = load i32, ptr %18, align 4, !tbaa !18
  %91 = invoke noundef nonnull align 2 dereferenceable(16) ptr @_ZNK4ardb17SocketInetAddress14GetRawSockAddrEv(ptr noundef nonnull align 8 dereferenceable(118) %6)
          to label %92 unwind label %112

92:                                               ; preds = %89
  %93 = invoke noundef i32 @_ZNK4ardb17SocketInetAddress18GetRawSockAddrSizeEv(ptr noundef nonnull align 8 dereferenceable(118) %6)
          to label %94 unwind label %112

94:                                               ; preds = %92
  %95 = invoke i32 @connect(i32 noundef %90, ptr noundef %91, i32 noundef %93)
          to label %96 unwind label %112

96:                                               ; preds = %94
  store i32 %95, ptr %19, align 4, !tbaa !18
  %97 = load i32, ptr %19, align 4, !tbaa !18
  %98 = icmp slt i32 %97, 0
  br i1 %98, label %99, label %139

99:                                               ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %100 = call ptr @__errno_location() #8
  %101 = load i32, ptr %100, align 4, !tbaa !18
  store i32 %101, ptr %20, align 4, !tbaa !18
  %102 = load i32, ptr %20, align 4, !tbaa !18
  %103 = icmp eq i32 %102, 4
  br i1 %103, label %107, label %104

104:                                              ; preds = %99
  %105 = load i32, ptr %20, align 4, !tbaa !18
  %106 = icmp eq i32 %105, 115
  br i1 %106, label %107, label %116

107:                                              ; preds = %104, %99
  br label %135

108:                                              ; preds = %87, %85
  %109 = landingpad { ptr, i32 }
          cleanup
  %110 = extractvalue { ptr, i32 } %109, 0
  store ptr %110, ptr %8, align 8
  %111 = extractvalue { ptr, i32 } %109, 1
  store i32 %111, ptr %9, align 4
  br label %143

112:                                              ; preds = %94, %92, %89
  %113 = landingpad { ptr, i32 }
          cleanup
  %114 = extractvalue { ptr, i32 } %113, 0
  store ptr %114, ptr %8, align 8
  %115 = extractvalue { ptr, i32 } %113, 1
  store i32 %115, ptr %9, align 4
  br label %142

116:                                              ; preds = %104
  br label %117

117:                                              ; preds = %116
  %118 = invoke noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
          to label %119 unwind label %128

119:                                              ; preds = %117
  %120 = invoke noundef zeroext i1 %118(i32 noundef 2)
          to label %121 unwind label %128

121:                                              ; preds = %119
  br i1 %120, label %122, label %132

122:                                              ; preds = %121
  %123 = invoke noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
          to label %124 unwind label %128

124:                                              ; preds = %122
  %125 = load i32, ptr %20, align 4, !tbaa !18
  %126 = call ptr @strerror(i32 noundef %125) #7
  invoke void (i32, ptr, ptr, i32, ptr, ...) %123(i32 noundef 2, ptr noundef @.str, ptr noundef @__FUNCTION__._ZN4ardb13SocketChannel9DoConnectEPNS_7AddressE, i32 noundef 220, ptr noundef @.str.11, ptr noundef %126)
          to label %127 unwind label %128

127:                                              ; preds = %124
  br label %132

128:                                              ; preds = %124, %122, %119, %117
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %8, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %142

132:                                              ; preds = %127, %121
  br label %133

133:                                              ; preds = %132
  br label %134

134:                                              ; preds = %133
  store i1 false, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %136

135:                                              ; preds = %107
  store i32 0, ptr %17, align 4
  br label %136

136:                                              ; preds = %135, %134
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  %137 = load i32, ptr %17, align 4
  switch i32 %137, label %141 [
    i32 0, label %138
  ]

138:                                              ; preds = %136
  br label %139

139:                                              ; preds = %138, %96
  %140 = getelementptr inbounds %"class.ardb::SocketChannel", ptr %21, i32 0, i32 3
  store i32 2, ptr %140, align 8, !tbaa !20
  store i1 true, ptr %3, align 1
  store i32 1, ptr %17, align 4
  br label %141

141:                                              ; preds = %139, %136
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %144

142:                                              ; preds = %128, %112
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %143

143:                                              ; preds = %142, %108
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %145

144:                                              ; preds = %141, %82
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %6) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #7
  br label %146

145:                                              ; preds = %143, %78, %74, %59, %45, %41
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %6) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr %6) #7
  br label %148

146:                                              ; preds = %144, %24
  %147 = load i1, ptr %3, align 1
  ret i1 %147

148:                                              ; preds = %145
  %149 = load ptr, ptr %8, align 8
  %150 = load i32, ptr %9, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152
}

declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) #0

attributes #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 = { 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 = { nounwind willreturn memory(none) "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 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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }

!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, !11, i64 0}
!10 = !{!"_ZTSN4ardb10InstanceOfINS_17SocketHostAddressEEE", !11, i64 0}
!11 = !{!"bool", !7, i64 0}
!12 = !{i8 0, i8 2}
!13 = !{}
!14 = !{!15, !11, i64 0}
!15 = !{!"_ZTSN4ardb10InstanceOfINS_17SocketInetAddressEEE", !11, i64 0}
!16 = !{!17, !11, i64 0}
!17 = !{!"_ZTSN4ardb10InstanceOfINS_17SocketUnixAddressEEE", !11, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = !{!21, !34, i64 272}
!21 = !{!"_ZTSN4ardb13SocketChannelE", !22, i64 0, !6, i64 256, !6, i64 264, !34, i64 272}
!22 = !{!"_ZTSN4ardb7ChannelE", !23, i64 0, !24, i64 8, !11, i64 44, !11, i64 45, !19, i64 48, !25, i64 56, !6, i64 88, !19, i64 96, !19, i64 100, !32, i64 104, !32, i64 144, !19, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !11, i64 224, !11, i64 225, !11, i64 226, !6, i64 232, !6, i64 240, !6, i64 248}
!23 = !{!"_ZTSN4ardb8RunnableE"}
!24 = !{!"_ZTSN4ardb14ChannelOptionsE", !19, i64 0, !19, i64 4, !11, i64 8, !19, i64 12, !11, i64 16, !19, i64 20, !19, i64 24, !19, i64 28, !11, i64 32, !11, i64 33}
!25 = !{!"_ZTSN4ardb15ChannelPipelineE", !6, i64 0, !6, i64 8, !6, i64 16, !26, i64 24}
!26 = !{!"_ZTSN5btree9btree_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS6_ESaISt4pairIKS6_S9_EELi256EEE", !27, i64 0}
!27 = !{!"_ZTSN5btree19btree_map_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !28, i64 0}
!28 = !{!"_ZTSN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !29, i64 0}
!29 = !{!"_ZTSN5btree15btree_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !30, i64 0}
!30 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEEE", !31, i64 0}
!31 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEE17empty_base_handleIS6_PNS_10btree_nodeISH_EEEE", !6, i64 0}
!32 = !{!"_ZTSN4ardb6BufferE", !6, i64 0, !33, i64 8, !33, i64 16, !33, i64 24, !11, i64 32}
!33 = !{!"long", !7, i64 0}
!34 = !{!"_ZTSN4ardb18SocketChannelStateE", !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.ardb::SocketInetAddress" = type <{ %"class.ardb::Address", %"union.ardb::SocketInetAddress::MyAddrUnion", [2 x i8] }>
%"class.ardb::Address" = type { ptr }
%"union.ardb::SocketInetAddress::MyAddrUnion" = type { %struct.sockaddr, [94 x i8] }
%struct.sockaddr = type { i16, [14 x i8] }
%"struct.ardb::InstanceOf" = type { i8 }
%"struct.ardb::InstanceOf.0" = type { i8 }
%"struct.ardb::InstanceOf.1" = type { i8 }

@.str = external hidden unnamed_addr constant [92 x i8], align 1
@__FUNCTION__._ZN4ardb13SocketChannel9DoConnectEPNS_7AddressE = external hidden unnamed_addr constant [10 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [46 x i8], align 1

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv() local_unnamed_addr #0

declare noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv() local_unnamed_addr #0

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

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

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

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb10InstanceOfINS_17SocketHostAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

declare void @_ZN4ardb16get_inet_addressERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr dead_on_unwind writable sret(%"class.ardb::SocketInetAddress") align 8, ptr noundef nonnull align 8 dereferenceable(32), i16 noundef zeroext) local_unnamed_addr #0

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i16 @_ZNK4ardb17SocketHostAddress7GetPortEv(ptr noundef nonnull align 8 dereferenceable(42)) local_unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSEOS0_(ptr noundef nonnull align 8 dereferenceable(118), ptr noundef nonnull align 8 dereferenceable(118)) local_unnamed_addr #5 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb10InstanceOfINS_17SocketInetAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSERKS0_(ptr noundef nonnull align 8 dereferenceable(118), ptr noundef nonnull align 8 dereferenceable(118)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb10InstanceOfINS_17SocketUnixAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef) unnamed_addr #5 align 2

declare void @_ZN4ardb16get_inet_addressERKNS_17SocketUnixAddressE(ptr dead_on_unwind writable sret(%"class.ardb::SocketInetAddress") align 8, ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZN4ardb13SocketChannel11GetSocketFDEi(ptr noundef nonnull align 8 dereferenceable(276), i32 noundef) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4ardb17SocketInetAddress9GetDomainEv(ptr noundef nonnull align 8 dereferenceable(118)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i32 @_ZNK4ardb17SocketInetAddress18GetRawSockAddrSizeEv(ptr noundef nonnull align 8 dereferenceable(118)) local_unnamed_addr #6 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4ardb13SocketChannel9DoConnectEPNS_7AddressE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef %1) unnamed_addr #6 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.ardb::SocketInetAddress", align 8
  %4 = alloca %"struct.ardb::InstanceOf", align 1
  %5 = alloca %"class.ardb::SocketInetAddress", align 8
  %6 = alloca %"struct.ardb::InstanceOf.0", align 1
  %7 = alloca %"struct.ardb::InstanceOf.1", align 1
  %8 = alloca %"class.ardb::SocketInetAddress", align 8
  %9 = icmp eq ptr %1, null
  br i1 %9, label %67, label %10

10:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %3) #7
  call void @_ZN4ardb17SocketInetAddressC2Ev(ptr noundef nonnull align 8 dereferenceable(118) %3)
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %4) #7
  call void @_ZN4ardb10InstanceOfINS_17SocketHostAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1) %4, ptr noundef nonnull %1)
  %11 = load i8, ptr %4, align 1, !tbaa !5, !range !10, !noundef !11
  %12 = trunc nuw i8 %11 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %4) #7
  br i1 %12, label %13, label %20

13:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %5) #7
  %14 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNK4ardb17SocketHostAddress7GetHostB5cxx11Ev(ptr noundef nonnull align 8 dereferenceable(42) %1)
  %15 = call noundef zeroext i16 @_ZNK4ardb17SocketHostAddress7GetPortEv(ptr noundef nonnull align 8 dereferenceable(42) %1)
  invoke void @_ZN4ardb16get_inet_addressERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEt(ptr dead_on_unwind nonnull writable sret(%"class.ardb::SocketInetAddress") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %14, i16 noundef zeroext %15)
          to label %16 unwind label %18

16:                                               ; preds = %13
  %17 = call noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSEOS0_(ptr noundef nonnull align 8 dereferenceable(118) %3, ptr noundef nonnull align 8 dereferenceable(118) %5) #7
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %5) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %5) #7
  br label %33

18:                                               ; preds = %13
  %19 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %5) #7
  br label %66

20:                                               ; preds = %10
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %6) #7
  call void @_ZN4ardb10InstanceOfINS_17SocketInetAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1) %6, ptr noundef nonnull %1)
  %21 = load i8, ptr %6, align 1, !tbaa !12, !range !10, !noundef !11
  %22 = trunc nuw i8 %21 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %6) #7
  br i1 %22, label %23, label %25

23:                                               ; preds = %20
  %24 = call noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSERKS0_(ptr noundef nonnull align 8 dereferenceable(118) %3, ptr noundef nonnull align 8 dereferenceable(118) %1) #7
  br label %33

25:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #7
  call void @_ZN4ardb10InstanceOfINS_17SocketUnixAddressEEC2INS_7AddressEEEPKT_(ptr noundef nonnull align 1 dereferenceable(1) %7, ptr noundef nonnull %1)
  %26 = load i8, ptr %7, align 1, !tbaa !14, !range !10, !noundef !11
  %27 = trunc nuw i8 %26 to i1
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #7
  br i1 %27, label %28, label %65

28:                                               ; preds = %25
  call void @llvm.lifetime.start.p0(i64 120, ptr nonnull %8) #7
  invoke void @_ZN4ardb16get_inet_addressERKNS_17SocketUnixAddressE(ptr dead_on_unwind nonnull writable sret(%"class.ardb::SocketInetAddress") align 8 %8, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %29 unwind label %31

29:                                               ; preds = %28
  %30 = call noundef nonnull align 8 dereferenceable(118) ptr @_ZN4ardb17SocketInetAddressaSEOS0_(ptr noundef nonnull align 8 dereferenceable(118) %3, ptr noundef nonnull align 8 dereferenceable(118) %8) #7
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %8) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #7
  br label %33

31:                                               ; preds = %28
  %32 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %8) #7
  br label %66

33:                                               ; preds = %23, %29, %16
  %34 = invoke noundef i32 @_ZNK4ardb17SocketInetAddress9GetDomainEv(ptr noundef nonnull align 8 dereferenceable(118) %3)
          to label %35 unwind label %47

35:                                               ; preds = %33
  %36 = invoke noundef i32 @_ZN4ardb13SocketChannel11GetSocketFDEi(ptr noundef nonnull align 8 dereferenceable(276) %0, i32 noundef %34)
          to label %37 unwind label %47

37:                                               ; preds = %35
  %38 = call noundef nonnull align 2 dereferenceable(16) ptr @_ZNK4ardb17SocketInetAddress14GetRawSockAddrEv(ptr noundef nonnull align 8 dereferenceable(118) %3)
  %39 = invoke noundef i32 @_ZNK4ardb17SocketInetAddress18GetRawSockAddrSizeEv(ptr noundef nonnull align 8 dereferenceable(118) %3)
          to label %40 unwind label %49

40:                                               ; preds = %37
  %41 = invoke i32 @connect(i32 noundef %36, ptr noundef nonnull %38, i32 noundef %39)
          to label %42 unwind label %49

42:                                               ; preds = %40
  %43 = icmp slt i32 %41, 0
  br i1 %43, label %44, label %63

44:                                               ; preds = %42
  %45 = tail call ptr @__errno_location() #8
  %46 = load i32, ptr %45, align 4, !tbaa !16
  switch i32 %46, label %51 [
    i32 115, label %63
    i32 4, label %63
  ]

47:                                               ; preds = %35, %33
  %48 = landingpad { ptr, i32 }
          cleanup
  br label %66

49:                                               ; preds = %40, %37
  %50 = landingpad { ptr, i32 }
          cleanup
  br label %66

51:                                               ; preds = %44
  %52 = invoke noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
          to label %53 unwind label %60

53:                                               ; preds = %51
  %54 = invoke noundef zeroext i1 %52(i32 noundef 2)
          to label %55 unwind label %60

55:                                               ; preds = %53
  br i1 %54, label %56, label %62

56:                                               ; preds = %55
  %57 = invoke noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
          to label %58 unwind label %60

58:                                               ; preds = %56
  %59 = call ptr @strerror(i32 noundef %46) #7
  invoke void (i32, ptr, ptr, i32, ptr, ...) %57(i32 noundef 2, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__._ZN4ardb13SocketChannel9DoConnectEPNS_7AddressE, i32 noundef 220, ptr noundef nonnull @.str.11, ptr noundef %59)
          to label %62 unwind label %60

60:                                               ; preds = %58, %56, %53, %51
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %66

62:                                               ; preds = %55, %58
  %cond = icmp eq i32 %46, 115
  br i1 %cond, label %63, label %65

63:                                               ; preds = %62, %44, %44, %42
  %64 = getelementptr inbounds i8, ptr %0, i64 272
  store i32 2, ptr %64, align 8, !tbaa !18
  br label %65

65:                                               ; preds = %62, %63, %25
  %.2 = phi i1 [ false, %25 ], [ true, %63 ], [ false, %62 ]
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %3) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #7
  br label %67

66:                                               ; preds = %47, %60, %49, %31, %18
  %.pn.pn.pn = phi { ptr, i32 } [ %19, %18 ], [ %32, %31 ], [ %48, %47 ], [ %61, %60 ], [ %50, %49 ]
  call void @_ZN4ardb7AddressD2Ev(ptr noundef nonnull align 8 dereferenceable(118) %3) #7
  call void @llvm.lifetime.end.p0(i64 120, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn.pn.pn

67:                                               ; preds = %2, %65
  %.3 = phi i1 [ %.2, %65 ], [ false, %2 ]
  ret i1 %.3
}

declare i32 @connect(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

attributes #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 = { 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 nofree nosync nounwind willreturn memory(none) "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 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 = { 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 #7 = { nounwind }
attributes #8 = { nounwind willreturn memory(none) }

!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, !7, i64 0}
!6 = !{!"_ZTSN4ardb10InstanceOfINS_17SocketHostAddressEEE", !7, i64 0}
!7 = !{!"bool", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{i8 0, i8 2}
!11 = !{}
!12 = !{!13, !7, i64 0}
!13 = !{!"_ZTSN4ardb10InstanceOfINS_17SocketInetAddressEEE", !7, i64 0}
!14 = !{!15, !7, i64 0}
!15 = !{!"_ZTSN4ardb10InstanceOfINS_17SocketUnixAddressEEE", !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"int", !8, i64 0}
!18 = !{!19, !33, i64 272}
!19 = !{!"_ZTSN4ardb13SocketChannelE", !20, i64 0, !24, i64 256, !24, i64 264, !33, i64 272}
!20 = !{!"_ZTSN4ardb7ChannelE", !21, i64 0, !22, i64 8, !7, i64 44, !7, i64 45, !17, i64 48, !23, i64 56, !24, i64 88, !17, i64 96, !17, i64 100, !31, i64 104, !31, i64 144, !17, i64 184, !24, i64 192, !24, i64 200, !24, i64 208, !24, i64 216, !7, i64 224, !7, i64 225, !7, i64 226, !24, i64 232, !24, i64 240, !24, i64 248}
!21 = !{!"_ZTSN4ardb8RunnableE"}
!22 = !{!"_ZTSN4ardb14ChannelOptionsE", !17, i64 0, !17, i64 4, !7, i64 8, !17, i64 12, !7, i64 16, !17, i64 20, !17, i64 24, !17, i64 28, !7, i64 32, !7, i64 33}
!23 = !{!"_ZTSN4ardb15ChannelPipelineE", !24, i64 0, !24, i64 8, !24, i64 16, !25, i64 24}
!24 = !{!"any pointer", !8, i64 0}
!25 = !{!"_ZTSN5btree9btree_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS6_ESaISt4pairIKS6_S9_EELi256EEE", !26, i64 0}
!26 = !{!"_ZTSN5btree19btree_map_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !27, i64 0}
!27 = !{!"_ZTSN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !28, i64 0}
!28 = !{!"_ZTSN5btree15btree_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !29, i64 0}
!29 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEEE", !30, i64 0}
!30 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEE17empty_base_handleIS6_PNS_10btree_nodeISH_EEEE", !24, i64 0}
!31 = !{!"_ZTSN4ardb6BufferE", !24, i64 0, !32, i64 8, !32, i64 16, !32, i64 24, !7, i64 32}
!32 = !{!"long", !8, i64 0}
!33 = !{!"_ZTSN4ardb18SocketChannelStateE", !8, i64 0}


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