#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*/ EX_USAGE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ stderr;
void usage(char *progname) {
  fprintf(
      stderr,
      "Usage: %s [OPTIONS] CMD [ARG]...\nOptions:\n  -c            change "
      "directory to the root before running the command\n  -l TAG:PRI    "
      "redirect stdout and stderr to a logger subprocess,\n                  "
      "using syslog tag TAG and priority/facility PRI\n  -l LOGFILE    append "
      "stdout and stderr to a file LOGFILE, which must be\n                  "
      "given as an absolute path whose first character is '/'\n  -p PIDFILE    "
      "lock PIDFILE and write pid to it, removing it on exit\n  -r            "
      "supervise the running command, restarting it if it dies\n               "
      "   and passing on TERM, INT, HUP, USR1 and USR2 signals\n  -u UID:GID   "
      " run the command with the specified numeric uid and gid\n  -u USERNAME  "
      " run the command with the uid and gid of user USERNAME\n  -w PATH       "
      "wait until PATH exists before running the command\n",
      progname);
  exit(EX_USAGE);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ea5(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rdx
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2ea8(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [814 x i8] c"Usage: %s [OPTIONS] CMD [ARG]...\0AOptions:\0A -c change directory to the root before running the command\0A -l TAG:PRI redirect stdout and stderr to a logger subprocess,\0A using syslog tag TAG and priority/facility PRI\0A -l LOGFILE append stdout and stderr to a file LOGFILE, which must be\0A given as an absolute path whose first character is '/'\0A -p PIDFILE lock PIDFILE and write pid to it, removing it on exit\0A -r supervise the running command, restarting it if it dies\0A and passing on TERM, INT, HUP, USR1 and USR2 signals\0A -u UID:GID run the command with the specified numeric uid and gid\0A -u USERNAME run the command with the uid and gid of user USERNAME\0A -w PATH wait until PATH exists before running the command\0A\00"
@EX_USAGE = global i32 0
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([814 x i8], [814 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = load i32, i32* @EX_USAGE
%7 = call i32 @exit(i32 %6)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [814 x i8] c"Usage: %s [OPTIONS] CMD [ARG]...\0AOptions:\0A -c change directory to the root before running the command\0A -l TAG:PRI redirect stdout and stderr to a logger subprocess,\0A using syslog tag TAG and priority/facility PRI\0A -l LOGFILE append stdout and stderr to a file LOGFILE, which must be\0A given as an absolute path whose first character is '/'\0A -p PIDFILE lock PIDFILE and write pid to it, removing it on exit\0A -r supervise the running command, restarting it if it dies\0A and passing on TERM, INT, HUP, USR1 and USR2 signals\0A -u UID:GID run the command with the specified numeric uid and gid\0A -u USERNAME run the command with the uid and gid of user USERNAME\0A -w PATH wait until PATH exists before running the command\0A\00"
@EX_USAGE = global i32 0
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([814 x i8], [814 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = load i32, i32* @EX_USAGE
%5 = tail call i32 @exit(i32 %4)
unreachable
}