#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*/ fprintf(int /*<<< orphan*/, char *, char const *);
int /*<<< orphan*/ stderr;
void usage(const char *arg) {
  fprintf(stderr,
          "cguess - C, C++, Java(tm) syntax auto-completer\n"
          "Usage: %s [options]\n"
          "Options:\n"
          "\t-d, --debug\tdisplay errors in parsing and "
          "enquire parser's verbose\n\t\t\tmessages (only "
          "when compiled with %%debug in c++.y)\n"
          "\t-h, --help\tdisplay short usage information"
          " and exit\n"
          "\t-v, --version\tshow program version and exit\n"
          "\t-t, --types\tshow types for identifiers\n"
          "\t-l, --lang=\ttreat input as code in the specified"
          " language\n"
          "\t-c, --c\t\tequivalent to --lang=c\n"
          "\t--c++, --cpp\tequivalent to --lang=cpp"
          " (default)\n"
          "\t-j, --java\tequivalent to --lang=java (not "
          "implemented)\n",
          arg);
  exit(0);
}


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),%rdx
lea    0xec0(%rip),%rsi
call   1030 <fprintf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

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

LLVM IR (-O0):
@stderr = global i32 0
@.str = [536 x i8] c"cguess - C, C++, Java(tm) syntax auto-completer\0AUsage: %s [options]\0AOptions:\0A\09-d, --debug\09display errors in parsing and enquire parser's verbose\0A\09\09\09messages (only when compiled with %%debug in c++.y)\0A\09-h, --help\09display short usage information and exit\0A\09-v, --version\09show program version and exit\0A\09-t, --types\09show types for identifiers\0A\09-l, --lang=\09treat input as code in the specified language\0A\09-c, --c\09\09equivalent to --lang=c\0A\09--c++, --cpp\09equivalent to --lang=cpp (default)\0A\09-j, --java\09equivalent to --lang=java (not implemented)\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i32, i32* @stderr
%4 = load i8*, i8** %2
%5 = call i32 @fprintf(i32 %3, i8* getelementptr inbounds ([536 x i8], [536 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [536 x i8] c"cguess - C, C++, Java(tm) syntax auto-completer\0AUsage: %s [options]\0AOptions:\0A\09-d, --debug\09display errors in parsing and enquire parser's verbose\0A\09\09\09messages (only when compiled with %%debug in c++.y)\0A\09-h, --help\09display short usage information and exit\0A\09-v, --version\09show program version and exit\0A\09-t, --types\09show types for identifiers\0A\09-l, --lang=\09treat input as code in the specified language\0A\09-c, --c\09\09equivalent to --lang=c\0A\09--c++, --cpp\09equivalent to --lang=cpp (default)\0A\09-j, --java\09equivalent to --lang=java (not implemented)\0A\00"
define void @usage(i8* %0) {
%2 = load i32, i32* @stderr
%3 = tail call i32 @fprintf(i32 %2, i8* getelementptr inbounds ([536 x i8], [536 x i8]* @.str, i64 0, i64 0), i8* %0)
%4 = tail call i32 @exit(i32 0)
unreachable
}