; LLVM IR from microsoft/ntttcp-for-linux :: src (udpstream)

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

%struct.timeval = type { i64, i64 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr, ptr, ptr }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }
%union.__CONST_SOCKADDR_ARG = type { ptr }
%union.__SOCKADDR_ARG = type { ptr }
%struct.ntttcp_stream_server = type { ptr, i32, i32, ptr, i32, i64, i8, i8, i8, i8, i8, i32, i32, %struct.fd_set, %struct.fd_set, i32, i64 }
%struct.fd_set = type { [16 x i64] }
%struct.ntttcp_test_endpoint = type { i32, ptr, i32, i32, %struct.timeval, %struct.timeval, i32, i32, i8, ptr, ptr, ptr, i8, ptr, i32, [8 x i32] }

@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@__const.run_ntttcp_receiver_udp4_stream.timeout = external hidden unnamed_addr constant %struct.timeval, align 8
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare void @PRINT_ERR(ptr noundef) #1

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) #4

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

declare void @PRINT_INFO_FREE(ptr noundef) #1

declare void @PRINT_DBG_FREE(ptr noundef) #1

declare void @wait_light_on() #1

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #6

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

declare i32 @close(i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local ptr @run_ntttcp_receiver_udp4_stream(ptr noundef %0) #7 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca %struct.addrinfo, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca %struct.sockaddr_in, align 4
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca %struct.timeval, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca %union.__CONST_SOCKADDR_ARG, align 8
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca %union.__SOCKADDR_ARG, align 8
  %26 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #8
  store i32 0, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #8
  store i32 0, ptr %6, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #8
  store i32 16, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  store i64 0, ptr %16, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %17, ptr align 8 @__const.run_ntttcp_receiver_udp4_stream.timeout, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %11, i8 0, i64 48, i1 false)
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %27, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !13
  %30 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 1
  store i32 %29, ptr %30, align 4, !tbaa !17
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %31, i32 0, i32 2
  %33 = load i32, ptr %32, align 4, !tbaa !19
  %34 = getelementptr inbounds %struct.addrinfo, ptr %11, i32 0, i32 2
  store i32 %33, ptr %34, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #8
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %35, i32 0, i32 4
  %37 = load i32, ptr %36, align 8, !tbaa !21
  %38 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %10, ptr noundef @.str.8, i32 noundef %37) #8
  store i32 %38, ptr %18, align 4, !tbaa !9
  %39 = load i32, ptr %18, align 4, !tbaa !9
  %40 = icmp slt i32 %39, 0
  br i1 %40, label %41, label %42

41:                                               ; preds = %1
  call void @PRINT_ERR(ptr noundef @.str.4)
  br label %42

42:                                               ; preds = %41, %1
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #8
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %43, i32 0, i32 3
  %45 = load ptr, ptr %44, align 8, !tbaa !22
  %46 = load ptr, ptr %10, align 8, !tbaa !5
  %47 = call i32 @getaddrinfo(ptr noundef %45, ptr noundef %46, ptr noundef %11, ptr noundef %12)
  %48 = icmp ne i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %42
  call void @PRINT_ERR(ptr noundef @.str.9)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %220

50:                                               ; preds = %42
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  call void @free(ptr noundef %51) #8
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !13
  %55 = icmp eq i32 %54, 2
  %56 = zext i1 %55 to i64
  %57 = select i1 %55, i32 16, i32 46
  store i32 %57, ptr %9, align 4, !tbaa !9
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = call noalias ptr @malloc(i64 noundef %59) #9
  store ptr %60, ptr %8, align 8, !tbaa !5
  %61 = icmp eq ptr %60, null
  br i1 %61, label %62, label %64

62:                                               ; preds = %50
  call void @PRINT_ERR(ptr noundef @.str.10)
  %63 = load ptr, ptr %12, align 8, !tbaa !5
  call void @freeaddrinfo(ptr noundef %63) #8
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %220

64:                                               ; preds = %50
  %65 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %65, ptr %13, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %138, %64
  %67 = load ptr, ptr %13, align 8, !tbaa !5
  %68 = icmp ne ptr %67, null
  br i1 %68, label %69, label %142

69:                                               ; preds = %66
  %70 = load ptr, ptr %13, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.addrinfo, ptr %70, i32 0, i32 1
  %72 = load i32, ptr %71, align 4, !tbaa !17
  %73 = load ptr, ptr %13, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.addrinfo, ptr %73, i32 0, i32 3
  %75 = load i32, ptr %74, align 4, !tbaa !23
  %76 = call i32 @socket(i32 noundef %72, i32 noundef 2, i32 noundef %75) #8
  store i32 %76, ptr %6, align 4, !tbaa !9
  %77 = icmp slt i32 %76, 0
  br i1 %77, label %78, label %81

78:                                               ; preds = %69
  call void @PRINT_ERR(ptr noundef @.str.2)
  %79 = load ptr, ptr %12, align 8, !tbaa !5
  call void @freeaddrinfo(ptr noundef %79) #8
  %80 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %80) #8
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %220

81:                                               ; preds = %69
  %82 = load i32, ptr %6, align 4, !tbaa !9
  %83 = call i32 @setsockopt(i32 noundef %82, i32 noundef 1, i32 noundef 20, ptr noundef %17, i32 noundef 16) #8
  %84 = icmp slt i32 %83, 0
  br i1 %84, label %85, label %97

85:                                               ; preds = %81
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #8
  %86 = load i32, ptr %6, align 4, !tbaa !9
  %87 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %4, ptr noundef @.str.11, i32 noundef %86) #8
  store i32 %87, ptr %20, align 4, !tbaa !9
  %88 = load i32, ptr %20, align 4, !tbaa !9
  %89 = icmp slt i32 %88, 0
  br i1 %89, label %90, label %91

90:                                               ; preds = %85
  call void @PRINT_ERR(ptr noundef @.str.4)
  br label %91

91:                                               ; preds = %90, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #8
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PRINT_ERR_FREE(ptr noundef %92)
  %93 = load ptr, ptr %12, align 8, !tbaa !5
  call void @freeaddrinfo(ptr noundef %93) #8
  %94 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %94) #8
  %95 = load i32, ptr %6, align 4, !tbaa !9
  %96 = call i32 @close(i32 noundef %95)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %220

97:                                               ; preds = %81
  %98 = load i32, ptr %6, align 4, !tbaa !9
  %99 = load ptr, ptr %13, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.addrinfo, ptr %99, i32 0, i32 5
  %101 = load ptr, ptr %100, align 8, !tbaa !24
  store ptr %101, ptr %21, align 8, !tbaa !25
  %102 = load ptr, ptr %13, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.addrinfo, ptr %102, i32 0, i32 4
  %104 = load i32, ptr %103, align 8, !tbaa !26
  %105 = getelementptr inbounds %union.__CONST_SOCKADDR_ARG, ptr %21, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8
  %107 = call i32 @bind(i32 noundef %98, ptr %106, i32 noundef %104) #8
  store i32 %107, ptr %5, align 4, !tbaa !9
  %108 = icmp slt i32 %107, 0
  br i1 %108, label %109, label %137

109:                                              ; preds = %97
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #8
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.addrinfo, ptr %110, i32 0, i32 5
  %112 = load ptr, ptr %111, align 8, !tbaa !24
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = load i32, ptr %9, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = call ptr @retrive_ip_address_str(ptr noundef %112, ptr noundef %113, i64 noundef %115)
  store ptr %116, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %6, align 4, !tbaa !9
  %118 = load i32, ptr %5, align 4, !tbaa !9
  %119 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %4, ptr noundef @.str.12, ptr noundef %116, i32 noundef %117, i32 noundef %118) #8
  store i32 %119, ptr %22, align 4, !tbaa !9
  %120 = load i32, ptr %22, align 4, !tbaa !9
  %121 = icmp slt i32 %120, 0
  br i1 %121, label %122, label %123

122:                                              ; preds = %109
  call void @PRINT_ERR(ptr noundef @.str.4)
  br label %123

123:                                              ; preds = %122, %109
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #8
  %124 = load i32, ptr %5, align 4, !tbaa !9
  %125 = icmp eq i32 %124, -1
  br i1 %125, label %126, label %135

126:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #8
  %127 = load ptr, ptr %4, align 8, !tbaa !5
  %128 = call ptr @__errno_location() #10
  %129 = load i32, ptr %128, align 4, !tbaa !9
  %130 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %4, ptr noundef @.str.13, ptr noundef %127, i32 noundef %129) #8
  store i32 %130, ptr %23, align 4, !tbaa !9
  %131 = load i32, ptr %23, align 4, !tbaa !9
  %132 = icmp slt i32 %131, 0
  br i1 %132, label %133, label %134

133:                                              ; preds = %126
  call void @PRINT_ERR(ptr noundef @.str.4)
  br label %134

134:                                              ; preds = %133, %126
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #8
  br label %135

135:                                              ; preds = %134, %123
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PRINT_DBG_FREE(ptr noundef %136)
  br label %138

137:                                              ; preds = %97
  br label %142

138:                                              ; preds = %135
  %139 = load ptr, ptr %13, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.addrinfo, ptr %139, i32 0, i32 7
  %141 = load ptr, ptr %140, align 8, !tbaa !27
  store ptr %141, ptr %13, align 8, !tbaa !5
  br label %66, !llvm.loop !28

142:                                              ; preds = %137, %66
  %143 = load ptr, ptr %12, align 8, !tbaa !5
  call void @freeaddrinfo(ptr noundef %143) #8
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  call void @free(ptr noundef %144) #8
  %145 = load ptr, ptr %13, align 8, !tbaa !5
  %146 = icmp eq ptr %145, null
  br i1 %146, label %147, label %159

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #8
  %148 = load ptr, ptr %3, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %148, i32 0, i32 3
  %150 = load ptr, ptr %149, align 8, !tbaa !22
  %151 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %4, ptr noundef @.str.14, ptr noundef %150) #8
  store i32 %151, ptr %24, align 4, !tbaa !9
  %152 = load i32, ptr %24, align 4, !tbaa !9
  %153 = icmp slt i32 %152, 0
  br i1 %153, label %154, label %155

154:                                              ; preds = %147
  call void @PRINT_ERR(ptr noundef @.str.4)
  br label %155

155:                                              ; preds = %154, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #8
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PRINT_ERR_FREE(ptr noundef %156)
  %157 = load i32, ptr %6, align 4, !tbaa !9
  %158 = call i32 @close(i32 noundef %157)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %220

159:                                              ; preds = %142
  %160 = load ptr, ptr %3, align 8, !tbaa !5
  %161 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %160, i32 0, i32 5
  %162 = load i64, ptr %161, align 8, !tbaa !30
  %163 = call noalias ptr @malloc(i64 noundef %162) #9
  store ptr %163, ptr %7, align 8, !tbaa !5
  %164 = icmp eq ptr %163, null
  br i1 %164, label %165, label %168

165:                                              ; preds = %159
  call void @PRINT_ERR(ptr noundef @.str.15)
  %166 = load i32, ptr %6, align 4, !tbaa !9
  %167 = call i32 @close(i32 noundef %166)
  store ptr null, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %220

168:                                              ; preds = %159
  %169 = load ptr, ptr %3, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %169, i32 0, i32 7
  %171 = load i8, ptr %170, align 1, !tbaa !31, !range !32, !noundef !33
  %172 = trunc i8 %171 to i1
  br i1 %172, label %173, label %174

173:                                              ; preds = %168
  call void @turn_on_light()
  br label %175

174:                                              ; preds = %168
  call void @wait_light_on()
  br label %175

175:                                              ; preds = %174, %173
  br label %176

176:                                              ; preds = %216, %175
  br label %177

177:                                              ; preds = %176
  %178 = load ptr, ptr %3, align 8, !tbaa !5
  %179 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %178, i32 0, i32 0
  %180 = load ptr, ptr %179, align 8, !tbaa !34
  %181 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %180, i32 0, i32 8
  %182 = load i8, ptr %181, align 8, !tbaa !35, !range !32, !noundef !33
  %183 = trunc i8 %182 to i1
  br i1 %183, label %184, label %192

184:                                              ; preds = %177
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !34
  %188 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %187, i32 0, i32 2
  %189 = load i32, ptr %188, align 8, !tbaa !38
  %190 = icmp eq i32 %189, 13
  br i1 %190, label %191, label %192

191:                                              ; preds = %184
  br label %217

192:                                              ; preds = %184, %177
  %193 = load i32, ptr %6, align 4, !tbaa !9
  %194 = load ptr, ptr %7, align 8, !tbaa !5
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %195, i32 0, i32 5
  %197 = load i64, ptr %196, align 8, !tbaa !30
  store ptr %14, ptr %25, align 8, !tbaa !25
  %198 = getelementptr inbounds %union.__SOCKADDR_ARG, ptr %25, i32 0, i32 0
  %199 = load ptr, ptr %198, align 8
  %200 = call i64 @recvfrom(i32 noundef %193, ptr noundef %194, i64 noundef %197, i32 noundef 0, ptr %199, ptr noundef %15)
  store i64 %200, ptr %16, align 8, !tbaa !11
  %201 = load i64, ptr %16, align 8, !tbaa !11
  %202 = icmp sgt i64 %201, 0
  br i1 %202, label %203, label %208

203:                                              ; preds = %192
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.ntttcp_stream_server, ptr %204, i32 0, i32 16
  %206 = load i64, ptr %16, align 8, !tbaa !11
  %207 = atomicrmw add ptr %205, i64 %206 seq_cst, align 8
  br label %216

208:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #8
  %209 = load i32, ptr %6, align 4, !tbaa !9
  %210 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %4, ptr noundef @.str.16, i32 noundef %209) #8
  store i32 %210, ptr %26, align 4, !tbaa !9
  %211 = load i32, ptr %26, align 4, !tbaa !9
  %212 = icmp slt i32 %211, 0
  br i1 %212, label %213, label %214

213:                                              ; preds = %208
  call void @PRINT_ERR(ptr noundef @.str.4)
  br label %214

214:                                              ; preds = %213, %208
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #8
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  call void @PRINT_INFO_FREE(ptr noundef %215)
  br label %216

216:                                              ; preds = %214, %203
  br label %176

217:                                              ; preds = %191
  %218 = load i64, ptr %16, align 8, !tbaa !11
  %219 = inttoptr i64 %218 to ptr
  store ptr %219, ptr %2, align 8
  store i32 1, ptr %19, align 4
  br label %220

220:                                              ; preds = %217, %165, %155, %91, %78, %62, %49
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #8
  %221 = load ptr, ptr %2, align 8
  ret ptr %221
}

declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind
declare void @freeaddrinfo(ptr noundef) #4

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

declare void @PRINT_ERR_FREE(ptr noundef) #1

declare ptr @retrive_ip_address_str(ptr noundef, ptr noundef, i64 noundef) #1

declare void @turn_on_light() #1

declare i64 @recvfrom(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr, ptr noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = { nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !10, i64 8}
!14 = !{!"ntttcp_stream_server", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24, !12, i64 32, !15, i64 40, !15, i64 41, !15, i64 42, !15, i64 43, !15, i64 44, !10, i64 48, !10, i64 52, !16, i64 56, !16, i64 184, !10, i64 312, !12, i64 320}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!"", !7, i64 0}
!17 = !{!18, !10, i64 4}
!18 = !{!"addrinfo", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !6, i64 40}
!19 = !{!14, !10, i64 12}
!20 = !{!18, !10, i64 8}
!21 = !{!14, !10, i64 24}
!22 = !{!14, !6, i64 16}
!23 = !{!18, !10, i64 12}
!24 = !{!18, !6, i64 24}
!25 = !{!7, !7, i64 0}
!26 = !{!18, !10, i64 16}
!27 = !{!18, !6, i64 40}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!14, !12, i64 32}
!31 = !{!14, !15, i64 41}
!32 = !{i8 0, i8 2}
!33 = !{}
!34 = !{!14, !6, i64 0}
!35 = !{!36, !15, i64 64}
!36 = !{!"ntttcp_test_endpoint", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !37, i64 24, !37, i64 40, !10, i64 56, !10, i64 60, !15, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !15, i64 96, !6, i64 104, !10, i64 112, !7, i64 116}
!37 = !{!"timeval", !12, i64 0, !12, i64 8}
!38 = !{!36, !10, i64 16}


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

%struct.timeval = type { i64, i64 }
%struct.addrinfo = type { i32, i32, i32, i32, i32, ptr, ptr, ptr }
%struct.sockaddr_in = type { i16, i16, %struct.in_addr, [8 x i8] }
%struct.in_addr = type { i32 }

@.str.2 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [25 x i8], align 1
@__const.run_ntttcp_receiver_udp4_stream.timeout = external hidden unnamed_addr constant %struct.timeval, align 8
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [74 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [40 x i8], align 1

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

declare void @PRINT_ERR(ptr noundef) local_unnamed_addr #1

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

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

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

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

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

; Function Attrs: nounwind
declare i32 @asprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #4

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

declare void @PRINT_INFO_FREE(ptr noundef) local_unnamed_addr #1

declare void @PRINT_DBG_FREE(ptr noundef) local_unnamed_addr #1

declare void @wait_light_on() local_unnamed_addr #1

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #7

declare i32 @close(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local ptr @run_ntttcp_receiver_udp4_stream(ptr nocapture noundef %0) local_unnamed_addr #8 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca %struct.addrinfo, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %struct.sockaddr_in, align 4
  %7 = alloca i32, align 4
  %8 = alloca %struct.timeval, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %4) #9
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %7) #9
  store i32 16, ptr %7, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %8, ptr noundef nonnull align 8 dereferenceable(16) @__const.run_ntttcp_receiver_udp4_stream.timeout, i64 16, i1 false)
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(48) %4, i8 0, i64 48, i1 false)
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = getelementptr inbounds i8, ptr %4, i64 4
  %11 = load <2 x i32>, ptr %9, align 8, !tbaa !5
  store <2 x i32> %11, ptr %10, align 4, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 24
  %13 = load i32, ptr %12, align 8, !tbaa !9
  %14 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %3, ptr noundef nonnull @.str.8, i32 noundef %13) #9
  %15 = icmp slt i32 %14, 0
  br i1 %15, label %16, label %17

16:                                               ; preds = %1
  call void @PRINT_ERR(ptr noundef nonnull @.str.4) #9
  br label %17

17:                                               ; preds = %16, %1
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = load ptr, ptr %18, align 8, !tbaa !15
  %20 = load ptr, ptr %3, align 8, !tbaa !16
  %21 = call i32 @getaddrinfo(ptr noundef %19, ptr noundef %20, ptr noundef nonnull %4, ptr noundef nonnull %5) #9
  %.not = icmp eq i32 %21, 0
  br i1 %.not, label %23, label %22

22:                                               ; preds = %17
  call void @PRINT_ERR(ptr noundef nonnull @.str.9) #9
  br label %123

23:                                               ; preds = %17
  %24 = load ptr, ptr %3, align 8, !tbaa !16
  call void @free(ptr noundef %24) #9
  %25 = load i32, ptr %9, align 8, !tbaa !17
  %26 = icmp eq i32 %25, 2
  %27 = select i1 %26, i64 16, i64 46
  %28 = call noalias ptr @malloc(i64 noundef %27) #10
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %.preheader

.preheader:                                       ; preds = %23
  %.05063 = load ptr, ptr %5, align 8, !tbaa !16
  %.not5764 = icmp eq ptr %.05063, null
  br i1 %.not5764, label %._crit_edge, label %.lr.ph

30:                                               ; preds = %23
  call void @PRINT_ERR(ptr noundef nonnull @.str.10) #9
  %31 = load ptr, ptr %5, align 8, !tbaa !16
  call void @freeaddrinfo(ptr noundef %31) #9
  br label %123

.lr.ph:                                           ; preds = %.preheader, %73
  %.05066 = phi ptr [ %.050, %73 ], [ %.05063, %.preheader ]
  %.04965 = phi ptr [ %60, %73 ], [ %28, %.preheader ]
  %32 = getelementptr inbounds i8, ptr %.05066, i64 4
  %33 = load i32, ptr %32, align 4, !tbaa !18
  %34 = getelementptr inbounds i8, ptr %.05066, i64 12
  %35 = load i32, ptr %34, align 4, !tbaa !20
  %36 = call i32 @socket(i32 noundef %33, i32 noundef 2, i32 noundef %35) #9
  %37 = icmp slt i32 %36, 0
  br i1 %37, label %38, label %40

38:                                               ; preds = %.lr.ph
  call void @PRINT_ERR(ptr noundef nonnull @.str.2) #9
  %39 = load ptr, ptr %5, align 8, !tbaa !16
  call void @freeaddrinfo(ptr noundef %39) #9
  call void @free(ptr noundef %.04965) #9
  br label %123

40:                                               ; preds = %.lr.ph
  %41 = call i32 @setsockopt(i32 noundef %36, i32 noundef 1, i32 noundef 20, ptr noundef nonnull %8, i32 noundef 16) #9
  %42 = icmp slt i32 %41, 0
  br i1 %42, label %43, label %51

43:                                               ; preds = %40
  %44 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.11, i32 noundef %36) #9
  %45 = icmp slt i32 %44, 0
  br i1 %45, label %46, label %47

46:                                               ; preds = %43
  call void @PRINT_ERR(ptr noundef nonnull @.str.4) #9
  br label %47

47:                                               ; preds = %46, %43
  %48 = load ptr, ptr %2, align 8, !tbaa !16
  call void @PRINT_ERR_FREE(ptr noundef %48) #9
  %49 = load ptr, ptr %5, align 8, !tbaa !16
  call void @freeaddrinfo(ptr noundef %49) #9
  call void @free(ptr noundef %.04965) #9
  %50 = call i32 @close(i32 noundef %36) #9
  br label %123

51:                                               ; preds = %40
  %52 = getelementptr inbounds i8, ptr %.05066, i64 24
  %53 = load ptr, ptr %52, align 8, !tbaa !21
  %54 = getelementptr inbounds i8, ptr %.05066, i64 16
  %55 = load i32, ptr %54, align 8, !tbaa !22
  %56 = call i32 @bind(i32 noundef %36, ptr %53, i32 noundef %55) #9
  %57 = icmp slt i32 %56, 0
  br i1 %57, label %58, label %._crit_edge.loopexit

58:                                               ; preds = %51
  %59 = load ptr, ptr %52, align 8, !tbaa !21
  %60 = call ptr @retrive_ip_address_str(ptr noundef %59, ptr noundef %.04965, i64 noundef %27) #9
  %61 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.12, ptr noundef %60, i32 noundef %36, i32 noundef %56) #9
  %62 = icmp slt i32 %61, 0
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  call void @PRINT_ERR(ptr noundef nonnull @.str.4) #9
  br label %64

64:                                               ; preds = %63, %58
  %65 = icmp eq i32 %56, -1
  br i1 %65, label %66, label %73

66:                                               ; preds = %64
  %67 = load ptr, ptr %2, align 8, !tbaa !16
  %68 = tail call ptr @__errno_location() #11
  %69 = load i32, ptr %68, align 4, !tbaa !5
  %70 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.13, ptr noundef %67, i32 noundef %69) #9
  %71 = icmp slt i32 %70, 0
  br i1 %71, label %72, label %73

72:                                               ; preds = %66
  call void @PRINT_ERR(ptr noundef nonnull @.str.4) #9
  br label %73

73:                                               ; preds = %66, %72, %64
  %74 = load ptr, ptr %2, align 8, !tbaa !16
  call void @PRINT_DBG_FREE(ptr noundef %74) #9
  %75 = getelementptr inbounds i8, ptr %.05066, i64 40
  %.050 = load ptr, ptr %75, align 8, !tbaa !16
  %.not57 = icmp eq ptr %.050, null
  br i1 %.not57, label %._crit_edge.loopexit, label %.lr.ph, !llvm.loop !23

._crit_edge.loopexit:                             ; preds = %51, %73
  %.049.lcssa.ph = phi ptr [ %60, %73 ], [ %.04965, %51 ]
  %.pre = load ptr, ptr %5, align 8, !tbaa !16
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %76 = phi ptr [ null, %.preheader ], [ %.pre, %._crit_edge.loopexit ]
  %.049.lcssa = phi ptr [ %28, %.preheader ], [ %.049.lcssa.ph, %._crit_edge.loopexit ]
  %.not57.lcssa = phi i1 [ true, %.preheader ], [ %57, %._crit_edge.loopexit ]
  %.1 = phi i32 [ 0, %.preheader ], [ %36, %._crit_edge.loopexit ]
  call void @freeaddrinfo(ptr noundef %76) #9
  call void @free(ptr noundef %.049.lcssa) #9
  br i1 %.not57.lcssa, label %77, label %85

77:                                               ; preds = %._crit_edge
  %78 = load ptr, ptr %18, align 8, !tbaa !15
  %79 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.14, ptr noundef %78) #9
  %80 = icmp slt i32 %79, 0
  br i1 %80, label %81, label %82

81:                                               ; preds = %77
  call void @PRINT_ERR(ptr noundef nonnull @.str.4) #9
  br label %82

82:                                               ; preds = %81, %77
  %83 = load ptr, ptr %2, align 8, !tbaa !16
  call void @PRINT_ERR_FREE(ptr noundef %83) #9
  %84 = call i32 @close(i32 noundef %.1) #9
  br label %123

85:                                               ; preds = %._crit_edge
  %86 = getelementptr inbounds i8, ptr %0, i64 32
  %87 = load i64, ptr %86, align 8, !tbaa !25
  %88 = call noalias ptr @malloc(i64 noundef %87) #10
  %89 = icmp eq ptr %88, null
  br i1 %89, label %90, label %92

90:                                               ; preds = %85
  call void @PRINT_ERR(ptr noundef nonnull @.str.15) #9
  %91 = call i32 @close(i32 noundef %.1) #9
  br label %123

92:                                               ; preds = %85
  %93 = getelementptr inbounds i8, ptr %0, i64 41
  %94 = load i8, ptr %93, align 1, !tbaa !26, !range !27, !noundef !28
  %95 = trunc nuw i8 %94 to i1
  br i1 %95, label %96, label %97

96:                                               ; preds = %92
  call void @turn_on_light() #9
  br label %98

97:                                               ; preds = %92
  call void @wait_light_on() #9
  br label %98

98:                                               ; preds = %97, %96
  %99 = getelementptr inbounds i8, ptr %0, i64 320
  br label %100

100:                                              ; preds = %.backedge, %98
  %.051 = phi i64 [ 0, %98 ], [ %111, %.backedge ]
  %101 = load ptr, ptr %0, align 8, !tbaa !29
  %102 = getelementptr inbounds i8, ptr %101, i64 64
  %103 = load i8, ptr %102, align 8, !tbaa !30, !range !27, !noundef !28
  %104 = trunc nuw i8 %103 to i1
  br i1 %104, label %105, label %109

105:                                              ; preds = %100
  %106 = getelementptr inbounds i8, ptr %101, i64 16
  %107 = load i32, ptr %106, align 8, !tbaa !33
  %108 = icmp eq i32 %107, 13
  br i1 %108, label %121, label %109

109:                                              ; preds = %105, %100
  %110 = load i64, ptr %86, align 8, !tbaa !25
  %111 = call i64 @recvfrom(i32 noundef %.1, ptr noundef nonnull %88, i64 noundef %110, i32 noundef 0, ptr nonnull %6, ptr noundef nonnull %7) #9
  %112 = icmp sgt i64 %111, 0
  br i1 %112, label %113, label %115

113:                                              ; preds = %109
  %114 = atomicrmw add ptr %99, i64 %111 seq_cst, align 8
  br label %.backedge

115:                                              ; preds = %109
  %116 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.16, i32 noundef %.1) #9
  %117 = icmp slt i32 %116, 0
  br i1 %117, label %118, label %119

118:                                              ; preds = %115
  call void @PRINT_ERR(ptr noundef nonnull @.str.4) #9
  br label %119

119:                                              ; preds = %118, %115
  %120 = load ptr, ptr %2, align 8, !tbaa !16
  call void @PRINT_INFO_FREE(ptr noundef %120) #9
  br label %.backedge

.backedge:                                        ; preds = %119, %113
  br label %100

121:                                              ; preds = %105
  %122 = inttoptr i64 %.051 to ptr
  br label %123

123:                                              ; preds = %121, %90, %82, %47, %38, %30, %22
  %.0 = phi ptr [ null, %22 ], [ null, %30 ], [ null, %38 ], [ null, %47 ], [ null, %82 ], [ null, %90 ], [ %122, %121 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #9
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %4) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #9
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #9
  ret ptr %.0
}

declare i32 @getaddrinfo(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @freeaddrinfo(ptr noundef) local_unnamed_addr #4

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

declare void @PRINT_ERR_FREE(ptr noundef) local_unnamed_addr #1

declare ptr @retrive_ip_address_str(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @turn_on_light() local_unnamed_addr #1

declare i64 @recvfrom(i32 noundef, ptr noundef, i64 noundef, i32 noundef, ptr, ptr noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 nofree nosync nounwind willreturn memory(none) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { nounwind 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 = { nounwind }
attributes #10 = { nounwind allocsize(0) }
attributes #11 = { 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/C++ TBAA"}
!9 = !{!10, !6, i64 24}
!10 = !{!"ntttcp_stream_server", !11, i64 0, !6, i64 8, !6, i64 12, !11, i64 16, !6, i64 24, !12, i64 32, !13, i64 40, !13, i64 41, !13, i64 42, !13, i64 43, !13, i64 44, !6, i64 48, !6, i64 52, !14, i64 56, !14, i64 184, !6, i64 312, !12, i64 320}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_Bool", !7, i64 0}
!14 = !{!"", !7, i64 0}
!15 = !{!10, !11, i64 16}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !6, i64 8}
!18 = !{!19, !6, i64 4}
!19 = !{!"addrinfo", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!20 = !{!19, !6, i64 12}
!21 = !{!19, !11, i64 24}
!22 = !{!19, !6, i64 16}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!10, !12, i64 32}
!26 = !{!10, !13, i64 41}
!27 = !{i8 0, i8 2}
!28 = !{}
!29 = !{!10, !11, i64 0}
!30 = !{!31, !13, i64 64}
!31 = !{!"ntttcp_test_endpoint", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 20, !32, i64 24, !32, i64 40, !6, i64 56, !6, i64 60, !13, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !13, i64 96, !11, i64 104, !6, i64 112, !7, i64 116}
!32 = !{!"timeval", !12, i64 0, !12, i64 8}
!33 = !{!31, !6, i64 16}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass