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

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

%union.pthread_attr_t = type { i64, [48 x i8] }
%struct.timeval = type { i64, 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] }
%struct.ntttcp_test = type { i8, i8, i8, i8, i8, i8, i8, ptr, i32, i32, ptr, i32, i32, i8, i32, i32, i32, i32, i64, i64, i64, i64, i32, i32, i32, i8, ptr, ptr, i8, ptr, i8, ptr, i8, ptr, i8, i8 }
%struct.ntttcp_stream_client = type { ptr, i32, i32, ptr, i32, i32, i32, i64, i64, i64, i8, i8, i8, i8, i8, i32, i32, i64 }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i32 @run_ntttcp_sender(ptr noundef %0) #0 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca %union.pthread_attr_t, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca %struct.timeval, align 8
  %18 = alloca %struct.timeval, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %26, i32 0, i32 1
  %28 = load ptr, ptr %27, align 8, !tbaa !11
  store ptr %28, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !16
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.ntttcp_test, ptr %29, i32 0, i32 13
  %31 = load i8, ptr %30, align 8, !tbaa !17, !range !19, !noundef !20
  %32 = trunc i8 %31 to i1
  %33 = zext i1 %32 to i32
  %34 = icmp eq i32 %33, 0
  br i1 %34, label %35, label %99

35:                                               ; preds = %1
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = call i32 @create_sender_sync_socket(ptr noundef %36)
  store i32 %37, ptr %15, align 4, !tbaa !9
  %38 = load i32, ptr %15, align 4, !tbaa !9
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %41

40:                                               ; preds = %35
  call void @PRINT_ERR(ptr noundef @.str)
  store i32 -1000, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

41:                                               ; preds = %35
  %42 = load i32, ptr %15, align 4, !tbaa !9
  %43 = load ptr, ptr %3, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %43, i32 0, i32 6
  store i32 %42, ptr %44, align 8, !tbaa !21
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %45, i32 0, i32 6
  %47 = load i32, ptr %46, align 8, !tbaa !21
  %48 = call i32 @query_receiver_busy_state(i32 noundef %47)
  store i32 %48, ptr %15, align 4, !tbaa !9
  %49 = load i32, ptr %15, align 4, !tbaa !9
  %50 = icmp eq i32 %49, -1
  br i1 %50, label %51, label %52

51:                                               ; preds = %41
  call void @PRINT_ERR(ptr noundef @.str.1)
  store i32 -1000, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

52:                                               ; preds = %41
  %53 = load i32, ptr %15, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 1
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  call void @PRINT_ERR(ptr noundef @.str.2)
  store i32 -1000, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

56:                                               ; preds = %52
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %57, i32 0, i32 6
  %59 = load i32, ptr %58, align 8, !tbaa !21
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.ntttcp_test, ptr %60, i32 0, i32 22
  %62 = load i32, ptr %61, align 8, !tbaa !22
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ntttcp_test, ptr %63, i32 0, i32 23
  %65 = load i32, ptr %64, align 4, !tbaa !23
  %66 = add nsw i32 %62, %65
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.ntttcp_test, ptr %67, i32 0, i32 24
  %69 = load i32, ptr %68, align 8, !tbaa !24
  %70 = add nsw i32 %66, %69
  %71 = call i32 @negotiate_test_cycle_time(i32 noundef %59, i32 noundef %70)
  store i32 %71, ptr %15, align 4, !tbaa !9
  %72 = load i32, ptr %15, align 4, !tbaa !9
  %73 = icmp eq i32 %72, -1
  br i1 %73, label %74, label %75

74:                                               ; preds = %56
  call void @PRINT_ERR(ptr noundef @.str.3)
  store i32 -1000, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

75:                                               ; preds = %56
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.ntttcp_test, ptr %77, i32 0, i32 23
  %79 = load i32, ptr %78, align 4, !tbaa !23
  %80 = icmp ne i32 %76, %79
  br i1 %80, label %81, label %95

81:                                               ; preds = %75
  %82 = load i32, ptr %15, align 4, !tbaa !9
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %86

84:                                               ; preds = %81
  call void @PRINT_INFO(ptr noundef @.str.4)
  %85 = load ptr, ptr %3, align 8, !tbaa !5
  call void @set_ntttcp_test_endpoint_test_continuous(ptr noundef %85)
  br label %94

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

91:                                               ; preds = %86
  call void @PRINT_ERR(ptr noundef @.str.6)
  br label %92

92:                                               ; preds = %91, %86
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  %93 = load ptr, ptr %6, align 8, !tbaa !5
  call void @PRINT_INFO_FREE(ptr noundef %93)
  br label %94

94:                                               ; preds = %92, %84
  br label %95

95:                                               ; preds = %94, %75
  %96 = load i32, ptr %15, align 4, !tbaa !9
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %97, i32 0, i32 3
  store i32 %96, ptr %98, align 4, !tbaa !25
  br label %100

99:                                               ; preds = %1
  call void @PRINT_INFO(ptr noundef @.str.7)
  br label %100

100:                                              ; preds = %99, %95
  %101 = call i32 @pthread_attr_init(ptr noundef %7) #5
  %102 = call i32 @pthread_attr_setstacksize(ptr noundef %7, i64 noundef 65536) #5
  %103 = call i32 @gettimeofday(ptr noundef %17, ptr noundef null) #5
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %104

104:                                              ; preds = %203, %100
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = load ptr, ptr %5, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.ntttcp_test, ptr %106, i32 0, i32 8
  %108 = load i32, ptr %107, align 8, !tbaa !26
  %109 = icmp ult i32 %105, %108
  br i1 %109, label %110, label %206

110:                                              ; preds = %104
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %111

111:                                              ; preds = %199, %110
  %112 = load i32, ptr %8, align 4, !tbaa !9
  %113 = load ptr, ptr %5, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.ntttcp_test, ptr %113, i32 0, i32 11
  %115 = load i32, ptr %114, align 8, !tbaa !27
  %116 = icmp ult i32 %112, %115
  br i1 %116, label %117, label %202

117:                                              ; preds = %111
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %118, i32 0, i32 9
  %120 = load ptr, ptr %119, align 8, !tbaa !28
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = load ptr, ptr %5, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.ntttcp_test, ptr %122, i32 0, i32 11
  %124 = load i32, ptr %123, align 8, !tbaa !27
  %125 = mul i32 %121, %124
  %126 = load i32, ptr %8, align 4, !tbaa !9
  %127 = add i32 %125, %126
  %128 = zext i32 %127 to i64
  %129 = getelementptr inbounds ptr, ptr %120, i64 %128
  %130 = load ptr, ptr %129, align 8, !tbaa !5
  store ptr %130, ptr %13, align 8, !tbaa !5
  %131 = load ptr, ptr %5, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.ntttcp_test, ptr %131, i32 0, i32 16
  %133 = load i32, ptr %132, align 4, !tbaa !29
  %134 = load i32, ptr %9, align 4, !tbaa !9
  %135 = add i32 %133, %134
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ntttcp_stream_client, ptr %136, i32 0, i32 4
  store i32 %135, ptr %137, align 8, !tbaa !30
  %138 = load ptr, ptr %5, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.ntttcp_test, ptr %138, i32 0, i32 17
  %140 = load i32, ptr %139, align 8, !tbaa !32
  %141 = icmp ugt i32 %140, 0
  br i1 %141, label %142, label %160

142:                                              ; preds = %117
  %143 = load ptr, ptr %5, align 8, !tbaa !5
  %144 = getelementptr inbounds %struct.ntttcp_test, ptr %143, i32 0, i32 17
  %145 = load i32, ptr %144, align 8, !tbaa !32
  %146 = load i32, ptr %9, align 4, !tbaa !9
  %147 = load ptr, ptr %5, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.ntttcp_test, ptr %147, i32 0, i32 11
  %149 = load i32, ptr %148, align 8, !tbaa !27
  %150 = mul i32 %146, %149
  %151 = load i32, ptr %8, align 4, !tbaa !9
  %152 = add i32 %150, %151
  %153 = load ptr, ptr %5, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.ntttcp_test, ptr %153, i32 0, i32 12
  %155 = load i32, ptr %154, align 4, !tbaa !33
  %156 = mul i32 %152, %155
  %157 = add i32 %145, %156
  %158 = load ptr, ptr %13, align 8, !tbaa !5
  %159 = getelementptr inbounds %struct.ntttcp_stream_client, ptr %158, i32 0, i32 5
  store i32 %157, ptr %159, align 4, !tbaa !34
  br label %160

160:                                              ; preds = %142, %117
  %161 = load ptr, ptr %5, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.ntttcp_test, ptr %161, i32 0, i32 15
  %163 = load i32, ptr %162, align 8, !tbaa !35
  %164 = icmp eq i32 %163, 1
  br i1 %164, label %165, label %174

165:                                              ; preds = %160
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %166, i32 0, i32 11
  %168 = load ptr, ptr %167, align 8, !tbaa !36
  %169 = load i32, ptr %10, align 4, !tbaa !9
  %170 = zext i32 %169 to i64
  %171 = getelementptr inbounds i64, ptr %168, i64 %170
  %172 = load ptr, ptr %13, align 8, !tbaa !5
  %173 = call i32 @pthread_create(ptr noundef %171, ptr noundef %7, ptr noundef @run_ntttcp_sender_tcp_stream, ptr noundef %172) #5
  store i32 %173, ptr %14, align 4, !tbaa !9
  br label %183

174:                                              ; preds = %160
  %175 = load ptr, ptr %3, align 8, !tbaa !5
  %176 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %175, i32 0, i32 11
  %177 = load ptr, ptr %176, align 8, !tbaa !36
  %178 = load i32, ptr %10, align 4, !tbaa !9
  %179 = zext i32 %178 to i64
  %180 = getelementptr inbounds i64, ptr %177, i64 %179
  %181 = load ptr, ptr %13, align 8, !tbaa !5
  %182 = call i32 @pthread_create(ptr noundef %180, ptr noundef %7, ptr noundef @run_ntttcp_sender_udp_stream, ptr noundef %181) #5
  store i32 %182, ptr %14, align 4, !tbaa !9
  br label %183

183:                                              ; preds = %174, %165
  %184 = load i32, ptr %14, align 4, !tbaa !9
  %185 = icmp ne i32 %184, 0
  br i1 %185, label %186, label %195

186:                                              ; preds = %183
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  %187 = call ptr @__errno_location() #6
  %188 = load i32, ptr %187, align 4, !tbaa !9
  %189 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %6, ptr noundef @.str.8, i32 noundef %188) #5
  store i32 %189, ptr %22, align 4, !tbaa !9
  %190 = load i32, ptr %22, align 4, !tbaa !9
  %191 = icmp slt i32 %190, 0
  br i1 %191, label %192, label %193

192:                                              ; preds = %186
  call void @PRINT_ERR(ptr noundef @.str.6)
  br label %193

193:                                              ; preds = %192, %186
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  %194 = load ptr, ptr %6, align 8, !tbaa !5
  call void @PRINT_ERR_FREE(ptr noundef %194)
  store i32 -1003, ptr %4, align 4, !tbaa !9
  br label %199

195:                                              ; preds = %183
  %196 = load i32, ptr %10, align 4, !tbaa !9
  %197 = add i32 %196, 1
  store i32 %197, ptr %10, align 4, !tbaa !9
  br label %198

198:                                              ; preds = %195
  br label %199

199:                                              ; preds = %198, %193
  %200 = load i32, ptr %8, align 4, !tbaa !9
  %201 = add i32 %200, 1
  store i32 %201, ptr %8, align 4, !tbaa !9
  br label %111, !llvm.loop !37

202:                                              ; preds = %111
  br label %203

203:                                              ; preds = %202
  %204 = load i32, ptr %9, align 4, !tbaa !9
  %205 = add i32 %204, 1
  store i32 %205, ptr %9, align 4, !tbaa !9
  br label %104, !llvm.loop !39

206:                                              ; preds = %104
  %207 = call i32 @pthread_attr_destroy(ptr noundef %7) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %208 = load i32, ptr %10, align 4, !tbaa !9
  %209 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %6, ptr noundef @.str.9, i32 noundef %208) #5
  store i32 %209, ptr %23, align 4, !tbaa !9
  %210 = load i32, ptr %23, align 4, !tbaa !9
  %211 = icmp slt i32 %210, 0
  br i1 %211, label %212, label %213

212:                                              ; preds = %206
  call void @PRINT_ERR(ptr noundef @.str.6)
  br label %213

213:                                              ; preds = %212, %206
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  %214 = load ptr, ptr %6, align 8, !tbaa !5
  call void @PRINT_INFO_FREE(ptr noundef %214)
  %215 = load ptr, ptr %5, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.ntttcp_test, ptr %215, i32 0, i32 8
  %217 = load i32, ptr %216, align 8, !tbaa !26
  %218 = load ptr, ptr %5, align 8, !tbaa !5
  %219 = getelementptr inbounds %struct.ntttcp_test, ptr %218, i32 0, i32 11
  %220 = load i32, ptr %219, align 8, !tbaa !27
  %221 = mul i32 %217, %220
  %222 = load ptr, ptr %5, align 8, !tbaa !5
  %223 = getelementptr inbounds %struct.ntttcp_test, ptr %222, i32 0, i32 12
  %224 = load i32, ptr %223, align 4, !tbaa !33
  %225 = mul i32 %221, %224
  store i32 %225, ptr %12, align 4, !tbaa !9
  br label %226

226:                                              ; preds = %296, %213
  %227 = load i64, ptr %19, align 8, !tbaa !16
  %228 = icmp slt i64 %227, 1200000000
  br i1 %228, label %229, label %297

229:                                              ; preds = %226
  store i32 0, ptr %11, align 4, !tbaa !9
  %230 = call i32 @usleep(i32 noundef 500)
  %231 = call i32 @gettimeofday(ptr noundef %18, ptr noundef null) #5
  %232 = getelementptr inbounds %struct.timeval, ptr %18, i32 0, i32 0
  %233 = load i64, ptr %232, align 8, !tbaa !40
  %234 = getelementptr inbounds %struct.timeval, ptr %17, i32 0, i32 0
  %235 = load i64, ptr %234, align 8, !tbaa !40
  %236 = sub nsw i64 %233, %235
  %237 = mul nsw i64 %236, 1000000
  %238 = getelementptr inbounds %struct.timeval, ptr %18, i32 0, i32 1
  %239 = load i64, ptr %238, align 8, !tbaa !41
  %240 = add nsw i64 %237, %239
  %241 = getelementptr inbounds %struct.timeval, ptr %17, i32 0, i32 1
  %242 = load i64, ptr %241, align 8, !tbaa !41
  %243 = sub nsw i64 %240, %242
  store i64 %243, ptr %19, align 8, !tbaa !16
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %244

244:                                              ; preds = %280, %229
  %245 = load i32, ptr %9, align 4, !tbaa !9
  %246 = load ptr, ptr %5, align 8, !tbaa !5
  %247 = getelementptr inbounds %struct.ntttcp_test, ptr %246, i32 0, i32 8
  %248 = load i32, ptr %247, align 8, !tbaa !26
  %249 = icmp ult i32 %245, %248
  br i1 %249, label %250, label %283

250:                                              ; preds = %244
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %251

251:                                              ; preds = %276, %250
  %252 = load i32, ptr %8, align 4, !tbaa !9
  %253 = load ptr, ptr %5, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.ntttcp_test, ptr %253, i32 0, i32 11
  %255 = load i32, ptr %254, align 8, !tbaa !27
  %256 = icmp ult i32 %252, %255
  br i1 %256, label %257, label %279

257:                                              ; preds = %251
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %258, i32 0, i32 9
  %260 = load ptr, ptr %259, align 8, !tbaa !28
  %261 = load i32, ptr %9, align 4, !tbaa !9
  %262 = load ptr, ptr %5, align 8, !tbaa !5
  %263 = getelementptr inbounds %struct.ntttcp_test, ptr %262, i32 0, i32 11
  %264 = load i32, ptr %263, align 8, !tbaa !27
  %265 = mul i32 %261, %264
  %266 = load i32, ptr %8, align 4, !tbaa !9
  %267 = add i32 %265, %266
  %268 = zext i32 %267 to i64
  %269 = getelementptr inbounds ptr, ptr %260, i64 %268
  %270 = load ptr, ptr %269, align 8, !tbaa !5
  store ptr %270, ptr %13, align 8, !tbaa !5
  %271 = load ptr, ptr %13, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.ntttcp_stream_client, ptr %271, i32 0, i32 16
  %273 = load i32, ptr %272, align 4, !tbaa !42
  %274 = load i32, ptr %11, align 4, !tbaa !9
  %275 = add i32 %274, %273
  store i32 %275, ptr %11, align 4, !tbaa !9
  br label %276

276:                                              ; preds = %257
  %277 = load i32, ptr %8, align 4, !tbaa !9
  %278 = add i32 %277, 1
  store i32 %278, ptr %8, align 4, !tbaa !9
  br label %251, !llvm.loop !43

279:                                              ; preds = %251
  br label %280

280:                                              ; preds = %279
  %281 = load i32, ptr %9, align 4, !tbaa !9
  %282 = add i32 %281, 1
  store i32 %282, ptr %9, align 4, !tbaa !9
  br label %244, !llvm.loop !44

283:                                              ; preds = %244
  %284 = load i32, ptr %11, align 4, !tbaa !9
  %285 = load i32, ptr %12, align 4, !tbaa !9
  %286 = icmp eq i32 %284, %285
  br i1 %286, label %287, label %296

287:                                              ; preds = %283
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %288 = load i32, ptr %11, align 4, !tbaa !9
  %289 = load i64, ptr %19, align 8, !tbaa !16
  %290 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %6, ptr noundef @.str.10, i32 noundef %288, i64 noundef %289) #5
  store i32 %290, ptr %24, align 4, !tbaa !9
  %291 = load i32, ptr %24, align 4, !tbaa !9
  %292 = icmp slt i32 %291, 0
  br i1 %292, label %293, label %294

293:                                              ; preds = %287
  call void @PRINT_ERR(ptr noundef @.str.6)
  br label %294

294:                                              ; preds = %293, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  %295 = load ptr, ptr %6, align 8, !tbaa !5
  call void @PRINT_INFO_FREE(ptr noundef %295)
  br label %297

296:                                              ; preds = %283
  br label %226, !llvm.loop !45

297:                                              ; preds = %294, %226
  %298 = load i32, ptr %11, align 4, !tbaa !9
  %299 = load i32, ptr %12, align 4, !tbaa !9
  %300 = icmp ne i32 %298, %299
  br i1 %300, label %301, label %311

301:                                              ; preds = %297
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %302 = load i64, ptr %19, align 8, !tbaa !16
  %303 = load i32, ptr %11, align 4, !tbaa !9
  %304 = load i32, ptr %12, align 4, !tbaa !9
  %305 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef %6, ptr noundef @.str.11, i64 noundef %302, i32 noundef %303, i32 noundef %304) #5
  store i32 %305, ptr %25, align 4, !tbaa !9
  %306 = load i32, ptr %25, align 4, !tbaa !9
  %307 = icmp slt i32 %306, 0
  br i1 %307, label %308, label %309

308:                                              ; preds = %301
  call void @PRINT_ERR(ptr noundef @.str.6)
  br label %309

309:                                              ; preds = %308, %301
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  %310 = load ptr, ptr %6, align 8, !tbaa !5
  call void @PRINT_ERR_FREE(ptr noundef %310)
  br label %311

311:                                              ; preds = %309, %297
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.ntttcp_test, ptr %312, i32 0, i32 13
  %314 = load i8, ptr %313, align 8, !tbaa !17, !range !19, !noundef !20
  %315 = trunc i8 %314 to i1
  %316 = zext i1 %315 to i32
  %317 = icmp eq i32 %316, 0
  br i1 %317, label %318, label %339

318:                                              ; preds = %311
  %319 = load ptr, ptr %3, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %319, i32 0, i32 6
  %321 = load i32, ptr %320, align 8, !tbaa !21
  %322 = load ptr, ptr %3, align 8, !tbaa !5
  %323 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %322, i32 0, i32 1
  %324 = load ptr, ptr %323, align 8, !tbaa !11
  %325 = getelementptr inbounds %struct.ntttcp_test, ptr %324, i32 0, i32 3
  %326 = load i8, ptr %325, align 1, !tbaa !46, !range !19, !noundef !20
  %327 = trunc i8 %326 to i1
  %328 = zext i1 %327 to i64
  %329 = select i1 %327, i32 76, i32 82
  %330 = call i32 @request_to_start(i32 noundef %321, i32 noundef %329)
  store i32 %330, ptr %15, align 4, !tbaa !9
  %331 = load i32, ptr %15, align 4, !tbaa !9
  %332 = icmp eq i32 %331, -1
  br i1 %332, label %333, label %334

333:                                              ; preds = %318
  call void @PRINT_ERR(ptr noundef @.str.12)
  store i32 -1000, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

334:                                              ; preds = %318
  %335 = load i32, ptr %15, align 4, !tbaa !9
  %336 = icmp eq i32 %335, 0
  br i1 %336, label %337, label %338

337:                                              ; preds = %334
  call void @PRINT_ERR(ptr noundef @.str.13)
  store i32 -1000, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

338:                                              ; preds = %334
  call void @PRINT_INFO(ptr noundef @.str.14)
  br label %339

339:                                              ; preds = %338, %311
  call void @turn_on_light()
  %340 = load ptr, ptr %3, align 8, !tbaa !5
  %341 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %340, i32 0, i32 3
  %342 = load i32, ptr %341, align 4, !tbaa !25
  %343 = icmp eq i32 %342, 0
  br i1 %343, label %344, label %347

344:                                              ; preds = %339
  %345 = call i32 @sleep(i32 noundef -1)
  %346 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %346, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

347:                                              ; preds = %339
  %348 = load ptr, ptr %3, align 8, !tbaa !5
  call void @run_ntttcp_throughput_management(ptr noundef %348)
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %349

349:                                              ; preds = %365, %347
  %350 = load i32, ptr %8, align 4, !tbaa !9
  %351 = load i32, ptr %10, align 4, !tbaa !9
  %352 = icmp ult i32 %350, %351
  br i1 %352, label %353, label %368

353:                                              ; preds = %349
  %354 = load ptr, ptr %3, align 8, !tbaa !5
  %355 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %354, i32 0, i32 11
  %356 = load ptr, ptr %355, align 8, !tbaa !36
  %357 = load i32, ptr %8, align 4, !tbaa !9
  %358 = zext i32 %357 to i64
  %359 = getelementptr inbounds i64, ptr %356, i64 %358
  %360 = load i64, ptr %359, align 8, !tbaa !16
  %361 = call i32 @pthread_join(i64 noundef %360, ptr noundef %16)
  %362 = icmp ne i32 %361, 0
  br i1 %362, label %363, label %364

363:                                              ; preds = %353
  call void @PRINT_ERR(ptr noundef @.str.15)
  br label %365

364:                                              ; preds = %353
  br label %365

365:                                              ; preds = %364, %363
  %366 = load i32, ptr %8, align 4, !tbaa !9
  %367 = add i32 %366, 1
  store i32 %367, ptr %8, align 4, !tbaa !9
  br label %349, !llvm.loop !47

368:                                              ; preds = %349
  %369 = load ptr, ptr %3, align 8, !tbaa !5
  %370 = call i32 @process_test_results(ptr noundef %369)
  %371 = load ptr, ptr %3, align 8, !tbaa !5
  call void @print_test_results(ptr noundef %371)
  %372 = load i32, ptr %4, align 4, !tbaa !9
  store i32 %372, ptr %2, align 4
  store i32 1, ptr %20, align 4
  br label %373

373:                                              ; preds = %368, %344, %337, %333, %74, %55, %51, %40
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  %374 = load i32, ptr %2, align 4
  ret i32 %374
}

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

declare i32 @create_sender_sync_socket(ptr noundef) #2

declare void @PRINT_ERR(ptr noundef) #2

declare i32 @query_receiver_busy_state(i32 noundef) #2

declare i32 @negotiate_test_cycle_time(i32 noundef, i32 noundef) #2

declare void @PRINT_INFO(ptr noundef) #2

declare void @set_ntttcp_test_endpoint_test_continuous(ptr noundef) #2

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

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

declare void @PRINT_INFO_FREE(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @pthread_attr_init(ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_attr_setstacksize(ptr noundef, i64 noundef) #3

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

declare ptr @run_ntttcp_sender_tcp_stream(ptr noundef) #2

declare ptr @run_ntttcp_sender_udp_stream(ptr noundef) #2

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

declare void @PRINT_ERR_FREE(ptr noundef) #2

; Function Attrs: nounwind
declare i32 @pthread_attr_destroy(ptr noundef) #3

declare i32 @usleep(i32 noundef) #2

declare i32 @request_to_start(i32 noundef, i32 noundef) #2

declare void @turn_on_light() #2

declare i32 @sleep(i32 noundef) #2

declare void @run_ntttcp_throughput_management(ptr noundef) #2

declare i32 @pthread_join(i64 noundef, ptr noundef) #2

declare i32 @process_test_results(ptr noundef) #2

declare void @print_test_results(ptr noundef) #2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { 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 #5 = { nounwind }
attributes #6 = { 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, !6, i64 8}
!12 = !{!"ntttcp_test_endpoint", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !13, i64 24, !13, 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}
!13 = !{!"timeval", !14, i64 0, !14, i64 8}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_Bool", !7, i64 0}
!16 = !{!14, !14, i64 0}
!17 = !{!18, !15, i64 40}
!18 = !{!"ntttcp_test", !15, i64 0, !15, i64 1, !15, i64 2, !15, i64 3, !15, i64 4, !15, i64 5, !15, i64 6, !6, i64 8, !10, i64 16, !10, i64 20, !6, i64 24, !10, i64 32, !10, i64 36, !15, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !10, i64 96, !10, i64 100, !10, i64 104, !15, i64 108, !6, i64 112, !6, i64 120, !15, i64 128, !6, i64 136, !15, i64 144, !6, i64 152, !15, i64 160, !6, i64 168, !15, i64 176, !15, i64 177}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!12, !10, i64 56}
!22 = !{!18, !10, i64 96}
!23 = !{!18, !10, i64 100}
!24 = !{!18, !10, i64 104}
!25 = !{!12, !10, i64 20}
!26 = !{!18, !10, i64 16}
!27 = !{!18, !10, i64 32}
!28 = !{!12, !6, i64 72}
!29 = !{!18, !10, i64 52}
!30 = !{!31, !10, i64 24}
!31 = !{!"ntttcp_stream_client", !6, i64 0, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !15, i64 64, !15, i64 65, !15, i64 66, !15, i64 67, !15, i64 68, !10, i64 72, !10, i64 76, !14, i64 80}
!32 = !{!18, !10, i64 56}
!33 = !{!18, !10, i64 36}
!34 = !{!31, !10, i64 28}
!35 = !{!18, !10, i64 48}
!36 = !{!12, !6, i64 88}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !38}
!40 = !{!13, !14, i64 0}
!41 = !{!13, !14, i64 8}
!42 = !{!31, !10, i64 76}
!43 = distinct !{!43, !38}
!44 = distinct !{!44, !38}
!45 = distinct !{!45, !38}
!46 = !{!18, !15, i64 3}
!47 = distinct !{!47, !38}


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

%union.pthread_attr_t = type { i64, [48 x i8] }
%struct.timeval = type { i64, i64 }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [42 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [50 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [19 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [32 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1003, 1) i32 @run_ntttcp_sender(ptr noundef %0) local_unnamed_addr #0 {
  %2 = alloca ptr, align 8
  %3 = alloca %union.pthread_attr_t, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.timeval, align 8
  %6 = alloca %struct.timeval, align 8
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #6
  store ptr null, ptr %2, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %3) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %9 = getelementptr inbounds i8, ptr %8, i64 40
  %10 = load i8, ptr %9, align 8, !tbaa !15, !range !17, !noundef !18
  %11 = icmp eq i8 %10, 0
  br i1 %11, label %12, label %47

12:                                               ; preds = %1
  %13 = tail call i32 @create_sender_sync_socket(ptr noundef nonnull %0) #6
  %14 = icmp eq i32 %13, 0
  br i1 %14, label %15, label %16

15:                                               ; preds = %12
  tail call void @PRINT_ERR(ptr noundef nonnull @.str) #6
  br label %226

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 56
  store i32 %13, ptr %17, align 8, !tbaa !19
  %18 = tail call i32 @query_receiver_busy_state(i32 noundef %13) #6
  switch i32 %18, label %21 [
    i32 -1, label %19
    i32 1, label %20
  ]

19:                                               ; preds = %16
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.1) #6
  br label %226

20:                                               ; preds = %16
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.2) #6
  br label %226

21:                                               ; preds = %16
  %22 = load i32, ptr %17, align 8, !tbaa !19
  %23 = getelementptr inbounds i8, ptr %8, i64 96
  %24 = load i32, ptr %23, align 8, !tbaa !20
  %25 = getelementptr inbounds i8, ptr %8, i64 100
  %26 = load i32, ptr %25, align 4, !tbaa !21
  %27 = add nsw i32 %26, %24
  %28 = getelementptr inbounds i8, ptr %8, i64 104
  %29 = load i32, ptr %28, align 8, !tbaa !22
  %30 = add nsw i32 %27, %29
  %31 = tail call i32 @negotiate_test_cycle_time(i32 noundef %22, i32 noundef %30) #6
  %32 = icmp eq i32 %31, -1
  br i1 %32, label %33, label %34

33:                                               ; preds = %21
  tail call void @PRINT_ERR(ptr noundef nonnull @.str.3) #6
  br label %226

34:                                               ; preds = %21
  %35 = load i32, ptr %25, align 4, !tbaa !21
  %.not = icmp eq i32 %31, %35
  br i1 %.not, label %45, label %36

36:                                               ; preds = %34
  %37 = icmp eq i32 %31, 0
  br i1 %37, label %38, label %39

38:                                               ; preds = %36
  tail call void @PRINT_INFO(ptr noundef nonnull @.str.4) #6
  tail call void @set_ntttcp_test_endpoint_test_continuous(ptr noundef nonnull %0) #6
  br label %45

39:                                               ; preds = %36
  %40 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.5, i32 noundef %31) #6
  %41 = icmp slt i32 %40, 0
  br i1 %41, label %42, label %43

42:                                               ; preds = %39
  call void @PRINT_ERR(ptr noundef nonnull @.str.6) #6
  br label %43

43:                                               ; preds = %42, %39
  %44 = load ptr, ptr %2, align 8, !tbaa !14
  call void @PRINT_INFO_FREE(ptr noundef %44) #6
  br label %45

45:                                               ; preds = %38, %43, %34
  %46 = getelementptr inbounds i8, ptr %0, i64 20
  store i32 %31, ptr %46, align 4, !tbaa !23
  br label %48

47:                                               ; preds = %1
  tail call void @PRINT_INFO(ptr noundef nonnull @.str.7) #6
  br label %48

48:                                               ; preds = %47, %45
  %49 = call i32 @pthread_attr_init(ptr noundef nonnull %3) #6
  %50 = call i32 @pthread_attr_setstacksize(ptr noundef nonnull %3, i64 noundef 65536) #6
  %51 = call i32 @gettimeofday(ptr noundef nonnull %5, ptr noundef null) #6
  %52 = getelementptr inbounds i8, ptr %8, i64 16
  %53 = load i32, ptr %52, align 8, !tbaa !24
  %.not153 = icmp eq i32 %53, 0
  br i1 %.not153, label %._crit_edge135, label %.preheader124.lr.ph

.preheader124.lr.ph:                              ; preds = %48
  %54 = getelementptr inbounds i8, ptr %8, i64 32
  %55 = getelementptr inbounds i8, ptr %0, i64 72
  %56 = getelementptr inbounds i8, ptr %8, i64 52
  %57 = getelementptr inbounds i8, ptr %8, i64 56
  %58 = getelementptr inbounds i8, ptr %8, i64 36
  %59 = getelementptr inbounds i8, ptr %8, i64 48
  %60 = getelementptr inbounds i8, ptr %0, i64 88
  %61 = load i32, ptr %54, align 8, !tbaa !25
  %.not154 = icmp eq i32 %61, 0
  br i1 %.not154, label %._crit_edge135, label %.preheader124

.preheader124:                                    ; preds = %.preheader124.lr.ph, %._crit_edge
  %62 = phi i32 [ %101, %._crit_edge ], [ %53, %.preheader124.lr.ph ]
  %63 = phi i32 [ %102, %._crit_edge ], [ %61, %.preheader124.lr.ph ]
  %.097134 = phi i32 [ %.1.lcssa, %._crit_edge ], [ 0, %.preheader124.lr.ph ]
  %.0101133 = phi i32 [ %103, %._crit_edge ], [ 0, %.preheader124.lr.ph ]
  %.0103132 = phi i32 [ %.1104.lcssa, %._crit_edge ], [ 0, %.preheader124.lr.ph ]
  %.not155 = icmp eq i32 %63, 0
  br i1 %.not155, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader124, %97
  %64 = phi i32 [ %99, %97 ], [ %63, %.preheader124 ]
  %.1130 = phi i32 [ %.2, %97 ], [ %.097134, %.preheader124 ]
  %.098129 = phi i32 [ %98, %97 ], [ 0, %.preheader124 ]
  %.1104128 = phi i32 [ %.2105, %97 ], [ %.0103132, %.preheader124 ]
  %65 = load ptr, ptr %55, align 8, !tbaa !26
  %66 = mul i32 %64, %.0101133
  %67 = add i32 %66, %.098129
  %68 = zext i32 %67 to i64
  %69 = getelementptr inbounds ptr, ptr %65, i64 %68
  %70 = load ptr, ptr %69, align 8, !tbaa !14
  %71 = load i32, ptr %56, align 4, !tbaa !27
  %72 = add i32 %71, %.0101133
  %73 = getelementptr inbounds i8, ptr %70, i64 24
  store i32 %72, ptr %73, align 8, !tbaa !28
  %74 = load i32, ptr %57, align 8, !tbaa !30
  %.not122 = icmp eq i32 %74, 0
  br i1 %.not122, label %80, label %75

75:                                               ; preds = %.lr.ph
  %76 = load i32, ptr %58, align 4, !tbaa !31
  %77 = mul i32 %76, %67
  %78 = add i32 %77, %74
  %79 = getelementptr inbounds i8, ptr %70, i64 28
  store i32 %78, ptr %79, align 4, !tbaa !32
  br label %80

80:                                               ; preds = %75, %.lr.ph
  %81 = load i32, ptr %59, align 8, !tbaa !33
  %82 = icmp eq i32 %81, 1
  %83 = load ptr, ptr %60, align 8, !tbaa !34
  %84 = zext i32 %.1104128 to i64
  %85 = getelementptr inbounds i64, ptr %83, i64 %84
  %run_ntttcp_sender_tcp_stream.run_ntttcp_sender_udp_stream = select i1 %82, ptr @run_ntttcp_sender_tcp_stream, ptr @run_ntttcp_sender_udp_stream
  %86 = call i32 @pthread_create(ptr noundef %85, ptr noundef nonnull %3, ptr noundef nonnull %run_ntttcp_sender_tcp_stream.run_ntttcp_sender_udp_stream, ptr noundef nonnull %70) #6
  %.not123 = icmp eq i32 %86, 0
  br i1 %.not123, label %95, label %87

87:                                               ; preds = %80
  %88 = tail call ptr @__errno_location() #7
  %89 = load i32, ptr %88, align 4, !tbaa !35
  %90 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.8, i32 noundef %89) #6
  %91 = icmp slt i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %87
  call void @PRINT_ERR(ptr noundef nonnull @.str.6) #6
  br label %93

93:                                               ; preds = %92, %87
  %94 = load ptr, ptr %2, align 8, !tbaa !14
  call void @PRINT_ERR_FREE(ptr noundef %94) #6
  br label %97

95:                                               ; preds = %80
  %96 = add i32 %.1104128, 1
  br label %97

97:                                               ; preds = %95, %93
  %.2105 = phi i32 [ %.1104128, %93 ], [ %96, %95 ]
  %.2 = phi i32 [ -1003, %93 ], [ %.1130, %95 ]
  %98 = add nuw i32 %.098129, 1
  %99 = load i32, ptr %54, align 8, !tbaa !25
  %100 = icmp ult i32 %98, %99
  br i1 %100, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !36

._crit_edge.loopexit:                             ; preds = %97
  %.pre = load i32, ptr %52, align 8, !tbaa !24
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader124
  %101 = phi i32 [ %62, %.preheader124 ], [ %.pre, %._crit_edge.loopexit ]
  %102 = phi i32 [ 0, %.preheader124 ], [ %99, %._crit_edge.loopexit ]
  %.1104.lcssa = phi i32 [ %.0103132, %.preheader124 ], [ %.2105, %._crit_edge.loopexit ]
  %.1.lcssa = phi i32 [ %.097134, %.preheader124 ], [ %.2, %._crit_edge.loopexit ]
  %103 = add nuw i32 %.0101133, 1
  %104 = icmp ult i32 %103, %101
  br i1 %104, label %.preheader124, label %._crit_edge135, !llvm.loop !38

._crit_edge135:                                   ; preds = %._crit_edge, %.preheader124.lr.ph, %48
  %.0103.lcssa = phi i32 [ 0, %48 ], [ 0, %.preheader124.lr.ph ], [ %.1104.lcssa, %._crit_edge ]
  %.097.lcssa = phi i32 [ 0, %48 ], [ 0, %.preheader124.lr.ph ], [ %.1.lcssa, %._crit_edge ]
  %105 = call i32 @pthread_attr_destroy(ptr noundef nonnull %3) #6
  %106 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.9, i32 noundef %.0103.lcssa) #6
  %107 = icmp slt i32 %106, 0
  br i1 %107, label %108, label %109

108:                                              ; preds = %._crit_edge135
  call void @PRINT_ERR(ptr noundef nonnull @.str.6) #6
  br label %109

109:                                              ; preds = %108, %._crit_edge135
  %110 = load ptr, ptr %2, align 8, !tbaa !14
  call void @PRINT_INFO_FREE(ptr noundef %110) #6
  %111 = load i32, ptr %52, align 8, !tbaa !24
  %112 = getelementptr inbounds i8, ptr %8, i64 32
  %113 = load i32, ptr %112, align 8, !tbaa !25
  %114 = mul i32 %113, %111
  %115 = getelementptr inbounds i8, ptr %8, i64 36
  %116 = load i32, ptr %115, align 4, !tbaa !31
  %117 = mul i32 %114, %116
  %118 = load i64, ptr %5, align 8
  %119 = getelementptr inbounds i8, ptr %6, i64 8
  %120 = getelementptr inbounds i8, ptr %5, i64 8
  %121 = load i64, ptr %120, align 8
  %122 = getelementptr inbounds i8, ptr %0, i64 72
  br label %125

123:                                              ; preds = %._crit_edge146
  %124 = icmp slt i64 %133, 1200000000
  br i1 %124, label %125, label %.loopexit, !llvm.loop !40

125:                                              ; preds = %109, %123
  %126 = call i32 @usleep(i32 noundef 500) #6
  %127 = call i32 @gettimeofday(ptr noundef nonnull %6, ptr noundef null) #6
  %128 = load i64, ptr %6, align 8, !tbaa !41
  %129 = sub nsw i64 %128, %118
  %130 = mul nsw i64 %129, 1000000
  %131 = load i64, ptr %119, align 8, !tbaa !42
  %132 = add nsw i64 %130, %131
  %133 = sub i64 %132, %121
  %134 = load i32, ptr %52, align 8, !tbaa !24
  %.not156 = icmp eq i32 %134, 0
  br i1 %.not156, label %._crit_edge146, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %125
  %135 = load i32, ptr %112, align 8, !tbaa !25
  %.not157 = icmp eq i32 %135, 0
  br i1 %.not157, label %._crit_edge146, label %.preheader.lr.ph.split.us

.preheader.lr.ph.split.us:                        ; preds = %.preheader.lr.ph
  %136 = load ptr, ptr %122, align 8, !tbaa !26
  %wide.trip.count = zext i32 %135 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %137 = icmp ult i32 %135, 4
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader.us

.preheader.us:                                    ; preds = %._crit_edge142.us, %.preheader.lr.ph.split.us
  %.1102145.us = phi i32 [ 0, %.preheader.lr.ph.split.us ], [ %182, %._crit_edge142.us ]
  %.1110144.us = phi i32 [ 0, %.preheader.lr.ph.split.us ], [ %.lcssa, %._crit_edge142.us ]
  %138 = mul i32 %135, %.1102145.us
  br i1 %137, label %._crit_edge142.us.unr-lcssa, label %.preheader.us.new

.preheader.us.new:                                ; preds = %.preheader.us, %.preheader.us.new
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %.2111139.us = phi i32 [ %173, %.preheader.us.new ], [ %.1110144.us, %.preheader.us ]
  %niter = phi i64 [ %niter.next.3, %.preheader.us.new ], [ 0, %.preheader.us ]
  %139 = trunc nuw i64 %indvars.iv to i32
  %140 = add i32 %138, %139
  %141 = zext i32 %140 to i64
  %142 = getelementptr inbounds ptr, ptr %136, i64 %141
  %143 = load ptr, ptr %142, align 8, !tbaa !14
  %144 = getelementptr inbounds i8, ptr %143, i64 76
  %145 = load i32, ptr %144, align 4, !tbaa !43
  %146 = add i32 %145, %.2111139.us
  %147 = trunc i64 %indvars.iv to i32
  %148 = or disjoint i32 %147, 1
  %149 = add i32 %138, %148
  %150 = zext i32 %149 to i64
  %151 = getelementptr inbounds ptr, ptr %136, i64 %150
  %152 = load ptr, ptr %151, align 8, !tbaa !14
  %153 = getelementptr inbounds i8, ptr %152, i64 76
  %154 = load i32, ptr %153, align 4, !tbaa !43
  %155 = add i32 %154, %146
  %156 = trunc i64 %indvars.iv to i32
  %157 = or disjoint i32 %156, 2
  %158 = add i32 %138, %157
  %159 = zext i32 %158 to i64
  %160 = getelementptr inbounds ptr, ptr %136, i64 %159
  %161 = load ptr, ptr %160, align 8, !tbaa !14
  %162 = getelementptr inbounds i8, ptr %161, i64 76
  %163 = load i32, ptr %162, align 4, !tbaa !43
  %164 = add i32 %163, %155
  %165 = trunc i64 %indvars.iv to i32
  %166 = or disjoint i32 %165, 3
  %167 = add i32 %138, %166
  %168 = zext i32 %167 to i64
  %169 = getelementptr inbounds ptr, ptr %136, i64 %168
  %170 = load ptr, ptr %169, align 8, !tbaa !14
  %171 = getelementptr inbounds i8, ptr %170, i64 76
  %172 = load i32, ptr %171, align 4, !tbaa !43
  %173 = add i32 %172, %164
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge142.us.unr-lcssa, label %.preheader.us.new, !llvm.loop !44

._crit_edge142.us.unr-lcssa:                      ; preds = %.preheader.us.new, %.preheader.us
  %.lcssa.ph = phi i32 [ poison, %.preheader.us ], [ %173, %.preheader.us.new ]
  %indvars.iv.unr = phi i64 [ 0, %.preheader.us ], [ %indvars.iv.next.3, %.preheader.us.new ]
  %.2111139.us.unr = phi i32 [ %.1110144.us, %.preheader.us ], [ %173, %.preheader.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge142.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge142.us.unr-lcssa, %.epil.preheader
  %indvars.iv.epil = phi i64 [ %indvars.iv.next.epil, %.epil.preheader ], [ %indvars.iv.unr, %._crit_edge142.us.unr-lcssa ]
  %.2111139.us.epil = phi i32 [ %181, %.epil.preheader ], [ %.2111139.us.unr, %._crit_edge142.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge142.us.unr-lcssa ]
  %174 = trunc nuw i64 %indvars.iv.epil to i32
  %175 = add i32 %138, %174
  %176 = zext i32 %175 to i64
  %177 = getelementptr inbounds ptr, ptr %136, i64 %176
  %178 = load ptr, ptr %177, align 8, !tbaa !14
  %179 = getelementptr inbounds i8, ptr %178, i64 76
  %180 = load i32, ptr %179, align 4, !tbaa !43
  %181 = add i32 %180, %.2111139.us.epil
  %indvars.iv.next.epil = add nuw nsw i64 %indvars.iv.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge142.us, label %.epil.preheader, !llvm.loop !45

._crit_edge142.us:                                ; preds = %.epil.preheader, %._crit_edge142.us.unr-lcssa
  %.lcssa = phi i32 [ %.lcssa.ph, %._crit_edge142.us.unr-lcssa ], [ %181, %.epil.preheader ]
  %182 = add nuw i32 %.1102145.us, 1
  %exitcond166.not = icmp eq i32 %182, %134
  br i1 %exitcond166.not, label %._crit_edge146, label %.preheader.us, !llvm.loop !47

._crit_edge146:                                   ; preds = %._crit_edge142.us, %.preheader.lr.ph, %125
  %.1110.lcssa = phi i32 [ 0, %125 ], [ 0, %.preheader.lr.ph ], [ %.lcssa, %._crit_edge142.us ]
  %183 = icmp eq i32 %.1110.lcssa, %117
  br i1 %183, label %184, label %123, !llvm.loop !40

184:                                              ; preds = %._crit_edge146
  %185 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.10, i32 noundef %117, i64 noundef %133) #6
  %186 = icmp slt i32 %185, 0
  br i1 %186, label %187, label %.loopexit.thread

187:                                              ; preds = %184
  call void @PRINT_ERR(ptr noundef nonnull @.str.6) #6
  br label %.loopexit.thread

.loopexit.thread:                                 ; preds = %184, %187
  %188 = load ptr, ptr %2, align 8, !tbaa !14
  call void @PRINT_INFO_FREE(ptr noundef %188) #6
  br label %195

.loopexit:                                        ; preds = %123
  %.not120 = icmp eq i32 %.1110.lcssa, %117
  br i1 %.not120, label %195, label %189

189:                                              ; preds = %.loopexit
  %190 = call i32 (ptr, ptr, ...) @asprintf(ptr noundef nonnull %2, ptr noundef nonnull @.str.11, i64 noundef %133, i32 noundef %.1110.lcssa, i32 noundef %117) #6
  %191 = icmp slt i32 %190, 0
  br i1 %191, label %192, label %193

192:                                              ; preds = %189
  call void @PRINT_ERR(ptr noundef nonnull @.str.6) #6
  br label %193

193:                                              ; preds = %192, %189
  %194 = load ptr, ptr %2, align 8, !tbaa !14
  call void @PRINT_ERR_FREE(ptr noundef %194) #6
  br label %195

195:                                              ; preds = %.loopexit.thread, %193, %.loopexit
  %196 = load i8, ptr %9, align 8, !tbaa !15, !range !17, !noundef !18
  %197 = icmp eq i8 %196, 0
  br i1 %197, label %198, label %210

198:                                              ; preds = %195
  %199 = getelementptr inbounds i8, ptr %0, i64 56
  %200 = load i32, ptr %199, align 8, !tbaa !19
  %201 = load ptr, ptr %7, align 8, !tbaa !5
  %202 = getelementptr inbounds i8, ptr %201, i64 3
  %203 = load i8, ptr %202, align 1, !tbaa !48, !range !17, !noundef !18
  %204 = trunc nuw i8 %203 to i1
  %205 = select i1 %204, i32 76, i32 82
  %206 = call i32 @request_to_start(i32 noundef %200, i32 noundef %205) #6
  switch i32 %206, label %209 [
    i32 -1, label %207
    i32 0, label %208
  ]

207:                                              ; preds = %198
  call void @PRINT_ERR(ptr noundef nonnull @.str.12) #6
  br label %226

208:                                              ; preds = %198
  call void @PRINT_ERR(ptr noundef nonnull @.str.13) #6
  br label %226

209:                                              ; preds = %198
  call void @PRINT_INFO(ptr noundef nonnull @.str.14) #6
  br label %210

210:                                              ; preds = %209, %195
  call void @turn_on_light() #6
  %211 = getelementptr inbounds i8, ptr %0, i64 20
  %212 = load i32, ptr %211, align 4, !tbaa !23
  %213 = icmp eq i32 %212, 0
  br i1 %213, label %214, label %216

214:                                              ; preds = %210
  %215 = call i32 @sleep(i32 noundef -1) #6
  br label %226

216:                                              ; preds = %210
  call void @run_ntttcp_throughput_management(ptr noundef nonnull %0) #6
  %.not158 = icmp eq i32 %.0103.lcssa, 0
  br i1 %.not158, label %._crit_edge152, label %.lr.ph151

.lr.ph151:                                        ; preds = %216
  %217 = getelementptr inbounds i8, ptr %0, i64 88
  %wide.trip.count170 = zext i32 %.0103.lcssa to i64
  br label %218

218:                                              ; preds = %.lr.ph151, %224
  %indvars.iv167 = phi i64 [ 0, %.lr.ph151 ], [ %indvars.iv.next168, %224 ]
  %219 = load ptr, ptr %217, align 8, !tbaa !34
  %220 = getelementptr inbounds i64, ptr %219, i64 %indvars.iv167
  %221 = load i64, ptr %220, align 8, !tbaa !49
  %222 = call i32 @pthread_join(i64 noundef %221, ptr noundef nonnull %4) #6
  %.not121 = icmp eq i32 %222, 0
  br i1 %.not121, label %224, label %223

223:                                              ; preds = %218
  call void @PRINT_ERR(ptr noundef nonnull @.str.15) #6
  br label %224

224:                                              ; preds = %218, %223
  %indvars.iv.next168 = add nuw nsw i64 %indvars.iv167, 1
  %exitcond171.not = icmp eq i64 %indvars.iv.next168, %wide.trip.count170
  br i1 %exitcond171.not, label %._crit_edge152, label %218, !llvm.loop !50

._crit_edge152:                                   ; preds = %224, %216
  %225 = call i32 @process_test_results(ptr noundef nonnull %0) #6
  call void @print_test_results(ptr noundef nonnull %0) #6
  br label %226

226:                                              ; preds = %._crit_edge152, %214, %208, %207, %33, %20, %19, %15
  %.0 = phi i32 [ -1000, %15 ], [ -1000, %19 ], [ -1000, %20 ], [ -1000, %33 ], [ -1000, %207 ], [ -1000, %208 ], [ %.097.lcssa, %214 ], [ %.097.lcssa, %._crit_edge152 ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret i32 %.0
}

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

declare i32 @create_sender_sync_socket(ptr noundef) local_unnamed_addr #2

declare void @PRINT_ERR(ptr noundef) local_unnamed_addr #2

declare i32 @query_receiver_busy_state(i32 noundef) local_unnamed_addr #2

declare i32 @negotiate_test_cycle_time(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @PRINT_INFO(ptr noundef) local_unnamed_addr #2

declare void @set_ntttcp_test_endpoint_test_continuous(ptr noundef) local_unnamed_addr #2

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

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

declare void @PRINT_INFO_FREE(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_attr_init(ptr noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_attr_setstacksize(ptr noundef, i64 noundef) local_unnamed_addr #3

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

; Function Attrs: nounwind
declare i32 @pthread_create(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #3

declare ptr @run_ntttcp_sender_tcp_stream(ptr noundef) #2

declare ptr @run_ntttcp_sender_udp_stream(ptr noundef) #2

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

declare void @PRINT_ERR_FREE(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind
declare i32 @pthread_attr_destroy(ptr noundef) local_unnamed_addr #3

declare i32 @usleep(i32 noundef) local_unnamed_addr #2

declare i32 @request_to_start(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @turn_on_light() local_unnamed_addr #2

declare i32 @sleep(i32 noundef) local_unnamed_addr #2

declare void @run_ntttcp_throughput_management(ptr noundef) local_unnamed_addr #2

declare i32 @pthread_join(i64 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @process_test_results(ptr noundef) local_unnamed_addr #2

declare void @print_test_results(ptr noundef) local_unnamed_addr #2

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { "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 = { 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 #4 = { nofree 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 = { nounwind }
attributes #7 = { 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, !10, i64 8}
!6 = !{!"ntttcp_test_endpoint", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 20, !11, i64 24, !11, i64 40, !7, i64 56, !7, i64 60, !13, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !13, i64 96, !10, i64 104, !7, i64 112, !8, i64 116}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"timeval", !12, i64 0, !12, i64 8}
!12 = !{!"long", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!10, !10, i64 0}
!15 = !{!16, !13, i64 40}
!16 = !{!"ntttcp_test", !13, i64 0, !13, i64 1, !13, i64 2, !13, i64 3, !13, i64 4, !13, i64 5, !13, i64 6, !10, i64 8, !7, i64 16, !7, i64 20, !10, i64 24, !7, i64 32, !7, i64 36, !13, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !7, i64 96, !7, i64 100, !7, i64 104, !13, i64 108, !10, i64 112, !10, i64 120, !13, i64 128, !10, i64 136, !13, i64 144, !10, i64 152, !13, i64 160, !10, i64 168, !13, i64 176, !13, i64 177}
!17 = !{i8 0, i8 2}
!18 = !{}
!19 = !{!6, !7, i64 56}
!20 = !{!16, !7, i64 96}
!21 = !{!16, !7, i64 100}
!22 = !{!16, !7, i64 104}
!23 = !{!6, !7, i64 20}
!24 = !{!16, !7, i64 16}
!25 = !{!16, !7, i64 32}
!26 = !{!6, !10, i64 72}
!27 = !{!16, !7, i64 52}
!28 = !{!29, !7, i64 24}
!29 = !{!"ntttcp_stream_client", !10, i64 0, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24, !7, i64 28, !7, i64 32, !12, i64 40, !12, i64 48, !12, i64 56, !13, i64 64, !13, i64 65, !13, i64 66, !13, i64 67, !13, i64 68, !7, i64 72, !7, i64 76, !12, i64 80}
!30 = !{!16, !7, i64 56}
!31 = !{!16, !7, i64 36}
!32 = !{!29, !7, i64 28}
!33 = !{!16, !7, i64 48}
!34 = !{!6, !10, i64 88}
!35 = !{!7, !7, i64 0}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37, !39}
!39 = !{!"llvm.loop.unswitch.partial.disable"}
!40 = distinct !{!40, !37}
!41 = !{!11, !12, i64 0}
!42 = !{!11, !12, i64 8}
!43 = !{!29, !7, i64 76}
!44 = distinct !{!44, !37}
!45 = distinct !{!45, !46}
!46 = !{!"llvm.loop.unroll.disable"}
!47 = distinct !{!47, !37}
!48 = !{!16, !13, i64 3}
!49 = !{!12, !12, i64 0}
!50 = distinct !{!50, !37}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass