#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 *);
int /*<<< orphan*/ usage(char const *);
void help(const char *program) {
  usage(program);
  printf("OPTION\n");
  printf("  -h, --help\n  \tPrint this help screen.\n\n");
  printf("  -a, --application <NAME>\n  \tName of application process.\n\n");
  printf("  -m, --middleware <NAME>\n  \tName of middleware process.\n\n");
  printf("  -t, --time <TIME>\n  \tStop application after TIME.\n\n");
  printf("AUTHOR\n  Sebastian Meiling <sebastian.meiling (at) "
         "haw-hamburg.de>\n\n");
}


x86 assembly (clang, -O0):
<help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <usage@plt>
lea    0xec4(%rip),%rdi
call   1030 <printf@plt>
lea    0xec0(%rip),%rdi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf68(%rip),%rdi
call   1030 <printf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<help>:
push   %rax
call   1040 <usage@plt>
lea    0xed3(%rip),%rdi
call   1030 <puts@plt>
lea    0xece(%rip),%rdi
call   1030 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xf1b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf49(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [8 x i8] c"OPTION\0A\00"
@.str.1 = [42 x i8] c" -h, --help\0A \09Print this help screen.\0A\0A\00"
@.str.2 = [61 x i8] c" -a, --application <NAME>\0A \09Name of application process.\0A\0A\00"
@.str.3 = [59 x i8] c" -m, --middleware <NAME>\0A \09Name of middleware process.\0A\0A\00"
@.str.4 = [54 x i8] c" -t, --time <TIME>\0A \09Stop application after TIME.\0A\0A\00"
@.str.5 = [69 x i8] c"AUTHOR\0A Sebastian Meiling <sebastian.meiling (at) haw-hamburg.de>\0A\0A\00"
define void @help(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i32 @usage(i8* %3)
%5 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.1, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([61 x i8], [61 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.4, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [7 x i8] c"OPTION\00"
@str.6 = [41 x i8] c" -h, --help\0A \09Print this help screen.\0A\00"
@str.7 = [60 x i8] c" -a, --application <NAME>\0A \09Name of application process.\0A\00"
@str.8 = [58 x i8] c" -m, --middleware <NAME>\0A \09Name of middleware process.\0A\00"
@str.9 = [53 x i8] c" -t, --time <TIME>\0A \09Stop application after TIME.\0A\00"
@str.10 = [68 x i8] c"AUTHOR\0A Sebastian Meiling <sebastian.meiling (at) haw-hamburg.de>\0A\00"
define void @help(i8* %0) {
%2 = tail call i32 @usage(i8* %0)
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @str.7, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.8, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.9, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.10, i64 0, i64 0))
ret void
}