; LLVM IR from newbiediver/rioring :: src/udp_server.ll (ZN7rioring10udp_server3runEt)

; 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"

%struct.in6_addr = type { %union.anon }
%union.anon = type { [4 x i32] }
%class.anon = type { ptr }
%struct.sockaddr_in6 = type { i16, i16, i32, %struct.in6_addr, i32 }
%"class.rioring::socket_object" = type { %"class.rioring::object_base", ptr, i32, %struct.sockaddr_storage, %"struct.std::array", i32, i8, i16, %"struct.std::array.0", %"struct.std::array.1", ptr, %"class.rioring::critical_section", %"class.rioring::io_buffer", %"class.rioring::io_double_buffer", %"class.std::function.2", %"class.std::function.4", %"class.std::function.4" }
%"class.rioring::object_base" = type { ptr, %"class.std::enable_shared_from_this", %"class.std::function", i64 }
%"class.std::enable_shared_from_this" = type { %"class.std::weak_ptr" }
%"class.std::weak_ptr" = type { %"class.std::__weak_ptr" }
%"class.std::__weak_ptr" = type { ptr, %"class.std::__weak_count" }
%"class.std::__weak_count" = type { ptr }
%"class.std::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 } }
%struct.sockaddr_storage = type { i16, [118 x i8], i64 }
%"struct.std::array" = type { [65536 x i8] }
%"struct.std::array.0" = type { [16 x i8] }
%"struct.std::array.1" = type { [40 x i8] }
%"class.rioring::critical_section" = type { %"class.rioring::lock_base", %"class.std::mutex" }
%"class.rioring::lock_base" = type { ptr }
%"class.std::mutex" = type { %"class.std::__mutex_base" }
%"class.std::__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.rioring::io_buffer" = type { %"class.rioring::buffer_base", ptr, i64, i64, i64 }
%"class.rioring::buffer_base" = type { ptr }
%"class.rioring::io_double_buffer" = type { %"class.rioring::buffer_base", %"class.rioring::io_buffer", %"class.rioring::io_buffer" }
%"class.std::function.2" = type { %"class.std::_Function_base", ptr }
%"class.std::function.4" = type { %"class.std::_Function_base", ptr }

@in6addr_any = external global %struct.in6_addr, align 4

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7rioring10udp_server3runEt(ptr noundef nonnull align 8 dereferenceable(66088) %0, i16 noundef zeroext %1) #1 align 2 {
  %3 = alloca i1, align 1
  %4 = alloca ptr, align 8
  %5 = alloca i16, align 2
  %6 = alloca %class.anon, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.sockaddr_in6, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i16 %1, ptr %5, align 2, !tbaa !9
  %11 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  %12 = getelementptr inbounds %class.anon, ptr %6, i32 0, i32 0
  store ptr %11, ptr %12, align 8, !tbaa !11
  %13 = call i32 @socket(i32 noundef 10, i32 noundef 2, i32 noundef 17) #7
  %14 = getelementptr inbounds %"class.rioring::socket_object", ptr %11, i32 0, i32 2
  store i32 %13, ptr %14, align 8, !tbaa !13
  %15 = getelementptr inbounds %"class.rioring::socket_object", ptr %11, i32 0, i32 2
  %16 = load i32, ptr %15, align 8, !tbaa !13
  %17 = icmp eq i32 %16, -1
  br i1 %17, label %18, label %19

18:                                               ; preds = %2
  call void @"_ZZN7rioring10udp_server3runEtENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %41

19:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 28, ptr %8) #7
  call void @llvm.memset.p0.i64(ptr align 4 %8, i8 0, i64 28, i1 false)
  %20 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 0
  store i16 10, ptr %20, align 4, !tbaa !39
  %21 = load i16, ptr %5, align 2, !tbaa !9
  %22 = call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %21)
  %23 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 1
  store i16 %22, ptr %23, align 2, !tbaa !42
  %24 = getelementptr inbounds %struct.sockaddr_in6, ptr %8, i32 0, i32 3
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %24, ptr align 4 @in6addr_any, i64 16, i1 false), !tbaa.struct !43
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 1, ptr %9, align 4, !tbaa !45
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 0, ptr %10, align 4, !tbaa !45
  %25 = getelementptr inbounds %"class.rioring::socket_object", ptr %11, i32 0, i32 2
  %26 = load i32, ptr %25, align 8, !tbaa !13
  %27 = call i32 @setsockopt(i32 noundef %26, i32 noundef 1, i32 noundef 2, ptr noundef %9, i32 noundef 4) #7
  %28 = getelementptr inbounds %"class.rioring::socket_object", ptr %11, i32 0, i32 2
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = call i32 @setsockopt(i32 noundef %29, i32 noundef 41, i32 noundef 26, ptr noundef %10, i32 noundef 4) #7
  %31 = getelementptr inbounds %"class.rioring::socket_object", ptr %11, i32 0, i32 2
  %32 = load i32, ptr %31, align 8, !tbaa !13
  %33 = call i32 @bind(i32 noundef %32, ptr noundef %8, i32 noundef 28) #7
  %34 = icmp slt i32 %33, 0
  br i1 %34, label %35, label %36

35:                                               ; preds = %19
  call void @"_ZZN7rioring10udp_server3runEtENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %6)
  store i1 false, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %40

36:                                               ; preds = %19
  %37 = load ptr, ptr %11, align 8, !tbaa !46
  %38 = getelementptr inbounds ptr, ptr %37, i64 2
  %39 = load ptr, ptr %38, align 8
  call void %39(ptr noundef nonnull align 8 dereferenceable(66088) %11)
  store i1 true, ptr %3, align 1
  store i32 1, ptr %7, align 4
  br label %40

40:                                               ; preds = %36, %35
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr %8) #7
  br label %41

41:                                               ; preds = %40, %18
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  %42 = load i1, ptr %3, align 1
  ret i1 %42
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN7rioring10udp_server3runEtENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext) #5

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !6, i64 0}
!12 = !{!"_ZTSZN7rioring10udp_server3runEtE3$_0", !6, i64 0}
!13 = !{!14, !23, i64 72}
!14 = !{!"_ZTSN7rioring13socket_objectE", !15, i64 0, !6, i64 64, !23, i64 72, !24, i64 80, !25, i64 208, !26, i64 65744, !27, i64 65748, !10, i64 65750, !28, i64 65752, !29, i64 65768, !6, i64 65808, !30, i64 65816, !34, i64 65864, !36, i64 65904, !37, i64 65992, !38, i64 66024, !38, i64 66056}
!15 = !{!"_ZTSN7rioring11object_baseE", !16, i64 8, !20, i64 24, !22, i64 56}
!16 = !{!"_ZTSSt23enable_shared_from_thisIN7rioring11object_baseEE", !17, i64 0}
!17 = !{!"_ZTSSt8weak_ptrIN7rioring11object_baseEE", !18, i64 0}
!18 = !{!"_ZTSSt10__weak_ptrIN7rioring11object_baseELN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0, !19, i64 8}
!19 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !6, i64 0}
!20 = !{!"_ZTSSt8functionIFvRSt10shared_ptrIN7rioring11object_baseEERKSt10error_codeEE", !21, i64 0, !6, i64 24}
!21 = !{!"_ZTSSt14_Function_base", !7, i64 0, !6, i64 16}
!22 = !{!"long", !7, i64 0}
!23 = !{!"int", !7, i64 0}
!24 = !{!"_ZTS16sockaddr_storage", !10, i64 0, !7, i64 2, !22, i64 120}
!25 = !{!"_ZTSSt5arrayIhLm65536EE", !7, i64 0}
!26 = !{!"_ZTSN7rioring13socket_object4typeE", !7, i64 0}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"_ZTSSt5arrayIcLm16EE", !7, i64 0}
!29 = !{!"_ZTSSt5arrayIcLm40EE", !7, i64 0}
!30 = !{!"_ZTSN7rioring16critical_sectionE", !31, i64 0, !32, i64 8}
!31 = !{!"_ZTSN7rioring9lock_baseE"}
!32 = !{!"_ZTSSt5mutex", !33, i64 0}
!33 = !{!"_ZTSSt12__mutex_base", !7, i64 0}
!34 = !{!"_ZTSN7rioring9io_bufferE", !35, i64 0, !6, i64 8, !22, i64 16, !22, i64 24, !22, i64 32}
!35 = !{!"_ZTSN7rioring11buffer_baseE"}
!36 = !{!"_ZTSN7rioring16io_double_bufferE", !35, i64 0, !34, i64 8, !34, i64 48}
!37 = !{!"_ZTSSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEPNS1_9io_bufferEP8sockaddrEE", !21, i64 0, !6, i64 24}
!38 = !{!"_ZTSSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEEE", !21, i64 0, !6, i64 24}
!39 = !{!40, !10, i64 0}
!40 = !{!"_ZTS12sockaddr_in6", !10, i64 0, !10, i64 2, !23, i64 4, !41, i64 8, !23, i64 24}
!41 = !{!"_ZTS8in6_addr", !7, i64 0}
!42 = !{!40, !10, i64 2}
!43 = !{i64 0, i64 16, !44}
!44 = !{!7, !7, i64 0}
!45 = !{!23, !23, i64 0}
!46 = !{!47, !47, i64 0}
!47 = !{!"vtable pointer", !8, 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"

%struct.in6_addr = type { %union.anon }
%union.anon = type { [4 x i32] }
%class.anon = type { ptr }
%struct.sockaddr_in6 = type { i16, i16, i32, %struct.in6_addr, i32 }

@in6addr_any = external local_unnamed_addr global %struct.in6_addr, align 4

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN7rioring10udp_server3runEt(ptr noundef nonnull align 8 dereferenceable(66088) %0, i16 noundef zeroext %1) local_unnamed_addr #1 align 2 {
  %3 = alloca %class.anon, align 8
  %4 = alloca %struct.sockaddr_in6, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #7
  store ptr %0, ptr %3, align 8, !tbaa !5
  %7 = tail call i32 @socket(i32 noundef 10, i32 noundef 2, i32 noundef 17) #7
  %8 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %7, ptr %8, align 8, !tbaa !10
  %9 = icmp eq i32 %7, -1
  br i1 %9, label %10, label %11

10:                                               ; preds = %2
  call void @"_ZZN7rioring10udp_server3runEtENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %3)
  br label %29

11:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 28, ptr nonnull %4) #7
  %12 = getelementptr inbounds i8, ptr %4, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(28) %12, i8 0, i64 24, i1 false)
  store i16 10, ptr %4, align 4, !tbaa !37
  %13 = tail call noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext %1)
  %14 = getelementptr inbounds i8, ptr %4, i64 2
  store i16 %13, ptr %14, align 2, !tbaa !40
  %15 = getelementptr inbounds i8, ptr %4, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 4 dereferenceable(16) %15, ptr noundef nonnull align 4 dereferenceable(16) @in6addr_any, i64 16, i1 false), !tbaa.struct !41
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #7
  store i32 1, ptr %5, align 4, !tbaa !43
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #7
  store i32 0, ptr %6, align 4, !tbaa !43
  %16 = load i32, ptr %8, align 8, !tbaa !10
  %17 = call i32 @setsockopt(i32 noundef %16, i32 noundef 1, i32 noundef 2, ptr noundef nonnull %5, i32 noundef 4) #7
  %18 = load i32, ptr %8, align 8, !tbaa !10
  %19 = call i32 @setsockopt(i32 noundef %18, i32 noundef 41, i32 noundef 26, ptr noundef nonnull %6, i32 noundef 4) #7
  %20 = load i32, ptr %8, align 8, !tbaa !10
  %21 = call i32 @bind(i32 noundef %20, ptr noundef nonnull %4, i32 noundef 28) #7
  %22 = icmp sgt i32 %21, -1
  br i1 %22, label %24, label %23

23:                                               ; preds = %11
  call void @"_ZZN7rioring10udp_server3runEtENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8) %3)
  br label %28

24:                                               ; preds = %11
  %25 = load ptr, ptr %0, align 8, !tbaa !44
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load ptr, ptr %26, align 8
  call void %27(ptr noundef nonnull align 8 dereferenceable(66088) %0)
  br label %28

28:                                               ; preds = %24, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #7
  call void @llvm.lifetime.end.p0(i64 28, ptr nonnull %4) #7
  br label %29

29:                                               ; preds = %28, %10
  %.1 = phi i1 [ false, %10 ], [ %22, %28 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #7
  ret i1 %.1
}

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

; Function Attrs: inlinehint mustprogress uwtable
declare hidden void @"_ZZN7rioring10udp_server3runEtENK3$_0clEv"(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef zeroext i16 @_ZL10__bswap_16t(i16 noundef zeroext) local_unnamed_addr #5

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #6

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

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { 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 #4 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !7, i64 0}
!6 = !{!"_ZTSZN7rioring10udp_server3runEtE3$_0", !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !20, i64 72}
!11 = !{!"_ZTSN7rioring13socket_objectE", !12, i64 0, !7, i64 64, !20, i64 72, !21, i64 80, !23, i64 208, !24, i64 65744, !25, i64 65748, !22, i64 65750, !26, i64 65752, !27, i64 65768, !7, i64 65808, !28, i64 65816, !32, i64 65864, !34, i64 65904, !35, i64 65992, !36, i64 66024, !36, i64 66056}
!12 = !{!"_ZTSN7rioring11object_baseE", !13, i64 8, !17, i64 24, !19, i64 56}
!13 = !{!"_ZTSSt23enable_shared_from_thisIN7rioring11object_baseEE", !14, i64 0}
!14 = !{!"_ZTSSt8weak_ptrIN7rioring11object_baseEE", !15, i64 0}
!15 = !{!"_ZTSSt10__weak_ptrIN7rioring11object_baseELN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0, !16, i64 8}
!16 = !{!"_ZTSSt12__weak_countILN9__gnu_cxx12_Lock_policyE2EE", !7, i64 0}
!17 = !{!"_ZTSSt8functionIFvRSt10shared_ptrIN7rioring11object_baseEERKSt10error_codeEE", !18, i64 0, !7, i64 24}
!18 = !{!"_ZTSSt14_Function_base", !8, i64 0, !7, i64 16}
!19 = !{!"long", !8, i64 0}
!20 = !{!"int", !8, i64 0}
!21 = !{!"_ZTS16sockaddr_storage", !22, i64 0, !8, i64 2, !19, i64 120}
!22 = !{!"short", !8, i64 0}
!23 = !{!"_ZTSSt5arrayIhLm65536EE", !8, i64 0}
!24 = !{!"_ZTSN7rioring13socket_object4typeE", !8, i64 0}
!25 = !{!"bool", !8, i64 0}
!26 = !{!"_ZTSSt5arrayIcLm16EE", !8, i64 0}
!27 = !{!"_ZTSSt5arrayIcLm40EE", !8, i64 0}
!28 = !{!"_ZTSN7rioring16critical_sectionE", !29, i64 0, !30, i64 8}
!29 = !{!"_ZTSN7rioring9lock_baseE"}
!30 = !{!"_ZTSSt5mutex", !31, i64 0}
!31 = !{!"_ZTSSt12__mutex_base", !8, i64 0}
!32 = !{!"_ZTSN7rioring9io_bufferE", !33, i64 0, !7, i64 8, !19, i64 16, !19, i64 24, !19, i64 32}
!33 = !{!"_ZTSN7rioring11buffer_baseE"}
!34 = !{!"_ZTSN7rioring16io_double_bufferE", !33, i64 0, !32, i64 8, !32, i64 48}
!35 = !{!"_ZTSSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEPNS1_9io_bufferEP8sockaddrEE", !18, i64 0, !7, i64 24}
!36 = !{!"_ZTSSt8functionIFvRSt10shared_ptrIN7rioring13socket_objectEEEE", !18, i64 0, !7, i64 24}
!37 = !{!38, !22, i64 0}
!38 = !{!"_ZTS12sockaddr_in6", !22, i64 0, !22, i64 2, !20, i64 4, !39, i64 8, !20, i64 24}
!39 = !{!"_ZTS8in6_addr", !8, i64 0}
!40 = !{!38, !22, i64 2}
!41 = !{i64 0, i64 16, !42}
!42 = !{!8, !8, i64 0}
!43 = !{!20, !20, i64 0}
!44 = !{!45, !45, i64 0}
!45 = !{!"vtable pointer", !9, i64 0}


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