#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 showhelp(void) {
  printf(
      "I understand one or two word instructions such as CLIMB TREE or QUIT.");
  printf(" Some of the words I know are GET, DROP, INV (to list objects "
         "carried), LOOK, EXAMINE and QUIT.\n\n");
  printf("To move around you can type GO NORTH, GO DOWN etc or just N,E,W,S,U "
         "and D.");
  printf(" Some other commands can be abbreviated too, eg L for LOOK.\n\n");
  printf("SAVE and LOAD are used to save your game and reload it.");
  printf(" Other words you will have to discover for yourself.\n\n");
}


x86 assembly (clang, -O0):
<showhelp>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1f(%rip),%rdi
call   1030 <printf@plt>
lea    0xf75(%rip),%rdi
call   1030 <printf@plt>
lea    0xfb4(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe6(%rip),%rdi
call   1030 <printf@plt>
lea    0x1012(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<showhelp>:
push   %rax
lea    0xed8(%rip),%rdi
call   1040 <printf@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1040 <printf@plt>
lea    0xfde(%rip),%rdi
call   1030 <puts@plt>
lea    0xf39(%rip),%rdi
call   1040 <printf@plt>
lea    0x1003(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [70 x i8] c"I understand one or two word instructions such as CLIMB TREE or QUIT.\00"
@.str.1 = [98 x i8] c" Some of the words I know are GET, DROP, INV (to list objects carried), LOOK, EXAMINE and QUIT.\0A\0A\00"
@.str.2 = [75 x i8] c"To move around you can type GO NORTH, GO DOWN etc or just N,E,W,S,U and D.\00"
@.str.3 = [62 x i8] c" Some other commands can be abbreviated too, eg L for LOOK.\0A\0A\00"
@.str.4 = [56 x i8] c"SAVE and LOAD are used to save your game and reload it.\00"
@.str.5 = [55 x i8] c" Other words you will have to discover for yourself.\0A\0A\00"
define void @showhelp() {
%1 = call i32 @printf(i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([98 x i8], [98 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [70 x i8] c"I understand one or two word instructions such as CLIMB TREE or QUIT.\00"
@.str.2 = [75 x i8] c"To move around you can type GO NORTH, GO DOWN etc or just N,E,W,S,U and D.\00"
@.str.4 = [56 x i8] c"SAVE and LOAD are used to save your game and reload it.\00"
@str = [97 x i8] c" Some of the words I know are GET, DROP, INV (to list objects carried), LOOK, EXAMINE and QUIT.\0A\00"
@str.6 = [61 x i8] c" Some other commands can be abbreviated too, eg L for LOOK.\0A\00"
@str.7 = [54 x i8] c" Other words you will have to discover for yourself.\0A\00"
define void @showhelp() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([97 x i8], [97 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([61 x i8], [61 x i8]* @str.6, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.7, i64 0, i64 0))
ret void
}