#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_FAILURE;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *const, char *const,
                           char *const, char *const);
int /*<<< orphan*/ stderr;
void _usage(char *const *argv) {
  fprintf(stderr,
          "Usage: %s [OPTIONS] COMMAND [ARG]...\n"
          "\n"
          "  COMMAND    \tFull path to command line executable\n"
          "  ARG...     \tCommand line arguments to the "
          "executable\n"
          "  OPTIONS\n"
          "    -u <uid>   \tSet UID\n"
          "    -g <gid>   \tSet GID\n"
          "    -i <stdin> \tSource file for stdin redirection\n"
          "    -o <stdout>\tTarget file for stdout redirection\n"
          "    -e <stderr>\tTarget file for stderr redirection\n"
          "    -r         \tRestart process if the child exit "
          "code is different than zero.\n"
          "    -R         \tRestart process regardless the "
          "child exit code.\n"
          "    -f         \tForce PID file rewrite\n"
          "    -p <file>  \tPID file name\n"
          "\n"
          "Examples:\n"
          "\n"
          "  # %s /usr/local/sbin/example\n"
          "  # %s -u 1000 -g 50 -f -p /var/run/example.pid -- "
          "/usr/local/sbin/example -y opt\n"
          "  # %s -u 1000 -g 50 -f -p /var/run/example.pid -o "
          "/tmp/stdout.log -e /tmp/stderr.log -- "
          "/usr/local/sbin/example -y opt\n"
          "\n",
          argv[0], argv[0], argv[0], argv[0]);
  exit(EXIT_FAILURE);
}


x86 assembly (clang, -O0):
<_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ead(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%rdx
mov    -0x8(%rbp),%rax
mov    (%rax),%rcx
mov    -0x8(%rbp),%rax
mov    (%rax),%r8
mov    -0x8(%rbp),%rax
mov    (%rax),%r9
lea    0xea8(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e74(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<_usage>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%eax
mov    (%rdi),%rcx
lea    0xecc(%rip),%rsi
mov    %eax,%edi
mov    %rcx,%rdx
mov    %rcx,%r8
mov    %rcx,%r9
call   1030 <fprintf@plt>
mov    0x2e8d(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [813 x i8] c"Usage: %s [OPTIONS] COMMAND [ARG]...\0A\0A COMMAND \09Full path to command line executable\0A ARG... \09Command line arguments to the executable\0A OPTIONS\0A -u <uid> \09Set UID\0A -g <gid> \09Set GID\0A -i <stdin> \09Source file for stdin redirection\0A -o <stdout>\09Target file for stdout redirection\0A -e <stderr>\09Target file for stderr redirection\0A -r \09Restart process if the child exit code is different than zero.\0A -R \09Restart process regardless the child exit code.\0A -f \09Force PID file rewrite\0A -p <file> \09PID file name\0A\0AExamples:\0A\0A # %s /usr/local/sbin/example\0A # %s -u 1000 -g 50 -f -p /var/run/example.pid -- /usr/local/sbin/example -y opt\0A # %s -u 1000 -g 50 -f -p /var/run/example.pid -o /tmp/stdout.log -e /tmp/stderr.log -- /usr/local/sbin/example -y opt\0A\0A\00"
@EXIT_FAILURE = 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 = getelementptr inbounds i8*, i8** %4, i64 0
%6 = load i8*, i8** %5
%7 = load i8**, i8*** %2
%8 = getelementptr inbounds i8*, i8** %7, i64 0
%9 = load i8*, i8** %8
%10 = load i8**, i8*** %2
%11 = getelementptr inbounds i8*, i8** %10, i64 0
%12 = load i8*, i8** %11
%13 = load i8**, i8*** %2
%14 = getelementptr inbounds i8*, i8** %13, i64 0
%15 = load i8*, i8** %14
%16 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([813 x i8], [813 x i8]* @.str, i64 0, i64 0), i8* %6, i8* %9, i8* %12, i8* %15)
%17 = load i32, i32* @EXIT_FAILURE
%18 = call i32 @exit(i32 %17)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [813 x i8] c"Usage: %s [OPTIONS] COMMAND [ARG]...\0A\0A COMMAND \09Full path to command line executable\0A ARG... \09Command line arguments to the executable\0A OPTIONS\0A -u <uid> \09Set UID\0A -g <gid> \09Set GID\0A -i <stdin> \09Source file for stdin redirection\0A -o <stdout>\09Target file for stdout redirection\0A -e <stderr>\09Target file for stderr redirection\0A -r \09Restart process if the child exit code is different than zero.\0A -R \09Restart process regardless the child exit code.\0A -f \09Force PID file rewrite\0A -p <file> \09PID file name\0A\0AExamples:\0A\0A # %s /usr/local/sbin/example\0A # %s -u 1000 -g 50 -f -p /var/run/example.pid -- /usr/local/sbin/example -y opt\0A # %s -u 1000 -g 50 -f -p /var/run/example.pid -o /tmp/stdout.log -e /tmp/stderr.log -- /usr/local/sbin/example -y opt\0A\0A\00"
@EXIT_FAILURE = global i32 0
define void @_usage(i8** nocapture %0) {
%2 = load i32, i32* @stderr
%3 = load i8*, i8** %0
%4 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([813 x i8], [813 x i8]* @.str, i64 0, i64 0), i8* %3, i8* %3, i8* %3, i8* %3)
%5 = load i32, i32* @EXIT_FAILURE
%6 = tail call i32 @exit(i32 %5)
unreachable
}