#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 */
char *gettext(char *);
int /*<<< orphan*/ print_usage();
int /*<<< orphan*/ printf(char *, char *, ...);
void print_help(void) {
  printf(gettext("%s - framework for application development "
                 "implementing\ngetopt option parsing engine.\n"),
         "getoptfrmwrk");
  print_usage();
  printf("%s%s%s%s%s",
         gettext("\nMandatory arguments to long options are mandatory for "
                 "short options too.\n\n"),
         gettext("Startup:\n  -V,  --version           display the version of "
                 "application and exit.\n  -h,  --help              print this "
                 "help.\n\n"),
         gettext("Mail bug reports and suggestions to "), "<kurijlj@gmail.com>",
         ".\n");
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xec1(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rdi
lea    0xf09(%rip),%rsi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <print_usage@plt>
lea    0xf0c(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,-0x10(%rbp)
lea    0xf48(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,-0x8(%rbp)
lea    0xfb7(%rip),%rdi
call   1030 <gettext@plt>
mov    -0x10(%rbp),%rsi
mov    -0x8(%rbp),%rdx
mov    %rax,%rcx
lea    0xeca(%rip),%rdi
lea    0xfbe(%rip),%r8
lea    0xeac(%rip),%r9
mov    $0x0,%al
call   1040 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %r14
push   %rbx
push   %rax
lea    0xec5(%rip),%rdi
call   1030 <gettext@plt>
lea    0xf10(%rip),%rsi
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <print_usage@plt>
lea    0xf10(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%r14
lea    0xf4d(%rip),%rdi
call   1030 <gettext@plt>
mov    %rax,%rbx
lea    0xfbd(%rip),%rdi
call   1030 <gettext@plt>
lea    0xedb(%rip),%rdi
lea    0xfcf(%rip),%r8
lea    0xebd(%rip),%r9
mov    %r14,%rsi
mov    %rbx,%rdx
mov    %rax,%rcx
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [87 x i8] c"%s - framework for application development implementing\0Agetopt option parsing engine.\0A\00"
@.str.1 = [13 x i8] c"getoptfrmwrk\00"
@.str.2 = [11 x i8] c"%s%s%s%s%s\00"
@.str.3 = [76 x i8] c"\0AMandatory arguments to long options are mandatory for short options too.\0A\0A\00"
@.str.4 = [127 x i8] c"Startup:\0A -V, --version display the version of application and exit.\0A -h, --help print this help.\0A\0A\00"
@.str.5 = [37 x i8] c"Mail bug reports and suggestions to \00"
@.str.6 = [20 x i8] c"<kurijlj@gmail.com>\00"
@.str.7 = [3 x i8] c".\0A\00"
define void @print_help() {
%1 = call i8* @gettext(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, i8*, ...) @printf(i8* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 (...) @print_usage()
%4 = call i8* @gettext(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%5 = call i8* @gettext(i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.4, i64 0, i64 0))
%6 = call i8* @gettext(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [87 x i8] c"%s - framework for application development implementing\0Agetopt option parsing engine.\0A\00"
@.str.1 = [13 x i8] c"getoptfrmwrk\00"
@.str.2 = [11 x i8] c"%s%s%s%s%s\00"
@.str.3 = [76 x i8] c"\0AMandatory arguments to long options are mandatory for short options too.\0A\0A\00"
@.str.4 = [127 x i8] c"Startup:\0A -V, --version display the version of application and exit.\0A -h, --help print this help.\0A\0A\00"
@.str.5 = [37 x i8] c"Mail bug reports and suggestions to \00"
@.str.6 = [20 x i8] c"<kurijlj@gmail.com>\00"
@.str.7 = [3 x i8] c".\0A\00"
define void @print_help() {
%1 = tail call i8* @gettext(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (i8*, i8*, ...) @printf(i8* %1, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 (...) @print_usage()
%4 = tail call i8* @gettext(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i8* @gettext(i8* getelementptr inbounds ([127 x i8], [127 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i8* @gettext(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
ret void
}