#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 choose(int, char *, int, char *);
int /*<<< orphan*/ printf(char *);
page5() {
  printf("The computer says, \"Troubleshooter, you are not wearing the correct "
         "colour\n");
  printf("uniform.  You must put on an Ultraviolet uniform immediately.  I "
         "have seen to\n");
  printf("your needs and ordered one already; it will be here shortly.  Please "
         "wait with\n");
  printf("your back to the wall until it arrives.\"  In less than a minute an "
         "infrared\n");
  printf("arrives carrying a white bundle.  He asks you to sign for it, then "
         "hands it to\n");
  printf("you and stands back, well outside of a fragmentation grenade\'s "
         "blast radius.\n");
  return choose(6, "You open the package and put on the uniform", 7,
                "You finally come to your senses and run for it");
}


x86 assembly (clang, -O0):
<page5>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
lea    0xf15(%rip),%rdi
call   1040 <printf@plt>
lea    0xf58(%rip),%rdi
call   1040 <printf@plt>
lea    0xf9c(%rip),%rdi
call   1040 <printf@plt>
lea    0xfdd(%rip),%rdi
call   1040 <printf@plt>
lea    0x1021(%rip),%rdi
call   1040 <printf@plt>
mov    $0x6,%edi
lea    0x105e(%rip),%rsi
mov    $0x7,%edx
lea    0x107e(%rip),%rcx
call   1030 <choose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<page5>:
push   %rax
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf72(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xff7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1037(%rip),%rdi
call   1030 <puts@plt>
lea    0x107a(%rip),%rdi
call   1030 <puts@plt>
lea    0xe90(%rip),%rsi
lea    0xeb5(%rip),%rcx
mov    $0x6,%edi
mov    $0x7,%edx
pop    %rax
jmp    1040 <choose@plt>

LLVM IR (-O0):
@.str = [76 x i8] c"The computer says, \22Troubleshooter, you are not wearing the correct colour\0A\00"
@.str.1 = [79 x i8] c"uniform. You must put on an Ultraviolet uniform immediately. I have seen to\0A\00"
@.str.2 = [80 x i8] c"your needs and ordered one already; it will be here shortly. Please wait with\0A\00"
@.str.3 = [77 x i8] c"your back to the wall until it arrives.\22 In less than a minute an infrared\0A\00"
@.str.4 = [80 x i8] c"arrives carrying a white bundle. He asks you to sign for it, then hands it to\0A\00"
@.str.5 = [78 x i8] c"you and stands back, well outside of a fragmentation grenade's blast radius.\0A\00"
@.str.6 = [44 x i8] c"You open the package and put on the uniform\00"
@.str.7 = [47 x i8] c"You finally come to your senses and run for it\00"
define i32 @page5() {
%1 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([79 x i8], [79 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @choose(i32 6, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0), i32 7, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
ret i32 %7
}

LLVM IR (-O2):
@.str.6 = [44 x i8] c"You open the package and put on the uniform\00"
@.str.7 = [47 x i8] c"You finally come to your senses and run for it\00"
@str = [75 x i8] c"The computer says, \22Troubleshooter, you are not wearing the correct colour\00"
@str.8 = [78 x i8] c"uniform. You must put on an Ultraviolet uniform immediately. I have seen to\00"
@str.9 = [79 x i8] c"your needs and ordered one already; it will be here shortly. Please wait with\00"
@str.10 = [76 x i8] c"your back to the wall until it arrives.\22 In less than a minute an infrared\00"
@str.11 = [79 x i8] c"arrives carrying a white bundle. He asks you to sign for it, then hands it to\00"
@str.12 = [77 x i8] c"you and stands back, well outside of a fragmentation grenade's blast radius.\00"
define i32 @page5() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([78 x i8], [78 x i8]* @str.8, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.9, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.10, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([79 x i8], [79 x i8]* @str.11, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([77 x i8], [77 x i8]* @str.12, i64 0, i64 0))
%7 = tail call i32 @choose(i32 6, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.6, i64 0, i64 0), i32 7, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.7, i64 0, i64 0))
ret i32 %7
}