#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 *);
void printHelp() {
  printf("\n== Help ==\n");
  printf("info: \t\t\tPrint room information\n");
  printf("monsters: \t\tList monsters and stats\n");
  printf("look [n/s/e/w]: \tGet room information around you\n");
  printf("move [n/s/e/w]: \tMove to a room next to you\n");
  printf("player: \t\tGet your stats\n");
  printf("heal: \t\t\tHeal yourself\n");
  printf("fight [num]: \t\tFight a specified monster\n");
  printf("help: \t\t\tShow this dialog\n");
  printf("exit: \t\t\tExit the game\n");
  printf("\n");
}


x86 assembly (clang, -O0):
<printHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xee6(%rip),%rdi
call   1030 <printf@plt>
lea    0xefb(%rip),%rdi
call   1030 <printf@plt>
lea    0xf14(%rip),%rdi
call   1030 <printf@plt>
lea    0xf3a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf69(%rip),%rdi
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
call   1030 <printf@plt>
lea    0xf93(%rip),%rdi
call   1030 <printf@plt>
lea    0xfa2(%rip),%rdi
call   1030 <printf@plt>
lea    0xe78(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printHelp>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xed8(%rip),%rdi
call   1040 <puts@plt>
lea    0xeec(%rip),%rdi
call   1040 <puts@plt>
lea    0xf04(%rip),%rdi
call   1040 <puts@plt>
lea    0xf29(%rip),%rdi
call   1040 <puts@plt>
lea    0xf49(%rip),%rdi
call   1040 <puts@plt>
lea    0xf56(%rip),%rdi
call   1040 <puts@plt>
lea    0xf61(%rip),%rdi
call   1040 <puts@plt>
lea    0xf7e(%rip),%rdi
call   1040 <puts@plt>
lea    0xf8c(%rip),%rdi
call   1040 <puts@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"\0A== Help ==\0A\00"
@.str.1 = [33 x i8] c"info: \09\09\09Print room information\0A\00"
@.str.2 = [37 x i8] c"monsters: \09\09List monsters and stats\0A\00"
@.str.3 = [50 x i8] c"look [n/s/e/w]: \09Get room information around you\0A\00"
@.str.4 = [45 x i8] c"move [n/s/e/w]: \09Move to a room next to you\0A\00"
@.str.5 = [26 x i8] c"player: \09\09Get your stats\0A\00"
@.str.6 = [24 x i8] c"heal: \09\09\09Heal yourself\0A\00"
@.str.7 = [42 x i8] c"fight [num]: \09\09Fight a specified monster\0A\00"
@.str.8 = [27 x i8] c"help: \09\09\09Show this dialog\0A\00"
@.str.9 = [24 x i8] c"exit: \09\09\09Exit the game\0A\00"
@.str.10 = [2 x i8] c"\0A\00"
define void @printHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [12 x i8] c"\0A== Help ==\00"
@str.11 = [32 x i8] c"info: \09\09\09Print room information\00"
@str.12 = [36 x i8] c"monsters: \09\09List monsters and stats\00"
@str.13 = [49 x i8] c"look [n/s/e/w]: \09Get room information around you\00"
@str.14 = [44 x i8] c"move [n/s/e/w]: \09Move to a room next to you\00"
@str.15 = [25 x i8] c"player: \09\09Get your stats\00"
@str.16 = [23 x i8] c"heal: \09\09\09Heal yourself\00"
@str.17 = [41 x i8] c"fight [num]: \09\09Fight a specified monster\00"
@str.18 = [26 x i8] c"help: \09\09\09Show this dialog\00"
@str.19 = [23 x i8] c"exit: \09\09\09Exit the game\00"
define void @printHelp() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str.11, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.12, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @str.13, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.14, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @str.15, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.16, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @putchar(i32 10)
ret void
}