#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_SUCCESS;
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *, char *, char *, char *);
void help(void) {
  printf(
      "%s - a brainfuck interpreter\n\nUsage: %s [options] file\n\nOptions:\n  "
      "-d --dump <char>  Dump memory when <char> is met\n  -e --eof <num>    "
      "Replace EOF with <num> if such is encountered (default\n                "
      "    is no change)\n  -h --help         Display this information\n  -v "
      "--version      Display program name and version number\n  -w --warnings "
      "    Print warnings\n\nA man page should have come with %s, see \n  man "
      "%s\nfor more info and examples\n",
      "bfi", "bfi", "bfi", "bfi");
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
lea    0x108b(%rip),%r8
mov    %r8,%rsi
mov    %r8,%rdx
mov    %r8,%rcx
call   1030 <printf@plt>
mov    0x2e99(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

x86 assembly (clang, -O2):
<help>:
push   %rax
lea    0xed8(%rip),%rdi
lea    0x108e(%rip),%rcx
mov    %rcx,%rsi
mov    %rcx,%rdx
mov    %rcx,%r8
call   1030 <printf@plt>
mov    0x2e9c(%rip),%rax
mov    (%rax),%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@.str = [445 x i8] c"%s - a brainfuck interpreter\0A\0AUsage: %s [options] file\0A\0AOptions:\0A -d --dump <char> Dump memory when <char> is met\0A -e --eof <num> Replace EOF with <num> if such is encountered (default\0A is no change)\0A -h --help Display this information\0A -v --version Display program name and version number\0A -w --warnings Print warnings\0A\0AA man page should have come with %s, see \0A man %s\0Afor more info and examples\0A\00"
@.str.1 = [4 x i8] c"bfi\00"
@EXIT_SUCCESS = global i32 0
define void @help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([445 x i8], [445 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = load i32, i32* @EXIT_SUCCESS
%3 = call i32 @exit(i32 %2)
unreachable
}

LLVM IR (-O2):
@.str = [445 x i8] c"%s - a brainfuck interpreter\0A\0AUsage: %s [options] file\0A\0AOptions:\0A -d --dump <char> Dump memory when <char> is met\0A -e --eof <num> Replace EOF with <num> if such is encountered (default\0A is no change)\0A -h --help Display this information\0A -v --version Display program name and version number\0A -w --warnings Print warnings\0A\0AA man page should have come with %s, see \0A man %s\0Afor more info and examples\0A\00"
@.str.1 = [4 x i8] c"bfi\00"
@EXIT_SUCCESS = global i32 0
define void @help() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([445 x i8], [445 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%2 = load i32, i32* @EXIT_SUCCESS
%3 = tail call i32 @exit(i32 %2)
unreachable
}