#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 Game_Help(void) {
  printf(
      "The object of TAWS (Text Adventure Without Swords) is to accumulate\n");
  printf(
      "wealth by selling merchandise when the price is high, and buying it\n");
  printf("when the price is low.  To get a new quote on the price, type "
         "status.\n");
  printf("-- Commands --\n");
  printf("status: Show current credits, merchandise and prices.\n");
  printf("trade: Trade merchandise for credits, or vice versa.\n");
  printf("load: Load a previously saved game.\n");
  printf("save: Save your game.\n");
  printf("help: Show this helpful information.\n");
  printf("exit: Exit the game, but why would you want that?\n");
  printf("--   Tips   --\n");
  printf("Careful with those status updates, they don't come cheap!\n");
}


x86 assembly (clang, -O0):
<Game_Help>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf1e(%rip),%rdi
call   1030 <printf@plt>
lea    0xf57(%rip),%rdi
call   1030 <printf@plt>
lea    0xf92(%rip),%rdi
call   1030 <printf@plt>
lea    0xf96(%rip),%rdi
call   1030 <printf@plt>
lea    0xfc1(%rip),%rdi
call   1030 <printf@plt>
lea    0xfeb(%rip),%rdi
call   1030 <printf@plt>
lea    0x1004(%rip),%rdi
call   1030 <printf@plt>
lea    0x100f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
call   1030 <printf@plt>
lea    0x1050(%rip),%rdi
call   1030 <printf@plt>
lea    0x1054(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<Game_Help>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf20(%rip),%rdi
call   1030 <puts@plt>
lea    0xf58(%rip),%rdi
call   1030 <puts@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xf95(%rip),%rdi
call   1030 <puts@plt>
lea    0xfbf(%rip),%rdi
call   1030 <puts@plt>
lea    0xfe8(%rip),%rdi
call   1030 <puts@plt>
lea    0x1000(%rip),%rdi
call   1030 <puts@plt>
lea    0x100a(%rip),%rdi
call   1030 <puts@plt>
lea    0x1023(%rip),%rdi
call   1030 <puts@plt>
lea    0x1049(%rip),%rdi
call   1030 <puts@plt>
lea    0x104c(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [69 x i8] c"The object of TAWS (Text Adventure Without Swords) is to accumulate\0A\00"
@.str.1 = [69 x i8] c"wealth by selling merchandise when the price is high, and buying it\0A\00"
@.str.2 = [71 x i8] c"when the price is low. To get a new quote on the price, type status.\0A\00"
@.str.3 = [16 x i8] c"-- Commands --\0A\00"
@.str.4 = [55 x i8] c"status: Show current credits, merchandise and prices.\0A\00"
@.str.5 = [54 x i8] c"trade: Trade merchandise for credits, or vice versa.\0A\00"
@.str.6 = [37 x i8] c"load: Load a previously saved game.\0A\00"
@.str.7 = [23 x i8] c"save: Save your game.\0A\00"
@.str.8 = [38 x i8] c"help: Show this helpful information.\0A\00"
@.str.9 = [51 x i8] c"exit: Exit the game, but why would you want that?\0A\00"
@.str.10 = [16 x i8] c"-- Tips --\0A\00"
@.str.11 = [59 x i8] c"Careful with those status updates, they don't come cheap!\0A\00"
define void @Game_Help() {
%1 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([71 x i8], [71 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.11, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [68 x i8] c"The object of TAWS (Text Adventure Without Swords) is to accumulate\00"
@str.12 = [68 x i8] c"wealth by selling merchandise when the price is high, and buying it\00"
@str.13 = [70 x i8] c"when the price is low. To get a new quote on the price, type status.\00"
@str.14 = [15 x i8] c"-- Commands --\00"
@str.15 = [54 x i8] c"status: Show current credits, merchandise and prices.\00"
@str.16 = [53 x i8] c"trade: Trade merchandise for credits, or vice versa.\00"
@str.17 = [36 x i8] c"load: Load a previously saved game.\00"
@str.18 = [22 x i8] c"save: Save your game.\00"
@str.19 = [37 x i8] c"help: Show this helpful information.\00"
@str.20 = [50 x i8] c"exit: Exit the game, but why would you want that?\00"
@str.21 = [15 x i8] c"-- Tips --\00"
@str.22 = [58 x i8] c"Careful with those status updates, they don't come cheap!\00"
define void @Game_Help() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([68 x i8], [68 x i8]* @str.12, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([70 x i8], [70 x i8]* @str.13, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.14, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.15, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @str.16, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @str.17, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.18, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.19, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @str.20, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @str.21, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @str.22, i64 0, i64 0))
ret void
}