; LLVM IR from tglane/socketwrapper :: example (async_udp_example)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.net::udp_socket" = type { %"class.net::detail::base_socket.base", i8, [2 x i8], %"class.std::optional" }
%"class.net::detail::base_socket.base" = type <{ ptr, i32, i8 }>
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type { %"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage", i8 }
%"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage" = type { %"class.net::endpoint" }
%"class.net::endpoint" = type <{ i8, [3 x i8], %struct.sockaddr_in, [4 x i8], %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"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.std::basic_string_view" = type { i64, ptr }
%"struct.std::array" = type { [1024 x i8] }
%"class.std::optional.2" = type { %"struct.std::_Optional_base.3" }
%"struct.std::_Optional_base.3" = type { %"struct.std::_Optional_payload.5" }
%"struct.std::_Optional_payload.5" = type { %"struct.std::_Optional_payload.base.9", [7 x i8] }
%"struct.std::_Optional_payload.base.9" = type { %"struct.std::_Optional_payload_base.base.8" }
%"struct.std::_Optional_payload_base.base.8" = type <{ %"union.std::_Optional_payload_base<std::pair<unsigned long, net::endpoint<ip_version::v4>>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::pair<unsigned long, net::endpoint<ip_version::v4>>>::_Storage" = type { %"struct.std::pair" }
%"struct.std::pair" = type { i64, %"class.net::endpoint" }
%"class.net::span" = type { ptr, i64 }
%"class.std::chrono::duration" = type { i64 }
%class.anon = type { ptr, ptr }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%class.anon.12 = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.net::span.13" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca %"class.net::udp_socket", align 8
  %7 = alloca %"class.net::endpoint", align 8
  %8 = alloca %"class.std::basic_string_view", align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca %"struct.std::array", align 1
  %12 = alloca %"class.std::optional.2", align 8
  %13 = alloca %"class.net::span", align 8
  %14 = alloca %"class.std::chrono::duration", align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  %19 = alloca %"class.std::basic_string_view", align 8
  %20 = alloca %"class.net::span", align 8
  %21 = alloca %class.anon, align 8
  %22 = alloca %"class.std::thread", align 8
  %23 = alloca %class.anon.12, align 1
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca i1, align 1
  %27 = alloca %"class.std::allocator", align 1
  %28 = alloca i1, align 1
  %29 = alloca i1, align 1
  %30 = alloca i1, align 1
  %31 = alloca %"class.net::udp_socket", align 8
  %32 = alloca %"class.std::__cxx11::basic_string", align 8
  %33 = alloca %"class.std::allocator", align 1
  %34 = alloca %"class.std::future", align 8
  %35 = alloca %"class.net::endpoint", align 8
  %36 = alloca %"class.std::basic_string_view", align 8
  %37 = alloca %"class.net::span", align 8
  %38 = alloca %"class.net::endpoint", align 8
  %39 = alloca %"class.std::basic_string_view", align 8
  %40 = alloca %"class.net::span.13", align 8
  %41 = alloca %"class.std::chrono::duration", align 8
  %42 = alloca i32, align 4
  %43 = alloca %"class.net::endpoint", align 8
  %44 = alloca %"class.std::basic_string_view", align 8
  %45 = alloca %"class.net::span.13", align 8
  store i32 0, ptr %3, align 4
  store i32 %0, ptr %4, align 4, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  %46 = load i32, ptr %4, align 4, !tbaa !5
  %47 = icmp sle i32 %46, 1
  br i1 %47, label %48, label %49

48:                                               ; preds = %2
  store i32 0, ptr %3, align 4
  br label %293

49:                                               ; preds = %2
  %50 = load ptr, ptr %5, align 8, !tbaa !9
  %51 = getelementptr inbounds ptr, ptr %50, i64 1
  %52 = load ptr, ptr %51, align 8, !tbaa !9
  %53 = call i32 @strcmp(ptr noundef %52, ptr noundef @.str) #10
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %140

55:                                               ; preds = %49
  %56 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 88, ptr %6) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr %7) #11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef @.str.2) #11
  %57 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 0
  %58 = load i64, ptr %57, align 8
  %59 = getelementptr inbounds { i64, ptr }, ptr %8, i32 0, i32 1
  %60 = load ptr, ptr %59, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %7, i64 %58, ptr %60, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net10udp_socketILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr noundef nonnull align 8 dereferenceable(58) %7)
          to label %61 unwind label %91

61:                                               ; preds = %55
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %7) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #11
  call void @llvm.lifetime.start.p0(i64 1024, ptr %11) #11
  call void @llvm.memset.p0.i64(ptr align 1 %11, i8 0, i64 1024, i1 false)
  %62 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.3)
          to label %63 unwind label %95

63:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 80, ptr %12) #11
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm1024EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %13, ptr noundef nonnull align 1 dereferenceable(1024) %11) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #11
  store i32 10000, ptr %15, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(4) %15)
          to label %64 unwind label %99

64:                                               ; preds = %63
  %65 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 0
  %66 = load ptr, ptr %65, align 8
  %67 = getelementptr inbounds { ptr, i64 }, ptr %13, i32 0, i32 1
  %68 = load i64, ptr %67, align 8
  invoke void @_ZNK3net10udp_socketILNS_10ip_versionE2EE4readIcEESt8optionalISt4pairImNS_8endpointILS1_2EEEEENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind writable sret(%"class.std::optional.2") align 8 %12, ptr noundef nonnull align 8 dereferenceable(88) %6, ptr %66, i64 %68, ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %69 unwind label %99

69:                                               ; preds = %64
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  %70 = call noundef zeroext i1 @_ZNKSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(80) %12) #11
  br i1 %70, label %71, label %112

71:                                               ; preds = %69
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #11
  %72 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZNKRSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(80) %12)
          to label %73 unwind label %103

73:                                               ; preds = %71
  store ptr %72, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #11
  %74 = load ptr, ptr %16, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72) %74) #11
  store ptr %75, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #11
  %76 = load ptr, ptr %16, align 8, !tbaa !9
  %77 = call noundef nonnull align 8 dereferenceable(58) ptr @_ZSt3getILm1EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72) %76) #11
  store ptr %77, ptr %18, align 8, !tbaa !9
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.4)
          to label %79 unwind label %107

79:                                               ; preds = %73
  %80 = call noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024) %11) #12
  %81 = load ptr, ptr %17, align 8, !tbaa !9
  %82 = load i64, ptr %81, align 8, !tbaa !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %19, ptr noundef %80, i64 noundef %82) #11
  %83 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 0
  %84 = load i64, ptr %83, align 8
  %85 = getelementptr inbounds { i64, ptr }, ptr %19, i32 0, i32 1
  %86 = load ptr, ptr %85, align 8
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8) %78, i64 %84, ptr %86)
          to label %88 unwind label %107

88:                                               ; preds = %79
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %87, i8 noundef signext 10)
          to label %90 unwind label %107

90:                                               ; preds = %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  br label %119

91:                                               ; preds = %55
  %92 = landingpad { ptr, i32 }
          cleanup
  %93 = extractvalue { ptr, i32 } %92, 0
  store ptr %93, ptr %9, align 8
  %94 = extractvalue { ptr, i32 } %92, 1
  store i32 %94, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %7) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr %7) #11
  br label %139

95:                                               ; preds = %61
  %96 = landingpad { ptr, i32 }
          cleanup
  %97 = extractvalue { ptr, i32 } %96, 0
  store ptr %97, ptr %9, align 8
  %98 = extractvalue { ptr, i32 } %96, 1
  store i32 %98, ptr %10, align 4
  br label %138

99:                                               ; preds = %64, %63
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %9, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #11
  br label %137

103:                                              ; preds = %71
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %9, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %10, align 4
  br label %111

107:                                              ; preds = %88, %79, %73
  %108 = landingpad { ptr, i32 }
          cleanup
  %109 = extractvalue { ptr, i32 } %108, 0
  store ptr %109, ptr %9, align 8
  %110 = extractvalue { ptr, i32 } %108, 1
  store i32 %110, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #11
  br label %111

111:                                              ; preds = %107, %103
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #11
  br label %136

112:                                              ; preds = %69
  %113 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.5)
          to label %114 unwind label %115

114:                                              ; preds = %112
  br label %119

115:                                              ; preds = %129, %128, %126, %112
  %116 = landingpad { ptr, i32 }
          cleanup
  %117 = extractvalue { ptr, i32 } %116, 0
  store ptr %117, ptr %9, align 8
  %118 = extractvalue { ptr, i32 } %116, 1
  store i32 %118, ptr %10, align 4
  br label %136

119:                                              ; preds = %114, %90
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm1024EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %20, ptr noundef nonnull align 1 dereferenceable(1024) %11) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %21) #11
  %120 = getelementptr inbounds %class.anon, ptr %21, i32 0, i32 0
  store ptr %6, ptr %120, align 8, !tbaa !9
  %121 = getelementptr inbounds %class.anon, ptr %21, i32 0, i32 1
  store ptr %11, ptr %121, align 8, !tbaa !9
  %122 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 0
  %123 = load ptr, ptr %122, align 8
  %124 = getelementptr inbounds { ptr, i64 }, ptr %20, i32 0, i32 1
  %125 = load i64, ptr %124, align 8
  invoke void @"_ZNK3net10udp_socketILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(ptr noundef nonnull align 8 dereferenceable(88) %6, ptr %123, i64 %125, ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %126 unwind label %132

126:                                              ; preds = %119
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #11
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %128 unwind label %115

128:                                              ; preds = %126
  invoke void @_ZN3net9async_runEv()
          to label %129 unwind label %115

129:                                              ; preds = %128
  %130 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.7)
          to label %131 unwind label %115

131:                                              ; preds = %129
  call void @_ZNSt14_Optional_baseISt4pairImN3net8endpointILNS1_10ip_versionE2EEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #11
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #11
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #11
  br label %293

132:                                              ; preds = %119
  %133 = landingpad { ptr, i32 }
          cleanup
  %134 = extractvalue { ptr, i32 } %133, 0
  store ptr %134, ptr %9, align 8
  %135 = extractvalue { ptr, i32 } %133, 1
  store i32 %135, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %21) #11
  br label %136

136:                                              ; preds = %132, %115, %111
  call void @_ZNSt14_Optional_baseISt4pairImN3net8endpointILNS1_10ip_versionE2EEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %12) #11
  br label %137

137:                                              ; preds = %136, %99
  call void @llvm.lifetime.end.p0(i64 80, ptr %12) #11
  br label %138

138:                                              ; preds = %137, %95
  call void @llvm.lifetime.end.p0(i64 1024, ptr %11) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %6) #11
  br label %139

139:                                              ; preds = %138, %91
  call void @llvm.lifetime.end.p0(i64 88, ptr %6) #11
  br label %295

140:                                              ; preds = %49
  %141 = load ptr, ptr %5, align 8, !tbaa !9
  %142 = getelementptr inbounds ptr, ptr %141, i64 1
  %143 = load ptr, ptr %142, align 8, !tbaa !9
  %144 = call i32 @strcmp(ptr noundef %143, ptr noundef @.str.8) #10
  %145 = icmp eq i32 %144, 0
  br i1 %145, label %146, label %292

146:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #11
  call void @"_ZNSt6threadC2IZ4mainE3$_1JEvEEOT_DpOT0_"(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 1 dereferenceable(1) %23)
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #11
  %147 = load i32, ptr %4, align 4, !tbaa !5
  %148 = icmp sgt i32 %147, 2
  store i1 false, ptr %26, align 1
  store i1 false, ptr %28, align 1
  store i1 false, ptr %29, align 1
  store i1 false, ptr %30, align 1
  br i1 %148, label %149, label %156

149:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #11
  store i1 true, ptr %26, align 1
  %150 = load ptr, ptr %5, align 8, !tbaa !9
  %151 = getelementptr inbounds ptr, ptr %150, i64 2
  %152 = load ptr, ptr %151, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 1, ptr %27) #11
  store i1 true, ptr %28, align 1
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  store i1 true, ptr %29, align 1
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef %152, ptr noundef nonnull align 1 dereferenceable(1) %27)
          to label %153 unwind label %230

153:                                              ; preds = %149
  store i1 true, ptr %30, align 1
  %154 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %25, ptr noundef null, i32 noundef 10)
          to label %155 unwind label %234

155:                                              ; preds = %153
  br label %157

156:                                              ; preds = %146
  br label %157

157:                                              ; preds = %156, %155
  %158 = phi i32 [ %154, %155 ], [ 4433, %156 ]
  %159 = load i1, ptr %30, align 1
  br i1 %159, label %160, label %161

160:                                              ; preds = %157
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  br label %161

161:                                              ; preds = %160, %157
  %162 = load i1, ptr %29, align 1
  br i1 %162, label %163, label %164

163:                                              ; preds = %161
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  br label %164

164:                                              ; preds = %163, %161
  %165 = load i1, ptr %28, align 1
  br i1 %165, label %166, label %167

166:                                              ; preds = %164
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  br label %167

167:                                              ; preds = %166, %164
  %168 = load i1, ptr %26, align 1
  br i1 %168, label %169, label %170

169:                                              ; preds = %167
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #11
  br label %170

170:                                              ; preds = %169, %167
  store i32 %158, ptr %24, align 4, !tbaa !5
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
          to label %172 unwind label %251

172:                                              ; preds = %170
  %173 = load i32, ptr %24, align 4, !tbaa !5
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %171, i32 noundef %173)
          to label %175 unwind label %251

175:                                              ; preds = %172
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %174, i8 noundef signext 10)
          to label %177 unwind label %251

177:                                              ; preds = %175
  %178 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %179 unwind label %251

179:                                              ; preds = %177
  call void @llvm.lifetime.start.p0(i64 88, ptr %31) #11
  invoke void @_ZN3net10udp_socketILNS_10ip_versionE2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %31)
          to label %180 unwind label %255

180:                                              ; preds = %179
  call void @llvm.lifetime.start.p0(i64 32, ptr %32) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr %33) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %32, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %33)
          to label %181 unwind label %259

181:                                              ; preds = %180
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %36, ptr noundef @.str.12) #11
  %182 = load i32, ptr %24, align 4, !tbaa !5
  %183 = trunc i32 %182 to i16
  %184 = getelementptr inbounds { i64, ptr }, ptr %36, i32 0, i32 0
  %185 = load i64, ptr %184, align 8
  %186 = getelementptr inbounds { i64, ptr }, ptr %36, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %35, i64 %185, ptr %187, i16 noundef zeroext %183, i8 noundef zeroext 0)
          to label %188 unwind label %263

188:                                              ; preds = %181
  call void @_ZN3net4spanIcEC2IRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %37, ptr noundef nonnull align 8 dereferenceable(32) %32) #11
  %189 = getelementptr inbounds { ptr, i64 }, ptr %37, i32 0, i32 0
  %190 = load ptr, ptr %189, align 8
  %191 = getelementptr inbounds { ptr, i64 }, ptr %37, i32 0, i32 1
  %192 = load i64, ptr %191, align 8
  invoke void @_ZNK3net10udp_socketILNS_10ip_versionE2EE13promised_sendIcEESt6futureImENS_8endpointILS1_2EEENS_4spanIT_EE(ptr dead_on_unwind writable sret(%"class.std::future") align 8 %34, ptr noundef nonnull align 8 dereferenceable(88) %31, ptr noundef %35, ptr %190, i64 %192)
          to label %193 unwind label %267

193:                                              ; preds = %188
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %35) #11
  invoke void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16) %34)
          to label %194 unwind label %271

194:                                              ; preds = %193
  %195 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.13)
          to label %196 unwind label %271

196:                                              ; preds = %194
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %39, ptr noundef @.str.12) #11
  %197 = load i32, ptr %24, align 4, !tbaa !5
  %198 = trunc i32 %197 to i16
  %199 = getelementptr inbounds { i64, ptr }, ptr %39, i32 0, i32 0
  %200 = load i64, ptr %199, align 8
  %201 = getelementptr inbounds { i64, ptr }, ptr %39, i32 0, i32 1
  %202 = load ptr, ptr %201, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %38, i64 %200, ptr %202, i16 noundef zeroext %198, i8 noundef zeroext 0)
          to label %203 unwind label %271

203:                                              ; preds = %196
  call void @_ZN3net4spanIKcEC2ILm5EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %40, ptr noundef nonnull align 1 dereferenceable(5) @.str.14) #11
  %204 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 0
  %205 = load ptr, ptr %204, align 8
  %206 = getelementptr inbounds { ptr, i64 }, ptr %40, i32 0, i32 1
  %207 = load i64, ptr %206, align 8
  %208 = invoke noundef i64 @_ZNK3net10udp_socketILNS_10ip_versionE2EE4sendIKcEEmNS_8endpointILS1_2EEENS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(88) %31, ptr noundef %38, ptr %205, i64 %207)
          to label %209 unwind label %275

209:                                              ; preds = %203
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %38) #11
  %210 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.15)
          to label %211 unwind label %271

211:                                              ; preds = %209
  call void @llvm.lifetime.start.p0(i64 8, ptr %41) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #11
  store i32 2000, ptr %42, align 4, !tbaa !5
  invoke void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef nonnull align 4 dereferenceable(4) %42)
          to label %212 unwind label %279

212:                                              ; preds = %211
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %41)
          to label %213 unwind label %279

213:                                              ; preds = %212
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %44, ptr noundef @.str.12) #11
  %214 = load i32, ptr %24, align 4, !tbaa !5
  %215 = trunc i32 %214 to i16
  %216 = getelementptr inbounds { i64, ptr }, ptr %44, i32 0, i32 0
  %217 = load i64, ptr %216, align 8
  %218 = getelementptr inbounds { i64, ptr }, ptr %44, i32 0, i32 1
  %219 = load ptr, ptr %218, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %43, i64 %217, ptr %219, i16 noundef zeroext %215, i8 noundef zeroext 0)
          to label %220 unwind label %271

220:                                              ; preds = %213
  call void @_ZN3net4spanIKcEC2ILm14EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %45, ptr noundef nonnull align 1 dereferenceable(14) @.str.16) #11
  %221 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 0
  %222 = load ptr, ptr %221, align 8
  %223 = getelementptr inbounds { ptr, i64 }, ptr %45, i32 0, i32 1
  %224 = load i64, ptr %223, align 8
  %225 = invoke noundef i64 @_ZNK3net10udp_socketILNS_10ip_versionE2EE4sendIKcEEmNS_8endpointILS1_2EEENS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(88) %31, ptr noundef %43, ptr %222, i64 %224)
          to label %226 unwind label %283

226:                                              ; preds = %220
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %43) #11
  %227 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
          to label %228 unwind label %271

228:                                              ; preds = %226
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %22)
          to label %229 unwind label %271

229:                                              ; preds = %228
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %31) #11
  call void @llvm.lifetime.end.p0(i64 88, ptr %31) #11
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %292

230:                                              ; preds = %149
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %9, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %10, align 4
  br label %241

234:                                              ; preds = %153
  %235 = landingpad { ptr, i32 }
          cleanup
  %236 = extractvalue { ptr, i32 } %235, 0
  store ptr %236, ptr %9, align 8
  %237 = extractvalue { ptr, i32 } %235, 1
  store i32 %237, ptr %10, align 4
  %238 = load i1, ptr %30, align 1
  br i1 %238, label %239, label %240

239:                                              ; preds = %234
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #11
  br label %240

240:                                              ; preds = %239, %234
  br label %241

241:                                              ; preds = %240, %230
  %242 = load i1, ptr %29, align 1
  br i1 %242, label %243, label %244

243:                                              ; preds = %241
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %27) #11
  br label %244

244:                                              ; preds = %243, %241
  %245 = load i1, ptr %28, align 1
  br i1 %245, label %246, label %247

246:                                              ; preds = %244
  call void @llvm.lifetime.end.p0(i64 1, ptr %27) #11
  br label %247

247:                                              ; preds = %246, %244
  %248 = load i1, ptr %26, align 1
  br i1 %248, label %249, label %250

249:                                              ; preds = %247
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #11
  br label %250

250:                                              ; preds = %249, %247
  br label %291

251:                                              ; preds = %177, %175, %172, %170
  %252 = landingpad { ptr, i32 }
          cleanup
  %253 = extractvalue { ptr, i32 } %252, 0
  store ptr %253, ptr %9, align 8
  %254 = extractvalue { ptr, i32 } %252, 1
  store i32 %254, ptr %10, align 4
  br label %291

255:                                              ; preds = %179
  %256 = landingpad { ptr, i32 }
          cleanup
  %257 = extractvalue { ptr, i32 } %256, 0
  store ptr %257, ptr %9, align 8
  %258 = extractvalue { ptr, i32 } %256, 1
  store i32 %258, ptr %10, align 4
  br label %290

259:                                              ; preds = %180
  %260 = landingpad { ptr, i32 }
          cleanup
  %261 = extractvalue { ptr, i32 } %260, 0
  store ptr %261, ptr %9, align 8
  %262 = extractvalue { ptr, i32 } %260, 1
  store i32 %262, ptr %10, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %33) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr %33) #11
  br label %289

263:                                              ; preds = %181
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %9, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %10, align 4
  br label %288

267:                                              ; preds = %188
  %268 = landingpad { ptr, i32 }
          cleanup
  %269 = extractvalue { ptr, i32 } %268, 0
  store ptr %269, ptr %9, align 8
  %270 = extractvalue { ptr, i32 } %268, 1
  store i32 %270, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %35) #11
  br label %288

271:                                              ; preds = %228, %226, %213, %209, %196, %194, %193
  %272 = landingpad { ptr, i32 }
          cleanup
  %273 = extractvalue { ptr, i32 } %272, 0
  store ptr %273, ptr %9, align 8
  %274 = extractvalue { ptr, i32 } %272, 1
  store i32 %274, ptr %10, align 4
  br label %287

275:                                              ; preds = %203
  %276 = landingpad { ptr, i32 }
          cleanup
  %277 = extractvalue { ptr, i32 } %276, 0
  store ptr %277, ptr %9, align 8
  %278 = extractvalue { ptr, i32 } %276, 1
  store i32 %278, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %38) #11
  br label %287

279:                                              ; preds = %212, %211
  %280 = landingpad { ptr, i32 }
          cleanup
  %281 = extractvalue { ptr, i32 } %280, 0
  store ptr %281, ptr %9, align 8
  %282 = extractvalue { ptr, i32 } %280, 1
  store i32 %282, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %41) #11
  br label %287

283:                                              ; preds = %220
  %284 = landingpad { ptr, i32 }
          cleanup
  %285 = extractvalue { ptr, i32 } %284, 0
  store ptr %285, ptr %9, align 8
  %286 = extractvalue { ptr, i32 } %284, 1
  store i32 %286, ptr %10, align 4
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %43) #11
  br label %287

287:                                              ; preds = %283, %279, %275, %271
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %34) #11
  br label %288

288:                                              ; preds = %287, %267, %263
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %32) #11
  br label %289

289:                                              ; preds = %288, %259
  call void @llvm.lifetime.end.p0(i64 32, ptr %32) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %31) #11
  br label %290

290:                                              ; preds = %289, %255
  call void @llvm.lifetime.end.p0(i64 88, ptr %31) #11
  br label %291

291:                                              ; preds = %290, %251, %250
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #11
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %22) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #11
  br label %295

292:                                              ; preds = %229, %140
  br label %293

293:                                              ; preds = %292, %131, %48
  %294 = load i32, ptr %3, align 4
  ret i32 %294

295:                                              ; preds = %291, %139
  %296 = load ptr, ptr %9, align 8
  %297 = load i32, ptr %10, align 4
  %298 = insertvalue { ptr, i32 } poison, ptr %296, 0
  %299 = insertvalue { ptr, i32 } %298, i32 %297, 1
  resume { ptr, i32 } %299
}

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58), i64, ptr, i16 noundef zeroext, i8 noundef zeroext) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net10udp_socketILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3net10udp_socketILNS_10ip_versionE2EE4readIcEESt8optionalISt4pairImNS_8endpointILS1_2EEEEENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.2") align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr, i64, ptr noundef nonnull align 8 dereferenceable(8)) #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(80)) #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNKRSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(80)) #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72)) #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(58) ptr @_ZSt3getILm1EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72)) #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8), i64, ptr) #2

; Function Attrs: mustprogress nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024)) #8 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3net10udp_socketILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(ptr noundef nonnull align 8 dereferenceable(88), ptr, i64, ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3net9async_runEv() #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Optional_baseISt4pairImN3net8endpointILNS1_10ip_versionE2EEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) #2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #9

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3net10udp_socketILNS_10ip_versionE2EE13promised_sendIcEESt6futureImENS_8endpointILS1_2EEENS_4spanIT_EE(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr, i64) #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16)) #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3net10udp_socketILNS_10ip_versionE2EE4sendIKcEEmNS_8endpointILS1_2EEENS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr, i64) #5 align 2

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

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

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) #9

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

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

attributes #0 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nounwind willreturn memory(read) "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 = { 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 #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #8 = { mustprogress nounwind willreturn memory(none) 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 #9 = { "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 #10 = { nounwind willreturn memory(read) }
attributes #11 = { nounwind }
attributes #12 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"class.net::udp_socket" = type { %"class.net::detail::base_socket.base", i8, [2 x i8], %"class.std::optional" }
%"class.net::detail::base_socket.base" = type <{ ptr, i32, i8 }>
%"class.std::optional" = type { %"struct.std::_Optional_base" }
%"struct.std::_Optional_base" = type { %"struct.std::_Optional_payload" }
%"struct.std::_Optional_payload" = type { %"struct.std::_Optional_payload.base", [7 x i8] }
%"struct.std::_Optional_payload.base" = type { %"struct.std::_Optional_payload_base.base" }
%"struct.std::_Optional_payload_base.base" = type { %"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage", i8 }
%"union.std::_Optional_payload_base<net::endpoint<ip_version::v4>>::_Storage" = type { %"class.net::endpoint" }
%"class.net::endpoint" = type <{ i8, [3 x i8], %struct.sockaddr_in, [4 x i8], %"class.std::__cxx11::basic_string", i16, [6 x i8] }>
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%"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.std::basic_string_view" = type { i64, ptr }
%"struct.std::array" = type { [1024 x i8] }
%"class.std::optional.2" = type { %"struct.std::_Optional_base.3" }
%"struct.std::_Optional_base.3" = type { %"struct.std::_Optional_payload.5" }
%"struct.std::_Optional_payload.5" = type { %"struct.std::_Optional_payload.base.9", [7 x i8] }
%"struct.std::_Optional_payload.base.9" = type { %"struct.std::_Optional_payload_base.base.8" }
%"struct.std::_Optional_payload_base.base.8" = type <{ %"union.std::_Optional_payload_base<std::pair<unsigned long, net::endpoint<ip_version::v4>>>::_Storage", i8 }>
%"union.std::_Optional_payload_base<std::pair<unsigned long, net::endpoint<ip_version::v4>>>::_Storage" = type { %"struct.std::pair" }
%"struct.std::pair" = type { i64, %"class.net::endpoint" }
%"class.net::span" = type { ptr, i64 }
%"class.std::chrono::duration" = type { i64 }
%class.anon = type { ptr, ptr }
%"class.std::thread" = type { %"class.std::thread::id" }
%"class.std::thread::id" = type { i64 }
%class.anon.12 = type { i8 }
%"class.std::allocator" = type { i8 }
%"class.std::future" = type { %"class.std::__basic_future" }
%"class.std::__basic_future" = type { %"class.std::shared_ptr" }
%"class.std::shared_ptr" = type { %"class.std::__shared_ptr" }
%"class.std::__shared_ptr" = type { ptr, %"class.std::__shared_count" }
%"class.std::__shared_count" = type { ptr }
%"class.net::span.13" = type { ptr, i64 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.1 = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [21 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [20 x i8], align 1

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main(i32 noundef %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.net::udp_socket", align 8
  %4 = alloca %"class.net::endpoint", align 8
  %5 = alloca %"class.std::basic_string_view", align 8
  %6 = alloca %"struct.std::array", align 1
  %7 = alloca %"class.std::optional.2", align 8
  %8 = alloca %"class.net::span", align 8
  %9 = alloca %"class.std::chrono::duration", align 8
  %10 = alloca i32, align 4
  %11 = alloca %"class.std::basic_string_view", align 8
  %12 = alloca %"class.net::span", align 8
  %13 = alloca %class.anon, align 8
  %14 = alloca %"class.std::thread", align 8
  %15 = alloca %class.anon.12, align 1
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator", align 1
  %18 = alloca %"class.net::udp_socket", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::allocator", align 1
  %21 = alloca %"class.std::future", align 8
  %22 = alloca %"class.net::endpoint", align 8
  %23 = alloca %"class.std::basic_string_view", align 8
  %24 = alloca %"class.net::span", align 8
  %25 = alloca %"class.net::endpoint", align 8
  %26 = alloca %"class.std::basic_string_view", align 8
  %27 = alloca %"class.net::span.13", align 8
  %28 = alloca %"class.std::chrono::duration", align 8
  %29 = alloca i32, align 4
  %30 = alloca %"class.net::endpoint", align 8
  %31 = alloca %"class.std::basic_string_view", align 8
  %32 = alloca %"class.net::span.13", align 8
  %33 = icmp slt i32 %0, 2
  br i1 %33, label %182, label %34

34:                                               ; preds = %2
  %35 = getelementptr inbounds i8, ptr %1, i64 8
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  %37 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %36, ptr noundef nonnull dereferenceable(1) @.str) #10
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %98

39:                                               ; preds = %34
  %40 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.1)
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %3) #11
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %4) #11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef @.str.2) #11
  %41 = load i64, ptr %5, align 8
  %42 = getelementptr inbounds i8, ptr %5, i64 8
  %43 = load ptr, ptr %42, align 8
  call void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %4, i64 %41, ptr %43, i16 noundef zeroext 4433, i8 noundef zeroext 0)
  invoke void @_ZN3net10udp_socketILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr noundef nonnull align 8 dereferenceable(58) %4)
          to label %44 unwind label %67

44:                                               ; preds = %39
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %4) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #11
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %6) #11
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 1 dereferenceable(1024) %6, i8 0, i64 1024, i1 false)
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.3)
          to label %46 unwind label %69

46:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %7) #11
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm1024EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 1 dereferenceable(1024) %6) #11
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #11
  store i32 10000, ptr %10, align 4, !tbaa !9
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 4 dereferenceable(4) %10)
  %47 = load ptr, ptr %8, align 8
  %48 = getelementptr inbounds i8, ptr %8, i64 8
  %49 = load i64, ptr %48, align 8
  invoke void @_ZNK3net10udp_socketILNS_10ip_versionE2EE4readIcEESt8optionalISt4pairImNS_8endpointILS1_2EEEEENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind nonnull writable sret(%"class.std::optional.2") align 8 %7, ptr noundef nonnull align 8 dereferenceable(88) %3, ptr %47, i64 %49, ptr noundef nonnull align 8 dereferenceable(8) %9)
          to label %50 unwind label %71

50:                                               ; preds = %46
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  %51 = call noundef zeroext i1 @_ZNKSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(80) %7) #11
  br i1 %51, label %52, label %77

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(72) ptr @_ZNKRSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(80) %7)
          to label %54 unwind label %73

54:                                               ; preds = %52
  %55 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72) %53) #11
  %56 = call noundef nonnull align 8 dereferenceable(58) ptr @_ZSt3getILm1EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72) %53) #11
  %57 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.4)
          to label %58 unwind label %75

58:                                               ; preds = %54
  %59 = call noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024) %6) #12
  %60 = load i64, ptr %55, align 8, !tbaa !11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKcm(ptr noundef nonnull align 8 dereferenceable(16) %11, ptr noundef %59, i64 noundef %60) #11
  %61 = load i64, ptr %11, align 8
  %62 = getelementptr inbounds i8, ptr %11, i64 8
  %63 = load ptr, ptr %62, align 8
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8) %57, i64 %61, ptr %63)
          to label %65 unwind label %75

65:                                               ; preds = %58
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %64, i8 noundef signext 10)
          to label %81 unwind label %75

67:                                               ; preds = %39
  %68 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %4) #11
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %4) #11
  br label %97

69:                                               ; preds = %44
  %70 = landingpad { ptr, i32 }
          cleanup
  br label %96

71:                                               ; preds = %46
  %72 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #11
  br label %95

73:                                               ; preds = %52
  %74 = landingpad { ptr, i32 }
          cleanup
  br label %94

75:                                               ; preds = %65, %58, %54
  %76 = landingpad { ptr, i32 }
          cleanup
  br label %94

77:                                               ; preds = %50
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.5)
          to label %81 unwind label %79

79:                                               ; preds = %89, %88, %86, %77
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %94

81:                                               ; preds = %65, %77
  call void @_ZN3net4spanIcEC2IRSt5arrayIcLm1024EEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %12, ptr noundef nonnull align 1 dereferenceable(1024) %6) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #11
  store ptr %3, ptr %13, align 8, !tbaa !5
  %82 = getelementptr inbounds i8, ptr %13, i64 8
  store ptr %6, ptr %82, align 8, !tbaa !5
  %83 = load ptr, ptr %12, align 8
  %84 = getelementptr inbounds i8, ptr %12, i64 8
  %85 = load i64, ptr %84, align 8
  invoke void @"_ZNK3net10udp_socketILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(ptr noundef nonnull align 8 dereferenceable(88) %3, ptr %83, i64 %85, ptr noundef nonnull align 8 dereferenceable(16) %13)
          to label %86 unwind label %92

86:                                               ; preds = %81
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #11
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %88 unwind label %79

88:                                               ; preds = %86
  invoke void @_ZN3net9async_runEv()
          to label %89 unwind label %79

89:                                               ; preds = %88
  %90 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.7)
          to label %91 unwind label %79

91:                                               ; preds = %89
  call void @_ZNSt14_Optional_baseISt4pairImN3net8endpointILNS1_10ip_versionE2EEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #11
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #11
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #11
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #11
  br label %182

92:                                               ; preds = %81
  %93 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #11
  br label %94

94:                                               ; preds = %73, %75, %92, %79
  %.pn49 = phi { ptr, i32 } [ %80, %79 ], [ %93, %92 ], [ %76, %75 ], [ %74, %73 ]
  call void @_ZNSt14_Optional_baseISt4pairImN3net8endpointILNS1_10ip_versionE2EEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(80) %7) #11
  br label %95

95:                                               ; preds = %94, %71
  %.pn49.pn = phi { ptr, i32 } [ %.pn49, %94 ], [ %72, %71 ]
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %7) #11
  br label %96

96:                                               ; preds = %95, %69
  %.pn49.pn.pn = phi { ptr, i32 } [ %.pn49.pn, %95 ], [ %70, %69 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %6) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %3) #11
  br label %97

97:                                               ; preds = %96, %67
  %.pn49.pn.pn.pn = phi { ptr, i32 } [ %.pn49.pn.pn, %96 ], [ %68, %67 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %3) #11
  br label %183

98:                                               ; preds = %34
  %99 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %36, ptr noundef nonnull dereferenceable(1) @.str.8) #10
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %182

101:                                              ; preds = %98
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %15) #11
  call void @"_ZNSt6threadC2IZ4mainE3$_1JEvEEOT_DpOT0_"(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 1 dereferenceable(1) %15)
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %15) #11
  %.not.not = icmp eq i32 %0, 2
  br i1 %.not.not, label %.critedge56, label %102

102:                                              ; preds = %101
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #11
  %103 = getelementptr inbounds i8, ptr %1, i64 16
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %17) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef %104, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %105 unwind label %154

105:                                              ; preds = %102
  %106 = invoke noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef null, i32 noundef 10)
          to label %.critedge unwind label %156

.critedge:                                        ; preds = %105
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #11
  br label %.critedge56

.critedge56:                                      ; preds = %101, %.critedge
  %107 = phi i32 [ %106, %.critedge ], [ 4433, %101 ]
  %108 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
          to label %109 unwind label %159

109:                                              ; preds = %.critedge56
  %110 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %108, i32 noundef %107)
          to label %111 unwind label %159

111:                                              ; preds = %109
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %110, i8 noundef signext 10)
          to label %113 unwind label %159

113:                                              ; preds = %111
  %114 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
          to label %115 unwind label %159

115:                                              ; preds = %113
  call void @llvm.lifetime.start.p0(i64 88, ptr nonnull %18) #11
  invoke void @_ZN3net10udp_socketILNS_10ip_versionE2EEC2Ev(ptr noundef nonnull align 8 dereferenceable(88) %18)
          to label %116 unwind label %161

116:                                              ; preds = %115
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %19) #11
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %20) #11
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %117 unwind label %163

117:                                              ; preds = %116
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #11
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %21) #11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %23, ptr noundef @.str.12) #11
  %118 = trunc i32 %107 to i16
  %119 = load i64, ptr %23, align 8
  %120 = getelementptr inbounds i8, ptr %23, i64 8
  %121 = load ptr, ptr %120, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %22, i64 %119, ptr %121, i16 noundef zeroext %118, i8 noundef zeroext 0)
          to label %122 unwind label %165

122:                                              ; preds = %117
  call void @_ZN3net4spanIcEC2IRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEEOT_(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  %123 = load ptr, ptr %24, align 8
  %124 = getelementptr inbounds i8, ptr %24, i64 8
  %125 = load i64, ptr %124, align 8
  invoke void @_ZNK3net10udp_socketILNS_10ip_versionE2EE13promised_sendIcEESt6futureImENS_8endpointILS1_2EEENS_4spanIT_EE(ptr dead_on_unwind nonnull writable sret(%"class.std::future") align 8 %21, ptr noundef nonnull align 8 dereferenceable(88) %18, ptr noundef nonnull %22, ptr %123, i64 %125)
          to label %126 unwind label %167

126:                                              ; preds = %122
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %22) #11
  invoke void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16) %21)
          to label %127 unwind label %169

127:                                              ; preds = %126
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.13)
          to label %129 unwind label %169

129:                                              ; preds = %127
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %26, ptr noundef @.str.12) #11
  %130 = load i64, ptr %26, align 8
  %131 = getelementptr inbounds i8, ptr %26, i64 8
  %132 = load ptr, ptr %131, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %25, i64 %130, ptr %132, i16 noundef zeroext %118, i8 noundef zeroext 0)
          to label %133 unwind label %169

133:                                              ; preds = %129
  call void @_ZN3net4spanIKcEC2ILm5EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %27, ptr noundef nonnull align 1 dereferenceable(5) @.str.14) #11
  %134 = load ptr, ptr %27, align 8
  %135 = getelementptr inbounds i8, ptr %27, i64 8
  %136 = load i64, ptr %135, align 8
  %137 = invoke noundef i64 @_ZNK3net10udp_socketILNS_10ip_versionE2EE4sendIKcEEmNS_8endpointILS1_2EEENS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(88) %18, ptr noundef nonnull %25, ptr %134, i64 %136)
          to label %138 unwind label %171

138:                                              ; preds = %133
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %25) #11
  %139 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.15)
          to label %140 unwind label %169

140:                                              ; preds = %138
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %28) #11
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %29) #11
  store i32 2000, ptr %29, align 4, !tbaa !9
  call void @_ZNSt6chrono8durationIlSt5ratioILl1ELl1000EEEC2IivEERKT_(ptr noundef nonnull align 8 dereferenceable(8) %28, ptr noundef nonnull align 4 dereferenceable(4) %29)
  invoke void @_ZNSt11this_thread9sleep_forIlSt5ratioILl1ELl1000EEEEvRKNSt6chrono8durationIT_T0_EE(ptr noundef nonnull align 8 dereferenceable(8) %28)
          to label %141 unwind label %173

141:                                              ; preds = %140
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #11
  call void @_ZNSt17basic_string_viewIcSt11char_traitsIcEEC2EPKc(ptr noundef nonnull align 8 dereferenceable(16) %31, ptr noundef @.str.12) #11
  %142 = load i64, ptr %31, align 8
  %143 = getelementptr inbounds i8, ptr %31, i64 8
  %144 = load ptr, ptr %143, align 8
  invoke void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58) %30, i64 %142, ptr %144, i16 noundef zeroext %118, i8 noundef zeroext 0)
          to label %145 unwind label %169

145:                                              ; preds = %141
  call void @_ZN3net4spanIKcEC2ILm14EEERAT__S1_(ptr noundef nonnull align 8 dereferenceable(16) %32, ptr noundef nonnull align 1 dereferenceable(14) @.str.16) #11
  %146 = load ptr, ptr %32, align 8
  %147 = getelementptr inbounds i8, ptr %32, i64 8
  %148 = load i64, ptr %147, align 8
  %149 = invoke noundef i64 @_ZNK3net10udp_socketILNS_10ip_versionE2EE4sendIKcEEmNS_8endpointILS1_2EEENS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(88) %18, ptr noundef nonnull %30, ptr %146, i64 %148)
          to label %150 unwind label %175

150:                                              ; preds = %145
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %30) #11
  %151 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.17)
          to label %152 unwind label %169

152:                                              ; preds = %150
  invoke void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8) %14)
          to label %153 unwind label %169

153:                                              ; preds = %152
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %18) #11
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %18) #11
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #11
  br label %182

154:                                              ; preds = %102
  %155 = landingpad { ptr, i32 }
          cleanup
  br label %158

156:                                              ; preds = %105
  %157 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #11
  br label %158

158:                                              ; preds = %154, %156
  %.pn = phi { ptr, i32 } [ %157, %156 ], [ %155, %154 ]
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %17) #11
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #11
  br label %181

159:                                              ; preds = %113, %111, %109, %.critedge56
  %160 = landingpad { ptr, i32 }
          cleanup
  br label %181

161:                                              ; preds = %115
  %162 = landingpad { ptr, i32 }
          cleanup
  br label %180

163:                                              ; preds = %116
  %164 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #11
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %20) #11
  br label %179

165:                                              ; preds = %117
  %166 = landingpad { ptr, i32 }
          cleanup
  br label %178

167:                                              ; preds = %122
  %168 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %22) #11
  br label %178

169:                                              ; preds = %152, %150, %141, %138, %129, %127, %126
  %170 = landingpad { ptr, i32 }
          cleanup
  br label %177

171:                                              ; preds = %133
  %172 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %25) #11
  br label %177

173:                                              ; preds = %140
  %174 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %29) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %28) #11
  br label %177

175:                                              ; preds = %145
  %176 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58) %30) #11
  br label %177

177:                                              ; preds = %175, %173, %171, %169
  %.pn41 = phi { ptr, i32 } [ %170, %169 ], [ %176, %175 ], [ %174, %173 ], [ %172, %171 ]
  call void @_ZNSt14__basic_futureImED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %21) #11
  br label %178

178:                                              ; preds = %177, %167, %165
  %.pn41.pn = phi { ptr, i32 } [ %.pn41, %177 ], [ %168, %167 ], [ %166, %165 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %21) #11
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #11
  br label %179

179:                                              ; preds = %178, %163
  %.pn41.pn.pn = phi { ptr, i32 } [ %.pn41.pn, %178 ], [ %164, %163 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %19) #11
  call void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88) %18) #11
  br label %180

180:                                              ; preds = %179, %161
  %.pn41.pn.pn.pn = phi { ptr, i32 } [ %.pn41.pn.pn, %179 ], [ %162, %161 ]
  call void @llvm.lifetime.end.p0(i64 88, ptr nonnull %18) #11
  br label %181

181:                                              ; preds = %158, %180, %159
  %.pn41.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn41.pn.pn.pn, %180 ], [ %160, %159 ], [ %.pn, %158 ]
  call void @_ZNSt6threadD2Ev(ptr noundef nonnull align 8 dereferenceable(8) %14) #11
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #11
  br label %183

182:                                              ; preds = %2, %98, %153, %91
  ret i32 0

183:                                              ; preds = %181, %97
  %.pn49.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn49.pn.pn.pn, %97 ], [ %.pn41.pn.pn.pn.pn, %181 ]
  resume { ptr, i32 } %.pn49.pn.pn.pn.pn
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EEC2ESt17basic_string_viewIcSt11char_traitsIcEEtNS_11socket_typeE(ptr noundef nonnull align 8 dereferenceable(58), i64, ptr, i16 noundef zeroext, i8 noundef zeroext) unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN3net10udp_socketILNS_10ip_versionE2EEC2ERKNS_8endpointILS1_2EEE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #5 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net8endpointILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(58)) unnamed_addr #6 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3net10udp_socketILNS_10ip_versionE2EE4readIcEESt8optionalISt4pairImNS_8endpointILS1_2EEEEENS_4spanIT_EERKNSt6chrono8durationIlSt5ratioILl1ELl1000EEEE(ptr dead_on_unwind noalias writable sret(%"class.std::optional.2") align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr, i64, ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #5 align 2

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZNKSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE9has_valueEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(72) ptr @_ZNKRSt8optionalISt4pairImN3net8endpointILNS1_10ip_versionE2EEEEE5valueEv(ptr noundef nonnull align 8 dereferenceable(80)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3getILm0EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(58) ptr @_ZSt3getILm1EmN3net8endpointILNS0_10ip_versionE2EEEERKNSt13tuple_elementIXT_ESt4pairIT0_T1_EE4typeERKS8_(ptr noundef nonnull align 8 dereferenceable(72)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_St17basic_string_viewIS3_S4_E(ptr noundef nonnull align 8 dereferenceable(8), i64, ptr) local_unnamed_addr #2

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none) uwtable
declare dso_local noundef ptr @_ZNSt5arrayIcLm1024EE4dataEv(ptr noundef nonnull align 1 dereferenceable(1024)) local_unnamed_addr #8 align 2

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

; Function Attrs: mustprogress uwtable
declare hidden void @"_ZNK3net10udp_socketILNS_10ip_versionE2EE10async_readIcZ4mainE3$_0EEvNS_4spanIT_EEOT0_"(ptr noundef nonnull align 8 dereferenceable(88), ptr, i64, ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN3net9async_runEv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZNSt14_Optional_baseISt4pairImN3net8endpointILNS1_10ip_versionE2EEEELb0ELb0EED2Ev(ptr noundef nonnull align 8 dereferenceable(80)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN3net10udp_socketILNS_10ip_versionE2EED2Ev(ptr noundef nonnull align 8 dereferenceable(88)) unnamed_addr #6 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef i32 @_ZNSt7__cxx114stoiERKNS_12basic_stringIcSt11char_traitsIcESaIcEEEPmi(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, i32 noundef) local_unnamed_addr #2

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

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #9

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNK3net10udp_socketILNS_10ip_versionE2EE13promised_sendIcEESt6futureImENS_8endpointILS1_2EEENS_4spanIT_EE(ptr dead_on_unwind noalias writable sret(%"class.std::future") align 8, ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr, i64) local_unnamed_addr #5 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNKSt14__basic_futureImE4waitEv(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #5 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZNK3net10udp_socketILNS_10ip_versionE2EE4sendIKcEEmNS_8endpointILS1_2EEENS_4spanIT_EE(ptr noundef nonnull align 8 dereferenceable(88), ptr noundef, ptr, i64) local_unnamed_addr #5 align 2

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

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

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

declare void @_ZNSt6thread4joinEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #9

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

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

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


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