#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*/ clearScreen();
int /*<<< orphan*/ getchar();
int /*<<< orphan*/ printf(char *);
void helpScreen() {
  clearScreen();
  printf("\n\t   ---HELP SCREEN---\n");
  printf("\n\t This is the help screen of the game LEMONADE STAND,");
  printf("\n\tdesigned by Apple sometime in the late 70s, rewritten as a "
         "terminal game");
  printf("\n\t               --//--            ");
  printf("\n\tThe main objective on this game is to earn as much money as "
         "possible.");
  printf("\n\tYou will do so by the means of an efficient management of your");
  printf("\n\tsummertime lemonade stand. Depending on the weather announced "
         "for the");
  printf("\n\tday, you must decide how many glasses of lemonade to make for "
         "the batch,");
  printf("\n\thow much you will ask for each glass, and how many signals you "
         "will use to");
  printf("\n\tadvertise your business.");
  printf("\n\tThe key to maintain a steady profit is to keep an eye on the "
         "competency's");
  printf("\n\tprices, as they will affect directly your sales. And do not "
         "forget that nobody");
  printf("\n\twants an ice cold drink on an ice cold day!");
  printf("\n\n\n\tPress ENTER to get back to main menu ");
  getchar();
  getchar();
  return;
}


x86 assembly (clang, -O0):
<helpScreen>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1050 <clearScreen@plt>
lea    0xebe(%rip),%rdi
call   1030 <printf@plt>
lea    0xeca(%rip),%rdi
call   1030 <printf@plt>
lea    0xef5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf4c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf88(%rip),%rdi
call   1030 <printf@plt>
lea    0xfbd(%rip),%rdi
call   1030 <printf@plt>
lea    0xff9(%rip),%rdi
call   1030 <printf@plt>
lea    0x1038(%rip),%rdi
call   1030 <printf@plt>
lea    0x1079(%rip),%rdi
call   1030 <printf@plt>
lea    0x1088(%rip),%rdi
call   1030 <printf@plt>
lea    0x10c8(%rip),%rdi
call   1030 <printf@plt>
lea    0x110d(%rip),%rdi
call   1030 <printf@plt>
lea    0x112f(%rip),%rdi
call   1030 <printf@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
mov    $0x0,%al
call   1040 <getchar@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<helpScreen>:
push   %rax
xor    %eax,%eax
call   1060 <clearScreen@plt>
lea    0x11d0(%rip),%rdi
call   1030 <puts@plt>
lea    0xea5(%rip),%rdi
call   1040 <printf@plt>
lea    0xed0(%rip),%rdi
call   1040 <printf@plt>
lea    0xf0f(%rip),%rdi
call   1040 <printf@plt>
lea    0xf27(%rip),%rdi
call   1040 <printf@plt>
lea    0xf63(%rip),%rdi
call   1040 <printf@plt>
lea    0xf98(%rip),%rdi
call   1040 <printf@plt>
lea    0xfd4(%rip),%rdi
call   1040 <printf@plt>
lea    0x1013(%rip),%rdi
call   1040 <printf@plt>
lea    0x1054(%rip),%rdi
call   1040 <printf@plt>
lea    0x1063(%rip),%rdi
call   1040 <printf@plt>
lea    0x10a3(%rip),%rdi
call   1040 <printf@plt>
lea    0x10e8(%rip),%rdi
call   1040 <printf@plt>
lea    0x110a(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
call   1050 <getchar@plt>
xor    %eax,%eax
pop    %rcx
jmp    1050 <getchar@plt>

LLVM IR (-O0):
@.str = [24 x i8] c"\0A\09 ---HELP SCREEN---\0A\00"
@.str.1 = [55 x i8] c"\0A\09 This is the help screen of the game LEMONADE STAND,\00"
@.str.2 = [75 x i8] c"\0A\09designed by Apple sometime in the late 70s, rewritten as a terminal game\00"
@.str.3 = [36 x i8] c"\0A\09 --//-- \00"
@.str.4 = [72 x i8] c"\0A\09The main objective on this game is to earn as much money as possible.\00"
@.str.5 = [65 x i8] c"\0A\09You will do so by the means of an efficient management of your\00"
@.str.6 = [72 x i8] c"\0A\09summertime lemonade stand. Depending on the weather announced for the\00"
@.str.7 = [75 x i8] c"\0A\09day, you must decide how many glasses of lemonade to make for the batch,\00"
@.str.8 = [77 x i8] c"\0A\09how much you will ask for each glass, and how many signals you will use to\00"
@.str.9 = [27 x i8] c"\0A\09advertise your business.\00"
@.str.10 = [76 x i8] c"\0A\09The key to maintain a steady profit is to keep an eye on the competency's\00"
@.str.11 = [81 x i8] c"\0A\09prices, as they will affect directly your sales. And do not forget that nobody\00"
@.str.12 = [46 x i8] c"\0A\09wants an ice cold drink on an ice cold day!\00"
@.str.13 = [42 x i8] c"\0A\0A\0A\09Press ENTER to get back to main menu \00"
define void @helpScreen() {
%1 = call i32 (...) @clearScreen()
%2 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.7, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.8, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.10, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.11, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0))
%16 = call i32 (...) @getchar()
%17 = call i32 (...) @getchar()
ret void
}

LLVM IR (-O2):
@.str.1 = [55 x i8] c"\0A\09 This is the help screen of the game LEMONADE STAND,\00"
@.str.2 = [75 x i8] c"\0A\09designed by Apple sometime in the late 70s, rewritten as a terminal game\00"
@.str.3 = [36 x i8] c"\0A\09 --//-- \00"
@.str.4 = [72 x i8] c"\0A\09The main objective on this game is to earn as much money as possible.\00"
@.str.5 = [65 x i8] c"\0A\09You will do so by the means of an efficient management of your\00"
@.str.6 = [72 x i8] c"\0A\09summertime lemonade stand. Depending on the weather announced for the\00"
@.str.7 = [75 x i8] c"\0A\09day, you must decide how many glasses of lemonade to make for the batch,\00"
@.str.8 = [77 x i8] c"\0A\09how much you will ask for each glass, and how many signals you will use to\00"
@.str.9 = [27 x i8] c"\0A\09advertise your business.\00"
@.str.10 = [76 x i8] c"\0A\09The key to maintain a steady profit is to keep an eye on the competency's\00"
@.str.11 = [81 x i8] c"\0A\09prices, as they will affect directly your sales. And do not forget that nobody\00"
@.str.12 = [46 x i8] c"\0A\09wants an ice cold drink on an ice cold day!\00"
@.str.13 = [42 x i8] c"\0A\0A\0A\09Press ENTER to get back to main menu \00"
@str = [23 x i8] c"\0A\09 ---HELP SCREEN---\00"
define void @helpScreen() {
%1 = tail call i32 (...) @clearScreen()
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.1, i64 0, i64 0))
%4 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.3, i64 0, i64 0))
%6 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.4, i64 0, i64 0))
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([65 x i8], [65 x i8]* @.str.5, i64 0, i64 0))
%8 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([72 x i8], [72 x i8]* @.str.6, i64 0, i64 0))
%9 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @.str.7, i64 0, i64 0))
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @.str.8, i64 0, i64 0))
%11 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.9, i64 0, i64 0))
%12 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.10, i64 0, i64 0))
%13 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([81 x i8], [81 x i8]* @.str.11, i64 0, i64 0))
%14 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.12, i64 0, i64 0))
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.13, i64 0, i64 0))
%16 = tail call i32 (...) @getchar()
%17 = tail call i32 (...) @getchar()
ret void
}