#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 *);
int /*<<< orphan*/ show_version();
void show_help(void) {
  show_version();
  printf("%s"
         "\n",
         "\r");
  printf("%s"
         "\n",
         "Usage: ebr_editor [OPTIONS] <device>");
  printf("%s"
         "\n",
         "OPTIONS:");
  printf("%s"
         "\n",
         " -v            - show version info");
  printf("%s"
         "\n",
         " -h            - show this help screen");
  printf("%s"
         "\n",
         " -b            - make backup of all records");
  printf("%s"
         "\n",
         " -r            - restore backup of all records");
  printf("%s"
         "\n",
         " -e <INTEGER>  - edit record at given sector");
  printf("%s"
         "\n",
         "\r");
}


x86 assembly (clang, -O0):
<show_help>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1030 <show_version@plt>
lea    0xece(%rip),%rdi
lea    0xecb(%rip),%rsi
call   1040 <printf@plt>
lea    0xebb(%rip),%rdi
lea    0xeba(%rip),%rsi
call   1040 <printf@plt>
lea    0xea8(%rip),%rdi
lea    0xecc(%rip),%rsi
call   1040 <printf@plt>
lea    0xe95(%rip),%rdi
lea    0xec2(%rip),%rsi
call   1040 <printf@plt>
lea    0xe82(%rip),%rdi
lea    0xed2(%rip),%rsi
call   1040 <printf@plt>
lea    0xe6f(%rip),%rdi
lea    0xee6(%rip),%rsi
call   1040 <printf@plt>
lea    0xe5c(%rip),%rdi
lea    0xeff(%rip),%rsi
call   1040 <printf@plt>
lea    0xe49(%rip),%rdi
lea    0xf1b(%rip),%rsi
call   1040 <printf@plt>
lea    0xe36(%rip),%rdi
lea    0xe33(%rip),%rsi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_help>:
push   %r14
push   %rbx
push   %rax
xor    %eax,%eax
call   1030 <show_version@plt>
lea    0xece(%rip),%rbx
lea    0xecb(%rip),%r14
mov    %rbx,%rdi
mov    %r14,%rsi
call   1040 <printf@plt>
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
call   1040 <printf@plt>
lea    0xed1(%rip),%rsi
mov    %rbx,%rdi
call   1040 <printf@plt>
lea    0xecb(%rip),%rsi
mov    %rbx,%rdi
call   1040 <printf@plt>
lea    0xedf(%rip),%rsi
mov    %rbx,%rdi
call   1040 <printf@plt>
lea    0xef7(%rip),%rsi
mov    %rbx,%rdi
call   1040 <printf@plt>
lea    0xf14(%rip),%rsi
mov    %rbx,%rdi
call   1040 <printf@plt>
lea    0xf34(%rip),%rsi
mov    %rbx,%rdi
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [2 x i8] c"\0D\00"
@.str.2 = [37 x i8] c"Usage: ebr_editor [OPTIONS] <device>\00"
@.str.3 = [9 x i8] c"OPTIONS:\00"
@.str.4 = [35 x i8] c" -v - show version info\00"
@.str.5 = [39 x i8] c" -h - show this help screen\00"
@.str.6 = [44 x i8] c" -b - make backup of all records\00"
@.str.7 = [47 x i8] c" -r - restore backup of all records\00"
@.str.8 = [45 x i8] c" -e <INTEGER> - edit record at given sector\00"
define void @show_help() {
%1 = call i32 (...) @show_version()
%2 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
@.str.1 = [2 x i8] c"\0D\00"
@.str.2 = [37 x i8] c"Usage: ebr_editor [OPTIONS] <device>\00"
@.str.3 = [9 x i8] c"OPTIONS:\00"
@.str.4 = [35 x i8] c" -v - show version info\00"
@.str.5 = [39 x i8] c" -h - show this help screen\00"
@.str.6 = [44 x i8] c" -b - make backup of all records\00"
@.str.7 = [47 x i8] c" -r - restore backup of all records\00"
@.str.8 = [45 x i8] c" -e <INTEGER> - edit record at given sector\00"
define void @show_help() {
%1 = tail call i32 (...) @show_version()
%2 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
ret void
}