#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 *);
page56() {
  printf("That familiar strange feeling of deja\'vu envelops you again.  It is "
         "hard to\n");
  printf("say, but whatever is on the other side of the door does not seem to "
         "be intended\n");
  printf("for you.\n");
  return choose(33, "You open the door and step through", 22,
                "You go looking for more information");
}


x86 assembly (clang, -O0):
<page56>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
lea    0xf16(%rip),%rdi
call   1040 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1040 <printf@plt>
mov    $0x21,%edi
lea    0xf54(%rip),%rsi
mov    $0x16,%edx
lea    0xf6b(%rip),%rcx
call   1030 <choose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<page56>:
push   %rax
lea    0xf1f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5f(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa3(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rsi
lea    0xed0(%rip),%rcx
mov    $0x21,%edi
mov    $0x16,%edx
pop    %rax
jmp    1040 <choose@plt>

LLVM IR (-O0):
@.str = [77 x i8] c"That familiar strange feeling of deja'vu envelops you again. It is hard to\0A\00"
@.str.1 = [81 x i8] c"say, but whatever is on the other side of the door does not seem to be intended\0A\00"
@.str.2 = [10 x i8] c"for you.\0A\00"
@.str.3 = [35 x i8] c"You open the door and step through\00"
@.str.4 = [36 x i8] c"You go looking for more information\00"
define i32 @page56() {
%1 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @choose(i32 33, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 22, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
ret i32 %4
}

LLVM IR (-O2):
@.str.3 = [35 x i8] c"You open the door and step through\00"
@.str.4 = [36 x i8] c"You go looking for more information\00"
@str = [76 x i8] c"That familiar strange feeling of deja'vu envelops you again. It is hard to\00"
@str.5 = [80 x i8] c"say, but whatever is on the other side of the door does not seem to be intended\00"
@str.6 = [9 x i8] c"for you.\00"
define i32 @page56() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @str.5, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 @choose(i32 33, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.3, i64 0, i64 0), i32 22, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
ret i32 %4
}