#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 */
scalar_t__ is_story(char *);
bool is_beyond_zork(void) {
  return is_story("1-870412") || is_story("1-870715") ||
         is_story("47-870915") || is_story("49-870917") ||
         is_story("51-870923") || is_story("57-871221") ||
         is_story("60-880610");
}


x86 assembly (clang, -O0):
<is_beyond_zork>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xee1(%rip),%rdi
call   1030 <is_story@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11e2 <is_beyond_zork+0xd2>
lea    0xecc(%rip),%rdi
call   1030 <is_story@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11e2 <is_beyond_zork+0xd2>
lea    0xeb7(%rip),%rdi
call   1030 <is_story@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11e2 <is_beyond_zork+0xd2>
lea    0xea3(%rip),%rdi
call   1030 <is_story@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11e2 <is_beyond_zork+0xd2>
lea    0xe8f(%rip),%rdi
call   1030 <is_story@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11e2 <is_beyond_zork+0xd2>
lea    0xe7b(%rip),%rdi
call   1030 <is_story@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x1(%rbp)
jne    11e2 <is_beyond_zork+0xd2>
lea    0xe67(%rip),%rdi
call   1030 <is_story@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x1(%rbp)
mov    -0x1(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_beyond_zork>:
push   %rbx
lea    0xee8(%rip),%rdi
call   1030 <is_story@plt>
mov    $0x1,%ebx
test   %rax,%rax
jne    1190 <is_beyond_zork+0x80>
lea    0xedb(%rip),%rdi
call   1030 <is_story@plt>
test   %rax,%rax
jne    1190 <is_beyond_zork+0x80>
lea    0xed3(%rip),%rdi
call   1030 <is_story@plt>
test   %rax,%rax
jne    1190 <is_beyond_zork+0x80>
lea    0xecc(%rip),%rdi
call   1030 <is_story@plt>
test   %rax,%rax
jne    1190 <is_beyond_zork+0x80>
lea    0xec5(%rip),%rdi
call   1030 <is_story@plt>
test   %rax,%rax
jne    1190 <is_beyond_zork+0x80>
lea    0xebe(%rip),%rdi
call   1030 <is_story@plt>
test   %rax,%rax
jne    1190 <is_beyond_zork+0x80>
lea    0xeb7(%rip),%rdi
call   1030 <is_story@plt>
xor    %ebx,%ebx
test   %rax,%rax
setne  %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"1-870412\00"
@.str.1 = [9 x i8] c"1-870715\00"
@.str.2 = [10 x i8] c"47-870915\00"
@.str.3 = [10 x i8] c"49-870917\00"
@.str.4 = [10 x i8] c"51-870923\00"
@.str.5 = [10 x i8] c"57-871221\00"
@.str.6 = [10 x i8] c"60-880610\00"
define i32 @is_beyond_zork() {
%1 = call i64 @is_story(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = icmp ne i64 %1, 0
br i1 %2, label %21, label %3
3: ; preds = %0
%4 = call i64 @is_story(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp ne i64 %4, 0
br i1 %5, label %21, label %6
6: ; preds = %3
%7 = call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp ne i64 %7, 0
br i1 %8, label %21, label %9
9: ; preds = %6
%10 = call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%11 = icmp ne i64 %10, 0
br i1 %11, label %21, label %12
12: ; preds = %9
%13 = call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%14 = icmp ne i64 %13, 0
br i1 %14, label %21, label %15
15: ; preds = %12
%16 = call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%17 = icmp ne i64 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %15
%19 = call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%20 = icmp ne i64 %19, 0
br label %21
21: ; preds = %18, %15, %12, %9, %6, %3, %0
%22 = phi i1 [ true, %15 ], [ true, %12 ], [ true, %9 ], [ true, %6 ], [ true, %3 ], [ true, %0 ], [ %20, %18 ]
%23 = zext i1 %22 to i32
ret i32 %23
}

LLVM IR (-O2):
@.str = [9 x i8] c"1-870412\00"
@.str.1 = [9 x i8] c"1-870715\00"
@.str.2 = [10 x i8] c"47-870915\00"
@.str.3 = [10 x i8] c"49-870917\00"
@.str.4 = [10 x i8] c"51-870923\00"
@.str.5 = [10 x i8] c"57-871221\00"
@.str.6 = [10 x i8] c"60-880610\00"
define i32 @is_beyond_zork() {
%1 = tail call i64 @is_story(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %22
3: ; preds = %0
%4 = tail call i64 @is_story(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %22
6: ; preds = %3
%7 = tail call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %22
9: ; preds = %6
%10 = tail call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %22
12: ; preds = %9
%13 = tail call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %15, label %22
15: ; preds = %12
%16 = tail call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %15
%19 = tail call i64 @is_story(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%20 = icmp ne i64 %19, 0
%21 = zext i1 %20 to i32
br label %22
22: ; preds = %18, %15, %12, %9, %6, %3, %0
%23 = phi i32 [ 1, %15 ], [ 1, %12 ], [ 1, %9 ], [ 1, %6 ], [ 1, %3 ], [ 1, %0 ], [ %21, %18 ]
ret i32 %23
}