#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*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
void usage(void) {
  fprintf(stderr,
          "Usage: 8cc [ -E ][ -a ] [ -h ] <file>\n\n"
          "\n"
          "  -I<path>          add to include path\n"
          "  -E                print preprocessed source code\n"
          "  -D name           Predefine name as a macro\n"
          "  -D name=def\n"
          "  -S                Stop before assembly (default)\n"
          "  -c                Do not run linker (default)\n"
          "  -U name           Undefine name\n"
          "  -fdump-ast        print AST\n"
          "  -fno-dump-source  Do not emit source code as assembly comment\n"
          "  -fno-dump-stack   Do not print stacktrace\n"
          "  -d cpp            print tokens for debugging\n"
          "  -o filename       Output to the specified file\n"
          "  -g                Do nothing at this moment\n"
          "  -Wall             Enable all warnings\n"
          "  -Werror           Make all warnings into errors\n"
          "  -O<number>        Does nothing at this moment\n"
          "  -m64              Output 64-bit code (default)\n"
          "  -w                Disable all warnings\n"
          "  -h                print this help\n"
          "\n"
          "One of -a, -c, -E or -S must be specified.\n\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
lea    0xecc(%rip),%rsi
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [914 x i8] c"Usage: 8cc [ -E ][ -a ] [ -h ] <file>\0A\0A\0A -I<path> add to include path\0A -E print preprocessed source code\0A -D name Predefine name as a macro\0A -D name=def\0A -S Stop before assembly (default)\0A -c Do not run linker (default)\0A -U name Undefine name\0A -fdump-ast print AST\0A -fno-dump-source Do not emit source code as assembly comment\0A -fno-dump-stack Do not print stacktrace\0A -d cpp print tokens for debugging\0A -o filename Output to the specified file\0A -g Do nothing at this moment\0A -Wall Enable all warnings\0A -Werror Make all warnings into errors\0A -O<number> Does nothing at this moment\0A -m64 Output 64-bit code (default)\0A -w Disable all warnings\0A -h print this help\0A\0AOne of -a, -c, -E or -S must be specified.\0A\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([914 x i8], [914 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [914 x i8] c"Usage: 8cc [ -E ][ -a ] [ -h ] <file>\0A\0A\0A -I<path> add to include path\0A -E print preprocessed source code\0A -D name Predefine name as a macro\0A -D name=def\0A -S Stop before assembly (default)\0A -c Do not run linker (default)\0A -U name Undefine name\0A -fdump-ast print AST\0A -fno-dump-source Do not emit source code as assembly comment\0A -fno-dump-stack Do not print stacktrace\0A -d cpp print tokens for debugging\0A -o filename Output to the specified file\0A -g Do nothing at this moment\0A -Wall Enable all warnings\0A -Werror Make all warnings into errors\0A -O<number> Does nothing at this moment\0A -m64 Output 64-bit code (default)\0A -w Disable all warnings\0A -h print this help\0A\0AOne of -a, -c, -E or -S must be specified.\0A\0A\00"
define void @usage() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fprintf(i32 %1, i8* getelementptr inbounds ([914 x i8], [914 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @exit(i32 1)
unreachable
}