#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 /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char const *);
void usage(const char *progname) {
  printf(
      "Usage: %s INFILE [--output OUTFILE] [--table-name NAME] [--append]\n"
      "Generate a table of symbolic names for syscall numbers from INFILE.\n"
      "The table in the generated header is named NAME.\n"
      "\n"
      "Options:\n"
      "  -o, --output OUTFILE  Write output to this file.\n"
      "  -t, --table NAME      Name the table NAME in the generated header.\n"
      "  -a, --append          Append to OUTFILE.\n"
      "  -h, --help            Print this help screen.\n"
      "      --version         Output version information and exit.\n"
      "\n"
      "With no INFILE, or when INFILE is -, read standard input.\n"
      "With no OUTFILE, or when OUTFILE is -, write to standard output.\n"
      "With no NAME, name the table 'syscall_list'.\n"
      "\n"
      "Report bugs to <hp@tmm.cx>.\n",
      progname);
  exit(0);
}


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

x86 assembly (clang, -O2):
<usage>:
push   %rax
mov    %rdi,%rsi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [665 x i8] c"Usage: %s INFILE [--output OUTFILE] [--table-name NAME] [--append]\0AGenerate a table of symbolic names for syscall numbers from INFILE.\0AThe table in the generated header is named NAME.\0A\0AOptions:\0A -o, --output OUTFILE Write output to this file.\0A -t, --table NAME Name the table NAME in the generated header.\0A -a, --append Append to OUTFILE.\0A -h, --help Print this help screen.\0A --version Output version information and exit.\0A\0AWith no INFILE, or when INFILE is -, read standard input.\0AWith no OUTFILE, or when OUTFILE is -, write to standard output.\0AWith no NAME, name the table 'syscall_list'.\0A\0AReport bugs to <hp@tmm.cx>.\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([665 x i8], [665 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [665 x i8] c"Usage: %s INFILE [--output OUTFILE] [--table-name NAME] [--append]\0AGenerate a table of symbolic names for syscall numbers from INFILE.\0AThe table in the generated header is named NAME.\0A\0AOptions:\0A -o, --output OUTFILE Write output to this file.\0A -t, --table NAME Name the table NAME in the generated header.\0A -a, --append Append to OUTFILE.\0A -h, --help Print this help screen.\0A --version Output version information and exit.\0A\0AWith no INFILE, or when INFILE is -, read standard input.\0AWith no OUTFILE, or when OUTFILE is -, write to standard output.\0AWith no NAME, name the table 'syscall_list'.\0A\0AReport bugs to <hp@tmm.cx>.\0A\00"
define void @usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([665 x i8], [665 x i8]* @.str, i64 0, i64 0), i8* %0)
%3 = tail call i32 @exit(i32 0)
unreachable
}