#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 *);
void usage(void) {
  printf("Usage: bfc [options] [file]\n");
  printf("If file is not specified, compiler will read from stdin\n");
  printf("Options: \n");
  printf("\t-h\t--help\tThis info\n");
  printf("\t-V\t--version\tPrint program version\n");
  printf("\t-a\t--arch\tTarget architecture (see below)\n");
  printf("\t-o outfile\t--output outfile\tRedirect output to outfile. Default "
         "is to write to stderr\n");
  printf("\t-l\t--linux\tGenerate programs for Linux syscalls\n");
  printf(
      "\t-c\t--libc\tGenerate programs for any libc-based system (default)\n");
  printf("\t-g\t--debug\tDisable optimizations, add some debug info\n");
  printf("Supported architectures:\n");
  printf("\ti386 - 32-bit x86 (default)\n");
  printf("\tx86-64 - 64-bit x86-64\n");
  printf("\n");
  exit(0);
}


x86 assembly (clang, -O0):
<usage>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
lea    0xf13(%rip),%rdi
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf35(%rip),%rdi
call   1030 <printf@plt>
lea    0xf55(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
call   1030 <printf@plt>
lea    0xffd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
call   1030 <printf@plt>
lea    0x1037(%rip),%rdi
call   1030 <printf@plt>
lea    0x1049(%rip),%rdi
call   1030 <printf@plt>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
xor    %edi,%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<usage>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xf04(%rip),%rdi
call   1040 <puts@plt>
lea    0xf02(%rip),%rdi
call   1040 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1040 <puts@plt>
lea    0xf23(%rip),%rdi
call   1040 <puts@plt>
lea    0xf42(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1040 <puts@plt>
lea    0xfb2(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1012(%rip),%rdi
call   1040 <puts@plt>
lea    0x101f(%rip),%rdi
call   1040 <puts@plt>
lea    0x1030(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@.str = [29 x i8] c"Usage: bfc [options] [file]\0A\00"
@.str.1 = [57 x i8] c"If file is not specified, compiler will read from stdin\0A\00"
@.str.2 = [11 x i8] c"Options: \0A\00"
@.str.3 = [22 x i8] c"\09-h\09--help\09This info\0A\00"
@.str.4 = [37 x i8] c"\09-V\09--version\09Print program version\0A\00"
@.str.5 = [44 x i8] c"\09-a\09--arch\09Target architecture (see below)\0A\00"
@.str.6 = [88 x i8] c"\09-o outfile\09--output outfile\09Redirect output to outfile. Default is to write to stderr\0A\00"
@.str.7 = [50 x i8] c"\09-l\09--linux\09Generate programs for Linux syscalls\0A\00"
@.str.8 = [66 x i8] c"\09-c\09--libc\09Generate programs for any libc-based system (default)\0A\00"
@.str.9 = [56 x i8] c"\09-g\09--debug\09Disable optimizations, add some debug info\0A\00"
@.str.10 = [26 x i8] c"Supported architectures:\0A\00"
@.str.11 = [30 x i8] c"\09i386 - 32-bit x86 (default)\0A\00"
@.str.12 = [25 x i8] c"\09x86-64 - 64-bit x86-64\0A\00"
@.str.13 = [2 x i8] c"\0A\00"
define void @usage() {
%1 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@str = [28 x i8] c"Usage: bfc [options] [file]\00"
@str.14 = [56 x i8] c"If file is not specified, compiler will read from stdin\00"
@str.15 = [10 x i8] c"Options: \00"
@str.16 = [21 x i8] c"\09-h\09--help\09This info\00"
@str.17 = [36 x i8] c"\09-V\09--version\09Print program version\00"
@str.18 = [43 x i8] c"\09-a\09--arch\09Target architecture (see below)\00"
@str.19 = [87 x i8] c"\09-o outfile\09--output outfile\09Redirect output to outfile. Default is to write to stderr\00"
@str.20 = [49 x i8] c"\09-l\09--linux\09Generate programs for Linux syscalls\00"
@str.21 = [65 x i8] c"\09-c\09--libc\09Generate programs for any libc-based system (default)\00"
@str.22 = [55 x i8] c"\09-g\09--debug\09Disable optimizations, add some debug info\00"
@str.23 = [25 x i8] c"Supported architectures:\00"
@str.24 = [29 x i8] c"\09i386 - 32-bit x86 (default)\00"
@str.25 = [24 x i8] c"\09x86-64 - 64-bit x86-64\00"
define void @usage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.14, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @str.15, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.16, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.17, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.18, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([87 x i8], [87 x i8]* @str.19, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.20, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @str.21, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @str.22, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.23, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str.24, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.25, i64 0, i64 0))
%14 = tail call i32 @putchar(i32 10)
%15 = tail call i32 @exit(i32 0)
unreachable
}