#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ get_resolution_of_clock_gettime();
unsigned long pipe_latency(unsigned int, int /*<<< orphan*/);
unsigned long pipe_throughput(unsigned int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
unsigned long tcp_latency(unsigned int, int /*<<< orphan*/);
unsigned long tcp_throughput(unsigned int, int /*<<< orphan*/);
unsigned long udp_latency(unsigned int, int /*<<< orphan*/);
unsigned long udp_throughput(unsigned int, int /*<<< orphan*/);
int main(int argc, char **argv) {
  unsigned chunk_size[] = {4,          16,        64,        256,
                           1024,       4 * 1024,  16 * 1024, 64 * 1024,
                           256 * 1024, 512 * 1024};
  long unsigned t;
  int i;
  int repeat = 1;
  if (argc == 2)
    repeat = atoi(argv[1]);
  get_resolution_of_clock_gettime();
  printf("SIZE\tPIPE latency us\tPIPE throughput MB/s\tTCP latency us\tTCP "
         "throughput MB/s\tUDP latency us\tUDP throughput MB/s\n");
  while (repeat) {
    for (i = 0; i < 10; i++) {
      printf("%8u\t", chunk_size[i]);
      t = pipe_latency(chunk_size[i], 0);
      printf("%8.2f\t", t / 1000.0);
      t = pipe_throughput(chunk_size[i], 0);
      printf("%8.2f\t", chunk_size[i] * 1000000000.0 / t / 1024 / 1024);
      t = tcp_latency(chunk_size[i], 0);
      printf("%8.2f\t", t / 1000.0);
      t = tcp_throughput(chunk_size[i], 0);
      printf("%8.2f\t", chunk_size[i] * 1000000000.0 / t / 1024 / 1024);
      t = udp_latency(chunk_size[i], 0);
      printf("%8.2f\t", t / 1000.0);
      t = udp_throughput(chunk_size[i], 0);
      printf("%8.2f\t\n", chunk_size[i] * 1000000000.0 / t / 1024 / 1024);
    }
    repeat--;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x40(%rbp),%rdi
lea    0xe7c(%rip),%rsi
mov    $0x28,%edx
call   1090 <memcpy@plt>
movl   $0x1,-0x50(%rbp)
cmpl   $0x2,-0x8(%rbp)
jne    11ef <main+0x4f>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x50(%rbp)
mov    $0x0,%al
call   1080 <get_resolution_of_clock_gettime@plt>
lea    0xe6b(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x50(%rbp)
je     14cb <main+0x32b>
movl   $0x0,-0x4c(%rbp)
cmpl   $0xa,-0x4c(%rbp)
jge    14bd <main+0x31d>
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
lea    0xeab(%rip),%rdi
xor    %eax,%eax
mov    %eax,-0x7c(%rbp)
call   1050 <printf@plt>
mov    -0x7c(%rbp),%esi
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1030 <pipe_latency@plt>
mov    %rax,-0x48(%rbp)
movq   -0x48(%rbp),%xmm0
movaps 0xdc8(%rip),%xmm1
movaps %xmm1,-0x70(%rbp)
punpckldq %xmm1,%xmm0
movapd 0xdc8(%rip),%xmm1
movaps %xmm1,-0x60(%rbp)
subpd  %xmm1,%xmm0
movaps %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd85(%rip),%xmm1
movsd  %xmm1,-0x90(%rbp)
ff
divsd  %xmm1,%xmm0
lea    0xe48(%rip),%rdi
mov    %rdi,-0x88(%rbp)
mov    $0x1,%al
mov    %al,-0x7d(%rbp)
call   1050 <printf@plt>
mov    -0x7c(%rbp),%esi
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1070 <pipe_throughput@plt>
mov    -0x88(%rbp),%rdi
movaps -0x70(%rbp),%xmm3
movaps -0x60(%rbp),%xmm2
mov    %rax,%rcx
mov    -0x7d(%rbp),%al
mov    %rcx,-0x48(%rbp)
movslq -0x4c(%rbp),%rcx
mov    -0x40(%rbp,%rcx,4),%ecx
cvtsi2sd %rcx,%xmm0
movsd  0xd2b(%rip),%xmm1
movsd  %xmm1,-0x78(%rbp)
mulsd  %xmm1,%xmm0
movq   -0x48(%rbp),%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xcee(%rip),%xmm1
movsd  %xmm1,-0x98(%rbp)
ff
divsd  %xmm1,%xmm0
divsd  %xmm1,%xmm0
call   1050 <printf@plt>
mov    -0x7c(%rbp),%esi
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   10a0 <tcp_latency@plt>
movsd  -0x90(%rbp),%xmm1
ff
mov    -0x88(%rbp),%rdi
movaps -0x70(%rbp),%xmm3
movaps -0x60(%rbp),%xmm2
mov    %rax,%rcx
mov    -0x7d(%rbp),%al
mov    %rcx,-0x48(%rbp)
movq   -0x48(%rbp),%xmm0
punpckldq %xmm3,%xmm0
subpd  %xmm2,%xmm0
movaps %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
addsd  %xmm2,%xmm0
divsd  %xmm1,%xmm0
call   1050 <printf@plt>
mov    -0x7c(%rbp),%esi
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   10c0 <tcp_throughput@plt>
movsd  -0x98(%rbp),%xmm1
ff
mov    -0x88(%rbp),%rdi
movsd  -0x78(%rbp),%xmm2
movaps -0x70(%rbp),%xmm4
movaps -0x60(%rbp),%xmm3
mov    %rax,%rcx
mov    -0x7d(%rbp),%al
mov    %rcx,-0x48(%rbp)
movslq -0x4c(%rbp),%rcx
mov    -0x40(%rbp,%rcx,4),%ecx
cvtsi2sd %rcx,%xmm0
mulsd  %xmm2,%xmm0
movq   -0x48(%rbp),%xmm2
punpckldq %xmm4,%xmm2
subpd  %xmm3,%xmm2
movaps %xmm2,%xmm3
unpckhpd %xmm2,%xmm2
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm0
divsd  %xmm1,%xmm0
divsd  %xmm1,%xmm0
call   1050 <printf@plt>
mov    -0x7c(%rbp),%esi
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1060 <udp_latency@plt>
movsd  -0x90(%rbp),%xmm1
mov    -0x88(%rbp),%rdi
movaps -0x70(%rbp),%xmm3
movaps -0x60(%rbp),%xmm2
mov    %rax,%rcx
mov    -0x7d(%rbp),%al
mov    %rcx,-0x48(%rbp)
movq   -0x48(%rbp),%xmm0
punpckldq %xmm3,%xmm0
subpd  %xmm2,%xmm0
movaps %xmm0,%xmm2
unpckhpd %xmm0,%xmm0
addsd  %xmm2,%xmm0
divsd  %xmm1,%xmm0
call   1050 <printf@plt>
mov    -0x7c(%rbp),%esi
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%edi
call   1040 <udp_throughput@plt>
movsd  -0x78(%rbp),%xmm1
movaps -0x70(%rbp),%xmm3
movaps -0x60(%rbp),%xmm2
mov    %rax,-0x48(%rbp)
movslq -0x4c(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%eax
cvtsi2sd %rax,%xmm0
mulsd  %xmm1,%xmm0
movq   -0x48(%rbp),%xmm1
punpckldq %xmm3,%xmm1
subpd  %xmm2,%xmm1
movaps %xmm1,%xmm2
unpckhpd %xmm1,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xb6f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xb63(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xc3d(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
jmp    1215 <main+0x75>
mov    -0x50(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x50(%rbp)
jmp    1204 <main+0x64>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    $0x1,%ebx
cmp    $0x2,%edi
jne    11c3 <main+0x23>
mov    0x8(%rsi),%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebx
xor    %eax,%eax
call   1090 <get_resolution_of_clock_gettime@plt>
lea    0xeab(%rip),%rdi
call   1050 <puts@plt>
test   %ebx,%ebx
je     13f6 <main+0x256>
lea    0xe5b(%rip),%r13
lea    0xe7c(%rip),%r15
lea    0xe7a(%rip),%rbp
lea    0xe7a(%rip),%r12
nopw   0x0(%rax,%rax,1)
mov    %ebx,0xc(%rsp)
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
mov    (%r14,%r13,1),%ebx
mov    %r15,%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1030 <pipe_latency@plt>
movq   %rax,%xmm1
movdqa 0xdca(%rip),%xmm0
punpckldq %xmm0,%xmm1
movapd 0xdce(%rip),%xmm0
subpd  %xmm0,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
movsd  0xdc6(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1080 <pipe_throughput@plt>
cvtsi2sd %rbx,%xmm2
mulsd  0xdaa(%rip),%xmm2
movsd  %xmm2,0x10(%rsp)
movq   %rax,%xmm0
punpckldq 0xd6f(%rip),%xmm0
subpd  0xd77(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
movsd  0xd7b(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   10a0 <tcp_latency@plt>
movq   %rax,%xmm1
punpckldq 0xd23(%rip),%xmm1
subpd  0xd2b(%rip),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
divsd  0xd27(%rip),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   10c0 <tcp_throughput@plt>
movq   %rax,%xmm0
punpckldq 0xce7(%rip),%xmm0
subpd  0xcef(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
divsd  %xmm1,%xmm0
movsd  0xcf1(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1070 <udp_latency@plt>
movq   %rax,%xmm1
punpckldq 0xc99(%rip),%xmm1
subpd  0xca1(%rip),%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
addsd  %xmm1,%xmm0
divsd  0xc9d(%rip),%xmm0
mov    %rbp,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %ebx,%edi
xor    %esi,%esi
call   1040 <udp_throughput@plt>
movq   %rax,%xmm0
punpckldq 0xc5d(%rip),%xmm0
subpd  0xc65(%rip),%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
addsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
divsd  %xmm1,%xmm0
movsd  0xc67(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  %xmm1,%xmm0
mov    %r12,%rdi
mov    $0x1,%al
call   1060 <printf@plt>
add    $0x4,%r14
cmp    $0x28,%r14
jne    1210 <main+0x70>
mov    0xc(%rsp),%ebx
add    $0xffffffff,%ebx
jne    1200 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.chunk_size = [10 x i32] [i32 4, i32 16, i32 64, i32 256, i32 1024, i32 4096, i32 16384, i32 65536, i32 262144, i32 524288]
@.str = [113 x i8] c"SIZE\09PIPE latency us\09PIPE throughput MB/s\09TCP latency us\09TCP throughput MB/s\09UDP latency us\09UDP throughput MB/s\0A\00"
@.str.1 = [5 x i8] c"%8u\09\00"
@.str.2 = [7 x i8] c"%8.2f\09\00"
@.str.3 = [8 x i8] c"%8.2f\09\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [10 x i32]
%7 = alloca i64
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = bitcast [10 x i32]* %6 to i8*
store i32 1, i32* %9
%11 = load i32, i32* %4
%12 = icmp eq i32 %11, 2
br i1 %12, label %13, label %18
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = call i32 @atoi(i8* %16)
store i32 %17, i32* %9
br label %18
18: ; preds = %13, %2
%19 = call i32 (...) @get_resolution_of_clock_gettime()
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([113 x i8], [113 x i8]* @.str, i64 0, i64 0))
br label %21
21: ; preds = %115, %18
%22 = load i32, i32* %9
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %118
24: ; preds = %21
store i32 0, i32* %8
br label %25
25: ; preds = %112, %24
%26 = load i32, i32* %8
%27 = icmp slt i32 %26, 10
br i1 %27, label %28, label %115
28: ; preds = %25
%29 = load i32, i32* %8
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %30
%32 = load i32, i32* %31
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %8
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %35
%37 = load i32, i32* %36
%38 = call i64 @pipe_latency(i32 %37, i32 0)
store i64 %38, i64* %7
%39 = load i64, i64* %7
%40 = uitofp i64 %39 to double
%41 = fdiv double %40, 1.000000e+03
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %41)
%43 = load i32, i32* %8
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = call i64 @pipe_throughput(i32 %46, i32 0)
store i64 %47, i64* %7
%48 = load i32, i32* %8
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %49
%51 = load i32, i32* %50
%52 = uitofp i32 %51 to double
%53 = fmul double %52, 1.000000e+09
%54 = load i64, i64* %7
%55 = uitofp i64 %54 to double
%56 = fdiv double %53, %55
%57 = fdiv double %56, 1.024000e+03
%58 = fdiv double %57, 1.024000e+03
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %58)
%60 = load i32, i32* %8
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = call i64 @tcp_latency(i32 %63, i32 0)
store i64 %64, i64* %7
%65 = load i64, i64* %7
%66 = uitofp i64 %65 to double
%67 = fdiv double %66, 1.000000e+03
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %67)
%69 = load i32, i32* %8
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = call i64 @tcp_throughput(i32 %72, i32 0)
store i64 %73, i64* %7
%74 = load i32, i32* %8
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %75
%77 = load i32, i32* %76
%78 = uitofp i32 %77 to double
%79 = fmul double %78, 1.000000e+09
%80 = load i64, i64* %7
%81 = uitofp i64 %80 to double
%82 = fdiv double %79, %81
%83 = fdiv double %82, 1.024000e+03
%84 = fdiv double %83, 1.024000e+03
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %84)
%86 = load i32, i32* %8
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %87
%89 = load i32, i32* %88
%90 = call i64 @udp_latency(i32 %89, i32 0)
store i64 %90, i64* %7
%91 = load i64, i64* %7
%92 = uitofp i64 %91 to double
%93 = fdiv double %92, 1.000000e+03
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %93)
%95 = load i32, i32* %8
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %96
%98 = load i32, i32* %97
%99 = call i64 @udp_throughput(i32 %98, i32 0)
store i64 %99, i64* %7
%100 = load i32, i32* %8
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [10 x i32], [10 x i32]* %6, i64 0, i64 %101
%103 = load i32, i32* %102
%104 = uitofp i32 %103 to double
%105 = fmul double %104, 1.000000e+09
%106 = load i64, i64* %7
%107 = uitofp i64 %106 to double
%108 = fdiv double %105, %107
%109 = fdiv double %108, 1.024000e+03
%110 = fdiv double %109, 1.024000e+03
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double %110)
br label %112
112: ; preds = %28
%113 = load i32, i32* %8
%114 = add nsw i32 %113, 1
store i32 %114, i32* %8
br label %25
115: ; preds = %25
%116 = load i32, i32* %9
%117 = add nsw i32 %116, -1
store i32 %117, i32* %9
br label %21
118: ; preds = %21
ret i32 0
}

LLVM IR (-O2):
@__const.main.chunk_size = [10 x i32] [i32 4, i32 16, i32 64, i32 256, i32 1024, i32 4096, i32 16384, i32 65536, i32 262144, i32 524288]
@.str.1 = [5 x i8] c"%8u\09\00"
@.str.2 = [7 x i8] c"%8.2f\09\00"
@.str.3 = [8 x i8] c"%8.2f\09\0A\00"
@str = [112 x i8] c"SIZE\09PIPE latency us\09PIPE throughput MB/s\09TCP latency us\09TCP throughput MB/s\09UDP latency us\09UDP throughput MB/s\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @atoi(i8* %6)
br label %8
8: ; preds = %4, %2
%9 = phi i32 [ %7, %4 ], [ 1, %2 ]
%10 = tail call i32 (...) @get_resolution_of_clock_gettime()
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @str, i64 0, i64 0))
%12 = icmp eq i32 %9, 0
br i1 %12, label %57, label %13
13: ; preds = %8, %54
%14 = phi i32 [ %55, %54 ], [ %9, %8 ]
br label %15
15: ; preds = %13, %15
%16 = phi i64 [ 0, %13 ], [ %52, %15 ]
%17 = getelementptr inbounds [10 x i32], [10 x i32]* @__const.main.chunk_size, i64 0, i64 %16
%18 = load i32, i32* %17
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i32 %18)
%20 = tail call i64 @pipe_latency(i32 %18, i32 0)
%21 = uitofp i64 %20 to double
%22 = fdiv double %21, 1.000000e+03
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %22)
%24 = tail call i64 @pipe_throughput(i32 %18, i32 0)
%25 = uitofp i32 %18 to double
%26 = fmul double %25, 1.000000e+09
%27 = uitofp i64 %24 to double
%28 = fdiv double %26, %27
%29 = fmul double %28, 0x3F50000000000000
%30 = fmul double %29, 0x3F50000000000000
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %30)
%32 = tail call i64 @tcp_latency(i32 %18, i32 0)
%33 = uitofp i64 %32 to double
%34 = fdiv double %33, 1.000000e+03
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %34)
%36 = tail call i64 @tcp_throughput(i32 %18, i32 0)
%37 = uitofp i64 %36 to double
%38 = fdiv double %26, %37
%39 = fmul double %38, 0x3F50000000000000
%40 = fmul double %39, 0x3F50000000000000
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %40)
%42 = tail call i64 @udp_latency(i32 %18, i32 0)
%43 = uitofp i64 %42 to double
%44 = fdiv double %43, 1.000000e+03
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %44)
%46 = tail call i64 @udp_throughput(i32 %18, i32 0)
%47 = uitofp i64 %46 to double
%48 = fdiv double %26, %47
%49 = fmul double %48, 0x3F50000000000000
%50 = fmul double %49, 0x3F50000000000000
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), double %50)
%52 = add nuw nsw i64 %16, 1
%53 = icmp eq i64 %52, 10
br i1 %53, label %54, label %15
54: ; preds = %15
%55 = add nsw i32 %14, -1
%56 = icmp eq i32 %55, 0
br i1 %56, label %57, label %13
57: ; preds = %54, %8
ret i32 0
}