#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 /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stdout;
void usage() {
  fprintf(stdout, "usage: gpnetbench -p PORT -H HOST [-l SECONDS] [-t "
                  "EXPERIMENT] [-f UNITS] [-P HEADERS] [-b KB] [-h]\n");
  fprintf(stdout, "where\n");
  fprintf(stdout, "       PORT is the port to connect to for the server\n");
  fprintf(stdout, "       HOST is the hostname to connect to for the server\n");
  fprintf(stdout, "       SECONDS is the number of seconds to sample the "
                  "network, where the default is 60\n");
  fprintf(stdout, "       EXPERIMENT is the experiment name to run, where the "
                  "default is TCP_STREAM\n");
  fprintf(
      stdout,
      "       UNITS is the output units, where the default is M megabytes\n");
  fprintf(
      stdout,
      "       HEADERS is 0 (don't) or 1 (do) display headers in the output\n");
  fprintf(stdout, "       KB is the size of the send buffer in kilobytes, "
                  "where the default is 32\n");
  fprintf(stdout, "       -h shows this help message\n");
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%edi
lea    0xedc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xf2c(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xf1e(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%edi
lea    0xf3f(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%edi
lea    0xf64(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%edi
lea    0xfa7(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%edi
lea    0xfe4(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0x1013(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%edi
lea    0x1043(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%edi
lea    0x107e(%rip),%rsi
call   1030 <fprintf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2ec8(%rip),%rbx
mov    (%rbx),%edi
lea    0xedf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf36(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf2f(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf57(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xf83(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xfcd(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1011(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x1047(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x107e(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x10c0(%rip),%rsi
pop    %rbx
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [101 x i8] c"usage: gpnetbench -p PORT -H HOST [-l SECONDS] [-t EXPERIMENT] [-f UNITS] [-P HEADERS] [-b KB] [-h]\0A\00"
@.str.1 = [7 x i8] c"where\0A\00"
@.str.2 = [54 x i8] c" PORT is the port to connect to for the server\0A\00"
@.str.3 = [58 x i8] c" HOST is the hostname to connect to for the server\0A\00"
@.str.4 = [88 x i8] c" SECONDS is the number of seconds to sample the network, where the default is 60\0A\00"
@.str.5 = [82 x i8] c" EXPERIMENT is the experiment name to run, where the default is TCP_STREAM\0A\00"
@.str.6 = [68 x i8] c" UNITS is the output units, where the default is M megabytes\0A\00"
@.str.7 = [69 x i8] c" HEADERS is 0 (don't) or 1 (do) display headers in the output\0A\00"
@.str.8 = [80 x i8] c" KB is the size of the send buffer in kilobytes, where the default is 32\0A\00"
@.str.9 = [35 x i8] c" -h shows this help message\0A\00"
define void @usage() {
%1 = load i32, i32* @stdout
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [101 x i8] c"usage: gpnetbench -p PORT -H HOST [-l SECONDS] [-t EXPERIMENT] [-f UNITS] [-P HEADERS] [-b KB] [-h]\0A\00"
@.str.1 = [7 x i8] c"where\0A\00"
@.str.2 = [54 x i8] c" PORT is the port to connect to for the server\0A\00"
@.str.3 = [58 x i8] c" HOST is the hostname to connect to for the server\0A\00"
@.str.4 = [88 x i8] c" SECONDS is the number of seconds to sample the network, where the default is 60\0A\00"
@.str.5 = [82 x i8] c" EXPERIMENT is the experiment name to run, where the default is TCP_STREAM\0A\00"
@.str.6 = [68 x i8] c" UNITS is the output units, where the default is M megabytes\0A\00"
@.str.7 = [69 x i8] c" HEADERS is 0 (don't) or 1 (do) display headers in the output\0A\00"
@.str.8 = [80 x i8] c" KB is the size of the send buffer in kilobytes, where the default is 32\0A\00"
@.str.9 = [35 x i8] c" -h shows this help message\0A\00"
define void @usage() {
%1 = load i32, i32* @stdout
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stdout
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%5 = load i32, i32* @stdout
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0))
%7 = load i32, i32* @stdout
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.3, i64 0, i64 0))
%9 = load i32, i32* @stdout
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.4, i64 0, i64 0))
%11 = load i32, i32* @stdout
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([82 x i8], [82 x i8]* @.str.5, i64 0, i64 0))
%13 = load i32, i32* @stdout
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.6, i64 0, i64 0))
%15 = load i32, i32* @stdout
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.7, i64 0, i64 0))
%17 = load i32, i32* @stdout
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.8, i64 0, i64 0))
%19 = load i32, i32* @stdout
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0))
ret void
}