#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*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ stderr;
void print_help(void) {
  fputs("Usage: bfc [input file] [options]\n", stderr);
  fputs("\n", stderr);
  fputs("\t-s [NUMBER]     sets the stack size to this number\n", stderr);
  fputs("\t-a [ARRSIZE]    sets the array size in the program to this number\n",
        stderr);
  fputs("\t-c              only compile and assemble\n", stderr);
  fputs("\t-S              only compile\n", stderr);
  fputs("\t-o [FILE]       specify an output file\n", stderr);
  fputs("\t-v              enable verbose output\n", stderr);
  fputs("\t-h, --help      print this help message\n", stderr);
  fputs("\t-i              get input from stdin\n", stderr);
  fputs("\t-pipe           pipe to assembler if -S is not set, otherwise print "
        "to stdout\n",
        stderr);
  fputs("\n", stderr);
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
mov    0x2ec5(%rip),%rax
mov    (%rax),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2eb0(%rip),%rax
mov    (%rax),%esi
lea    0xee8(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e9b(%rip),%rax
mov    (%rax),%esi
lea    0xed5(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e86(%rip),%rax
mov    (%rax),%esi
lea    0xef5(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e71(%rip),%rax
mov    (%rax),%esi
lea    0xf24(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e5c(%rip),%rax
mov    (%rax),%esi
lea    0xf3b(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e47(%rip),%rax
mov    (%rax),%esi
lea    0xf45(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%esi
lea    0xf59(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e1d(%rip),%rax
mov    (%rax),%esi
lea    0xf6c(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2e08(%rip),%rax
mov    (%rax),%esi
lea    0xf81(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%esi
lea    0xf93(%rip),%rdi
call   1030 <fputs@plt>
mov    0x2dde(%rip),%rax
mov    (%rax),%esi
lea    0xe16(%rip),%rdi
call   1030 <fputs@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %r14
push   %rbx
push   %rax
mov    0x2ec5(%rip),%rbx
mov    (%rbx),%esi
lea    0xedc(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xeef(%rip),%r14
mov    %r14,%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xee0(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf07(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf3d(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf5b(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf6c(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xf87(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfa1(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfbd(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
lea    0xfd6(%rip),%rdi
call   1030 <fputs@plt>
mov    (%rbx),%esi
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <fputs@plt>

LLVM IR (-O0):
@.str = [35 x i8] c"Usage: bfc [input file] [options]\0A\00"
@stderr = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [53 x i8] c"\09-s [NUMBER] sets the stack size to this number\0A\00"
@.str.3 = [68 x i8] c"\09-a [ARRSIZE] sets the array size in the program to this number\0A\00"
@.str.4 = [44 x i8] c"\09-c only compile and assemble\0A\00"
@.str.5 = [31 x i8] c"\09-S only compile\0A\00"
@.str.6 = [41 x i8] c"\09-o [FILE] specify an output file\0A\00"
@.str.7 = [40 x i8] c"\09-v enable verbose output\0A\00"
@.str.8 = [42 x i8] c"\09-h, --help print this help message\0A\00"
@.str.9 = [39 x i8] c"\09-i get input from stdin\0A\00"
@.str.10 = [80 x i8] c"\09-pipe pipe to assembler if -S is not set, otherwise print to stdout\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = call i32 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = call i32 @fputs(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = call i32 @fputs(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = call i32 @fputs(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = call i32 @fputs(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = call i32 @fputs(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stderr
%20 = call i32 @fputs(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stderr
%22 = call i32 @fputs(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @stderr
%24 = call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %23)
ret void
}

LLVM IR (-O2):
@.str = [35 x i8] c"Usage: bfc [input file] [options]\0A\00"
@stderr = global i32 0
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [53 x i8] c"\09-s [NUMBER] sets the stack size to this number\0A\00"
@.str.3 = [68 x i8] c"\09-a [ARRSIZE] sets the array size in the program to this number\0A\00"
@.str.4 = [44 x i8] c"\09-c only compile and assemble\0A\00"
@.str.5 = [31 x i8] c"\09-S only compile\0A\00"
@.str.6 = [41 x i8] c"\09-o [FILE] specify an output file\0A\00"
@.str.7 = [40 x i8] c"\09-v enable verbose output\0A\00"
@.str.8 = [42 x i8] c"\09-h, --help print this help message\0A\00"
@.str.9 = [39 x i8] c"\09-i get input from stdin\0A\00"
@.str.10 = [80 x i8] c"\09-pipe pipe to assembler if -S is not set, otherwise print to stdout\0A\00"
define void @print_help() {
%1 = load i32, i32* @stderr
%2 = tail call i32 @fputs(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = load i32, i32* @stderr
%4 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = load i32, i32* @stderr
%6 = tail call i32 @fputs(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fputs(i8* getelementptr inbounds ([68 x i8], [68 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fputs(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fputs(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = tail call i32 @fputs(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = tail call i32 @fputs(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = load i32, i32* @stderr
%18 = tail call i32 @fputs(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = load i32, i32* @stderr
%20 = tail call i32 @fputs(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = load i32, i32* @stderr
%22 = tail call i32 @fputs(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = load i32, i32* @stderr
%24 = tail call i32 @fputs(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32 %23)
ret void
}