#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 *);
page25() {
  printf("Boy, you really can\'t take a hint!\n");
  printf("They\'re closing in.  Their trigger fingers are twitching, they\'re "
         "about to\n");
  printf("shoot.  This is your last chance.\n");
  return choose(28, "You tell them it was all just a bad joke", 26,
                "You are going to shoot");
}


x86 assembly (clang, -O0):
<page25>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
lea    0xeed(%rip),%rdi
call   1040 <printf@plt>
lea    0xf2d(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1c,%edi
lea    0xf3f(%rip),%rsi
mov    $0x1a,%edx
lea    0xf5c(%rip),%rcx
call   1030 <choose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<page25>:
push   %rax
lea    0xf18(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6e(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb4(%rip),%rsi
lea    0xed6(%rip),%rcx
mov    $0x1c,%edi
mov    $0x1a,%edx
pop    %rax
jmp    1040 <choose@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Boy, you really can't take a hint!\0A\00"
@.str.1 = [76 x i8] c"They're closing in. Their trigger fingers are twitching, they're about to\0A\00"
@.str.2 = [35 x i8] c"shoot. This is your last chance.\0A\00"
@.str.3 = [41 x i8] c"You tell them it was all just a bad joke\00"
@.str.4 = [23 x i8] c"You are going to shoot\00"
define i32 @page25() {
%1 = call i32 @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @choose(i32 28, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
ret i32 %4
}

LLVM IR (-O2):
@.str.3 = [41 x i8] c"You tell them it was all just a bad joke\00"
@.str.4 = [23 x i8] c"You are going to shoot\00"
@str = [35 x i8] c"Boy, you really can't take a hint!\00"
@str.5 = [75 x i8] c"They're closing in. Their trigger fingers are twitching, they're about to\00"
@str.6 = [34 x i8] c"shoot. This is your last chance.\00"
define i32 @page25() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([75 x i8], [75 x i8]* @str.5, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.6, i64 0, i64 0))
%4 = tail call i32 @choose(i32 28, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i32 26, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
ret i32 %4
}