#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*/ printf(char *, int, int);
void usage(void) {
  printf("Usage: wperf [-s|-c host] [options]\n"
         "       wperf [-h|--help]\n"
         "\nOptions:\n"
         "\t-p, --port     <port> server UDP port to listen on/connect to\n"
         "\t-m, --mtu      <mtu>  set the MTU size, default %u\n"
         "\t-s, --server          run in server mode\n"
         "\t-c, --client   <host> run in client mode, connecting to <host>\n"
         "\t-b, --bandwidh <bps>  set the bandwidth in [G|M|k]bit/s\n"
         "\t-M, --monitor  <if>   use a monitor interface for send/receive\n"
         "\t-D, --dhost    <mac>  dest MAC address (monitor only)\n"
         "\t-S, --shost    <mac>  source MAC address (monitor only)\n"
         "\t-B, --bssid    <mac>  AP BSSID MAC address (monitor only)\n"
         "\t-q, --tid      <tid>  set TID, -1 for non-QoS (monitor only)\n"
         "\t-t, --sta             run as STA instead of AP (monitor only)\n"
         "\t-i, --interval <sec>  set the printout interval (default %us)\n"
         "\t-h, --help            display this help and exit\n",
         1500, 1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x5dc,%esi
mov    $0x1,%edx
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<usage>:
lea    0xee9(%rip),%rdi
mov    $0x5dc,%esi
mov    $0x1,%edx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [823 x i8] c"Usage: wperf [-s|-c host] [options]\0A wperf [-h|--help]\0A\0AOptions:\0A\09-p, --port <port> server UDP port to listen on/connect to\0A\09-m, --mtu <mtu> set the MTU size, default %u\0A\09-s, --server run in server mode\0A\09-c, --client <host> run in client mode, connecting to <host>\0A\09-b, --bandwidh <bps> set the bandwidth in [G|M|k]bit/s\0A\09-M, --monitor <if> use a monitor interface for send/receive\0A\09-D, --dhost <mac> dest MAC address (monitor only)\0A\09-S, --shost <mac> source MAC address (monitor only)\0A\09-B, --bssid <mac> AP BSSID MAC address (monitor only)\0A\09-q, --tid <tid> set TID, -1 for non-QoS (monitor only)\0A\09-t, --sta run as STA instead of AP (monitor only)\0A\09-i, --interval <sec> set the printout interval (default %us)\0A\09-h, --help display this help and exit\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([823 x i8], [823 x i8]* @.str, i64 0, i64 0), i32 1500, i32 1)
ret void
}

LLVM IR (-O2):
@.str = [823 x i8] c"Usage: wperf [-s|-c host] [options]\0A wperf [-h|--help]\0A\0AOptions:\0A\09-p, --port <port> server UDP port to listen on/connect to\0A\09-m, --mtu <mtu> set the MTU size, default %u\0A\09-s, --server run in server mode\0A\09-c, --client <host> run in client mode, connecting to <host>\0A\09-b, --bandwidh <bps> set the bandwidth in [G|M|k]bit/s\0A\09-M, --monitor <if> use a monitor interface for send/receive\0A\09-D, --dhost <mac> dest MAC address (monitor only)\0A\09-S, --shost <mac> source MAC address (monitor only)\0A\09-B, --bssid <mac> AP BSSID MAC address (monitor only)\0A\09-q, --tid <tid> set TID, -1 for non-QoS (monitor only)\0A\09-t, --sta run as STA instead of AP (monitor only)\0A\09-i, --interval <sec> set the printout interval (default %us)\0A\09-h, --help display this help and exit\0A\00"
define void @usage() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([823 x i8], [823 x i8]* @.str, i64 0, i64 0), i32 1500, i32 1)
ret void
}