#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__ strcmp(char *, char *);
int toPush(char *string) {
  if (strcmp(string, "PLUS") == 0 || strcmp(string, "MINUS") == 0 ||
      strcmp(string, "DIV") == 0 || strcmp(string, "MUL") == 0 ||
      strcmp(string, "ASSIGNOP") == 0 || strcmp(string, "PRINT") == 0 ||
      strcmp(string, "READ") == 0 || strcmp(string, "AND") == 0 ||
      strcmp(string, "OR") == 0 || strcmp(string, "LT") == 0 ||
      strcmp(string, "LE") == 0 || strcmp(string, "EQ") == 0 ||
      strcmp(string, "GT") == 0 || strcmp(string, "GE") == 0 ||
      strcmp(string, "NE") == 0 || strcmp(string, "NOT") == 0 ||
      strcmp(string, "SIZE") == 0)
    return 1;
  else
    return 0;
}


x86 assembly (clang, -O0):
<toPush>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xec4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xeb0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe9a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe84(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe73(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe5f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe4a(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe34(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe1d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xe06(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xdef(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xdd8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xdc1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xdaa(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xd93(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     12d6 <toPush+0x1c6>
mov    -0x10(%rbp),%rdi
lea    0xd7d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12e2 <toPush+0x1d2>
movl   $0x1,-0x4(%rbp)
jmp    12e9 <toPush+0x1d9>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<toPush>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee3(%rip),%rsi
call   1030 <strcmp@plt>
mov    $0x1,%ebp
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xece(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xea8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe94(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe85(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe73(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe60(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe4c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe37(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe22(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe11(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xe00(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xdef(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xdde(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xdcd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1298 <toPush+0x188>
lea    0xdbd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
sete   %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"PLUS\00"
@.str.1 = [6 x i8] c"MINUS\00"
@.str.2 = [4 x i8] c"DIV\00"
@.str.3 = [4 x i8] c"MUL\00"
@.str.4 = [9 x i8] c"ASSIGNOP\00"
@.str.5 = [6 x i8] c"PRINT\00"
@.str.6 = [5 x i8] c"READ\00"
@.str.7 = [4 x i8] c"AND\00"
@.str.8 = [3 x i8] c"OR\00"
@.str.9 = [3 x i8] c"LT\00"
@.str.10 = [3 x i8] c"LE\00"
@.str.11 = [3 x i8] c"EQ\00"
@.str.12 = [3 x i8] c"GT\00"
@.str.13 = [3 x i8] c"GE\00"
@.str.14 = [3 x i8] c"NE\00"
@.str.15 = [4 x i8] c"NOT\00"
@.str.16 = [5 x i8] c"SIZE\00"
define i32 @toPush(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %71, label %7
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %71, label %11
11: ; preds = %7
%12 = load i8*, i8** %3
%13 = call i64 @strcmp(i8* %12, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%14 = icmp eq i64 %13, 0
br i1 %14, label %71, label %15
15: ; preds = %11
%16 = load i8*, i8** %3
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %71, label %19
19: ; preds = %15
%20 = load i8*, i8** %3
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %71, label %23
23: ; preds = %19
%24 = load i8*, i8** %3
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %71, label %27
27: ; preds = %23
%28 = load i8*, i8** %3
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %71, label %31
31: ; preds = %27
%32 = load i8*, i8** %3
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %71, label %35
35: ; preds = %31
%36 = load i8*, i8** %3
%37 = call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %71, label %39
39: ; preds = %35
%40 = load i8*, i8** %3
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %71, label %43
43: ; preds = %39
%44 = load i8*, i8** %3
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %71, label %47
47: ; preds = %43
%48 = load i8*, i8** %3
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %71, label %51
51: ; preds = %47
%52 = load i8*, i8** %3
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %71, label %55
55: ; preds = %51
%56 = load i8*, i8** %3
%57 = call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %71, label %59
59: ; preds = %55
%60 = load i8*, i8** %3
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %71, label %63
63: ; preds = %59
%64 = load i8*, i8** %3
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %71, label %67
67: ; preds = %63
%68 = load i8*, i8** %3
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67, %63, %59, %55, %51, %47, %43, %39, %35, %31, %27, %23, %19, %15, %11, %7, %1
store i32 1, i32* %2
br label %73
72: ; preds = %67
store i32 0, i32* %2
br label %73
73: ; preds = %72, %71
%74 = load i32, i32* %2
ret i32 %74
}

LLVM IR (-O2):
@.str = [5 x i8] c"PLUS\00"
@.str.1 = [6 x i8] c"MINUS\00"
@.str.2 = [4 x i8] c"DIV\00"
@.str.3 = [4 x i8] c"MUL\00"
@.str.4 = [9 x i8] c"ASSIGNOP\00"
@.str.5 = [6 x i8] c"PRINT\00"
@.str.6 = [5 x i8] c"READ\00"
@.str.7 = [4 x i8] c"AND\00"
@.str.8 = [3 x i8] c"OR\00"
@.str.9 = [3 x i8] c"LT\00"
@.str.10 = [3 x i8] c"LE\00"
@.str.11 = [3 x i8] c"EQ\00"
@.str.12 = [3 x i8] c"GT\00"
@.str.13 = [3 x i8] c"GE\00"
@.str.14 = [3 x i8] c"NE\00"
@.str.15 = [4 x i8] c"NOT\00"
@.str.16 = [5 x i8] c"SIZE\00"
define i32 @toPush(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %53, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %53, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %53, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %53, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %53, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %53, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %53, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %53, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %53, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %53, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %53, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %53, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %53, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %53, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %53, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.15, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %53, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
%52 = zext i1 %51 to i32
br label %53
53: ; preds = %49, %1, %4, %7, %10, %13, %16, %19, %22, %25, %28, %31, %34, %37, %40, %43, %46
%54 = phi i32 [ 1, %46 ], [ 1, %43 ], [ 1, %40 ], [ 1, %37 ], [ 1, %34 ], [ 1, %31 ], [ 1, %28 ], [ 1, %25 ], [ 1, %22 ], [ 1, %19 ], [ 1, %16 ], [ 1, %13 ], [ 1, %10 ], [ 1, %7 ], [ 1, %4 ], [ 1, %1 ], [ %52, %49 ]
ret i32 %54
}