#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 *);
page23() {
  printf("You go to the nearest computer terminal and declare yourself a "
         "mutant.\n");
  printf("\"A mutant, he\'s a mutant,\" yells a previously unnoticed infrared "
         "who had\n");
  printf("been looking over your shoulder.  You easily gun him down, but not "
         "before a\n");
  printf("dozen more citizens take notice and aim their weapons at you.\n");
  return choose(28, "You tell them that it was really only a bad joke", 24,
                "You want to fight it out, one against twelve");
}


x86 assembly (clang, -O0):
<page23>:
push   %rbp
mov    %rsp,%rbp
lea    0xed5(%rip),%rdi
call   1040 <printf@plt>
lea    0xf11(%rip),%rdi
call   1040 <printf@plt>
lea    0xf4f(%rip),%rdi
call   1040 <printf@plt>
lea    0xf90(%rip),%rdi
call   1040 <printf@plt>
mov    $0x1c,%edi
lea    0xfbe(%rip),%rsi
mov    $0x18,%edx
lea    0xfe3(%rip),%rcx
call   1030 <choose@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<page23>:
push   %rax
lea    0xf36(%rip),%rdi
call   1030 <puts@plt>
lea    0xf71(%rip),%rdi
call   1030 <puts@plt>
lea    0xfae(%rip),%rdi
call   1030 <puts@plt>
lea    0xfee(%rip),%rdi
call   1030 <puts@plt>
lea    0xea8(%rip),%rsi
lea    0xed2(%rip),%rcx
mov    $0x1c,%edi
mov    $0x18,%edx
pop    %rax
jmp    1040 <choose@plt>

LLVM IR (-O0):
@.str = [72 x i8] c"You go to the nearest computer terminal and declare yourself a mutant.\0A\00"
@.str.1 = [74 x i8] c"\22A mutant, he's a mutant,\22 yells a previously unnoticed infrared who had\0A\00"
@.str.2 = [77 x i8] c"been looking over your shoulder. You easily gun him down, but not before a\0A\00"
@.str.3 = [63 x i8] c"dozen more citizens take notice and aim their weapons at you.\0A\00"
@.str.4 = [49 x i8] c"You tell them that it was really only a bad joke\00"
@.str.5 = [45 x i8] c"You want to fight it out, one against twelve\00"
define i32 @page23() {
%1 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([74 x i8], [74 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([63 x i8], [63 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @choose(i32 28, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
ret i32 %5
}

LLVM IR (-O2):
@.str.4 = [49 x i8] c"You tell them that it was really only a bad joke\00"
@.str.5 = [45 x i8] c"You want to fight it out, one against twelve\00"
@str = [71 x i8] c"You go to the nearest computer terminal and declare yourself a mutant.\00"
@str.6 = [73 x i8] c"\22A mutant, he's a mutant,\22 yells a previously unnoticed infrared who had\00"
@str.7 = [76 x i8] c"been looking over your shoulder. You easily gun him down, but not before a\00"
@str.8 = [62 x i8] c"dozen more citizens take notice and aim their weapons at you.\00"
define i32 @page23() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([73 x i8], [73 x i8]* @str.6, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.7, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @str.8, i64 0, i64 0))
%5 = tail call i32 @choose(i32 28, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i32 24, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.5, i64 0, i64 0))
ret i32 %5
}