#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 *, char *);
void usage_exit(int ret_code, char *progname) {
  printf(
      "Usage: %s [OPTION]...\n"
      "A program which redirects its standard input to syslog\n\n"
      "  -i, --ident=STRING\t\tIdent string to use, defaults to httpd\n"
      "  -s, --size=BYTES\t\tMaximum size of a message, defaults to 32768 "
      "bytes, minimum is 1024\n"
      "  -f, --facility=STRING\t\tSyslog facility to use, defaults to local4\n"
      "\t\t\t\tPossible facility are: authpriv, cron, daemon, ftp, kern, "
      "local0 through local7, lpr, mail, news, user, uucp\n"
      "  -p, --priority=STRING\t\tSyslog priority to use, defaults to notice\n"
      "\t\t\t\tPossible priority are: emerg, alert, crit, err, warning, "
      "notice, info, debug\n"
      "  -o, --option=STRING\t\tA comma separated list of syslog options, "
      "defaults to none\n"
      "\t\t\t\tPossible options are: cons, ndelay, nowait, odelay, perror, "
      "pid\n"
      "  -t, --tee=PATH\t\tWrite the raw input to file, useful for debugging "
      "purposes\n"
      "  -h, --help\t\t\tDisplay this help and exit\n"
      "  -v, --version\t\t\tOutput version information and exit\n"
      "\n"
      "See syslog(3) for details\n",
      progname);
  exit(ret_code);
}


x86 assembly (clang, -O0):
<usage_exit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
lea    0xec6(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage_exit>:
push   %rbx
mov    %edi,%ebx
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [908 x i8] c"Usage: %s [OPTION]...\0AA program which redirects its standard input to syslog\0A\0A -i, --ident=STRING\09\09Ident string to use, defaults to httpd\0A -s, --size=BYTES\09\09Maximum size of a message, defaults to 32768 bytes, minimum is 1024\0A -f, --facility=STRING\09\09Syslog facility to use, defaults to local4\0A\09\09\09\09Possible facility are: authpriv, cron, daemon, ftp, kern, local0 through local7, lpr, mail, news, user, uucp\0A -p, --priority=STRING\09\09Syslog priority to use, defaults to notice\0A\09\09\09\09Possible priority are: emerg, alert, crit, err, warning, notice, info, debug\0A -o, --option=STRING\09\09A comma separated list of syslog options, defaults to none\0A\09\09\09\09Possible options are: cons, ndelay, nowait, odelay, perror, pid\0A -t, --tee=PATH\09\09Write the raw input to file, useful for debugging purposes\0A -h, --help\09\09\09Display this help and exit\0A -v, --version\09\09\09Output version information and exit\0A\0ASee syslog(3) for details\0A\00"
define void @usage_exit(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i8*
store i32 %0, i32* %3
store i8* %1, i8** %4
%5 = load i8*, i8** %4
%6 = call i32 @printf(i8* getelementptr inbounds ([908 x i8], [908 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = load i32, i32* %3
%8 = call i32 @exit(i32 %7)
unreachable
}

LLVM IR (-O2):
@.str = [908 x i8] c"Usage: %s [OPTION]...\0AA program which redirects its standard input to syslog\0A\0A -i, --ident=STRING\09\09Ident string to use, defaults to httpd\0A -s, --size=BYTES\09\09Maximum size of a message, defaults to 32768 bytes, minimum is 1024\0A -f, --facility=STRING\09\09Syslog facility to use, defaults to local4\0A\09\09\09\09Possible facility are: authpriv, cron, daemon, ftp, kern, local0 through local7, lpr, mail, news, user, uucp\0A -p, --priority=STRING\09\09Syslog priority to use, defaults to notice\0A\09\09\09\09Possible priority are: emerg, alert, crit, err, warning, notice, info, debug\0A -o, --option=STRING\09\09A comma separated list of syslog options, defaults to none\0A\09\09\09\09Possible options are: cons, ndelay, nowait, odelay, perror, pid\0A -t, --tee=PATH\09\09Write the raw input to file, useful for debugging purposes\0A -h, --help\09\09\09Display this help and exit\0A -v, --version\09\09\09Output version information and exit\0A\0ASee syslog(3) for details\0A\00"
define void @usage_exit(i32 %0, i8* %1) {
%3 = tail call i32 @printf(i8* getelementptr inbounds ([908 x i8], [908 x i8]* @.str, i64 0, i64 0), i8* %1)
%4 = tail call i32 @exit(i32 %0)
unreachable
}