#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*/ printf(char *);
void usage() {
  printf("Use: god [options] [--] program [arguments]\n"
         "Options:\n"
         "-h --help           show this help and exit\n"
         "-v --version        show version and exit\n"
         "-f --foreground     run in foreground\n"
         "-n --nohup          make the program immune to SIGHUP\n"
         "-l --logfile FILE   write the program's stdout and stderr to FILE\n"
         "-p --pidfile FILE   write pid to FILE\n"
         "-r --rundir DIR     switch to DIR before executing the program\n"
         "-u --user USER      switch to USER before executing the program\n"
         "-g --group GROUP    switch to GROUP before executing the program\n"
         "\nThe program's output go to a blackhole if no logfile is set.\n"
         "Log files are recycled on SIGHUP.\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xed8(%rip),%rdi
call   1030 <puts@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [624 x i8] c"Use: god [options] [--] program [arguments]\0AOptions:\0A-h --help show this help and exit\0A-v --version show version and exit\0A-f --foreground run in foreground\0A-n --nohup make the program immune to SIGHUP\0A-l --logfile FILE write the program's stdout and stderr to FILE\0A-p --pidfile FILE write pid to FILE\0A-r --rundir DIR switch to DIR before executing the program\0A-u --user USER switch to USER before executing the program\0A-g --group GROUP switch to GROUP before executing the program\0A\0AThe program's output go to a blackhole if no logfile is set.\0ALog files are recycled on SIGHUP.\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([624 x i8], [624 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@str = [623 x i8] c"Use: god [options] [--] program [arguments]\0AOptions:\0A-h --help show this help and exit\0A-v --version show version and exit\0A-f --foreground run in foreground\0A-n --nohup make the program immune to SIGHUP\0A-l --logfile FILE write the program's stdout and stderr to FILE\0A-p --pidfile FILE write pid to FILE\0A-r --rundir DIR switch to DIR before executing the program\0A-u --user USER switch to USER before executing the program\0A-g --group GROUP switch to GROUP before executing the program\0A\0AThe program's output go to a blackhole if no logfile is set.\0ALog files are recycled on SIGHUP.\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([623 x i8], [623 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @exit(i32 1)
unreachable
}