; LLVM IR from yinqiwen/ardb :: src/common/channel/socket/serversocket_channel.ll (ZN4ardb19ServerSocketChannel6OnReadEv)

; 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::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] }>
%struct.sockaddr = type { i16, [14 x i8] }
%"class.ardb::SocketHostAddress" = type <{ %"class.ardb::Address", %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%"class.ardb::Address" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.ardb::ServerSocketChannel" = type { %"class.ardb::SocketChannel.base", i32, i32, i32, %"class.std::__cxx11::basic_string" }
%"class.ardb::SocketChannel.base" = type <{ %"class.ardb::Channel", ptr, ptr, i32 }>

@.str = external hidden unnamed_addr constant [98 x i8], align 1
@__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@_ZTISt9bad_alloc = external constant ptr
@.str.10 = external hidden unnamed_addr constant [57 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

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) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ardb19ServerSocketChannel6OnReadEv(ptr noundef nonnull align 8 dereferenceable(320) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca [128 x i8], align 16
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #9
  call void @llvm.lifetime.start.p0(i64 128, ptr %4) #9
  br label %14

14:                                               ; preds = %137, %135, %1
  br label %15

15:                                               ; preds = %14
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 128, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #9
  %16 = getelementptr inbounds [128 x i8], ptr %4, i64 0, i64 0
  store ptr %16, ptr %6, align 8, !tbaa !5
  %17 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 8
  %18 = load i32, ptr %17, align 4, !tbaa !11
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = call i32 @accept4(i32 noundef %18, ptr noundef %19, ptr noundef %5, i32 noundef 2048)
  store i32 %20, ptr %3, align 4, !tbaa !9
  %21 = load i32, ptr %3, align 4, !tbaa !9
  %22 = icmp eq i32 -1, %21
  br i1 %22, label %23, label %29

23:                                               ; preds = %15
  %24 = call ptr @__errno_location() #10
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = icmp eq i32 %25, 4
  br i1 %26, label %27, label %28

27:                                               ; preds = %23
  store i32 2, ptr %7, align 4
  br label %135, !llvm.loop !25

28:                                               ; preds = %23
  store i32 1, ptr %7, align 4
  br label %135

29:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #9
  %30 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256) %13)
  %31 = call noundef ptr @_ZN4ardb14ChannelService22NewClientSocketChannelEv(ptr noundef nonnull align 8 dereferenceable(288) %30)
  store ptr %31, ptr %8, align 8, !tbaa !5
  %32 = load i32, ptr %3, align 4, !tbaa !9
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = getelementptr inbounds %"class.ardb::Channel", ptr %33, i32 0, i32 8
  store i32 %32, ptr %34, align 4, !tbaa !11
  %35 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 2
  %36 = load i8, ptr %35, align 4, !tbaa !27, !range !28, !noundef !29
  %37 = trunc i8 %36 to i1
  br i1 %37, label %38, label %42

38:                                               ; preds = %29
  %39 = load ptr, ptr %8, align 8, !tbaa !5
  %40 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 1
  %41 = call noundef zeroext i1 @_ZN4ardb7Channel9ConfigureERKNS_14ChannelOptionsE(ptr noundef nonnull align 8 dereferenceable(256) %39, ptr noundef nonnull align 4 dereferenceable(34) %40)
  br label %42

42:                                               ; preds = %38, %29
  %43 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 12
  %44 = load ptr, ptr %43, align 8, !tbaa !30
  %45 = icmp ne ptr null, %44
  br i1 %45, label %46, label %60

46:                                               ; preds = %42
  br label %47

47:                                               ; preds = %46
  %48 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %49 = call noundef zeroext i1 %48(i32 noundef 5)
  br i1 %49, label %50, label %52

50:                                               ; preds = %47
  %51 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  call void (i32, ptr, ptr, i32, ptr, ...) %51(i32 noundef 5, ptr noundef @.str, ptr noundef @__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv, i32 noundef 224, ptr noundef @.str.8)
  br label %52

52:                                               ; preds = %50, %47
  br label %53

53:                                               ; preds = %52
  br label %54

54:                                               ; preds = %53
  %55 = load ptr, ptr %8, align 8, !tbaa !5
  %56 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 12
  %57 = load ptr, ptr %56, align 8, !tbaa !30
  %58 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 13
  %59 = load ptr, ptr %58, align 8, !tbaa !31
  call void @_ZN4ardb7Channel29SetChannelPipelineInitializorEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256) %55, ptr noundef %57, ptr noundef %59)
  br label %60

60:                                               ; preds = %54, %42
  %61 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 14
  %62 = load ptr, ptr %61, align 8, !tbaa !32
  %63 = icmp ne ptr null, %62
  br i1 %63, label %64, label %78

64:                                               ; preds = %60
  br label %65

65:                                               ; preds = %64
  %66 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %67 = call noundef zeroext i1 %66(i32 noundef 5)
  br i1 %67, label %68, label %70

68:                                               ; preds = %65
  %69 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  call void (i32, ptr, ptr, i32, ptr, ...) %69(i32 noundef 5, ptr noundef @.str, ptr noundef @__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv, i32 noundef 229, ptr noundef @.str.9)
  br label %70

70:                                               ; preds = %68, %65
  br label %71

71:                                               ; preds = %70
  br label %72

72:                                               ; preds = %71
  %73 = load ptr, ptr %8, align 8, !tbaa !5
  %74 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 14
  %75 = load ptr, ptr %74, align 8, !tbaa !32
  %76 = getelementptr inbounds %"class.ardb::Channel", ptr %13, i32 0, i32 15
  %77 = load ptr, ptr %76, align 8, !tbaa !33
  call void @_ZN4ardb7Channel27SetChannelPipelineFinalizerEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256) %73, ptr noundef %75, ptr noundef %77)
  br label %78

78:                                               ; preds = %72, %60
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4ardb7Channel9SetParentEPS0_(ptr noundef nonnull align 8 dereferenceable(256) %79, ptr noundef %13)
  %80 = load ptr, ptr %6, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.sockaddr, ptr %80, i32 0, i32 0
  %82 = load i16, ptr %81, align 2, !tbaa !34
  %83 = zext i16 %82 to i32
  %84 = icmp ne i32 %83, 1
  br i1 %84, label %85, label %112

85:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #9
  store ptr null, ptr %9, align 8, !tbaa !5
  br label %86

86:                                               ; preds = %85
  %87 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #11
          to label %88 unwind label %91

88:                                               ; preds = %86
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN4ardb16get_host_addressERK8sockaddr(ptr dead_on_unwind writable sret(%"class.ardb::SocketHostAddress") align 8 %87, ptr noundef nonnull align 2 dereferenceable(16) %89)
          to label %90 unwind label %95

90:                                               ; preds = %88
  store ptr %87, ptr %9, align 8, !tbaa !5
  br label %106

91:                                               ; preds = %86
  %92 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %10, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %11, align 4
  br label %99

95:                                               ; preds = %88
  %96 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %10, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %11, align 4
  call void @_ZdlPvm(ptr noundef %87, i64 noundef 48) #12
  br label %99

99:                                               ; preds = %95, %91
  %100 = load i32, ptr %11, align 4
  %101 = call i32 @llvm.eh.typeid.for.p0(ptr @_ZTISt9bad_alloc) #9
  %102 = icmp eq i32 %100, %101
  br i1 %102, label %103, label %111

103:                                              ; preds = %99
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #9
  %104 = load ptr, ptr %10, align 8
  %105 = call ptr @__cxa_begin_catch(ptr %104) #9
  store ptr %105, ptr %12, align 8
  store ptr null, ptr %9, align 8, !tbaa !5
  call void @__cxa_end_catch()
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #9
  br label %106

106:                                              ; preds = %103, %90
  br label %107

107:                                              ; preds = %106
  br label %108

108:                                              ; preds = %107
  %109 = load ptr, ptr %8, align 8, !tbaa !5
  %110 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN4ardb13SocketChannel16setRemoteAddressEPNS_7AddressE(ptr noundef nonnull align 8 dereferenceable(276) %109, ptr noundef %110)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  br label %112

111:                                              ; preds = %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  br label %139

112:                                              ; preds = %108, %78
  br label %113

113:                                              ; preds = %112
  %114 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %115 = call noundef zeroext i1 %114(i32 noundef 5)
  br i1 %115, label %116, label %122

116:                                              ; preds = %113
  %117 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %118 = call noundef i32 @_ZN4ardb7Channel5GetIDEv(ptr noundef nonnull align 8 dereferenceable(256) %13)
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = call noundef i32 @_ZN4ardb7Channel5GetIDEv(ptr noundef nonnull align 8 dereferenceable(256) %119)
  %121 = load i32, ptr %3, align 4, !tbaa !9
  call void (i32, ptr, ptr, i32, ptr, ...) %117(i32 noundef 5, ptr noundef @.str, ptr noundef @__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv, i32 noundef 240, ptr noundef @.str.10, i32 noundef %118, i32 noundef %120, i32 noundef %121)
  br label %122

122:                                              ; preds = %116, %113
  br label %123

123:                                              ; preds = %122
  br label %124

124:                                              ; preds = %123
  %125 = getelementptr inbounds %"class.ardb::ServerSocketChannel", ptr %13, i32 0, i32 1
  %126 = load i32, ptr %125, align 4, !tbaa !37
  %127 = add i32 %126, 1
  store i32 %127, ptr %125, align 4, !tbaa !37
  %128 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256) %13)
  %129 = getelementptr inbounds %"class.ardb::ServerSocketChannel", ptr %13, i32 0, i32 2
  %130 = load i32, ptr %129, align 8, !tbaa !43
  %131 = getelementptr inbounds %"class.ardb::ServerSocketChannel", ptr %13, i32 0, i32 3
  %132 = load i32, ptr %131, align 4, !tbaa !44
  %133 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb14ChannelService23GetIdlestChannelServiceEjj(ptr noundef nonnull align 8 dereferenceable(288) %128, i32 noundef %130, i32 noundef %132)
  %134 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4ardb14ChannelService21AttachAcceptedChannelEPNS_13SocketChannelE(ptr noundef nonnull align 8 dereferenceable(288) %133, ptr noundef %134)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #9
  store i32 0, ptr %7, align 4
  br label %135

135:                                              ; preds = %124, %28, %27
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  %136 = load i32, ptr %7, align 4
  switch i32 %136, label %138 [
    i32 0, label %137
    i32 2, label %14
  ]

137:                                              ; preds = %135
  br label %14, !llvm.loop !25

138:                                              ; preds = %135
  call void @llvm.lifetime.end.p0(i64 128, ptr %4) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #9
  ret void

139:                                              ; preds = %111
  %140 = load ptr, ptr %10, align 8
  %141 = load i32, ptr %11, align 4
  %142 = insertvalue { ptr, i32 } poison, ptr %140, 0
  %143 = insertvalue { ptr, i32 } %142, i32 %141, 1
  resume { ptr, i32 } %143
}

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

declare noundef ptr @_ZN4ardb14ChannelService22NewClientSocketChannelEv(ptr noundef nonnull align 8 dereferenceable(288)) #0

declare noundef zeroext i1 @_ZN4ardb7Channel9ConfigureERKNS_14ChannelOptionsE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 4 dereferenceable(34)) #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4ardb7Channel29SetChannelPipelineInitializorEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb7Channel27SetChannelPipelineFinalizerEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef) #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4ardb7Channel9SetParentEPS0_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) #5 align 2

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

declare void @_ZN4ardb16get_host_addressERK8sockaddr(ptr dead_on_unwind writable sret(%"class.ardb::SocketHostAddress") align 8, ptr noundef nonnull align 2 dereferenceable(16)) #0

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

; Function Attrs: nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr)

declare void @__cxa_end_catch()

declare void @_ZN4ardb13SocketChannel16setRemoteAddressEPNS_7AddressE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef) #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4ardb7Channel5GetIDEv(ptr noundef nonnull align 8 dereferenceable(256)) #3 align 2

declare noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb14ChannelService23GetIdlestChannelServiceEjj(ptr noundef nonnull align 8 dereferenceable(288), i32 noundef, i32 noundef) #0

declare void @_ZN4ardb14ChannelService21AttachAcceptedChannelEPNS_13SocketChannelE(ptr noundef nonnull align 8 dereferenceable(288), ptr 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 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 #3 = { 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 #4 = { 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 #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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 100}
!12 = !{!"_ZTSN4ardb7ChannelE", !13, i64 0, !14, i64 8, !15, i64 44, !15, i64 45, !10, i64 48, !16, i64 56, !6, i64 88, !10, i64 96, !10, i64 100, !23, i64 104, !23, i64 144, !10, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !15, i64 224, !15, i64 225, !15, i64 226, !6, i64 232, !6, i64 240, !6, i64 248}
!13 = !{!"_ZTSN4ardb8RunnableE"}
!14 = !{!"_ZTSN4ardb14ChannelOptionsE", !10, i64 0, !10, i64 4, !15, i64 8, !10, i64 12, !15, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !15, i64 32, !15, i64 33}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN4ardb15ChannelPipelineE", !6, i64 0, !6, i64 8, !6, i64 16, !17, i64 24}
!17 = !{!"_ZTSN5btree9btree_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS6_ESaISt4pairIKS6_S9_EELi256EEE", !18, i64 0}
!18 = !{!"_ZTSN5btree19btree_map_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !19, i64 0}
!19 = !{!"_ZTSN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !20, i64 0}
!20 = !{!"_ZTSN5btree15btree_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !21, i64 0}
!21 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEEE", !22, i64 0}
!22 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEE17empty_base_handleIS6_PNS_10btree_nodeISH_EEEE", !6, i64 0}
!23 = !{!"_ZTSN4ardb6BufferE", !6, i64 0, !24, i64 8, !24, i64 16, !24, i64 24, !15, i64 32}
!24 = !{!"long", !7, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!12, !15, i64 44}
!28 = !{i8 0, i8 2}
!29 = !{}
!30 = !{!12, !6, i64 192}
!31 = !{!12, !6, i64 200}
!32 = !{!12, !6, i64 208}
!33 = !{!12, !6, i64 216}
!34 = !{!35, !36, i64 0}
!35 = !{!"_ZTS8sockaddr", !36, i64 0, !7, i64 2}
!36 = !{!"short", !7, i64 0}
!37 = !{!38, !10, i64 276}
!38 = !{!"_ZTSN4ardb19ServerSocketChannelE", !39, i64 0, !10, i64 276, !10, i64 280, !10, i64 284, !41, i64 288}
!39 = !{!"_ZTSN4ardb13SocketChannelE", !12, i64 0, !6, i64 256, !6, i64 264, !40, i64 272}
!40 = !{!"_ZTSN4ardb18SocketChannelStateE", !7, i64 0}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !42, i64 0, !24, i64 8, !7, i64 16}
!42 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!43 = !{!38, !10, i64 280}
!44 = !{!38, !10, i64 284}


; 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::SocketHostAddress" = type <{ %"class.ardb::Address", %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%"class.ardb::Address" = type { ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

@.str = external hidden unnamed_addr constant [98 x i8], align 1
@__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv = external hidden unnamed_addr constant [7 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [47 x i8], align 1
@_ZTISt9bad_alloc = external constant ptr
@.str.10 = external hidden unnamed_addr constant [57 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

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) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4ardb19ServerSocketChannel6OnReadEv(ptr noundef nonnull align 8 dereferenceable(320) %0) unnamed_addr #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca [128 x i8], align 16
  %3 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %2) #9
  %4 = getelementptr inbounds i8, ptr %0, i64 100
  %5 = getelementptr inbounds i8, ptr %0, i64 44
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = getelementptr inbounds i8, ptr %0, i64 192
  %8 = getelementptr inbounds i8, ptr %0, i64 200
  %9 = getelementptr inbounds i8, ptr %0, i64 208
  %10 = getelementptr inbounds i8, ptr %0, i64 216
  %11 = getelementptr inbounds i8, ptr %0, i64 276
  %12 = getelementptr inbounds i8, ptr %0, i64 280
  %13 = getelementptr inbounds i8, ptr %0, i64 284
  br label %14

14:                                               ; preds = %select.unfold, %1
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %3) #9
  store i32 128, ptr %3, align 4, !tbaa !5
  %15 = load i32, ptr %4, align 4, !tbaa !9
  %16 = call i32 @accept4(i32 noundef %15, ptr noundef nonnull %2, ptr noundef nonnull %3, i32 noundef 2048)
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %18, label %22

18:                                               ; preds = %14
  %19 = tail call ptr @__errno_location() #10
  %20 = load i32, ptr %19, align 4, !tbaa !5
  %21 = icmp eq i32 %20, 4
  br i1 %21, label %select.unfold, label %80, !llvm.loop !24

22:                                               ; preds = %14
  %23 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %24 = call noundef ptr @_ZN4ardb14ChannelService22NewClientSocketChannelEv(ptr noundef nonnull align 8 dereferenceable(288) %23)
  %25 = getelementptr inbounds i8, ptr %24, i64 100
  store i32 %16, ptr %25, align 4, !tbaa !9
  %26 = load i8, ptr %5, align 4, !tbaa !26, !range !27, !noundef !28
  %27 = trunc nuw i8 %26 to i1
  br i1 %27, label %28, label %30

28:                                               ; preds = %22
  %29 = call noundef zeroext i1 @_ZN4ardb7Channel9ConfigureERKNS_14ChannelOptionsE(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef nonnull align 4 dereferenceable(34) %6)
  br label %30

30:                                               ; preds = %28, %22
  %31 = load ptr, ptr %7, align 8, !tbaa !29
  %.not = icmp eq ptr %31, null
  br i1 %.not, label %40, label %32

32:                                               ; preds = %30
  %33 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %34 = call noundef zeroext i1 %33(i32 noundef 5)
  br i1 %34, label %35, label %37

35:                                               ; preds = %32
  %36 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  call void (i32, ptr, ptr, i32, ptr, ...) %36(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv, i32 noundef 224, ptr noundef nonnull @.str.8)
  br label %37

37:                                               ; preds = %35, %32
  %38 = load ptr, ptr %7, align 8, !tbaa !29
  %39 = load ptr, ptr %8, align 8, !tbaa !30
  call void @_ZN4ardb7Channel29SetChannelPipelineInitializorEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef %38, ptr noundef %39)
  br label %40

40:                                               ; preds = %37, %30
  %41 = load ptr, ptr %9, align 8, !tbaa !31
  %.not24 = icmp eq ptr %41, null
  br i1 %.not24, label %50, label %42

42:                                               ; preds = %40
  %43 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %44 = call noundef zeroext i1 %43(i32 noundef 5)
  br i1 %44, label %45, label %47

45:                                               ; preds = %42
  %46 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  call void (i32, ptr, ptr, i32, ptr, ...) %46(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv, i32 noundef 229, ptr noundef nonnull @.str.9)
  br label %47

47:                                               ; preds = %45, %42
  %48 = load ptr, ptr %9, align 8, !tbaa !31
  %49 = load ptr, ptr %10, align 8, !tbaa !32
  call void @_ZN4ardb7Channel27SetChannelPipelineFinalizerEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef %48, ptr noundef %49)
  br label %50

50:                                               ; preds = %47, %40
  call void @_ZN4ardb7Channel9SetParentEPS0_(ptr noundef nonnull align 8 dereferenceable(256) %24, ptr noundef nonnull %0)
  %51 = load i16, ptr %2, align 16, !tbaa !33
  %.not25 = icmp eq i16 %51, 1
  br i1 %.not25, label %66, label %52

52:                                               ; preds = %50
  %53 = invoke noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #11
          to label %54 unwind label %55

54:                                               ; preds = %52
  invoke void @_ZN4ardb16get_host_addressERK8sockaddr(ptr dead_on_unwind nonnull writable sret(%"class.ardb::SocketHostAddress") align 8 %53, ptr noundef nonnull align 2 dereferenceable(16) %2)
          to label %64 unwind label %57

55:                                               ; preds = %52
  %56 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  br label %59

57:                                               ; preds = %54
  %58 = landingpad { ptr, i32 }
          cleanup
          catch ptr @_ZTISt9bad_alloc
  call void @_ZdlPvm(ptr noundef nonnull %53, i64 noundef 48) #12
  br label %59

59:                                               ; preds = %57, %55
  %.pn = phi { ptr, i32 } [ %58, %57 ], [ %56, %55 ]
  %.020 = extractvalue { ptr, i32 } %.pn, 1
  %60 = call i32 @llvm.eh.typeid.for.p0(ptr nonnull @_ZTISt9bad_alloc) #9
  %61 = icmp eq i32 %.020, %60
  br i1 %61, label %62, label %65

62:                                               ; preds = %59
  %.021 = extractvalue { ptr, i32 } %.pn, 0
  %63 = call ptr @__cxa_begin_catch(ptr %.021) #9
  call void @__cxa_end_catch()
  br label %64

64:                                               ; preds = %54, %62
  %.022 = phi ptr [ null, %62 ], [ %53, %54 ]
  call void @_ZN4ardb13SocketChannel16setRemoteAddressEPNS_7AddressE(ptr noundef nonnull align 8 dereferenceable(276) %24, ptr noundef %.022)
  br label %66

65:                                               ; preds = %59
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #9
  resume { ptr, i32 } %.pn

66:                                               ; preds = %50, %64
  %67 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogCheckerEv()
  %68 = call noundef zeroext i1 %67(i32 noundef 5)
  br i1 %68, label %69, label %73

69:                                               ; preds = %66
  %70 = call noundef ptr @_ZN4ardb10ArdbLogger13GetLogHandlerEv()
  %71 = call noundef i32 @_ZN4ardb7Channel5GetIDEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %72 = call noundef i32 @_ZN4ardb7Channel5GetIDEv(ptr noundef nonnull align 8 dereferenceable(256) %24)
  call void (i32, ptr, ptr, i32, ptr, ...) %70(i32 noundef 5, ptr noundef nonnull @.str, ptr noundef nonnull @__FUNCTION__._ZN4ardb19ServerSocketChannel6OnReadEv, i32 noundef 240, ptr noundef nonnull @.str.10, i32 noundef %71, i32 noundef %72, i32 noundef %16)
  br label %73

73:                                               ; preds = %69, %66
  %74 = load i32, ptr %11, align 4, !tbaa !36
  %75 = add i32 %74, 1
  store i32 %75, ptr %11, align 4, !tbaa !36
  %76 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb7Channel10GetServiceEv(ptr noundef nonnull align 8 dereferenceable(256) %0)
  %77 = load i32, ptr %12, align 8, !tbaa !42
  %78 = load i32, ptr %13, align 4, !tbaa !43
  %79 = call noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb14ChannelService23GetIdlestChannelServiceEjj(ptr noundef nonnull align 8 dereferenceable(288) %76, i32 noundef %77, i32 noundef %78)
  call void @_ZN4ardb14ChannelService21AttachAcceptedChannelEPNS_13SocketChannelE(ptr noundef nonnull align 8 dereferenceable(288) %79, ptr noundef nonnull %24)
  br label %select.unfold

select.unfold:                                    ; preds = %18, %73
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  br label %14

80:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %2) #9
  ret void
}

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

declare noundef ptr @_ZN4ardb14ChannelService22NewClientSocketChannelEv(ptr noundef nonnull align 8 dereferenceable(288)) local_unnamed_addr #0

declare noundef zeroext i1 @_ZN4ardb7Channel9ConfigureERKNS_14ChannelOptionsE(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef nonnull align 4 dereferenceable(34)) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4ardb7Channel29SetChannelPipelineInitializorEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN4ardb7Channel27SetChannelPipelineFinalizerEPFvPNS_15ChannelPipelineEPvES3_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef, ptr noundef) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN4ardb7Channel9SetParentEPS0_(ptr noundef nonnull align 8 dereferenceable(256), ptr noundef) local_unnamed_addr #5 align 2

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

declare void @_ZN4ardb16get_host_addressERK8sockaddr(ptr dead_on_unwind writable sret(%"class.ardb::SocketHostAddress") align 8, ptr noundef nonnull align 2 dereferenceable(16)) local_unnamed_addr #0

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

; Function Attrs: nofree nosync nounwind memory(none)
declare i32 @llvm.eh.typeid.for.p0(ptr) #8

declare ptr @__cxa_begin_catch(ptr) local_unnamed_addr

declare void @__cxa_end_catch() local_unnamed_addr

declare void @_ZN4ardb13SocketChannel16setRemoteAddressEPNS_7AddressE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4ardb7Channel5GetIDEv(ptr noundef nonnull align 8 dereferenceable(256)) local_unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(288) ptr @_ZN4ardb14ChannelService23GetIdlestChannelServiceEjj(ptr noundef nonnull align 8 dereferenceable(288), i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @_ZN4ardb14ChannelService21AttachAcceptedChannelEPNS_13SocketChannelE(ptr noundef nonnull align 8 dereferenceable(288), ptr 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 = { 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 #3 = { 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 #4 = { 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 #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 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nofree nosync nounwind memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(none) }
attributes #11 = { builtin allocsize(0) }
attributes #12 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 100}
!10 = !{!"_ZTSN4ardb7ChannelE", !11, i64 0, !12, i64 8, !13, i64 44, !13, i64 45, !6, i64 48, !14, i64 56, !15, i64 88, !6, i64 96, !6, i64 100, !22, i64 104, !22, i64 144, !6, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !13, i64 224, !13, i64 225, !13, i64 226, !15, i64 232, !15, i64 240, !15, i64 248}
!11 = !{!"_ZTSN4ardb8RunnableE"}
!12 = !{!"_ZTSN4ardb14ChannelOptionsE", !6, i64 0, !6, i64 4, !13, i64 8, !6, i64 12, !13, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !13, i64 32, !13, i64 33}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"_ZTSN4ardb15ChannelPipelineE", !15, i64 0, !15, i64 8, !15, i64 16, !16, i64 24}
!15 = !{!"any pointer", !7, i64 0}
!16 = !{!"_ZTSN5btree9btree_mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS6_ESaISt4pairIKS6_S9_EELi256EEE", !17, i64 0}
!17 = !{!"_ZTSN5btree19btree_map_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !18, i64 0}
!18 = !{!"_ZTSN5btree22btree_unique_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !19, i64 0}
!19 = !{!"_ZTSN5btree15btree_containerINS_5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS8_ESaISt4pairIKS8_SB_EELi256EEEEEEE", !20, i64 0}
!20 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEEE", !21, i64 0}
!21 = !{!"_ZTSN5btree5btreeINS_16btree_map_paramsINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPN4ardb21ChannelHandlerContextESt4lessIS7_ESaISt4pairIKS7_SA_EELi256EEEE17empty_base_handleIS6_PNS_10btree_nodeISH_EEEE", !15, i64 0}
!22 = !{!"_ZTSN4ardb6BufferE", !15, i64 0, !23, i64 8, !23, i64 16, !23, i64 24, !13, i64 32}
!23 = !{!"long", !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!10, !13, i64 44}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!10, !15, i64 192}
!30 = !{!10, !15, i64 200}
!31 = !{!10, !15, i64 208}
!32 = !{!10, !15, i64 216}
!33 = !{!34, !35, i64 0}
!34 = !{!"_ZTS8sockaddr", !35, i64 0, !7, i64 2}
!35 = !{!"short", !7, i64 0}
!36 = !{!37, !6, i64 276}
!37 = !{!"_ZTSN4ardb19ServerSocketChannelE", !38, i64 0, !6, i64 276, !6, i64 280, !6, i64 284, !40, i64 288}
!38 = !{!"_ZTSN4ardb13SocketChannelE", !10, i64 0, !15, i64 256, !15, i64 264, !39, i64 272}
!39 = !{!"_ZTSN4ardb18SocketChannelStateE", !7, i64 0}
!40 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !41, i64 0, !23, i64 8, !7, i64 16}
!41 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!42 = !{!37, !6, i64 280}
!43 = !{!37, !6, i64 284}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass