#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*/ getchar();
int /*<<< orphan*/ printf(char *);
int intro() {
  printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                   "
         "              Broken Warrior\n\n\n\n\n\n\n\n Press ENTER/RETURN");
  getchar();
  printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n                   "
         "            -By James Phillips\n\n\n\n\n\n\n\n Press ENTER/RETURN");
  getchar();
  printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nThis application "
         "is released under the GNU GPL v2 and has NO Warranty to the\nextent "
         "permissible by law.\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n Press "
         "ENTER/RETURN");
  getchar();
  printf("\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHOW TO PLAY: \n");
  printf("1. This is a text adventure, you will be presented with a series of "
         "scenarios. \n");
  printf("2. Once you have read these scenarios, simply type a response to "
         "progress \n   through the story. \n");
  printf("3. Hints through the game are displayed in CAPITALS. \n");
  printf("4. Where a response requires more than one word, simply join them, "
         "likethis. \n");
  printf("5. always put your responses in CPAITALS. \n");
  printf("6. Required answers are always simple phrases, if you type an "
         "incorrect answer,\n   the level restarts. \n");
  printf("7. Press ENTER/RETURN to begin once you have read the instructions "
         "and \n   scenario. \n");
  printf("\n\nSCENARIO: \n");
  printf("You are walking along the streets of downtown New York, late, one "
         "Friday night.\n");
  printf("You hear the loud sound of glass smashing and feel a sharp pain "
         "against the\nback of your head.\n");
  printf("Suddenly you feel extremely light-headed and drowsy. you collapse in "
         "a heap on\nthe road.\n");
  printf("You look up. You see a dark, mysterious, hooded-figure. The world "
         "fades\nto black...");
  printf("\n\nLET THE GAME BEGIN! \n");
  return (0);
}


x86 assembly (clang, -O0):
<intro>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
lea    0xf26(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
lea    0xf79(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
lea    0x100c(%rip),%rdi
call   1030 <printf@plt>
lea    0x1029(%rip),%rdi
call   1030 <printf@plt>
lea    0x106e(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c5(%rip),%rdi
call   1030 <printf@plt>
lea    0x10f0(%rip),%rdi
call   1030 <printf@plt>
lea    0x1133(%rip),%rdi
call   1030 <printf@plt>
lea    0x1153(%rip),%rdi
call   1030 <printf@plt>
lea    0x11b0(%rip),%rdi
call   1030 <printf@plt>
lea    0x11fb(%rip),%rdi
call   1030 <printf@plt>
lea    0x11fd(%rip),%rdi
call   1030 <printf@plt>
lea    0x1242(%rip),%rdi
call   1030 <printf@plt>
lea    0x1296(%rip),%rdi
call   1030 <printf@plt>
lea    0x12e4(%rip),%rdi
call   1030 <printf@plt>
lea    0x132c(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<intro>:
push   %rax
lea    0xec8(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xf19(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0xf6c(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
lea    0x1053(%rip),%rdi
call   1030 <puts@plt>
lea    0x106f(%rip),%rdi
call   1030 <puts@plt>
lea    0x10b3(%rip),%rdi
call   1030 <puts@plt>
lea    0x1109(%rip),%rdi
call   1030 <puts@plt>
lea    0x1133(%rip),%rdi
call   1030 <puts@plt>
lea    0x1175(%rip),%rdi
call   1030 <puts@plt>
lea    0x1194(%rip),%rdi
call   1030 <puts@plt>
lea    0x11f0(%rip),%rdi
call   1030 <puts@plt>
lea    0x123a(%rip),%rdi
call   1030 <puts@plt>
lea    0x123b(%rip),%rdi
call   1030 <puts@plt>
lea    0x127f(%rip),%rdi
call   1030 <puts@plt>
lea    0x12d2(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1040 <printf@plt>
lea    0x1313(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [100 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A Broken Warrior\0A\0A\0A\0A\0A\0A\0A\0A Press ENTER/RETURN\00"
@.str.1 = [102 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A -By James Phillips\0A\0A\0A\0A\0A\0A\0A\0A Press ENTER/RETURN\00"
@.str.2 = [166 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0AThis application is released under the GNU GPL v2 and has NO Warranty to the\0Aextent permissible by law.\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A Press ENTER/RETURN\00"
@.str.3 = [41 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0AHOW TO PLAY: \0A\00"
@.str.4 = [81 x i8] c"1. This is a text adventure, you will be presented with a series of scenarios. \0A\00"
@.str.5 = [99 x i8] c"2. Once you have read these scenarios, simply type a response to progress \0A through the story. \0A\00"
@.str.6 = [55 x i8] c"3. Hints through the game are displayed in CAPITALS. \0A\00"
@.str.7 = [79 x i8] c"4. Where a response requires more than one word, simply join them, likethis. \0A\00"
@.str.8 = [44 x i8] c"5. always put your responses in CPAITALS. \0A\00"
@.str.9 = [105 x i8] c"6. Required answers are always simple phrases, if you type an incorrect answer,\0A the level restarts. \0A\00"
@.str.10 = [87 x i8] c"7. Press ENTER/RETURN to begin once you have read the instructions and \0A scenario. \0A\00"
@.str.11 = [14 x i8] c"\0A\0ASCENARIO: \0A\00"
@.str.12 = [81 x i8] c"You are walking along the streets of downtown New York, late, one Friday night.\0A\00"
@.str.13 = [96 x i8] c"You hear the loud sound of glass smashing and feel a sharp pain against the\0Aback of your head.\0A\00"
@.str.14 = [90 x i8] c"Suddenly you feel extremely light-headed and drowsy. you collapse in a heap on\0Athe road.\0A\00"
@.str.15 = [84 x i8] c"You look up. You see a dark, mysterious, hooded-figure. The world fades\0Ato black...\00"
@.str.16 = [24 x i8] c"\0A\0ALET THE GAME BEGIN! \0A\00"
define i32 @intro() {
%1 = call i32 @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (...) @getchar()
%3 = call i32 @printf(i8* getelementptr inbounds ([102 x i8], [102 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 (...) @getchar()
%5 = call i32 @printf(i8* getelementptr inbounds ([166 x i8], [166 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 (...) @getchar()
%7 = call i32 @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.4, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([99 x i8], [99 x i8]* @.str.5, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.6, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.7, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.8, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([105 x i8], [105 x i8]* @.str.9, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([87 x i8], [87 x i8]* @.str.10, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.11, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.12, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.13, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.14, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([84 x i8], [84 x i8]* @.str.15, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [100 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A Broken Warrior\0A\0A\0A\0A\0A\0A\0A\0A Press ENTER/RETURN\00"
@.str.1 = [102 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A -By James Phillips\0A\0A\0A\0A\0A\0A\0A\0A Press ENTER/RETURN\00"
@.str.2 = [166 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0AThis application is released under the GNU GPL v2 and has NO Warranty to the\0Aextent permissible by law.\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A Press ENTER/RETURN\00"
@.str.15 = [84 x i8] c"You look up. You see a dark, mysterious, hooded-figure. The world fades\0Ato black...\00"
@str = [40 x i8] c"\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0A\0AHOW TO PLAY: \00"
@str.17 = [80 x i8] c"1. This is a text adventure, you will be presented with a series of scenarios. \00"
@str.18 = [98 x i8] c"2. Once you have read these scenarios, simply type a response to progress \0A through the story. \00"
@str.19 = [54 x i8] c"3. Hints through the game are displayed in CAPITALS. \00"
@str.20 = [78 x i8] c"4. Where a response requires more than one word, simply join them, likethis. \00"
@str.21 = [43 x i8] c"5. always put your responses in CPAITALS. \00"
@str.22 = [104 x i8] c"6. Required answers are always simple phrases, if you type an incorrect answer,\0A the level restarts. \00"
@str.23 = [86 x i8] c"7. Press ENTER/RETURN to begin once you have read the instructions and \0A scenario. \00"
@str.24 = [13 x i8] c"\0A\0ASCENARIO: \00"
@str.25 = [80 x i8] c"You are walking along the streets of downtown New York, late, one Friday night.\00"
@str.26 = [95 x i8] c"You hear the loud sound of glass smashing and feel a sharp pain against the\0Aback of your head.\00"
@str.27 = [89 x i8] c"Suddenly you feel extremely light-headed and drowsy. you collapse in a heap on\0Athe road.\00"
@str.28 = [23 x i8] c"\0A\0ALET THE GAME BEGIN! \00"
define i32 @intro() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 (...) @getchar()
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([102 x i8], [102 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 (...) @getchar()
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([166 x i8], [166 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 (...) @getchar()
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.17, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([98 x i8], [98 x i8]* @str.18, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str.19, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.20, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @str.21, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([104 x i8], [104 x i8]* @str.22, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([86 x i8], [86 x i8]* @str.23, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.24, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.25, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @str.26, i64 0, i64 0))
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([89 x i8], [89 x i8]* @str.27, i64 0, i64 0))
%19 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([84 x i8], [84 x i8]* @.str.15, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.28, i64 0, i64 0))
ret i32 0
}