#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(char *op) {
  if (op)
    fprintf(stderr, "luac: unrecognized option '%s'\n", op);
  fprintf(stderr,
          "usage: luac [options] [filenames].  Available options are:\n"
          " -c\t\tcompile (default)\n"
          " -d\t\tgenerate debugging information\n"
          " -D name\tpredefine 'name' for conditional compilation\n"
          " -l\t\tlist (default for -u)\n"
          " -n\t\tsave numbers in native format (file may not be portable)\n"
          " -o file\toutput file for -c (default is \""
          "luac.out"
          "\")\n"
          " -O\t\toptimize\n"
          " -p\t\tparse only\n"
          " -q\t\tquiet (default for -c)\n"
          " -t\t\ttest code integrity\n"
          " -u\t\tundump\n"
          " -U name\tundefine 'name' for conditional compilation\n"
          " -v\t\tshow version information\n"
          " -V\t\tverbose\n"
          " -\t\tcompile \"stdin\"\n");
  exit(1);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1152 <usage+0x32>
mov    0x2ea2(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xeb5(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e87(%rip),%rax
mov    (%rax),%edi
lea    0xebe(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
test   %rdi,%rdi
je     1140 <usage+0x20>
mov    %rdi,%rdx
mov    0x2eb0(%rip),%rax
mov    (%rax),%edi
lea    0xec7(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
lea    0xed0(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [32 x i8] c"luac: unrecognized option '%s'\0A\00"
@.str.1 = [525 x i8] c"usage: luac [options] [filenames]. Available options are:\0A -c\09\09compile (default)\0A -d\09\09generate debugging information\0A -D name\09predefine 'name' for conditional compilation\0A -l\09\09list (default for -u)\0A -n\09\09save numbers in native format (file may not be portable)\0A -o file\09output file for -c (default is \22luac.out\22)\0A -O\09\09optimize\0A -p\09\09parse only\0A -q\09\09quiet (default for -c)\0A -t\09\09test code integrity\0A -u\09\09undump\0A -U name\09undefine 'name' for conditional compilation\0A -v\09\09show version information\0A -V\09\09verbose\0A -\09\09compile \22stdin\22\0A\00"
define void @usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = icmp ne i8* %3, null
br i1 %4, label %5, label %9
5: ; preds = %1
%6 = load i32, i32* @stderr
%7 = load i8*, i8** %2
%8 = call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %7)
br label %9
9: ; preds = %5, %1
%10 = load i32, i32* @stderr
%11 = call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([525 x i8], [525 x i8]* @.str.1, i64 0, i64 0))
%12 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [32 x i8] c"luac: unrecognized option '%s'\0A\00"
@.str.1 = [525 x i8] c"usage: luac [options] [filenames]. Available options are:\0A -c\09\09compile (default)\0A -d\09\09generate debugging information\0A -D name\09predefine 'name' for conditional compilation\0A -l\09\09list (default for -u)\0A -n\09\09save numbers in native format (file may not be portable)\0A -o file\09output file for -c (default is \22luac.out\22)\0A -O\09\09optimize\0A -p\09\09parse only\0A -q\09\09quiet (default for -c)\0A -t\09\09test code integrity\0A -u\09\09undump\0A -U name\09undefine 'name' for conditional compilation\0A -v\09\09show version information\0A -V\09\09verbose\0A -\09\09compile \22stdin\22\0A\00"
define void @usage(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %6, label %3
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0), i8* %0)
br label %6
6: ; preds = %3, %1
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([525 x i8], [525 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @exit(i32 1)
unreachable
}