#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr, "USAGE: nicstat [-hvnsxpztualMU] [-i int[,int...]]\n   "
                  "[-S int:mbps[,int:mbps...]] "
                  "[interval [count]]\n"
                  "\n"
                  "         -h                 # help\n"
                  "         -v                 # show version ("
                  "0.1"
                  ")\n"
                  "         -i interface       # track interface only\n"
                  "         -n                 # show non-local interfaces only"
                  " (exclude lo0)\n"
                  "         -s                 # summary output\n"
                  "         -x                 # extended output\n"
                  "         -p                 # parseable output\n"
                  "         -z                 # skip zero value lines\n"
                  "         -t                 # show TCP statistics\n"
                  "         -u                 # show UDP statistics\n"
                  "         -a                 # equivalent to \"-x -u -t\"\n"
                  "         -l                 # list interface(s)\n"
                  "         -M                 # output in Mbits/sec\n"
                  "         -U                 # separate %%rUtil and %%wUtil\n"
                  "         -S int:mbps[fd|hd] # tell nicstat the interface\n"
                  "                            # speed (Mbits/sec) and duplex\n"
                  "    eg,\n");
  fprintf(stderr,
          "       nicstat              # print summary since boot only\n"
          "       nicstat 1            # print every 1 second\n"
          "       nicstat 1 5          # print 5 times only\n"
          "       nicstat -z 1         # print every 1 second, skip zero"
          " lines\n"
          "       nicstat -i hme0 1    # print hme0 only every 1 second\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
lea    0x1261(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rbx
mov    0x2eb8(%rip),%rbx
mov    (%rbx),%edi
lea    0xecf(%rip),%rsi
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0x126b(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [938 x i8] c"USAGE: nicstat [-hvnsxpztualMU] [-i int[,int...]]\0A [-S int:mbps[,int:mbps...]] [interval [count]]\0A\0A -h # help\0A -v # show version (0.1)\0A -i interface # track interface only\0A -n # show non-local interfaces only (exclude lo0)\0A -s # summary output\0A -x # extended output\0A -p # parseable output\0A -z # skip zero value lines\0A -t # show TCP statistics\0A -u # show UDP statistics\0A -a # equivalent to \22-x -u -t\22\0A -l # list interface(s)\0A -M # output in Mbits/sec\0A -U # separate %%rUtil and %%wUtil\0A -S int:mbps[fd|hd] # tell nicstat the interface\0A # speed (Mbits/sec) and duplex\0A eg,\0A\00"
@.str.1 = [290 x i8] c" nicstat # print summary since boot only\0A nicstat 1 # print every 1 second\0A nicstat 1 5 # print 5 times only\0A nicstat -z 1 # print every 1 second, skip zero lines\0A nicstat -i hme0 1 # print hme0 only every 1 second\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([938 x i8], [938 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([290 x i8], [290 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [938 x i8] c"USAGE: nicstat [-hvnsxpztualMU] [-i int[,int...]]\0A [-S int:mbps[,int:mbps...]] [interval [count]]\0A\0A -h # help\0A -v # show version (0.1)\0A -i interface # track interface only\0A -n # show non-local interfaces only (exclude lo0)\0A -s # summary output\0A -x # extended output\0A -p # parseable output\0A -z # skip zero value lines\0A -t # show TCP statistics\0A -u # show UDP statistics\0A -a # equivalent to \22-x -u -t\22\0A -l # list interface(s)\0A -M # output in Mbits/sec\0A -U # separate %%rUtil and %%wUtil\0A -S int:mbps[fd|hd] # tell nicstat the interface\0A # speed (Mbits/sec) and duplex\0A eg,\0A\00"
@.str.1 = [290 x i8] c" nicstat # print summary since boot only\0A nicstat 1 # print every 1 second\0A nicstat 1 5 # print 5 times only\0A nicstat -z 1 # print every 1 second, skip zero lines\0A nicstat -i hme0 1 # print hme0 only every 1 second\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([938 x i8], [938 x i8]* @.str, i64 0, i64 0))
%3 = load i32, i32* @stderr
%4 = tail call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([290 x i8], [290 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @exit(i32 1)
unreachable
}