#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 isCheckpoint() {
  if (strcmp(peekList(), "tapos") == 0 || 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):
<isCheckpoint>:
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     1220 <isCheckpoint+0x100>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xeaf(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1220 <isCheckpoint+0x100>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe99(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1220 <isCheckpoint+0x100>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe81(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1220 <isCheckpoint+0x100>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe66(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1220 <isCheckpoint+0x100>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe5e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1220 <isCheckpoint+0x100>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe34(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1220 <isCheckpoint+0x100>
mov    $0x0,%al
call   1040 <peekList@plt>
mov    %eax,%edi
lea    0xe1b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    122c <isCheckpoint+0x10c>
movl   $0x1,-0x4(%rbp)
jmp    1233 <isCheckpoint+0x113>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isCheckpoint>:
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     1205 <isCheckpoint+0xe5>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xeb4(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1205 <isCheckpoint+0xe5>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe9f(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1205 <isCheckpoint+0xe5>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe88(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1205 <isCheckpoint+0xe5>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe72(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1205 <isCheckpoint+0xe5>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe6f(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1205 <isCheckpoint+0xe5>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe4a(%rip),%rsi
mov    %eax,%edi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1205 <isCheckpoint+0xe5>
xor    %eax,%eax
call   1040 <peekList@plt>
lea    0xe36(%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 = [6 x i8] c"tapos\00"
@.str.1 = [9 x i8] c"noysknap\00"
@.str.2 = [7 x i8] c"gnabah\00"
@.str.3 = [4 x i8] c"rop\00"
@.str.4 = [12 x i8] c"end of line\00"
@.str.5 = [5 x i8] c"gnuk\00"
@.str.6 = [6 x i8] c"gnuKe\00"
@.str.7 = [10 x i8] c"edniHgnuk\00"
define i32 @isCheckpoint() {
%1 = alloca i32
%2 = call i32 (...) @peekList()
%3 = call i64 @strcmp(i32 %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %33, label %5
5: ; preds = %0
%6 = call i32 (...) @peekList()
%7 = call i64 @strcmp(i32 %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %33, label %9
9: ; preds = %5
%10 = call i32 (...) @peekList()
%11 = call i64 @strcmp(i32 %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %33, label %13
13: ; preds = %9
%14 = call i32 (...) @peekList()
%15 = call i64 @strcmp(i32 %14, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %33, label %17
17: ; preds = %13
%18 = call i32 (...) @peekList()
%19 = call i64 @strcmp(i32 %18, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %33, label %21
21: ; preds = %17
%22 = call i32 (...) @peekList()
%23 = call i64 @strcmp(i32 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %33, label %25
25: ; preds = %21
%26 = call i32 (...) @peekList()
%27 = call i64 @strcmp(i32 %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %33, label %29
29: ; preds = %25
%30 = call i32 (...) @peekList()
%31 = call i64 @strcmp(i32 %30, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29, %25, %21, %17, %13, %9, %5, %0
store i32 1, i32* %1
br label %35
34: ; preds = %29
store i32 0, i32* %1
br label %35
35: ; preds = %34, %33
%36 = load i32, i32* %1
ret i32 %36
}

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