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

; 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.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.timeval = type { i64, i64 }
%struct.ntttcp_test_endpoint_results = type { ptr, i64, double, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64, i64, i64, i64, i64, ptr, double, double, double, double, double, double, double, double, double, double, double, double, double, double, i64, double, double, double, double, double, double, i64, i64, i64, double, i32, i32 }
%struct.ntttcp_test_endpoint_thread_result = type { i8, i64, double, double, double, double }
%struct.tcp_retrans = type { i64, i64, i64, i64, i64, i64, i64 }
%struct.cpu_usage_from_proc_stat = type { i32, i64, i64, i64, i64, i64, i64 }
%struct.cpu_usage = type { i64, double, double, double }
%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 }

@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 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

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

; Function Attrs: nounwind uwtable
declare dso_local void @run_ntttcp_rtt_calculation_for_sender(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @process_test_results(ptr noundef %0) #1 {
  %2 = alloca i32, align 4
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i64, align 8
  %9 = alloca x86_fp80, align 16
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %11, i32 0, i32 13
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  store ptr %13, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %14, i32 0, i32 2
  %16 = load double, ptr %15, align 8, !tbaa !15
  store double %16, ptr %7, align 8, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %17, i32 0, i32 1
  %19 = load i64, ptr %18, align 8, !tbaa !19
  store i64 %19, ptr %8, align 8, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #3
  %20 = load double, ptr %7, align 8, !tbaa !18
  %21 = fcmp oeq double %20, 0.000000e+00
  br i1 %21, label %22, label %23

22:                                               ; preds = %1
  store i32 -1, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %488

23:                                               ; preds = %1
  store i32 0, ptr %5, align 4, !tbaa !21
  br label %24

24:                                               ; preds = %112, %23
  %25 = load i32, ptr %5, align 4, !tbaa !21
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %26, i32 0, i32 7
  %28 = load i32, ptr %27, align 4, !tbaa !22
  %29 = icmp ult i32 %25, %28
  br i1 %29, label %30, label %115

30:                                               ; preds = %24
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %31, i32 0, i32 13
  %33 = load ptr, ptr %32, align 8, !tbaa !9
  %34 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %33, i32 0, i32 15
  %35 = load ptr, ptr %34, align 8, !tbaa !23
  %36 = load i32, ptr %5, align 4, !tbaa !21
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds ptr, ptr %35, i64 %37
  %39 = load ptr, ptr %38, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %39, i32 0, i32 0
  %41 = load i8, ptr %40, align 8, !tbaa !24, !range !26, !noundef !27
  %42 = trunc i8 %41 to i1
  %43 = zext i1 %42 to i32
  %44 = icmp eq i32 %43, 1
  br i1 %44, label %45, label %46

45:                                               ; preds = %30
  br label %112

46:                                               ; preds = %30
  %47 = load ptr, ptr %4, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %47, i32 0, i32 15
  %49 = load ptr, ptr %48, align 8, !tbaa !23
  %50 = load i32, ptr %5, align 4, !tbaa !21
  %51 = zext i32 %50 to i64
  %52 = getelementptr inbounds ptr, ptr %49, i64 %51
  %53 = load ptr, ptr %52, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %53, i32 0, i32 1
  %55 = load i64, ptr %54, align 8, !tbaa !28
  %56 = uitofp i64 %55 to double
  %57 = load ptr, ptr %4, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %57, i32 0, i32 15
  %59 = load ptr, ptr %58, align 8, !tbaa !23
  %60 = load i32, ptr %5, align 4, !tbaa !21
  %61 = zext i32 %60 to i64
  %62 = getelementptr inbounds ptr, ptr %59, i64 %61
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %63, i32 0, i32 2
  %65 = load double, ptr %64, align 8, !tbaa !29
  %66 = fdiv double %56, %65
  %67 = fdiv double %66, 1.000000e+03
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %68, i32 0, i32 15
  %70 = load ptr, ptr %69, align 8, !tbaa !23
  %71 = load i32, ptr %5, align 4, !tbaa !21
  %72 = zext i32 %71 to i64
  %73 = getelementptr inbounds ptr, ptr %70, i64 %72
  %74 = load ptr, ptr %73, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %74, i32 0, i32 3
  store double %67, ptr %75, align 8, !tbaa !30
  %76 = load ptr, ptr %4, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %76, i32 0, i32 15
  %78 = load ptr, ptr %77, align 8, !tbaa !23
  %79 = load i32, ptr %5, align 4, !tbaa !21
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %78, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %82, i32 0, i32 3
  %84 = load double, ptr %83, align 8, !tbaa !30
  %85 = fdiv double %84, 1.000000e+03
  %86 = load ptr, ptr %4, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %86, i32 0, i32 15
  %88 = load ptr, ptr %87, align 8, !tbaa !23
  %89 = load i32, ptr %5, align 4, !tbaa !21
  %90 = zext i32 %89 to i64
  %91 = getelementptr inbounds ptr, ptr %88, i64 %90
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %92, i32 0, i32 4
  store double %85, ptr %93, align 8, !tbaa !31
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %94, i32 0, i32 15
  %96 = load ptr, ptr %95, align 8, !tbaa !23
  %97 = load i32, ptr %5, align 4, !tbaa !21
  %98 = zext i32 %97 to i64
  %99 = getelementptr inbounds ptr, ptr %96, i64 %98
  %100 = load ptr, ptr %99, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %100, i32 0, i32 4
  %102 = load double, ptr %101, align 8, !tbaa !31
  %103 = fmul double %102, 8.000000e+00
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %104, i32 0, i32 15
  %106 = load ptr, ptr %105, align 8, !tbaa !23
  %107 = load i32, ptr %5, align 4, !tbaa !21
  %108 = zext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %106, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.ntttcp_test_endpoint_thread_result, ptr %110, i32 0, i32 5
  store double %103, ptr %111, align 8, !tbaa !32
  br label %112

112:                                              ; preds = %46, %45
  %113 = load i32, ptr %5, align 4, !tbaa !21
  %114 = add i32 %113, 1
  store i32 %114, ptr %5, align 4, !tbaa !21
  br label %24, !llvm.loop !33

115:                                              ; preds = %24
  %116 = call double @read_value_from_proc(ptr noundef @.str.7, ptr noundef @.str.8)
  store double %116, ptr %6, align 8, !tbaa !18
  %117 = load double, ptr %6, align 8, !tbaa !18
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %118, i32 0, i32 16
  store double %117, ptr %119, align 8, !tbaa !35
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %120, i32 0, i32 8
  %122 = load ptr, ptr %121, align 8, !tbaa !36
  %123 = getelementptr inbounds %struct.tcp_retrans, ptr %122, i32 0, i32 0
  %124 = load i64, ptr %123, align 8, !tbaa !37
  %125 = load ptr, ptr %4, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %125, i32 0, i32 7
  %127 = load ptr, ptr %126, align 8, !tbaa !39
  %128 = getelementptr inbounds %struct.tcp_retrans, ptr %127, i32 0, i32 0
  %129 = load i64, ptr %128, align 8, !tbaa !37
  %130 = sub i64 %124, %129
  %131 = uitofp i64 %130 to double
  %132 = load double, ptr %7, align 8, !tbaa !18
  %133 = fdiv double %131, %132
  %134 = load ptr, ptr %4, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %134, i32 0, i32 18
  store double %133, ptr %135, align 8, !tbaa !40
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %136, i32 0, i32 8
  %138 = load ptr, ptr %137, align 8, !tbaa !36
  %139 = getelementptr inbounds %struct.tcp_retrans, ptr %138, i32 0, i32 1
  %140 = load i64, ptr %139, align 8, !tbaa !41
  %141 = load ptr, ptr %4, align 8, !tbaa !5
  %142 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %141, i32 0, i32 7
  %143 = load ptr, ptr %142, align 8, !tbaa !39
  %144 = getelementptr inbounds %struct.tcp_retrans, ptr %143, i32 0, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !41
  %146 = sub i64 %140, %145
  %147 = uitofp i64 %146 to double
  %148 = load double, ptr %7, align 8, !tbaa !18
  %149 = fdiv double %147, %148
  %150 = load ptr, ptr %4, align 8, !tbaa !5
  %151 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %150, i32 0, i32 19
  store double %149, ptr %151, align 8, !tbaa !42
  %152 = load ptr, ptr %4, align 8, !tbaa !5
  %153 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %152, i32 0, i32 8
  %154 = load ptr, ptr %153, align 8, !tbaa !36
  %155 = getelementptr inbounds %struct.tcp_retrans, ptr %154, i32 0, i32 2
  %156 = load i64, ptr %155, align 8, !tbaa !43
  %157 = load ptr, ptr %4, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %157, i32 0, i32 7
  %159 = load ptr, ptr %158, align 8, !tbaa !39
  %160 = getelementptr inbounds %struct.tcp_retrans, ptr %159, i32 0, i32 2
  %161 = load i64, ptr %160, align 8, !tbaa !43
  %162 = sub i64 %156, %161
  %163 = uitofp i64 %162 to double
  %164 = load double, ptr %7, align 8, !tbaa !18
  %165 = fdiv double %163, %164
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %166, i32 0, i32 20
  store double %165, ptr %167, align 8, !tbaa !44
  %168 = load ptr, ptr %4, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %168, i32 0, i32 8
  %170 = load ptr, ptr %169, align 8, !tbaa !36
  %171 = getelementptr inbounds %struct.tcp_retrans, ptr %170, i32 0, i32 3
  %172 = load i64, ptr %171, align 8, !tbaa !45
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %173, i32 0, i32 7
  %175 = load ptr, ptr %174, align 8, !tbaa !39
  %176 = getelementptr inbounds %struct.tcp_retrans, ptr %175, i32 0, i32 3
  %177 = load i64, ptr %176, align 8, !tbaa !45
  %178 = sub i64 %172, %177
  %179 = uitofp i64 %178 to double
  %180 = load double, ptr %7, align 8, !tbaa !18
  %181 = fdiv double %179, %180
  %182 = load ptr, ptr %4, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %182, i32 0, i32 21
  store double %181, ptr %183, align 8, !tbaa !46
  %184 = load ptr, ptr %4, align 8, !tbaa !5
  %185 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %184, i32 0, i32 8
  %186 = load ptr, ptr %185, align 8, !tbaa !36
  %187 = getelementptr inbounds %struct.tcp_retrans, ptr %186, i32 0, i32 4
  %188 = load i64, ptr %187, align 8, !tbaa !47
  %189 = load ptr, ptr %4, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %189, i32 0, i32 7
  %191 = load ptr, ptr %190, align 8, !tbaa !39
  %192 = getelementptr inbounds %struct.tcp_retrans, ptr %191, i32 0, i32 4
  %193 = load i64, ptr %192, align 8, !tbaa !47
  %194 = sub i64 %188, %193
  %195 = uitofp i64 %194 to double
  %196 = load double, ptr %7, align 8, !tbaa !18
  %197 = fdiv double %195, %196
  %198 = load ptr, ptr %4, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %198, i32 0, i32 22
  store double %197, ptr %199, align 8, !tbaa !48
  %200 = load ptr, ptr %4, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %200, i32 0, i32 8
  %202 = load ptr, ptr %201, align 8, !tbaa !36
  %203 = getelementptr inbounds %struct.tcp_retrans, ptr %202, i32 0, i32 5
  %204 = load i64, ptr %203, align 8, !tbaa !49
  %205 = load ptr, ptr %4, align 8, !tbaa !5
  %206 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %205, i32 0, i32 7
  %207 = load ptr, ptr %206, align 8, !tbaa !39
  %208 = getelementptr inbounds %struct.tcp_retrans, ptr %207, i32 0, i32 5
  %209 = load i64, ptr %208, align 8, !tbaa !49
  %210 = sub i64 %204, %209
  %211 = uitofp i64 %210 to double
  %212 = load double, ptr %7, align 8, !tbaa !18
  %213 = fdiv double %211, %212
  %214 = load ptr, ptr %4, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %214, i32 0, i32 23
  store double %213, ptr %215, align 8, !tbaa !50
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %216, i32 0, i32 8
  %218 = load ptr, ptr %217, align 8, !tbaa !36
  %219 = getelementptr inbounds %struct.tcp_retrans, ptr %218, i32 0, i32 6
  %220 = load i64, ptr %219, align 8, !tbaa !51
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %221, i32 0, i32 7
  %223 = load ptr, ptr %222, align 8, !tbaa !39
  %224 = getelementptr inbounds %struct.tcp_retrans, ptr %223, i32 0, i32 6
  %225 = load i64, ptr %224, align 8, !tbaa !51
  %226 = sub i64 %220, %225
  %227 = uitofp i64 %226 to double
  %228 = load double, ptr %7, align 8, !tbaa !18
  %229 = fdiv double %227, %228
  %230 = load ptr, ptr %4, align 8, !tbaa !5
  %231 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %230, i32 0, i32 24
  store double %229, ptr %231, align 8, !tbaa !52
  %232 = load ptr, ptr %4, align 8, !tbaa !5
  %233 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %232, i32 0, i32 11
  %234 = load i64, ptr %233, align 8, !tbaa !53
  %235 = load ptr, ptr %4, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %235, i32 0, i32 9
  %237 = load i64, ptr %236, align 8, !tbaa !54
  %238 = sub i64 %234, %237
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %239, i32 0, i32 37
  store i64 %238, ptr %240, align 8, !tbaa !55
  %241 = load ptr, ptr %4, align 8, !tbaa !5
  %242 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %241, i32 0, i32 12
  %243 = load i64, ptr %242, align 8, !tbaa !56
  %244 = load ptr, ptr %4, align 8, !tbaa !5
  %245 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %244, i32 0, i32 10
  %246 = load i64, ptr %245, align 8, !tbaa !57
  %247 = sub i64 %243, %246
  %248 = load ptr, ptr %4, align 8, !tbaa !5
  %249 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %248, i32 0, i32 38
  store i64 %247, ptr %249, align 8, !tbaa !58
  %250 = load ptr, ptr %4, align 8, !tbaa !5
  %251 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %250, i32 0, i32 14
  %252 = load i64, ptr %251, align 8, !tbaa !59
  %253 = load ptr, ptr %4, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %253, i32 0, i32 13
  %255 = load i64, ptr %254, align 8, !tbaa !60
  %256 = sub i64 %252, %255
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %257, i32 0, i32 30
  store i64 %256, ptr %258, align 8, !tbaa !61
  %259 = load ptr, ptr %4, align 8, !tbaa !5
  %260 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %259, i32 0, i32 30
  %261 = load i64, ptr %260, align 8, !tbaa !61
  %262 = icmp eq i64 %261, 0
  br i1 %262, label %263, label %264

263:                                              ; preds = %115
  br label %278

264:                                              ; preds = %115
  %265 = load ptr, ptr %4, align 8, !tbaa !5
  %266 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %265, i32 0, i32 37
  %267 = load i64, ptr %266, align 8, !tbaa !55
  %268 = load ptr, ptr %4, align 8, !tbaa !5
  %269 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %268, i32 0, i32 38
  %270 = load i64, ptr %269, align 8, !tbaa !58
  %271 = add i64 %267, %270
  %272 = uitofp i64 %271 to double
  %273 = load ptr, ptr %4, align 8, !tbaa !5
  %274 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %273, i32 0, i32 30
  %275 = load i64, ptr %274, align 8, !tbaa !61
  %276 = uitofp i64 %275 to double
  %277 = fdiv double %272, %276
  br label %278

278:                                              ; preds = %264, %263
  %279 = phi double [ 0.000000e+00, %263 ], [ %277, %264 ]
  %280 = load ptr, ptr %4, align 8, !tbaa !5
  %281 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %280, i32 0, i32 31
  store double %279, ptr %281, align 8, !tbaa !62
  %282 = load ptr, ptr %4, align 8, !tbaa !5
  %283 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %282, i32 0, i32 6
  %284 = load ptr, ptr %283, align 8, !tbaa !63
  %285 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %284, i32 0, i32 1
  %286 = load i64, ptr %285, align 8, !tbaa !64
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %287, i32 0, i32 5
  %289 = load ptr, ptr %288, align 8, !tbaa !67
  %290 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %289, i32 0, i32 1
  %291 = load i64, ptr %290, align 8, !tbaa !64
  %292 = sub i64 %286, %291
  %293 = uitofp i64 %292 to x86_fp80
  store x86_fp80 %293, ptr %9, align 16, !tbaa !68
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %294, i32 0, i32 6
  %296 = load ptr, ptr %295, align 8, !tbaa !63
  %297 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %296, i32 0, i32 2
  %298 = load i64, ptr %297, align 8, !tbaa !70
  %299 = load ptr, ptr %4, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %299, i32 0, i32 5
  %301 = load ptr, ptr %300, align 8, !tbaa !67
  %302 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %301, i32 0, i32 2
  %303 = load i64, ptr %302, align 8, !tbaa !70
  %304 = sub i64 %298, %303
  %305 = uitofp i64 %304 to x86_fp80
  %306 = load x86_fp80, ptr %9, align 16, !tbaa !68
  %307 = fdiv x86_fp80 %305, %306
  %308 = fptrunc x86_fp80 %307 to double
  %309 = load ptr, ptr %4, align 8, !tbaa !5
  %310 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %309, i32 0, i32 25
  store double %308, ptr %310, align 8, !tbaa !71
  %311 = load ptr, ptr %4, align 8, !tbaa !5
  %312 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %311, i32 0, i32 6
  %313 = load ptr, ptr %312, align 8, !tbaa !63
  %314 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %313, i32 0, i32 3
  %315 = load i64, ptr %314, align 8, !tbaa !72
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %316, i32 0, i32 5
  %318 = load ptr, ptr %317, align 8, !tbaa !67
  %319 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %318, i32 0, i32 3
  %320 = load i64, ptr %319, align 8, !tbaa !72
  %321 = sub i64 %315, %320
  %322 = uitofp i64 %321 to x86_fp80
  %323 = load x86_fp80, ptr %9, align 16, !tbaa !68
  %324 = fdiv x86_fp80 %322, %323
  %325 = fptrunc x86_fp80 %324 to double
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  %327 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %326, i32 0, i32 26
  store double %325, ptr %327, align 8, !tbaa !73
  %328 = load ptr, ptr %4, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %328, i32 0, i32 6
  %330 = load ptr, ptr %329, align 8, !tbaa !63
  %331 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %330, i32 0, i32 4
  %332 = load i64, ptr %331, align 8, !tbaa !74
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %333, i32 0, i32 5
  %335 = load ptr, ptr %334, align 8, !tbaa !67
  %336 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %335, i32 0, i32 4
  %337 = load i64, ptr %336, align 8, !tbaa !74
  %338 = sub i64 %332, %337
  %339 = uitofp i64 %338 to x86_fp80
  %340 = load x86_fp80, ptr %9, align 16, !tbaa !68
  %341 = fdiv x86_fp80 %339, %340
  %342 = fptrunc x86_fp80 %341 to double
  %343 = load ptr, ptr %4, align 8, !tbaa !5
  %344 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %343, i32 0, i32 27
  store double %342, ptr %344, align 8, !tbaa !75
  %345 = load ptr, ptr %4, align 8, !tbaa !5
  %346 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %345, i32 0, i32 6
  %347 = load ptr, ptr %346, align 8, !tbaa !63
  %348 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %347, i32 0, i32 5
  %349 = load i64, ptr %348, align 8, !tbaa !76
  %350 = load ptr, ptr %4, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %350, i32 0, i32 5
  %352 = load ptr, ptr %351, align 8, !tbaa !67
  %353 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %352, i32 0, i32 5
  %354 = load i64, ptr %353, align 8, !tbaa !76
  %355 = sub i64 %349, %354
  %356 = uitofp i64 %355 to x86_fp80
  %357 = load x86_fp80, ptr %9, align 16, !tbaa !68
  %358 = fdiv x86_fp80 %356, %357
  %359 = fptrunc x86_fp80 %358 to double
  %360 = load ptr, ptr %4, align 8, !tbaa !5
  %361 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %360, i32 0, i32 28
  store double %359, ptr %361, align 8, !tbaa !77
  %362 = load ptr, ptr %4, align 8, !tbaa !5
  %363 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %362, i32 0, i32 6
  %364 = load ptr, ptr %363, align 8, !tbaa !63
  %365 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %364, i32 0, i32 6
  %366 = load i64, ptr %365, align 8, !tbaa !78
  %367 = load ptr, ptr %4, align 8, !tbaa !5
  %368 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %367, i32 0, i32 5
  %369 = load ptr, ptr %368, align 8, !tbaa !67
  %370 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %369, i32 0, i32 6
  %371 = load i64, ptr %370, align 8, !tbaa !78
  %372 = sub i64 %366, %371
  %373 = uitofp i64 %372 to x86_fp80
  %374 = load x86_fp80, ptr %9, align 16, !tbaa !68
  %375 = fdiv x86_fp80 %373, %374
  %376 = fptrunc x86_fp80 %375 to double
  %377 = load ptr, ptr %4, align 8, !tbaa !5
  %378 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %377, i32 0, i32 29
  store double %376, ptr %378, align 8, !tbaa !79
  %379 = load i64, ptr %8, align 8, !tbaa !20
  %380 = uitofp i64 %379 to double
  %381 = load double, ptr %7, align 8, !tbaa !18
  %382 = fdiv double %380, %381
  %383 = load ptr, ptr %4, align 8, !tbaa !5
  %384 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %383, i32 0, i32 34
  store double %382, ptr %384, align 8, !tbaa !80
  %385 = load i64, ptr %8, align 8, !tbaa !20
  %386 = uitofp i64 %385 to double
  %387 = fdiv double %386, 1.000000e+06
  %388 = load ptr, ptr %4, align 8, !tbaa !5
  %389 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %388, i32 0, i32 32
  store double %387, ptr %389, align 8, !tbaa !81
  %390 = load ptr, ptr %4, align 8, !tbaa !5
  %391 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %390, i32 0, i32 32
  %392 = load double, ptr %391, align 8, !tbaa !81
  %393 = load double, ptr %7, align 8, !tbaa !18
  %394 = fdiv double %392, %393
  %395 = load ptr, ptr %4, align 8, !tbaa !5
  %396 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %395, i32 0, i32 33
  store double %394, ptr %396, align 8, !tbaa !82
  %397 = load ptr, ptr %4, align 8, !tbaa !5
  %398 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %397, i32 0, i32 33
  %399 = load double, ptr %398, align 8, !tbaa !82
  %400 = fmul double %399, 8.000000e+00
  %401 = load ptr, ptr %4, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %401, i32 0, i32 35
  store double %400, ptr %402, align 8, !tbaa !83
  %403 = load i64, ptr %8, align 8, !tbaa !20
  %404 = icmp eq i64 %403, 0
  br i1 %404, label %405, label %406

405:                                              ; preds = %278
  br label %427

406:                                              ; preds = %278
  %407 = load double, ptr %6, align 8, !tbaa !18
  %408 = fmul double %407, 1.000000e+03
  %409 = fmul double %408, 1.000000e+03
  %410 = load double, ptr %7, align 8, !tbaa !18
  %411 = fmul double %409, %410
  %412 = load ptr, ptr %4, align 8, !tbaa !5
  %413 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %412, i32 0, i32 6
  %414 = load ptr, ptr %413, align 8, !tbaa !63
  %415 = getelementptr inbounds %struct.cpu_usage_from_proc_stat, ptr %414, i32 0, i32 0
  %416 = load i32, ptr %415, align 8, !tbaa !84
  %417 = uitofp i32 %416 to double
  %418 = fmul double %411, %417
  %419 = load ptr, ptr %4, align 8, !tbaa !5
  %420 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %419, i32 0, i32 27
  %421 = load double, ptr %420, align 8, !tbaa !75
  %422 = fsub double 1.000000e+00, %421
  %423 = fmul double %418, %422
  %424 = load i64, ptr %8, align 8, !tbaa !20
  %425 = uitofp i64 %424 to double
  %426 = fdiv double %423, %425
  br label %427

427:                                              ; preds = %406, %405
  %428 = phi double [ 0.000000e+00, %405 ], [ %426, %406 ]
  %429 = load ptr, ptr %4, align 8, !tbaa !5
  %430 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %429, i32 0, i32 36
  store double %428, ptr %430, align 8, !tbaa !85
  %431 = load ptr, ptr %4, align 8, !tbaa !5
  %432 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %431, i32 0, i32 8
  %433 = load ptr, ptr %432, align 8, !tbaa !36
  %434 = getelementptr inbounds %struct.tcp_retrans, ptr %433, i32 0, i32 0
  %435 = load i64, ptr %434, align 8, !tbaa !37
  %436 = load ptr, ptr %4, align 8, !tbaa !5
  %437 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %436, i32 0, i32 7
  %438 = load ptr, ptr %437, align 8, !tbaa !39
  %439 = getelementptr inbounds %struct.tcp_retrans, ptr %438, i32 0, i32 0
  %440 = load i64, ptr %439, align 8, !tbaa !37
  %441 = sub i64 %435, %440
  %442 = load ptr, ptr %4, align 8, !tbaa !5
  %443 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %442, i32 0, i32 39
  store i64 %441, ptr %443, align 8, !tbaa !86
  %444 = load ptr, ptr %4, align 8, !tbaa !5
  %445 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %444, i32 0, i32 4
  %446 = load ptr, ptr %445, align 8, !tbaa !87
  %447 = getelementptr inbounds %struct.cpu_usage, ptr %446, i32 0, i32 0
  %448 = load i64, ptr %447, align 8, !tbaa !88
  %449 = load ptr, ptr %4, align 8, !tbaa !5
  %450 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %449, i32 0, i32 3
  %451 = load ptr, ptr %450, align 8, !tbaa !90
  %452 = getelementptr inbounds %struct.cpu_usage, ptr %451, i32 0, i32 0
  %453 = load i64, ptr %452, align 8, !tbaa !88
  %454 = sub nsw i64 %448, %453
  %455 = sitofp i64 %454 to double
  %456 = fmul double %455, 1.000000e+06
  %457 = fdiv double %456, 1.000000e+06
  %458 = load ptr, ptr %4, align 8, !tbaa !5
  %459 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %458, i32 0, i32 4
  %460 = load ptr, ptr %459, align 8, !tbaa !87
  %461 = getelementptr inbounds %struct.cpu_usage, ptr %460, i32 0, i32 1
  %462 = load double, ptr %461, align 8, !tbaa !91
  %463 = load ptr, ptr %4, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %463, i32 0, i32 3
  %465 = load ptr, ptr %464, align 8, !tbaa !90
  %466 = getelementptr inbounds %struct.cpu_usage, ptr %465, i32 0, i32 1
  %467 = load double, ptr %466, align 8, !tbaa !91
  %468 = fsub double %462, %467
  %469 = fdiv double %457, %468
  %470 = load ptr, ptr %4, align 8, !tbaa !5
  %471 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %470, i32 0, i32 40
  store double %469, ptr %471, align 8, !tbaa !92
  %472 = load ptr, ptr %4, align 8, !tbaa !5
  %473 = getelementptr inbounds %struct.ntttcp_test_endpoint_results, ptr %472, i32 0, i32 41
  store i32 0, ptr %473, align 8, !tbaa !93
  %474 = load ptr, ptr %3, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %474, i32 0, i32 0
  %476 = load i32, ptr %475, align 8, !tbaa !94
  %477 = icmp eq i32 %476, 1
  br i1 %477, label %478, label %487

478:                                              ; preds = %427
  %479 = load ptr, ptr %3, align 8, !tbaa !5
  %480 = getelementptr inbounds %struct.ntttcp_test_endpoint, ptr %479, i32 0, i32 1
  %481 = load ptr, ptr %480, align 8, !tbaa !95
  %482 = getelementptr inbounds %struct.ntttcp_test, ptr %481, i32 0, i32 15
  %483 = load i32, ptr %482, align 8, !tbaa !96
  %484 = icmp eq i32 %483, 1
  br i1 %484, label %485, label %487

485:                                              ; preds = %478
  %486 = load ptr, ptr %3, align 8, !tbaa !5
  call void @run_ntttcp_rtt_calculation_for_sender(ptr noundef %486)
  br label %487

487:                                              ; preds = %485, %478, %427
  store i32 0, ptr %2, align 4
  store i32 1, ptr %10, align 4
  br label %488

488:                                              ; preds = %487, %22
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %489 = load i32, ptr %2, align 4
  ret i32 %489
}

declare double @read_value_from_proc(ptr noundef, ptr noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 }

!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, !6, i64 104}
!10 = !{!"ntttcp_test_endpoint", !11, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 40, !11, i64 56, !11, i64 60, !14, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !14, i64 96, !6, i64 104, !11, i64 112, !7, i64 116}
!11 = !{!"int", !7, i64 0}
!12 = !{!"timeval", !13, i64 0, !13, i64 8}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!16, !17, i64 16}
!16 = !{!"ntttcp_test_endpoint_results", !6, i64 0, !13, i64 8, !17, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !13, i64 96, !13, i64 104, !13, i64 112, !6, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !17, i64 184, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !17, i64 224, !17, i64 232, !13, i64 240, !17, i64 248, !17, i64 256, !17, i64 264, !17, i64 272, !17, i64 280, !17, i64 288, !13, i64 296, !13, i64 304, !13, i64 312, !17, i64 320, !11, i64 328, !11, i64 332}
!17 = !{!"double", !7, i64 0}
!18 = !{!17, !17, i64 0}
!19 = !{!16, !13, i64 8}
!20 = !{!13, !13, i64 0}
!21 = !{!11, !11, i64 0}
!22 = !{!10, !11, i64 60}
!23 = !{!16, !6, i64 120}
!24 = !{!25, !14, i64 0}
!25 = !{!"ntttcp_test_endpoint_thread_result", !14, i64 0, !13, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!25, !13, i64 8}
!29 = !{!25, !17, i64 16}
!30 = !{!25, !17, i64 24}
!31 = !{!25, !17, i64 32}
!32 = !{!25, !17, i64 40}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}
!35 = !{!16, !17, i64 128}
!36 = !{!16, !6, i64 64}
!37 = !{!38, !13, i64 0}
!38 = !{!"tcp_retrans", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48}
!39 = !{!16, !6, i64 56}
!40 = !{!16, !17, i64 144}
!41 = !{!38, !13, i64 8}
!42 = !{!16, !17, i64 152}
!43 = !{!38, !13, i64 16}
!44 = !{!16, !17, i64 160}
!45 = !{!38, !13, i64 24}
!46 = !{!16, !17, i64 168}
!47 = !{!38, !13, i64 32}
!48 = !{!16, !17, i64 176}
!49 = !{!38, !13, i64 40}
!50 = !{!16, !17, i64 184}
!51 = !{!38, !13, i64 48}
!52 = !{!16, !17, i64 192}
!53 = !{!16, !13, i64 88}
!54 = !{!16, !13, i64 72}
!55 = !{!16, !13, i64 296}
!56 = !{!16, !13, i64 96}
!57 = !{!16, !13, i64 80}
!58 = !{!16, !13, i64 304}
!59 = !{!16, !13, i64 112}
!60 = !{!16, !13, i64 104}
!61 = !{!16, !13, i64 240}
!62 = !{!16, !17, i64 248}
!63 = !{!16, !6, i64 48}
!64 = !{!65, !66, i64 8}
!65 = !{!"cpu_usage_from_proc_stat", !11, i64 0, !66, i64 8, !66, i64 16, !66, i64 24, !66, i64 32, !66, i64 40, !66, i64 48}
!66 = !{!"long long", !7, i64 0}
!67 = !{!16, !6, i64 40}
!68 = !{!69, !69, i64 0}
!69 = !{!"long double", !7, i64 0}
!70 = !{!65, !66, i64 16}
!71 = !{!16, !17, i64 200}
!72 = !{!65, !66, i64 24}
!73 = !{!16, !17, i64 208}
!74 = !{!65, !66, i64 32}
!75 = !{!16, !17, i64 216}
!76 = !{!65, !66, i64 40}
!77 = !{!16, !17, i64 224}
!78 = !{!65, !66, i64 48}
!79 = !{!16, !17, i64 232}
!80 = !{!16, !17, i64 272}
!81 = !{!16, !17, i64 256}
!82 = !{!16, !17, i64 264}
!83 = !{!16, !17, i64 280}
!84 = !{!65, !11, i64 0}
!85 = !{!16, !17, i64 288}
!86 = !{!16, !13, i64 312}
!87 = !{!16, !6, i64 32}
!88 = !{!89, !13, i64 0}
!89 = !{!"cpu_usage", !13, i64 0, !17, i64 8, !17, i64 16, !17, i64 24}
!90 = !{!16, !6, i64 24}
!91 = !{!89, !17, i64 8}
!92 = !{!16, !17, i64 320}
!93 = !{!16, !11, i64 328}
!94 = !{!10, !11, i64 0}
!95 = !{!10, !6, i64 8}
!96 = !{!97, !11, i64 48}
!97 = !{!"ntttcp_test", !14, i64 0, !14, i64 1, !14, i64 2, !14, i64 3, !14, i64 4, !14, i64 5, !14, i64 6, !6, i64 8, !11, i64 16, !11, i64 20, !6, i64 24, !11, i64 32, !11, i64 36, !14, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !13, i64 64, !13, i64 72, !13, i64 80, !13, i64 88, !11, i64 96, !11, i64 100, !11, i64 104, !14, i64 108, !6, i64 112, !6, i64 120, !14, i64 128, !6, i64 136, !14, i64 144, !6, i64 152, !14, i64 160, !6, i64 168, !14, i64 176, !14, i64 177}


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

@.str.7 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [8 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @run_ntttcp_rtt_calculation_for_sender(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local range(i32 -1, 1) i32 @process_test_results(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 104
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 16
  %5 = load double, ptr %4, align 8, !tbaa !14
  %6 = getelementptr inbounds i8, ptr %3, i64 8
  %7 = load i64, ptr %6, align 8, !tbaa !17
  %8 = fcmp oeq double %5, 0.000000e+00
  br i1 %8, label %198, label %.preheader

.preheader:                                       ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 60
  %10 = load i32, ptr %9, align 4, !tbaa !18
  %.not = icmp eq i32 %10, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %11 = getelementptr inbounds i8, ptr %3, i64 120
  %12 = load ptr, ptr %11, align 8, !tbaa !19
  %wide.trip.count = zext i32 %10 to i64
  br label %13

13:                                               ; preds = %.lr.ph, %31
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %31 ]
  %14 = getelementptr inbounds ptr, ptr %12, i64 %indvars.iv
  %15 = load ptr, ptr %14, align 8, !tbaa !20
  %16 = load i8, ptr %15, align 8, !tbaa !21, !range !23, !noundef !24
  %17 = trunc nuw i8 %16 to i1
  br i1 %17, label %31, label %18

18:                                               ; preds = %13
  %19 = getelementptr inbounds i8, ptr %15, i64 8
  %20 = load i64, ptr %19, align 8, !tbaa !25
  %21 = uitofp i64 %20 to double
  %22 = getelementptr inbounds i8, ptr %15, i64 16
  %23 = load double, ptr %22, align 8, !tbaa !26
  %24 = fdiv double %21, %23
  %25 = fdiv double %24, 1.000000e+03
  %26 = getelementptr inbounds i8, ptr %15, i64 24
  store double %25, ptr %26, align 8, !tbaa !27
  %27 = fdiv double %25, 1.000000e+03
  %28 = getelementptr inbounds i8, ptr %15, i64 32
  store double %27, ptr %28, align 8, !tbaa !28
  %29 = fmul double %27, 8.000000e+00
  %30 = getelementptr inbounds i8, ptr %15, i64 40
  store double %29, ptr %30, align 8, !tbaa !29
  br label %31

31:                                               ; preds = %13, %18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %13, !llvm.loop !30

._crit_edge:                                      ; preds = %31, %.preheader
  %32 = tail call double @read_value_from_proc(ptr noundef nonnull @.str.7, ptr noundef nonnull @.str.8) #2
  %33 = getelementptr inbounds i8, ptr %3, i64 128
  store double %32, ptr %33, align 8, !tbaa !32
  %34 = getelementptr inbounds i8, ptr %3, i64 64
  %35 = load ptr, ptr %34, align 8, !tbaa !33
  %36 = getelementptr inbounds i8, ptr %3, i64 56
  %37 = load ptr, ptr %36, align 8, !tbaa !34
  %38 = getelementptr inbounds i8, ptr %3, i64 144
  %39 = load <2 x i64>, ptr %35, align 8, !tbaa !35
  %40 = load <2 x i64>, ptr %37, align 8, !tbaa !35
  %41 = sub <2 x i64> %39, %40
  %42 = uitofp <2 x i64> %41 to <2 x double>
  %43 = insertelement <2 x double> poison, double %5, i64 0
  %44 = shufflevector <2 x double> %43, <2 x double> poison, <2 x i32> zeroinitializer
  %45 = fdiv <2 x double> %42, %44
  store <2 x double> %45, ptr %38, align 8, !tbaa !36
  %46 = getelementptr inbounds i8, ptr %35, i64 16
  %47 = getelementptr inbounds i8, ptr %37, i64 16
  %48 = getelementptr inbounds i8, ptr %3, i64 160
  %49 = load <2 x i64>, ptr %46, align 8, !tbaa !35
  %50 = load <2 x i64>, ptr %47, align 8, !tbaa !35
  %51 = sub <2 x i64> %49, %50
  %52 = uitofp <2 x i64> %51 to <2 x double>
  %53 = fdiv <2 x double> %52, %44
  store <2 x double> %53, ptr %48, align 8, !tbaa !36
  %54 = getelementptr inbounds i8, ptr %35, i64 32
  %55 = getelementptr inbounds i8, ptr %37, i64 32
  %56 = getelementptr inbounds i8, ptr %3, i64 176
  %57 = load <2 x i64>, ptr %54, align 8, !tbaa !35
  %58 = load <2 x i64>, ptr %55, align 8, !tbaa !35
  %59 = sub <2 x i64> %57, %58
  %60 = uitofp <2 x i64> %59 to <2 x double>
  %61 = fdiv <2 x double> %60, %44
  store <2 x double> %61, ptr %56, align 8, !tbaa !36
  %62 = getelementptr inbounds i8, ptr %35, i64 48
  %63 = load i64, ptr %62, align 8, !tbaa !37
  %64 = getelementptr inbounds i8, ptr %37, i64 48
  %65 = load i64, ptr %64, align 8, !tbaa !37
  %66 = sub i64 %63, %65
  %67 = uitofp i64 %66 to double
  %68 = fdiv double %67, %5
  %69 = getelementptr inbounds i8, ptr %3, i64 192
  store double %68, ptr %69, align 8, !tbaa !39
  %70 = getelementptr inbounds i8, ptr %3, i64 88
  %71 = getelementptr inbounds i8, ptr %3, i64 72
  %72 = getelementptr inbounds i8, ptr %3, i64 296
  %73 = load <2 x i64>, ptr %70, align 8, !tbaa !35
  %74 = load <2 x i64>, ptr %71, align 8, !tbaa !35
  %75 = sub <2 x i64> %73, %74
  store <2 x i64> %75, ptr %72, align 8, !tbaa !35
  %76 = getelementptr inbounds i8, ptr %3, i64 112
  %77 = load i64, ptr %76, align 8, !tbaa !40
  %78 = getelementptr inbounds i8, ptr %3, i64 104
  %79 = load i64, ptr %78, align 8, !tbaa !41
  %80 = sub i64 %77, %79
  %81 = getelementptr inbounds i8, ptr %3, i64 240
  store i64 %80, ptr %81, align 8, !tbaa !42
  %82 = icmp eq i64 %77, %79
  %shift = shufflevector <2 x i64> %75, <2 x i64> poison, <2 x i32> <i32 1, i32 poison>
  %83 = add <2 x i64> %shift, %75
  %84 = extractelement <2 x i64> %83, i64 0
  %85 = uitofp i64 %84 to double
  %86 = uitofp i64 %80 to double
  %87 = fdiv double %85, %86
  %88 = select i1 %82, double 0.000000e+00, double %87
  %89 = getelementptr inbounds i8, ptr %3, i64 248
  store double %88, ptr %89, align 8, !tbaa !43
  %90 = getelementptr inbounds i8, ptr %3, i64 48
  %91 = load ptr, ptr %90, align 8, !tbaa !44
  %92 = getelementptr inbounds i8, ptr %91, i64 8
  %93 = load i64, ptr %92, align 8, !tbaa !45
  %94 = getelementptr inbounds i8, ptr %3, i64 40
  %95 = load ptr, ptr %94, align 8, !tbaa !48
  %96 = getelementptr inbounds i8, ptr %95, i64 8
  %97 = load i64, ptr %96, align 8, !tbaa !45
  %98 = sub i64 %93, %97
  %99 = uitofp i64 %98 to x86_fp80
  %100 = getelementptr inbounds i8, ptr %91, i64 16
  %101 = load i64, ptr %100, align 8, !tbaa !49
  %102 = getelementptr inbounds i8, ptr %95, i64 16
  %103 = load i64, ptr %102, align 8, !tbaa !49
  %104 = sub i64 %101, %103
  %105 = uitofp i64 %104 to x86_fp80
  %106 = fdiv x86_fp80 %105, %99
  %107 = fptrunc x86_fp80 %106 to double
  %108 = getelementptr inbounds i8, ptr %3, i64 200
  store double %107, ptr %108, align 8, !tbaa !50
  %109 = getelementptr inbounds i8, ptr %91, i64 24
  %110 = load i64, ptr %109, align 8, !tbaa !51
  %111 = getelementptr inbounds i8, ptr %95, i64 24
  %112 = load i64, ptr %111, align 8, !tbaa !51
  %113 = sub i64 %110, %112
  %114 = uitofp i64 %113 to x86_fp80
  %115 = fdiv x86_fp80 %114, %99
  %116 = fptrunc x86_fp80 %115 to double
  %117 = getelementptr inbounds i8, ptr %3, i64 208
  store double %116, ptr %117, align 8, !tbaa !52
  %118 = getelementptr inbounds i8, ptr %91, i64 32
  %119 = load i64, ptr %118, align 8, !tbaa !53
  %120 = getelementptr inbounds i8, ptr %95, i64 32
  %121 = load i64, ptr %120, align 8, !tbaa !53
  %122 = sub i64 %119, %121
  %123 = uitofp i64 %122 to x86_fp80
  %124 = fdiv x86_fp80 %123, %99
  %125 = fptrunc x86_fp80 %124 to double
  %126 = getelementptr inbounds i8, ptr %3, i64 216
  store double %125, ptr %126, align 8, !tbaa !54
  %127 = getelementptr inbounds i8, ptr %91, i64 40
  %128 = load i64, ptr %127, align 8, !tbaa !55
  %129 = getelementptr inbounds i8, ptr %95, i64 40
  %130 = load i64, ptr %129, align 8, !tbaa !55
  %131 = sub i64 %128, %130
  %132 = uitofp i64 %131 to x86_fp80
  %133 = fdiv x86_fp80 %132, %99
  %134 = fptrunc x86_fp80 %133 to double
  %135 = getelementptr inbounds i8, ptr %3, i64 224
  store double %134, ptr %135, align 8, !tbaa !56
  %136 = getelementptr inbounds i8, ptr %91, i64 48
  %137 = load i64, ptr %136, align 8, !tbaa !57
  %138 = getelementptr inbounds i8, ptr %95, i64 48
  %139 = load i64, ptr %138, align 8, !tbaa !57
  %140 = sub i64 %137, %139
  %141 = uitofp i64 %140 to x86_fp80
  %142 = fdiv x86_fp80 %141, %99
  %143 = fptrunc x86_fp80 %142 to double
  %144 = getelementptr inbounds i8, ptr %3, i64 232
  store double %143, ptr %144, align 8, !tbaa !58
  %145 = uitofp i64 %7 to double
  %146 = fdiv double %145, 1.000000e+06
  %147 = getelementptr inbounds i8, ptr %3, i64 256
  store double %146, ptr %147, align 8, !tbaa !59
  %148 = getelementptr inbounds i8, ptr %3, i64 264
  %149 = insertelement <2 x double> poison, double %146, i64 0
  %150 = insertelement <2 x double> %149, double %145, i64 1
  %151 = fdiv <2 x double> %150, %44
  store <2 x double> %151, ptr %148, align 8, !tbaa !36
  %152 = extractelement <2 x double> %151, i64 0
  %153 = fmul double %152, 8.000000e+00
  %154 = getelementptr inbounds i8, ptr %3, i64 280
  store double %153, ptr %154, align 8, !tbaa !60
  %155 = icmp eq i64 %7, 0
  br i1 %155, label %166, label %156

156:                                              ; preds = %._crit_edge
  %157 = fmul double %32, 1.000000e+03
  %158 = fmul double %157, 1.000000e+03
  %159 = fmul double %5, %158
  %160 = load i32, ptr %91, align 8, !tbaa !61
  %161 = uitofp i32 %160 to double
  %162 = fmul double %159, %161
  %163 = fsub double 1.000000e+00, %125
  %164 = fmul double %163, %162
  %165 = fdiv double %164, %145
  br label %166

166:                                              ; preds = %._crit_edge, %156
  %167 = phi double [ %165, %156 ], [ 0.000000e+00, %._crit_edge ]
  %168 = getelementptr inbounds i8, ptr %3, i64 288
  store double %167, ptr %168, align 8, !tbaa !62
  %169 = getelementptr inbounds i8, ptr %3, i64 312
  %170 = extractelement <2 x i64> %41, i64 0
  store i64 %170, ptr %169, align 8, !tbaa !63
  %171 = getelementptr inbounds i8, ptr %3, i64 32
  %172 = load ptr, ptr %171, align 8, !tbaa !64
  %173 = load i64, ptr %172, align 8, !tbaa !65
  %174 = getelementptr inbounds i8, ptr %3, i64 24
  %175 = load ptr, ptr %174, align 8, !tbaa !67
  %176 = load i64, ptr %175, align 8, !tbaa !65
  %177 = sub nsw i64 %173, %176
  %178 = sitofp i64 %177 to double
  %179 = fmul double %178, 1.000000e+06
  %180 = fdiv double %179, 1.000000e+06
  %181 = getelementptr inbounds i8, ptr %172, i64 8
  %182 = load double, ptr %181, align 8, !tbaa !68
  %183 = getelementptr inbounds i8, ptr %175, i64 8
  %184 = load double, ptr %183, align 8, !tbaa !68
  %185 = fsub double %182, %184
  %186 = fdiv double %180, %185
  %187 = getelementptr inbounds i8, ptr %3, i64 320
  store double %186, ptr %187, align 8, !tbaa !69
  %188 = getelementptr inbounds i8, ptr %3, i64 328
  store i32 0, ptr %188, align 8, !tbaa !70
  %189 = load i32, ptr %0, align 8, !tbaa !71
  %190 = icmp eq i32 %189, 1
  br i1 %190, label %191, label %198

191:                                              ; preds = %166
  %192 = getelementptr inbounds i8, ptr %0, i64 8
  %193 = load ptr, ptr %192, align 8, !tbaa !72
  %194 = getelementptr inbounds i8, ptr %193, i64 48
  %195 = load i32, ptr %194, align 8, !tbaa !73
  %196 = icmp eq i32 %195, 1
  br i1 %196, label %197, label %198

197:                                              ; preds = %191
  tail call void @run_ntttcp_rtt_calculation_for_sender(ptr noundef nonnull %0)
  br label %198

198:                                              ; preds = %166, %191, %197, %1
  %.0 = phi i32 [ -1, %1 ], [ 0, %197 ], [ 0, %191 ], [ 0, %166 ]
  ret i32 %.0
}

declare double @read_value_from_proc(ptr noundef, ptr noundef) local_unnamed_addr #1

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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nounwind }

!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 104}
!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 = !{!15, !16, i64 16}
!15 = !{!"ntttcp_test_endpoint_results", !10, i64 0, !12, i64 8, !16, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !10, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !16, i64 224, !16, i64 232, !12, i64 240, !16, i64 248, !16, i64 256, !16, i64 264, !16, i64 272, !16, i64 280, !16, i64 288, !12, i64 296, !12, i64 304, !12, i64 312, !16, i64 320, !7, i64 328, !7, i64 332}
!16 = !{!"double", !8, i64 0}
!17 = !{!15, !12, i64 8}
!18 = !{!6, !7, i64 60}
!19 = !{!15, !10, i64 120}
!20 = !{!10, !10, i64 0}
!21 = !{!22, !13, i64 0}
!22 = !{!"ntttcp_test_endpoint_thread_result", !13, i64 0, !12, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!22, !12, i64 8}
!26 = !{!22, !16, i64 16}
!27 = !{!22, !16, i64 24}
!28 = !{!22, !16, i64 32}
!29 = !{!22, !16, i64 40}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!15, !16, i64 128}
!33 = !{!15, !10, i64 64}
!34 = !{!15, !10, i64 56}
!35 = !{!12, !12, i64 0}
!36 = !{!16, !16, i64 0}
!37 = !{!38, !12, i64 48}
!38 = !{!"tcp_retrans", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !12, i64 48}
!39 = !{!15, !16, i64 192}
!40 = !{!15, !12, i64 112}
!41 = !{!15, !12, i64 104}
!42 = !{!15, !12, i64 240}
!43 = !{!15, !16, i64 248}
!44 = !{!15, !10, i64 48}
!45 = !{!46, !47, i64 8}
!46 = !{!"cpu_usage_from_proc_stat", !7, i64 0, !47, i64 8, !47, i64 16, !47, i64 24, !47, i64 32, !47, i64 40, !47, i64 48}
!47 = !{!"long long", !8, i64 0}
!48 = !{!15, !10, i64 40}
!49 = !{!46, !47, i64 16}
!50 = !{!15, !16, i64 200}
!51 = !{!46, !47, i64 24}
!52 = !{!15, !16, i64 208}
!53 = !{!46, !47, i64 32}
!54 = !{!15, !16, i64 216}
!55 = !{!46, !47, i64 40}
!56 = !{!15, !16, i64 224}
!57 = !{!46, !47, i64 48}
!58 = !{!15, !16, i64 232}
!59 = !{!15, !16, i64 256}
!60 = !{!15, !16, i64 280}
!61 = !{!46, !7, i64 0}
!62 = !{!15, !16, i64 288}
!63 = !{!15, !12, i64 312}
!64 = !{!15, !10, i64 32}
!65 = !{!66, !12, i64 0}
!66 = !{!"cpu_usage", !12, i64 0, !16, i64 8, !16, i64 16, !16, i64 24}
!67 = !{!15, !10, i64 24}
!68 = !{!66, !16, i64 8}
!69 = !{!15, !16, i64 320}
!70 = !{!15, !7, i64 328}
!71 = !{!6, !7, i64 0}
!72 = !{!6, !10, i64 8}
!73 = !{!74, !7, i64 48}
!74 = !{!"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}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass