#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 *);
void doHelp() {
  printf("%s", "Valid Commands:\n");
  printf("%s", "Go east/west/north/south/up/down\n");
  printf("%s", "Look\n");
  printf("%s", "Use <object>\n");
  printf("%s", "Examine <object>\n");
  printf("%s", "Take <object>\n");
  printf("%s", "Drop <object>\n");
  printf("%s", "Inventory\n");
  printf("%s", "Help\n");
  printf("%s", "Quit\n");
  printf("%s",
         "You can abbreviate commands and directions to the first letter.\n");
  printf("%s", "Type just the first letter of a direction to move.\n");
}


x86 assembly (clang, -O0):
<doHelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <printf@plt>
lea    0xed2(%rip),%rdi
lea    0xedf(%rip),%rsi
call   1030 <printf@plt>
lea    0xebf(%rip),%rdi
lea    0xeee(%rip),%rsi
call   1030 <printf@plt>
lea    0xeac(%rip),%rdi
lea    0xee1(%rip),%rsi
call   1030 <printf@plt>
lea    0xe99(%rip),%rdi
lea    0xedc(%rip),%rsi
call   1030 <printf@plt>
lea    0xe86(%rip),%rdi
lea    0xedb(%rip),%rsi
call   1030 <printf@plt>
lea    0xe73(%rip),%rdi
lea    0xed7(%rip),%rsi
call   1030 <printf@plt>
lea    0xe60(%rip),%rdi
lea    0xed3(%rip),%rsi
call   1030 <printf@plt>
lea    0xe4d(%rip),%rdi
lea    0xecb(%rip),%rsi
call   1030 <printf@plt>
lea    0xe3a(%rip),%rdi
lea    0xebe(%rip),%rsi
call   1030 <printf@plt>
lea    0xe27(%rip),%rdi
lea    0xeb1(%rip),%rsi
call   1030 <printf@plt>
lea    0xe14(%rip),%rdi
lea    0xedf(%rip),%rsi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<doHelp>:
push   %rbx
lea    0xee8(%rip),%rbx
lea    0xee4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xee6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xef9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xef0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xeef(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xeee(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xee5(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xedc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <printf@plt>
lea    0xf0e(%rip),%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"%s\00"
@.str.1 = [17 x i8] c"Valid Commands:\0A\00"
@.str.2 = [34 x i8] c"Go east/west/north/south/up/down\0A\00"
@.str.3 = [6 x i8] c"Look\0A\00"
@.str.4 = [14 x i8] c"Use <object>\0A\00"
@.str.5 = [18 x i8] c"Examine <object>\0A\00"
@.str.6 = [15 x i8] c"Take <object>\0A\00"
@.str.7 = [15 x i8] c"Drop <object>\0A\00"
@.str.8 = [11 x i8] c"Inventory\0A\00"
@.str.9 = [6 x i8] c"Help\0A\00"
@.str.10 = [6 x i8] c"Quit\0A\00"
@.str.11 = [65 x i8] c"You can abbreviate commands and directions to the first letter.\0A\00"
@.str.12 = [52 x i8] c"Type just the first letter of a direction to move.\0A\00"
define void @doHelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%s\00"
@.str.1 = [17 x i8] c"Valid Commands:\0A\00"
@.str.2 = [34 x i8] c"Go east/west/north/south/up/down\0A\00"
@.str.3 = [6 x i8] c"Look\0A\00"
@.str.4 = [14 x i8] c"Use <object>\0A\00"
@.str.5 = [18 x i8] c"Examine <object>\0A\00"
@.str.6 = [15 x i8] c"Take <object>\0A\00"
@.str.7 = [15 x i8] c"Drop <object>\0A\00"
@.str.8 = [11 x i8] c"Inventory\0A\00"
@.str.9 = [6 x i8] c"Help\0A\00"
@.str.10 = [6 x i8] c"Quit\0A\00"
@.str.11 = [65 x i8] c"You can abbreviate commands and directions to the first letter.\0A\00"
@.str.12 = [52 x i8] c"Type just the first letter of a direction to move.\0A\00"
define void @doHelp() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%4 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%6 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.6, i64 0, i64 0))
%7 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.7, i64 0, i64 0))
%8 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%9 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%10 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%11 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.11, i64 0, i64 0))
%12 = tail call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.12, i64 0, i64 0))
ret void
}