#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 *, char const *);
void show_usage(const char *progname) {
  printf("[Usage]\n"
         "  $ %s FILE [options]\n"
         "[Options]\n"
         "  -b, --bytecode\n"
         "    Show code in hexadecimal\n"
         "  -c, --compile (Default)\n"
         "    Compile brainfuck source code to VM code and run it\n"
         "  -e [CODE], --execute=[CODE]\n"
         "    Execute one line code\n"
         "  -h, --help\n"
         "    Show help and exit\n"
         "  -j, --jit-compile\n"
         "    Compile brainfuck to machine code and run it\n"
         "  -m, --mnemonic\n"
         "    Show byte code in mnemonic format\n"
         "  -n, --normal\n"
         "    Execute in normal mode (without optimization before execution)\n"
         "  -o FILE, --output=FILE\n"
         "    Specify output filename\n"
         "  -t, --translate\n"
         "    Translate brainfuck to C source code\n",
         progname);
}


x86 assembly (clang, -O0):
<show_usage>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rsi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_usage>:
mov    %rdi,%rsi
lea    0xee6(%rip),%rdi
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [579 x i8] c"[Usage]\0A $ %s FILE [options]\0A[Options]\0A -b, --bytecode\0A Show code in hexadecimal\0A -c, --compile (Default)\0A Compile brainfuck source code to VM code and run it\0A -e [CODE], --execute=[CODE]\0A Execute one line code\0A -h, --help\0A Show help and exit\0A -j, --jit-compile\0A Compile brainfuck to machine code and run it\0A -m, --mnemonic\0A Show byte code in mnemonic format\0A -n, --normal\0A Execute in normal mode (without optimization before execution)\0A -o FILE, --output=FILE\0A Specify output filename\0A -t, --translate\0A Translate brainfuck to C source code\0A\00"
define void @show_usage(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @printf(i8* getelementptr inbounds ([579 x i8], [579 x i8]* @.str, i64 0, i64 0), i8* %3)
ret void
}

LLVM IR (-O2):
@.str = [579 x i8] c"[Usage]\0A $ %s FILE [options]\0A[Options]\0A -b, --bytecode\0A Show code in hexadecimal\0A -c, --compile (Default)\0A Compile brainfuck source code to VM code and run it\0A -e [CODE], --execute=[CODE]\0A Execute one line code\0A -h, --help\0A Show help and exit\0A -j, --jit-compile\0A Compile brainfuck to machine code and run it\0A -m, --mnemonic\0A Show byte code in mnemonic format\0A -n, --normal\0A Execute in normal mode (without optimization before execution)\0A -o FILE, --output=FILE\0A Specify output filename\0A -t, --translate\0A Translate brainfuck to C source code\0A\00"
define void @show_usage(i8* %0) {
%2 = tail call i32 @printf(i8* getelementptr inbounds ([579 x i8], [579 x i8]* @.str, i64 0, i64 0), i8* %0)
ret void
}