#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*/ printf(char *);
void braf_displayHelp(void) {
  printf("braf - a Brainfuck interpreter\n");
  printf("Usage: braf [options] <input files>\n");
  printf("Options:\n");
  printf("\t-h --help\t\tDisplay this help text\n");
  printf(
      "\t-v --version\t\tDisplay braf version and additional information.\n");
  printf("\t-i --interactive\tExplicitly enable interactive mode.\n");
  printf("\t\t\t\tInteractive mode can be initialized by not including any "
         "flags.\n");
  printf("\t-d, --debug, --verbose  Enable debug mode. braf will display the "
         "values of the modified cells, and any performed operations.\n");
}


x86 assembly (clang, -O0):
<braf_displayHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
call   1030 <printf@plt>
lea    0xf12(%rip),%rdi
call   1030 <printf@plt>
lea    0xf10(%rip),%rdi
call   1030 <printf@plt>
lea    0xf28(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5d(%rip),%rdi
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<braf_displayHelp>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xefb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf13(%rip),%rdi
call   1030 <puts@plt>
lea    0xf10(%rip),%rdi
call   1030 <puts@plt>
lea    0xf27(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf85(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbd(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [32 x i8] c"braf - a Brainfuck interpreter\0A\00"
@.str.1 = [37 x i8] c"Usage: braf [options] <input files>\0A\00"
@.str.2 = [10 x i8] c"Options:\0A\00"
@.str.3 = [36 x i8] c"\09-h --help\09\09Display this help text\0A\00"
@.str.4 = [65 x i8] c"\09-v --version\09\09Display braf version and additional information.\0A\00"
@.str.5 = [55 x i8] c"\09-i --interactive\09Explicitly enable interactive mode.\0A\00"
@.str.6 = [69 x i8] c"\09\09\09\09Interactive mode can be initialized by not including any flags.\0A\00"
@.str.7 = [127 x i8] c"\09-d, --debug, --verbose Enable debug mode. braf will display the values of the modified cells, and any performed operations.\0A\00"
define void @braf_displayHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [31 x i8] c"braf - a Brainfuck interpreter\00"
@str.8 = [36 x i8] c"Usage: braf [options] <input files>\00"
@str.9 = [9 x i8] c"Options:\00"
@str.10 = [35 x i8] c"\09-h --help\09\09Display this help text\00"
@str.11 = [64 x i8] c"\09-v --version\09\09Display braf version and additional information.\00"
@str.12 = [54 x i8] c"\09-i --interactive\09Explicitly enable interactive mode.\00"
@str.13 = [68 x i8] c"\09\09\09\09Interactive mode can be initialized by not including any flags.\00"
@str.14 = [126 x i8] c"\09-d, --debug, --verbose Enable debug mode. braf will display the values of the modified cells, and any performed operations.\00"
define void @braf_displayHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.8, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.13, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([126 x i8], [126 x i8]* @str.14, i64 0, i64 0))
ret void
}