#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 displayUsage(void) {
  printf("Usage: aidbf [OPTION]... FILE...\n");
  printf("Advanced Interpreter and Debugger for Brain Fuck.\n\n");
  printf("  -r, --randomize       Randomize data segment before execution\n");
  printf("  -R, --seed=SEED       Randomize data segment with SEED before "
         "execution\n");
  printf("  -m, --memory=BYTES    Size of data segment in bytes (Default: %i "
         "bytes)\n",
         8192);
  printf(
      "  -k, --keep            Keep data segment between program executions\n");
  printf("  -i, --inputmode=MODE  Input mode (0=Buffered, 1=Unbuffered "
         "(Default),\n");
  printf("                          2=Unbuffered noecho)\n");
  printf("  -d, --debug           Start debugger before execution\n");
  printf("  -D, --break=CMD       Start debugging at first occurence of "
         "command CMD\n");
  printf("  -h, --help            Display help and exit\n");
  printf("  -V, --version         Display version and exit\n");
  printf("\nWithout any options aidbf will execute all brain fuck programs "
         "specified.\n");
  printf("You can change some runtime behaviours using the options above. Use "
         "the\n");
  printf("randomize and seed options to random initialize the data segment "
         "before\n");
  printf("execution. Use the inputmode option to switch between various input "
         "modes.\n");
  printf("Finally you can use the debug and break options to debug your brain "
         "fuck\n");
  printf("programs. Use the help command in the debugger to get a short but "
         "sufficient\n");
  printf("usage help.\n");
  printf("\nReport bugs to <kr@ailis.de>.\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<displayUsage>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf52(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf8f(%rip),%rdi
mov    $0x2000,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfc7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfff(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x103a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1087(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10c4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10e5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1109(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1147(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1182(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11bd(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x11fb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1237(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1277(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1276(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe1c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayUsage>:
push   %rax
lea    0xf13(%rip),%rdi
call   1040 <puts@plt>
lea    0xf28(%rip),%rdi
call   1040 <puts@plt>
lea    0xf4f(%rip),%rdi
call   1040 <puts@plt>
lea    0xf83(%rip),%rdi
call   1040 <puts@plt>
lea    0xe98(%rip),%rdi
mov    $0x2000,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xfae(%rip),%rdi
call   1040 <puts@plt>
lea    0xfe7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1023(%rip),%rdi
call   1040 <puts@plt>
lea    0x1046(%rip),%rdi
call   1040 <puts@plt>
lea    0x1072(%rip),%rdi
call   1040 <puts@plt>
lea    0x10b0(%rip),%rdi
call   1040 <puts@plt>
lea    0x10d2(%rip),%rdi
call   1040 <puts@plt>
lea    0x10f7(%rip),%rdi
call   1040 <puts@plt>
lea    0x1136(%rip),%rdi
call   1040 <puts@plt>
lea    0x1172(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ae(%rip),%rdi
call   1040 <puts@plt>
lea    0x11ed(%rip),%rdi
call   1040 <puts@plt>
lea    0x122a(%rip),%rdi
call   1040 <puts@plt>
lea    0x126b(%rip),%rdi
call   1040 <puts@plt>
lea    0x126b(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [34 x i8] c"Usage: aidbf [OPTION]... FILE...\0A\00"
@.str.1 = [52 x i8] c"Advanced Interpreter and Debugger for Brain Fuck.\0A\0A\00"
@.str.2 = [65 x i8] c" -r, --randomize Randomize data segment before execution\0A\00"
@.str.3 = [75 x i8] c" -R, --seed=SEED Randomize data segment with SEED before execution\0A\00"
@.str.4 = [75 x i8] c" -m, --memory=BYTES Size of data segment in bytes (Default: %i bytes)\0A\00"
@.str.5 = [70 x i8] c" -k, --keep Keep data segment between program executions\0A\00"
@.str.6 = [73 x i8] c" -i, --inputmode=MODE Input mode (0=Buffered, 1=Unbuffered (Default),\0A\00"
@.str.7 = [48 x i8] c" 2=Unbuffered noecho)\0A\00"
@.str.8 = [57 x i8] c" -d, --debug Start debugger before execution\0A\00"
@.str.9 = [75 x i8] c" -D, --break=CMD Start debugging at first occurence of command CMD\0A\00"
@.str.10 = [47 x i8] c" -h, --help Display help and exit\0A\00"
@.str.11 = [50 x i8] c" -V, --version Display version and exit\0A\00"
@.str.12 = [76 x i8] c"\0AWithout any options aidbf will execute all brain fuck programs specified.\0A\00"
@.str.13 = [73 x i8] c"You can change some runtime behaviours using the options above. Use the\0A\00"
@.str.14 = [73 x i8] c"randomize and seed options to random initialize the data segment before\0A\00"
@.str.15 = [76 x i8] c"execution. Use the inputmode option to switch between various input modes.\0A\00"
@.str.16 = [74 x i8] c"Finally you can use the debug and break options to debug your brain fuck\0A\00"
@.str.17 = [78 x i8] c"programs. Use the help command in the debugger to get a short but sufficient\0A\00"
@.str.18 = [13 x i8] c"usage help.\0A\00"
@.str.19 = [32 x i8] c"\0AReport bugs to <kr@ailis.de>.\0A\00"
@.str.20 = [2 x i8] c"\0A\00"
define void @displayUsage() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.4, i64 0, i64 0), i32 8192)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.16, i64 0, i64 0))
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.17, i64 0, i64 0))
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.19, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.4 = [75 x i8] c" -m, --memory=BYTES Size of data segment in bytes (Default: %i bytes)\0A\00"
@str = [33 x i8] c"Usage: aidbf [OPTION]... FILE...\00"
@str.21 = [51 x i8] c"Advanced Interpreter and Debugger for Brain Fuck.\0A\00"
@str.22 = [64 x i8] c" -r, --randomize Randomize data segment before execution\00"
@str.23 = [74 x i8] c" -R, --seed=SEED Randomize data segment with SEED before execution\00"
@str.24 = [69 x i8] c" -k, --keep Keep data segment between program executions\00"
@str.25 = [72 x i8] c" -i, --inputmode=MODE Input mode (0=Buffered, 1=Unbuffered (Default),\00"
@str.26 = [47 x i8] c" 2=Unbuffered noecho)\00"
@str.27 = [56 x i8] c" -d, --debug Start debugger before execution\00"
@str.28 = [74 x i8] c" -D, --break=CMD Start debugging at first occurence of command CMD\00"
@str.29 = [46 x i8] c" -h, --help Display help and exit\00"
@str.30 = [49 x i8] c" -V, --version Display version and exit\00"
@str.31 = [75 x i8] c"\0AWithout any options aidbf will execute all brain fuck programs specified.\00"
@str.32 = [72 x i8] c"You can change some runtime behaviours using the options above. Use the\00"
@str.33 = [72 x i8] c"randomize and seed options to random initialize the data segment before\00"
@str.34 = [75 x i8] c"execution. Use the inputmode option to switch between various input modes.\00"
@str.35 = [73 x i8] c"Finally you can use the debug and break options to debug your brain fuck\00"
@str.36 = [77 x i8] c"programs. Use the help command in the debugger to get a short but sufficient\00"
@str.37 = [12 x i8] c"usage help.\00"
@str.38 = [31 x i8] c"\0AReport bugs to <kr@ailis.de>.\00"
define void @displayUsage() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @str.21, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([64 x i8], [64 x i8]* @str.22, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.23, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.4, i64 0, i64 0), i32 8192)
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([69 x i8], [69 x i8]* @str.24, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.25, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @str.26, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.27, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([74 x i8], [74 x i8]* @str.28, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.29, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.30, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.31, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.32, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @str.33, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.34, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.35, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.36, i64 0, i64 0))
%19 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str.37, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.38, i64 0, i64 0))
%21 = tail call i32 @putchar(i32 10)
ret void
}