#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*/ clear();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printw(char *);
void print_help(void) {
  clear();
  printw("fif - fif is fifteen\n");
  printw("Martin Kopta <martin@kopta.eu>\n");
  printw("Licensed under ISC license\n");
  printw("\nCommands:\n");
  printw("  up      k\n");
  printw("  down    j\n");
  printw("  left    h\n");
  printw("  right   l\n");
  printw("  help    ?\n");
  printw("  quit    q\n");
  (void)getch();
}


x86 assembly (clang, -O0):
<print_help>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <clear@plt>
lea    0xebe(%rip),%rdi
call   1030 <printw@plt>
lea    0xec8(%rip),%rdi
call   1030 <printw@plt>
lea    0xedc(%rip),%rdi
call   1030 <printw@plt>
lea    0xeec(%rip),%rdi
call   1030 <printw@plt>
lea    0xeec(%rip),%rdi
call   1030 <printw@plt>
lea    0xeed(%rip),%rdi
call   1030 <printw@plt>
lea    0xeee(%rip),%rdi
call   1030 <printw@plt>
lea    0xeef(%rip),%rdi
call   1030 <printw@plt>
lea    0xef0(%rip),%rdi
call   1030 <printw@plt>
lea    0xef1(%rip),%rdi
call   1030 <printw@plt>
mov    $0x0,%al
call   1040 <getch@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_help>:
push   %rax
xor    %eax,%eax
call   1050 <clear@plt>
lea    0xec1(%rip),%rdi
call   1030 <printw@plt>
lea    0xecb(%rip),%rdi
call   1030 <printw@plt>
lea    0xedf(%rip),%rdi
call   1030 <printw@plt>
lea    0xeef(%rip),%rdi
call   1030 <printw@plt>
lea    0xeef(%rip),%rdi
call   1030 <printw@plt>
lea    0xef0(%rip),%rdi
call   1030 <printw@plt>
lea    0xef1(%rip),%rdi
call   1030 <printw@plt>
lea    0xef2(%rip),%rdi
call   1030 <printw@plt>
lea    0xef3(%rip),%rdi
call   1030 <printw@plt>
lea    0xef4(%rip),%rdi
call   1030 <printw@plt>
xor    %eax,%eax
pop    %rcx
jmp    1040 <getch@plt>

LLVM IR (-O0):
@.str = [22 x i8] c"fif - fif is fifteen\0A\00"
@.str.1 = [32 x i8] c"Martin Kopta <martin@kopta.eu>\0A\00"
@.str.2 = [28 x i8] c"Licensed under ISC license\0A\00"
@.str.3 = [12 x i8] c"\0ACommands:\0A\00"
@.str.4 = [13 x i8] c" up k\0A\00"
@.str.5 = [13 x i8] c" down j\0A\00"
@.str.6 = [13 x i8] c" left h\0A\00"
@.str.7 = [13 x i8] c" right l\0A\00"
@.str.8 = [13 x i8] c" help ?\0A\00"
@.str.9 = [13 x i8] c" quit q\0A\00"
define void @print_help() {
%1 = call i32 (...) @clear()
%2 = call i32 @printw(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printw(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 (...) @getch()
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"fif - fif is fifteen\0A\00"
@.str.1 = [32 x i8] c"Martin Kopta <martin@kopta.eu>\0A\00"
@.str.2 = [28 x i8] c"Licensed under ISC license\0A\00"
@.str.3 = [12 x i8] c"\0ACommands:\0A\00"
@.str.4 = [13 x i8] c" up k\0A\00"
@.str.5 = [13 x i8] c" down j\0A\00"
@.str.6 = [13 x i8] c" left h\0A\00"
@.str.7 = [13 x i8] c" right l\0A\00"
@.str.8 = [13 x i8] c" help ?\0A\00"
@.str.9 = [13 x i8] c" quit q\0A\00"
define void @print_help() {
%1 = tail call i32 (...) @clear()
%2 = tail call i32 @printw(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @printw(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printw(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @printw(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 @printw(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 (...) @getch()
ret void
}