#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 /*<<< orphan*/ peekList();
scalar_t__ strcmp(int /*<<< orphan*/, char *);
int isCheckpoint2() {
  if (strcmp(peekList(), "noysknap") == 0 ||
      strcmp(peekList(), "gnabah") == 0 || strcmp(peekList(), "rop") == 0 ||
      strcmp(peekList(), "end of line") == 0 ||
      strcmp(peekList(), "gnuk") == 0 || strcmp(peekList(), "gnuKe") == 0 ||
      strcmp(peekList(), "edniHgnuk") == 0)
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<isCheckpoint2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xec8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1201 <isCheckpoint2+0xe1>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xeb2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1201 <isCheckpoint2+0xe1>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe9a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1201 <isCheckpoint2+0xe1>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe7f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1201 <isCheckpoint2+0xe1>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe77(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1201 <isCheckpoint2+0xe1>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe4d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1201 <isCheckpoint2+0xe1>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe34(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    120d <isCheckpoint2+0xed>
movl   $0x1,-0x4(%rbp)
jmp    1214 <isCheckpoint2+0xf4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isCheckpoint2>:
push   %rbx
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xed1(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
mov    $0x1,%ebx
test   %rax,%rax
je     11e7 <isCheckpoint2+0xc7>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xeb7(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11e7 <isCheckpoint2+0xc7>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xea0(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11e7 <isCheckpoint2+0xc7>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe8a(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11e7 <isCheckpoint2+0xc7>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe87(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11e7 <isCheckpoint2+0xc7>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe62(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     11e7 <isCheckpoint2+0xc7>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe4e(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
xor    %ebx,%ebx
test   %rax,%rax
sete   %bl
mov    %ebx,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [9 x i8] c"noysknap\00"
@.str.1 = [7 x i8] c"gnabah\00"
@.str.2 = [4 x i8] c"rop\00"
@.str.3 = [12 x i8] c"end of line\00"
@.str.4 = [5 x i8] c"gnuk\00"
@.str.5 = [6 x i8] c"gnuKe\00"
@.str.6 = [10 x i8] c"edniHgnuk\00"
define i32 @isCheckpoint2() {
%1 = alloca i32
%2 = call i32 (...) @peekList()
%3 = call i64 @strcmp(i32 %2, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %29, label %5
5: ; preds = %0
%6 = call i32 (...) @peekList()
%7 = call i64 @strcmp(i32 %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %29, label %9
9: ; preds = %5
%10 = call i32 (...) @peekList()
%11 = call i64 @strcmp(i32 %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %29, label %13
13: ; preds = %9
%14 = call i32 (...) @peekList()
%15 = call i64 @strcmp(i32 %14, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %29, label %17
17: ; preds = %13
%18 = call i32 (...) @peekList()
%19 = call i64 @strcmp(i32 %18, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %29, label %21
21: ; preds = %17
%22 = call i32 (...) @peekList()
%23 = call i64 @strcmp(i32 %22, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %29, label %25
25: ; preds = %21
%26 = call i32 (...) @peekList()
%27 = call i64 @strcmp(i32 %26, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %30
29: ; preds = %25, %21, %17, %13, %9, %5, %0
store i32 1, i32* %1
br label %31
30: ; preds = %25
store i32 0, i32* %1
br label %31
31: ; preds = %30, %29
%32 = load i32, i32* %1
ret i32 %32
}

LLVM IR (-O2):
@.str = [9 x i8] c"noysknap\00"
@.str.1 = [7 x i8] c"gnabah\00"
@.str.2 = [4 x i8] c"rop\00"
@.str.3 = [12 x i8] c"end of line\00"
@.str.4 = [5 x i8] c"gnuk\00"
@.str.5 = [6 x i8] c"gnuKe\00"
@.str.6 = [10 x i8] c"edniHgnuk\00"
define i32 @isCheckpoint2() {
%1 = tail call i32 (...) @peekList()
%2 = tail call i64 @strcmp(i32 %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %29, label %4
4: ; preds = %0
%5 = tail call i32 (...) @peekList()
%6 = tail call i64 @strcmp(i32 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %29, label %8
8: ; preds = %4
%9 = tail call i32 (...) @peekList()
%10 = tail call i64 @strcmp(i32 %9, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %29, label %12
12: ; preds = %8
%13 = tail call i32 (...) @peekList()
%14 = tail call i64 @strcmp(i32 %13, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %29, label %16
16: ; preds = %12
%17 = tail call i32 (...) @peekList()
%18 = tail call i64 @strcmp(i32 %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %29, label %20
20: ; preds = %16
%21 = tail call i32 (...) @peekList()
%22 = tail call i64 @strcmp(i32 %21, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %29, label %24
24: ; preds = %20
%25 = tail call i32 (...) @peekList()
%26 = tail call i64 @strcmp(i32 %25, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
%28 = zext i1 %27 to i32
br label %29
29: ; preds = %24, %0, %4, %8, %12, %16, %20
%30 = phi i32 [ 1, %20 ], [ 1, %16 ], [ 1, %12 ], [ 1, %8 ], [ 1, %4 ], [ 1, %0 ], [ %28, %24 ]
ret i32 %30
}