; LLVM IR from mkazhdan/DMG :: Util (Socket)

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

%"class.boost::asio::ip::address" = type { i32, %"class.boost::asio::ip::address_v4", %"class.boost::asio::ip::address_v6" }
%"class.boost::asio::ip::address_v4" = type { %struct.in_addr }
%struct.in_addr = type { i32 }
%"class.boost::asio::ip::address_v6" = type { %struct.in6_addr, i64 }
%struct.in6_addr = type { %union.anon.4 }
%union.anon.4 = type { [4 x i32] }
%"class.SharedMemoryBuffer::StreamPair" = type { ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14GetHostAddressPcPKc(ptr noundef, ptr noundef) #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12SendOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetPointerIN5boost4asio2ip7addressEEPT_RS4_(ptr noundef nonnull align 8 dereferenceable(32)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12SendOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetPointerIiEPT_RS0_(ptr noundef nonnull align 4 dereferenceable(4)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15ReceiveOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15ReceiveOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN18SharedMemoryBuffer10StreamPair22CreateSharedBufferPairERS0_(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12SendOnSocketIPKN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS5_2ip3tcpENS5_9execution12any_executorIJNS9_12context_as_tIRNS5_17execution_contextEEENS9_6detail8blocking7never_tILi0EEENS9_11prefer_onlyINSG_10possibly_tILi0EEEEENSJ_INSF_16outstanding_work9tracked_tILi0EEEEENSJ_INSN_11untracked_tILi0EEEEENSJ_INSF_12relationship6fork_tILi0EEEEENSJ_INSU_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetPointerIPN18SharedMemoryBuffer12SecondStreamEEPT_RS3_(ptr noundef nonnull align 8 dereferenceable(8)) #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15ReceiveOnSocketIPN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS4_2ip3tcpENS4_9execution12any_executorIJNS8_12context_as_tIRNS4_17execution_contextEEENS8_6detail8blocking7never_tILi0EEENS8_11prefer_onlyINSF_10possibly_tILi0EEEEENSI_INSE_16outstanding_work9tracked_tILi0EEEEENSI_INSM_11untracked_tILi0EEEEENSI_INSE_12relationship6fork_tILi0EEEEENSI_INST_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN10DataStream13GetDataStreamEPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEbb(ptr noundef %0, i1 noundef zeroext %1, i1 noundef zeroext %2) #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i8, align 1
  %7 = alloca i8, align 1
  %8 = alloca [512 x i8], align 16
  %9 = alloca %"class.boost::asio::ip::address", align 8
  %10 = alloca %"class.boost::asio::ip::address", align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.boost::asio::ip::address", align 8
  %14 = alloca %"class.SharedMemoryBuffer::StreamPair", align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  %20 = zext i1 %1 to i8
  store i8 %20, ptr %6, align 1, !tbaa !9
  %21 = zext i1 %2 to i8
  store i8 %21, ptr %7, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 512, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #7
  call void @_ZN5boost4asio2ip7addressC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %10) #7
  call void @_ZN5boost4asio2ip7addressC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  %22 = call noundef i32 @_Z16GetThisProcessIDv()
  store i32 %22, ptr %12, align 4, !tbaa !11
  %23 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  %24 = call noundef zeroext i1 @_Z14GetHostAddressPcPKc(ptr noundef %23, ptr noundef null)
  %25 = getelementptr inbounds [512 x i8], ptr %8, i64 0, i64 0
  call void @llvm.lifetime.start.p0(i64 32, ptr %13) #7
  call void @_ZN5boost4asio2ip7address11from_stringEPKc(ptr dead_on_unwind writable sret(%"class.boost::asio::ip::address") align 8 %13, ptr noundef %25)
  call void @llvm.lifetime.end.p0(i64 32, ptr %13) #7
  %26 = load i8, ptr %6, align 1, !tbaa !9, !range !13, !noundef !14
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %59

28:                                               ; preds = %3
  %29 = call noundef ptr @_Z10GetPointerIN5boost4asio2ip7addressEEPT_RS4_(ptr noundef nonnull align 8 dereferenceable(32) %10)
  %30 = call noundef zeroext i1 @_Z15ReceiveOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %29, i64 noundef 32)
  %31 = call noundef ptr @_Z10GetPointerIiEPT_RS0_(ptr noundef nonnull align 4 dereferenceable(4) %11)
  %32 = call noundef zeroext i1 @_Z15ReceiveOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %31, i64 noundef 4)
  %33 = call noundef zeroext i1 @_ZN5boost4asio2ipeqERKNS1_7addressES4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %10) #7
  br i1 %33, label %34, label %49

34:                                               ; preds = %28
  %35 = load i32, ptr %12, align 4, !tbaa !11
  %36 = load i32, ptr %11, align 4, !tbaa !11
  %37 = icmp eq i32 %35, %36
  br i1 %37, label %38, label %49

38:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  call void @_ZN18SharedMemoryBuffer10StreamPairC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %39 = call noundef zeroext i1 @_ZN18SharedMemoryBuffer10StreamPair22CreateSharedBufferPairERS0_(ptr noundef nonnull align 8 dereferenceable(16) %14)
  %40 = getelementptr inbounds %"class.SharedMemoryBuffer::StreamPair", ptr %14, i32 0, i32 1
  %41 = call noundef ptr @_Z10GetPointerIPN18SharedMemoryBuffer12SecondStreamEEPT_RS3_(ptr noundef nonnull align 8 dereferenceable(8) %40)
  %42 = call noundef zeroext i1 @_Z12SendOnSocketIPKN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS5_2ip3tcpENS5_9execution12any_executorIJNS9_12context_as_tIRNS5_17execution_contextEEENS9_6detail8blocking7never_tILi0EEENS9_11prefer_onlyINSG_10possibly_tILi0EEEEENSJ_INSF_16outstanding_work9tracked_tILi0EEEEENSJ_INSN_11untracked_tILi0EEEEENSJ_INSF_12relationship6fork_tILi0EEEEENSJ_INSU_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %41, i64 noundef 8)
  %43 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %44 = trunc i8 %43 to i1
  br i1 %44, label %45, label %46

45:                                               ; preds = %38
  call void @_Z11CloseSocketRPN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(8) %5)
  br label %46

46:                                               ; preds = %45, %38
  %47 = getelementptr inbounds %"class.SharedMemoryBuffer::StreamPair", ptr %14, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !15
  store ptr %48, ptr %4, align 8
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %83

49:                                               ; preds = %34, %28
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  store ptr null, ptr %16, align 8, !tbaa !5
  %50 = call noundef ptr @_Z10GetPointerIPN18SharedMemoryBuffer12SecondStreamEEPT_RS3_(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %51 = call noundef zeroext i1 @_Z12SendOnSocketIPKN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS5_2ip3tcpENS5_9execution12any_executorIJNS9_12context_as_tIRNS5_17execution_contextEEENS9_6detail8blocking7never_tILi0EEENS9_11prefer_onlyINSG_10possibly_tILi0EEEEENSJ_INSF_16outstanding_work9tracked_tILi0EEEEENSJ_INSN_11untracked_tILi0EEEEENSJ_INSF_12relationship6fork_tILi0EEEEENSJ_INSU_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %50, i64 noundef 8)
  %52 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12SocketStreamC1EPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(17) %52, ptr noundef %53)
          to label %54 unwind label %55

54:                                               ; preds = %49
  store ptr %52, ptr %4, align 8
  store i32 1, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %83

55:                                               ; preds = %49
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %17, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %52, i64 noundef 24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %85

59:                                               ; preds = %3
  %60 = call noundef ptr @_Z10GetPointerIN5boost4asio2ip7addressEEPT_RS4_(ptr noundef nonnull align 8 dereferenceable(32) %9)
  %61 = call noundef zeroext i1 @_Z12SendOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %60, i64 noundef 32)
  %62 = call noundef ptr @_Z10GetPointerIiEPT_RS0_(ptr noundef nonnull align 4 dereferenceable(4) %12)
  %63 = call noundef zeroext i1 @_Z12SendOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %62, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %64 = call noundef ptr @_Z10GetPointerIPN18SharedMemoryBuffer12SecondStreamEEPT_RS3_(ptr noundef nonnull align 8 dereferenceable(8) %19)
  %65 = call noundef zeroext i1 @_Z15ReceiveOnSocketIPN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS4_2ip3tcpENS4_9execution12any_executorIJNS8_12context_as_tIRNS4_17execution_contextEEENS8_6detail8blocking7never_tILi0EEENS8_11prefer_onlyINSF_10possibly_tILi0EEEEENSI_INSE_16outstanding_work9tracked_tILi0EEEEENSI_INSM_11untracked_tILi0EEEEENSI_INSE_12relationship6fork_tILi0EEEEENSI_INST_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef %64, i64 noundef 8)
  %66 = load ptr, ptr %19, align 8, !tbaa !5
  %67 = icmp ne ptr %66, null
  br i1 %67, label %68, label %74

68:                                               ; preds = %59
  %69 = load i8, ptr %7, align 1, !tbaa !9, !range !13, !noundef !14
  %70 = trunc i8 %69 to i1
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  call void @_Z11CloseSocketRPN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(8) %5)
  br label %72

72:                                               ; preds = %71, %68
  %73 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %73, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %82

74:                                               ; preds = %59
  %75 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 24) #8
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN12SocketStreamC1EPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(17) %75, ptr noundef %76)
          to label %77 unwind label %78

77:                                               ; preds = %74
  store ptr %75, ptr %4, align 8
  store i32 1, ptr %15, align 4
  br label %82

78:                                               ; preds = %74
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %17, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %18, align 4
  call void @_ZdlPvm(ptr noundef %75, i64 noundef 24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %85

82:                                               ; preds = %77, %72
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %83

83:                                               ; preds = %82, %54, %46
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %8) #7
  %84 = load ptr, ptr %4, align 8
  ret ptr %84

85:                                               ; preds = %78, %55
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr %8) #7
  br label %86

86:                                               ; preds = %85
  %87 = load ptr, ptr %17, align 8
  %88 = load i32, ptr %18, align 4
  %89 = insertvalue { ptr, i32 } poison, ptr %87, 0
  %90 = insertvalue { ptr, i32 } %89, i32 %88, 1
  resume { ptr, i32 } %90
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z16GetThisProcessIDv() #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip7address11from_stringEPKc(ptr dead_on_unwind noalias writable sret(%"class.boost::asio::ip::address") align 8, ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost4asio2ipeqERKNS1_7addressES4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) #2

declare void @_ZN12SocketStreamC1EPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEE(ptr, ptr)

declare void @_ZN18SharedMemoryBuffer10StreamPairC1Ev(ptr)

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

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

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


; 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.boost::asio::ip::address" = type { i32, %"class.boost::asio::ip::address_v4", %"class.boost::asio::ip::address_v6" }
%"class.boost::asio::ip::address_v4" = type { %struct.in_addr }
%struct.in_addr = type { i32 }
%"class.boost::asio::ip::address_v6" = type { %struct.in6_addr, i64 }
%struct.in6_addr = type { %union.anon.4 }
%union.anon.4 = type { [4 x i32] }
%"class.SharedMemoryBuffer::StreamPair" = type { ptr, ptr }

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

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z14GetHostAddressPcPKc(ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12SendOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_Z10GetPointerIN5boost4asio2ip7addressEEPT_RS4_(ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12SendOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15ReceiveOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15ReceiveOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN18SharedMemoryBuffer10StreamPair22CreateSharedBufferPairERS0_(ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z12SendOnSocketIPKN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS5_2ip3tcpENS5_9execution12any_executorIJNS9_12context_as_tIRNS5_17execution_contextEEENS9_6detail8blocking7never_tILi0EEENS9_11prefer_onlyINSG_10possibly_tILi0EEEEENSJ_INSF_16outstanding_work9tracked_tILi0EEEEENSJ_INSN_11untracked_tILi0EEEEENSJ_INSF_12relationship6fork_tILi0EEEEENSJ_INSU_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #1

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_Z15ReceiveOnSocketIPN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS4_2ip3tcpENS4_9execution12any_executorIJNS8_12context_as_tIRNS4_17execution_contextEEENS8_6detail8blocking7never_tILi0EEENS8_11prefer_onlyINSF_10possibly_tILi0EEEEENSI_INSE_16outstanding_work9tracked_tILi0EEEEENSI_INSM_11untracked_tILi0EEEEENSI_INSE_12relationship6fork_tILi0EEEEENSI_INST_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN10DataStream13GetDataStreamEPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEbb(ptr noundef %0, i1 noundef zeroext %1, i1 noundef zeroext %2) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca [512 x i8], align 16
  %6 = alloca %"class.boost::asio::ip::address", align 8
  %7 = alloca %"class.boost::asio::ip::address", align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.boost::asio::ip::address", align 8
  %11 = alloca %"class.SharedMemoryBuffer::StreamPair", align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @_ZN5boost4asio2ip7addressC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #7
  call void @_ZN5boost4asio2ip7addressC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #7
  %14 = call noundef i32 @_Z16GetThisProcessIDv()
  store i32 %14, ptr %9, align 4, !tbaa !9
  %15 = call noundef zeroext i1 @_Z14GetHostAddressPcPKc(ptr noundef nonnull %5, ptr noundef null)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %10) #7
  call void @_ZN5boost4asio2ip7address11from_stringEPKc(ptr dead_on_unwind nonnull writable sret(%"class.boost::asio::ip::address") align 8 %10, ptr noundef nonnull %5)
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %10) #7
  br i1 %1, label %16, label %40

16:                                               ; preds = %3
  %17 = call noundef ptr @_Z10GetPointerIN5boost4asio2ip7addressEEPT_RS4_(ptr noundef nonnull align 8 dereferenceable(32) %7)
  %18 = call noundef zeroext i1 @_Z15ReceiveOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %17, i64 noundef 32)
  %19 = call noundef ptr @_Z10GetPointerIiEPT_RS0_(ptr noundef nonnull align 4 dereferenceable(4) %8)
  %20 = call noundef zeroext i1 @_Z15ReceiveOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %19, i64 noundef 4)
  %21 = call noundef zeroext i1 @_ZN5boost4asio2ipeqERKNS1_7addressES4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  %22 = load i32, ptr %8, align 4
  %23 = icmp eq i32 %14, %22
  %or.cond = select i1 %21, i1 %23, i1 false
  br i1 %or.cond, label %24, label %32

24:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %11) #7
  call void @_ZN18SharedMemoryBuffer10StreamPairC1Ev(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %25 = call noundef zeroext i1 @_ZN18SharedMemoryBuffer10StreamPair22CreateSharedBufferPairERS0_(ptr noundef nonnull align 8 dereferenceable(16) %11)
  %26 = getelementptr inbounds i8, ptr %11, i64 8
  %27 = call noundef ptr @_Z10GetPointerIPN18SharedMemoryBuffer12SecondStreamEEPT_RS3_(ptr noundef nonnull align 8 dereferenceable(8) %26)
  %28 = call noundef zeroext i1 @_Z12SendOnSocketIPKN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS5_2ip3tcpENS5_9execution12any_executorIJNS9_12context_as_tIRNS5_17execution_contextEEENS9_6detail8blocking7never_tILi0EEENS9_11prefer_onlyINSG_10possibly_tILi0EEEEENSJ_INSF_16outstanding_work9tracked_tILi0EEEEENSJ_INSN_11untracked_tILi0EEEEENSJ_INSF_12relationship6fork_tILi0EEEEENSJ_INSU_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %27, i64 noundef 8)
  br i1 %2, label %29, label %30

29:                                               ; preds = %24
  call void @_Z11CloseSocketRPN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(8) %4)
  br label %30

30:                                               ; preds = %29, %24
  %31 = load ptr, ptr %11, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %11) #7
  br label %56

32:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #7
  store ptr null, ptr %12, align 8, !tbaa !5
  %33 = call noundef ptr @_Z10GetPointerIPN18SharedMemoryBuffer12SecondStreamEEPT_RS3_(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %34 = call noundef zeroext i1 @_Z12SendOnSocketIPKN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS5_2ip3tcpENS5_9execution12any_executorIJNS9_12context_as_tIRNS5_17execution_contextEEENS9_6detail8blocking7never_tILi0EEENS9_11prefer_onlyINSG_10possibly_tILi0EEEEENSJ_INSF_16outstanding_work9tracked_tILi0EEEEENSJ_INSN_11untracked_tILi0EEEEENSJ_INSF_12relationship6fork_tILi0EEEEENSJ_INSU_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %33, i64 noundef 8)
  %35 = call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN12SocketStreamC1EPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(17) %35, ptr noundef %36)
          to label %37 unwind label %38

37:                                               ; preds = %32
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %56

38:                                               ; preds = %32
  %39 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %35, i64 noundef 24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #7
  br label %57

40:                                               ; preds = %3
  %41 = call noundef ptr @_Z10GetPointerIN5boost4asio2ip7addressEEPT_RS4_(ptr noundef nonnull align 8 dereferenceable(32) %6)
  %42 = call noundef zeroext i1 @_Z12SendOnSocketIN5boost4asio2ip7addressEEbRPNS1_19basic_stream_socketINS2_3tcpENS1_9execution12any_executorIJNS6_12context_as_tIRNS1_17execution_contextEEENS6_6detail8blocking7never_tILi0EEENS6_11prefer_onlyINSD_10possibly_tILi0EEEEENSG_INSC_16outstanding_work9tracked_tILi0EEEEENSG_INSK_11untracked_tILi0EEEEENSG_INSC_12relationship6fork_tILi0EEEEENSG_INSR_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %41, i64 noundef 32)
  %43 = call noundef ptr @_Z10GetPointerIiEPT_RS0_(ptr noundef nonnull align 4 dereferenceable(4) %9)
  %44 = call noundef zeroext i1 @_Z12SendOnSocketIiEbRPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEEPKT_m(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %43, i64 noundef 4)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #7
  %45 = call noundef ptr @_Z10GetPointerIPN18SharedMemoryBuffer12SecondStreamEEPT_RS3_(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %46 = call noundef zeroext i1 @_Z15ReceiveOnSocketIPN18SharedMemoryBuffer12SecondStreamEEbRPN5boost4asio19basic_stream_socketINS4_2ip3tcpENS4_9execution12any_executorIJNS8_12context_as_tIRNS4_17execution_contextEEENS8_6detail8blocking7never_tILi0EEENS8_11prefer_onlyINSF_10possibly_tILi0EEEEENSI_INSE_16outstanding_work9tracked_tILi0EEEEENSI_INSM_11untracked_tILi0EEEEENSI_INSE_12relationship6fork_tILi0EEEEENSI_INST_14continuation_tILi0EEEEEEEEEEPT_m(ptr noundef nonnull align 8 dereferenceable(8) %4, ptr noundef %45, i64 noundef 8)
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %.not = icmp eq ptr %47, null
  br i1 %.not, label %50, label %48

48:                                               ; preds = %40
  br i1 %2, label %49, label %55

49:                                               ; preds = %48
  call void @_Z11CloseSocketRPN5boost4asio19basic_stream_socketINS0_2ip3tcpENS0_9execution12any_executorIJNS4_12context_as_tIRNS0_17execution_contextEEENS4_6detail8blocking7never_tILi0EEENS4_11prefer_onlyINSB_10possibly_tILi0EEEEENSE_INSA_16outstanding_work9tracked_tILi0EEEEENSE_INSI_11untracked_tILi0EEEEENSE_INSA_12relationship6fork_tILi0EEEEENSE_INSP_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(8) %4)
  %.pre = load ptr, ptr %13, align 8, !tbaa !5
  br label %55

50:                                               ; preds = %40
  %51 = call noalias noundef nonnull dereferenceable(24) ptr @_Znwm(i64 noundef 24) #8
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZN12SocketStreamC1EPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEE(ptr noundef nonnull align 8 dereferenceable(17) %51, ptr noundef %52)
          to label %55 unwind label %53

53:                                               ; preds = %50
  %54 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %51, i64 noundef 24) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %57

55:                                               ; preds = %48, %49, %50
  %.06 = phi ptr [ %51, %50 ], [ %.pre, %49 ], [ %47, %48 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #7
  br label %56

56:                                               ; preds = %55, %37, %30
  %.1 = phi ptr [ %31, %30 ], [ %35, %37 ], [ %.06, %55 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #7
  ret ptr %.1

57:                                               ; preds = %53, %38
  %.pn = phi { ptr, i32 } [ %39, %38 ], [ %54, %53 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %5) #7
  resume { ptr, i32 } %.pn
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z16GetThisProcessIDv() local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5boost4asio2ip7address11from_stringEPKc(ptr dead_on_unwind noalias writable sret(%"class.boost::asio::ip::address") align 8, ptr noundef) local_unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN5boost4asio2ipeqERKNS1_7addressES4_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #2

declare void @_ZN12SocketStreamC1EPN5boost4asio19basic_stream_socketINS1_2ip3tcpENS1_9execution12any_executorIJNS5_12context_as_tIRNS1_17execution_contextEEENS5_6detail8blocking7never_tILi0EEENS5_11prefer_onlyINSC_10possibly_tILi0EEEEENSF_INSB_16outstanding_work9tracked_tILi0EEEEENSF_INSJ_11untracked_tILi0EEEEENSF_INSB_12relationship6fork_tILi0EEEEENSF_INSQ_14continuation_tILi0EEEEEEEEEE(ptr, ptr) local_unnamed_addr

declare void @_ZN18SharedMemoryBuffer10StreamPairC1Ev(ptr) local_unnamed_addr

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

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

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


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