#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 get_token_id_from_string(char *tokenChar) {
  if (strcmp(tokenChar, "\0") == 0) {
    return 1;
  } else if (*tokenChar >= 48 && *tokenChar <= 57) {
    return 3;
  } else if (strcmp(tokenChar, "+") == 0) {
    return 4;
  } else if (strcmp(tokenChar, "-") == 0) {
    return 5;
  } else if (strcmp(tokenChar, "*") == 0) {
    return 6;
  } else if (strcmp(tokenChar, "/") == 0) {
    return 7;
  } else if (strcmp(tokenChar, "odd") == 0) {
    return 8;
  } else if (strcmp(tokenChar, "=") == 0) {
    return 9;
  } else if (strcmp(tokenChar, "!") == 0) {
    return 10;
  } else if (strcmp(tokenChar, "<") == 0) {
    return 11;
  } else if (strcmp(tokenChar, "<=") == 0) {
    return 12;
  } else if (strcmp(tokenChar, ">") == 0) {
    return 13;
  } else if (strcmp(tokenChar, ">=") == 0) {
    return 14;
  } else if (strcmp(tokenChar, "(") == 0) {
    return 15;
  } else if (strcmp(tokenChar, ")") == 0) {
    return 16;
  } else if (strcmp(tokenChar, ",") == 0) {
    return 17;
  } else if (strcmp(tokenChar, ";") == 0) {
    return 18;
  } else if (strcmp(tokenChar, ".") == 0) {
    return 19;
  } else if (strcmp(tokenChar, "becomes") == 0) {
    return 20;
  } else if (strcmp(tokenChar, "begins") == 0) {
    return 21;
  } else if (strcmp(tokenChar, "end") == 0) {
    return 22;
  } else if (strcmp(tokenChar, "if") == 0) {
    return 23;
  } else if (strcmp(tokenChar, "then") == 0) {
    return 24;
  } else if (strcmp(tokenChar, "while") == 0) {
    return 25;
  } else if (strcmp(tokenChar, "do") == 0) {
    return 26;
  } else if (strcmp(tokenChar, "call") == 0) {
    return 27;
  } else if (strcmp(tokenChar, "const") == 0) {
    return 28;
  } else if (strcmp(tokenChar, "var") == 0) {
    return 29;
  } else if (strcmp(tokenChar, "proc") == 0) {
    return 30;
  } else if (strcmp(tokenChar, "write") == 0) {
    return 31;
  } else if (strcmp(tokenChar, "read") == 0) {
    return 32;
  } else if (strcmp(tokenChar, "else") == 0) {
    return 33;
  } else if ((*tokenChar >= 65 && *tokenChar <= 90) ||
             (*tokenChar >= 97 && *tokenChar <= 122)) {
    return 2;
  } else {
    return -1;
  }
}


x86 assembly (clang, -O0):
<get_token_id_from_string>:
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
jne    1142 <get_token_id_from_string+0x32>
movl   $0x1,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
jl     116e <get_token_id_from_string+0x5e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x39,%eax
jg     116e <get_token_id_from_string+0x5e>
movl   $0x3,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xe89(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1194 <get_token_id_from_string+0x84>
movl   $0x4,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xe65(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11ba <get_token_id_from_string+0xaa>
movl   $0x5,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xe41(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11e0 <get_token_id_from_string+0xd0>
movl   $0x6,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xe1d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1206 <get_token_id_from_string+0xf6>
movl   $0x7,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xdf9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    122c <get_token_id_from_string+0x11c>
movl   $0x8,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xddc(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1252 <get_token_id_from_string+0x142>
movl   $0x9,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xdb1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1278 <get_token_id_from_string+0x168>
movl   $0xa,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xd8d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    129e <get_token_id_from_string+0x18e>
movl   $0xb,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xd69(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12c4 <get_token_id_from_string+0x1b4>
movl   $0xc,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xd46(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12ea <get_token_id_from_string+0x1da>
movl   $0xd,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xd22(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1310 <get_token_id_from_string+0x200>
movl   $0xe,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xcff(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1336 <get_token_id_from_string+0x226>
movl   $0xf,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xcdb(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    135c <get_token_id_from_string+0x24c>
movl   $0x10,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xcb7(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1382 <get_token_id_from_string+0x272>
movl   $0x11,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xc93(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13a8 <get_token_id_from_string+0x298>
movl   $0x12,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xc6f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13ce <get_token_id_from_string+0x2be>
movl   $0x13,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xc4b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13f4 <get_token_id_from_string+0x2e4>
movl   $0x14,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xc2d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    141a <get_token_id_from_string+0x30a>
movl   $0x15,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xc0e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1440 <get_token_id_from_string+0x330>
movl   $0x16,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xbec(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1466 <get_token_id_from_string+0x356>
movl   $0x17,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xbc9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    148c <get_token_id_from_string+0x37c>
movl   $0x18,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xba8(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14b2 <get_token_id_from_string+0x3a2>
movl   $0x19,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xb88(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14d8 <get_token_id_from_string+0x3c8>
movl   $0x1a,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xb65(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14fe <get_token_id_from_string+0x3ee>
movl   $0x1b,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xb44(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1524 <get_token_id_from_string+0x414>
movl   $0x1c,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xb24(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    154a <get_token_id_from_string+0x43a>
movl   $0x1d,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xb02(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1570 <get_token_id_from_string+0x460>
movl   $0x1e,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xae1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1596 <get_token_id_from_string+0x486>
movl   $0x1f,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xac1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    15bc <get_token_id_from_string+0x4ac>
movl   $0x20,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rdi
lea    0xaa0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    15e2 <get_token_id_from_string+0x4d2>
movl   $0x21,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x41,%eax
jl     1602 <get_token_id_from_string+0x4f2>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5a,%eax
jle    1622 <get_token_id_from_string+0x512>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x61,%eax
jl     162e <get_token_id_from_string+0x51e>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x7a,%eax
jg     162e <get_token_id_from_string+0x51e>
movl   $0x2,-0x4(%rbp)
jmp    1635 <get_token_id_from_string+0x525>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_token_id_from_string>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1136 <get_token_id_from_string+0x26>
mov    (%rbx),%cl
add    $0xd0,%cl
mov    $0x3,%eax
cmp    $0xa,%cl
jae    113d <get_token_id_from_string+0x2d>
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1433 <get_token_id_from_string+0x323>
lea    0xea8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     143a <get_token_id_from_string+0x32a>
lea    0xe92(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1441 <get_token_id_from_string+0x331>
lea    0xe7c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1448 <get_token_id_from_string+0x338>
lea    0xe66(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     144f <get_token_id_from_string+0x33f>
lea    0xe57(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1456 <get_token_id_from_string+0x346>
lea    0xe3a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     145d <get_token_id_from_string+0x34d>
lea    0xe24(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1464 <get_token_id_from_string+0x354>
lea    0xe0e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     146b <get_token_id_from_string+0x35b>
lea    0xdf9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1472 <get_token_id_from_string+0x362>
lea    0xde3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1479 <get_token_id_from_string+0x369>
lea    0xdce(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1480 <get_token_id_from_string+0x370>
lea    0xdb8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1487 <get_token_id_from_string+0x377>
lea    0xda2(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     148e <get_token_id_from_string+0x37e>
lea    0xd8c(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1495 <get_token_id_from_string+0x385>
lea    0xd76(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     149c <get_token_id_from_string+0x38c>
lea    0xd60(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14a3 <get_token_id_from_string+0x393>
lea    0xd50(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14aa <get_token_id_from_string+0x39a>
lea    0xd3f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14b1 <get_token_id_from_string+0x3a1>
lea    0xd2b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14b8 <get_token_id_from_string+0x3a8>
lea    0xd16(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14bf <get_token_id_from_string+0x3af>
lea    0xd03(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14c6 <get_token_id_from_string+0x3b6>
lea    0xcf1(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14cd <get_token_id_from_string+0x3bd>
lea    0xcdc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14d4 <get_token_id_from_string+0x3c4>
lea    0xcc9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14db <get_token_id_from_string+0x3cb>
lea    0xcb7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14e2 <get_token_id_from_string+0x3d2>
lea    0xca3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14e9 <get_token_id_from_string+0x3d9>
lea    0xc90(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14f0 <get_token_id_from_string+0x3e0>
lea    0xc7e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14f7 <get_token_id_from_string+0x3e7>
lea    0xc6b(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     14fe <get_token_id_from_string+0x3ee>
mov    (%rbx),%cl
lea    -0x41(%rcx),%edx
mov    $0x2,%eax
cmp    $0x1a,%dl
jb     1134 <get_token_id_from_string+0x24>
add    $0x9f,%cl
xor    %eax,%eax
cmp    $0x1a,%cl
setb   %al
lea    (%rax,%rax,2),%eax
add    $0xffffffff,%eax
pop    %rbx
ret
mov    $0x4,%eax
pop    %rbx
ret
mov    $0x5,%eax
pop    %rbx
ret
mov    $0x6,%eax
pop    %rbx
ret
mov    $0x7,%eax
pop    %rbx
ret
mov    $0x8,%eax
pop    %rbx
ret
mov    $0x9,%eax
pop    %rbx
ret
mov    $0xa,%eax
pop    %rbx
ret
mov    $0xb,%eax
pop    %rbx
ret
mov    $0xc,%eax
pop    %rbx
ret
mov    $0xd,%eax
pop    %rbx
ret
mov    $0xe,%eax
pop    %rbx
ret
mov    $0xf,%eax
pop    %rbx
ret
mov    $0x10,%eax
pop    %rbx
ret
mov    $0x11,%eax
pop    %rbx
ret
mov    $0x12,%eax
pop    %rbx
ret
mov    $0x13,%eax
pop    %rbx
ret
mov    $0x14,%eax
pop    %rbx
ret
mov    $0x15,%eax
pop    %rbx
ret
mov    $0x16,%eax
pop    %rbx
ret
mov    $0x17,%eax
pop    %rbx
ret
mov    $0x18,%eax
pop    %rbx
ret
mov    $0x19,%eax
pop    %rbx
ret
mov    $0x1a,%eax
pop    %rbx
ret
mov    $0x1b,%eax
pop    %rbx
ret
mov    $0x1c,%eax
pop    %rbx
ret
mov    $0x1d,%eax
pop    %rbx
ret
mov    $0x1e,%eax
pop    %rbx
ret
mov    $0x1f,%eax
pop    %rbx
ret
mov    $0x20,%eax
pop    %rbx
ret
mov    $0x21,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [2 x i8] zeroinitializer
@.str.1 = [2 x i8] c"+\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [2 x i8] c"*\00"
@.str.4 = [2 x i8] c"/\00"
@.str.5 = [4 x i8] c"odd\00"
@.str.6 = [2 x i8] c"=\00"
@.str.7 = [2 x i8] c"!\00"
@.str.8 = [2 x i8] c"<\00"
@.str.9 = [3 x i8] c"<=\00"
@.str.10 = [2 x i8] c">\00"
@.str.11 = [3 x i8] c">=\00"
@.str.12 = [2 x i8] c"(\00"
@.str.13 = [2 x i8] c")\00"
@.str.14 = [2 x i8] c",\00"
@.str.15 = [2 x i8] c";\00"
@.str.16 = [2 x i8] c".\00"
@.str.17 = [8 x i8] c"becomes\00"
@.str.18 = [7 x i8] c"begins\00"
@.str.19 = [4 x i8] c"end\00"
@.str.20 = [3 x i8] c"if\00"
@.str.21 = [5 x i8] c"then\00"
@.str.22 = [6 x i8] c"while\00"
@.str.23 = [3 x i8] c"do\00"
@.str.24 = [5 x i8] c"call\00"
@.str.25 = [6 x i8] c"const\00"
@.str.26 = [4 x i8] c"var\00"
@.str.27 = [5 x i8] c"proc\00"
@.str.28 = [6 x i8] c"write\00"
@.str.29 = [5 x i8] c"read\00"
@.str.30 = [5 x i8] c"else\00"
define i32 @get_token_id_from_string(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 ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %8
7: ; preds = %1
store i32 1, i32* %2
br label %191
8: ; preds = %1
%9 = load i8*, i8** %3
%10 = load i8, i8* %9
%11 = sext i8 %10 to i32
%12 = icmp sge i32 %11, 48
br i1 %12, label %13, label %19
13: ; preds = %8
%14 = load i8*, i8** %3
%15 = load i8, i8* %14
%16 = sext i8 %15 to i32
%17 = icmp sle i32 %16, 57
br i1 %17, label %18, label %19
18: ; preds = %13
store i32 3, i32* %2
br label %191
19: ; preds = %13, %8
%20 = load i8*, i8** %3
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %24
23: ; preds = %19
store i32 4, i32* %2
br label %191
24: ; preds = %19
%25 = load i8*, i8** %3
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %29
28: ; preds = %24
store i32 5, i32* %2
br label %191
29: ; preds = %24
%30 = load i8*, i8** %3
%31 = call i64 @strcmp(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29
store i32 6, i32* %2
br label %191
34: ; preds = %29
%35 = load i8*, i8** %3
%36 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %34
store i32 7, i32* %2
br label %191
39: ; preds = %34
%40 = load i8*, i8** %3
%41 = call i64 @strcmp(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %44
43: ; preds = %39
store i32 8, i32* %2
br label %191
44: ; preds = %39
%45 = load i8*, i8** %3
%46 = call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %49
48: ; preds = %44
store i32 9, i32* %2
br label %191
49: ; preds = %44
%50 = load i8*, i8** %3
%51 = call i64 @strcmp(i8* %50, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %54
53: ; preds = %49
store i32 10, i32* %2
br label %191
54: ; preds = %49
%55 = load i8*, i8** %3
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %54
store i32 11, i32* %2
br label %191
59: ; preds = %54
%60 = load i8*, i8** %3
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %59
store i32 12, i32* %2
br label %191
64: ; preds = %59
%65 = load i8*, i8** %3
%66 = call i64 @strcmp(i8* %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %64
store i32 13, i32* %2
br label %191
69: ; preds = %64
%70 = load i8*, i8** %3
%71 = call i64 @strcmp(i8* %70, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %69
store i32 14, i32* %2
br label %191
74: ; preds = %69
%75 = load i8*, i8** %3
%76 = call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %79
78: ; preds = %74
store i32 15, i32* %2
br label %191
79: ; preds = %74
%80 = load i8*, i8** %3
%81 = call i64 @strcmp(i8* %80, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %84
83: ; preds = %79
store i32 16, i32* %2
br label %191
84: ; preds = %79
%85 = load i8*, i8** %3
%86 = call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %84
store i32 17, i32* %2
br label %191
89: ; preds = %84
%90 = load i8*, i8** %3
%91 = call i64 @strcmp(i8* %90, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %94
93: ; preds = %89
store i32 18, i32* %2
br label %191
94: ; preds = %89
%95 = load i8*, i8** %3
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %94
store i32 19, i32* %2
br label %191
99: ; preds = %94
%100 = load i8*, i8** %3
%101 = call i64 @strcmp(i8* %100, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%102 = icmp eq i64 %101, 0
br i1 %102, label %103, label %104
103: ; preds = %99
store i32 20, i32* %2
br label %191
104: ; preds = %99
%105 = load i8*, i8** %3
%106 = call i64 @strcmp(i8* %105, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %109
108: ; preds = %104
store i32 21, i32* %2
br label %191
109: ; preds = %104
%110 = load i8*, i8** %3
%111 = call i64 @strcmp(i8* %110, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%112 = icmp eq i64 %111, 0
br i1 %112, label %113, label %114
113: ; preds = %109
store i32 22, i32* %2
br label %191
114: ; preds = %109
%115 = load i8*, i8** %3
%116 = call i64 @strcmp(i8* %115, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %119
118: ; preds = %114
store i32 23, i32* %2
br label %191
119: ; preds = %114
%120 = load i8*, i8** %3
%121 = call i64 @strcmp(i8* %120, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%122 = icmp eq i64 %121, 0
br i1 %122, label %123, label %124
123: ; preds = %119
store i32 24, i32* %2
br label %191
124: ; preds = %119
%125 = load i8*, i8** %3
%126 = call i64 @strcmp(i8* %125, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%127 = icmp eq i64 %126, 0
br i1 %127, label %128, label %129
128: ; preds = %124
store i32 25, i32* %2
br label %191
129: ; preds = %124
%130 = load i8*, i8** %3
%131 = call i64 @strcmp(i8* %130, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%132 = icmp eq i64 %131, 0
br i1 %132, label %133, label %134
133: ; preds = %129
store i32 26, i32* %2
br label %191
134: ; preds = %129
%135 = load i8*, i8** %3
%136 = call i64 @strcmp(i8* %135, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%137 = icmp eq i64 %136, 0
br i1 %137, label %138, label %139
138: ; preds = %134
store i32 27, i32* %2
br label %191
139: ; preds = %134
%140 = load i8*, i8** %3
%141 = call i64 @strcmp(i8* %140, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%142 = icmp eq i64 %141, 0
br i1 %142, label %143, label %144
143: ; preds = %139
store i32 28, i32* %2
br label %191
144: ; preds = %139
%145 = load i8*, i8** %3
%146 = call i64 @strcmp(i8* %145, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%147 = icmp eq i64 %146, 0
br i1 %147, label %148, label %149
148: ; preds = %144
store i32 29, i32* %2
br label %191
149: ; preds = %144
%150 = load i8*, i8** %3
%151 = call i64 @strcmp(i8* %150, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0))
%152 = icmp eq i64 %151, 0
br i1 %152, label %153, label %154
153: ; preds = %149
store i32 30, i32* %2
br label %191
154: ; preds = %149
%155 = load i8*, i8** %3
%156 = call i64 @strcmp(i8* %155, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0))
%157 = icmp eq i64 %156, 0
br i1 %157, label %158, label %159
158: ; preds = %154
store i32 31, i32* %2
br label %191
159: ; preds = %154
%160 = load i8*, i8** %3
%161 = call i64 @strcmp(i8* %160, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%162 = icmp eq i64 %161, 0
br i1 %162, label %163, label %164
163: ; preds = %159
store i32 32, i32* %2
br label %191
164: ; preds = %159
%165 = load i8*, i8** %3
%166 = call i64 @strcmp(i8* %165, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0))
%167 = icmp eq i64 %166, 0
br i1 %167, label %168, label %169
168: ; preds = %164
store i32 33, i32* %2
br label %191
169: ; preds = %164
%170 = load i8*, i8** %3
%171 = load i8, i8* %170
%172 = sext i8 %171 to i32
%173 = icmp sge i32 %172, 65
br i1 %173, label %174, label %179
174: ; preds = %169
%175 = load i8*, i8** %3
%176 = load i8, i8* %175
%177 = sext i8 %176 to i32
%178 = icmp sle i32 %177, 90
br i1 %178, label %189, label %179
179: ; preds = %174, %169
%180 = load i8*, i8** %3
%181 = load i8, i8* %180
%182 = sext i8 %181 to i32
%183 = icmp sge i32 %182, 97
br i1 %183, label %184, label %190
184: ; preds = %179
%185 = load i8*, i8** %3
%186 = load i8, i8* %185
%187 = sext i8 %186 to i32
%188 = icmp sle i32 %187, 122
br i1 %188, label %189, label %190
189: ; preds = %184, %174
store i32 2, i32* %2
br label %191
190: ; preds = %184, %179
store i32 -1, i32* %2
br label %191
191: ; preds = %190, %189, %168, %163, %158, %153, %148, %143, %138, %133, %128, %123, %118, %113, %108, %103, %98, %93, %88, %83, %78, %73, %68, %63, %58, %53, %48, %43, %38, %33, %28, %23, %18, %7
%192 = load i32, i32* %2
ret i32 %192
}

LLVM IR (-O2):
@.str = [2 x i8] zeroinitializer
@.str.1 = [2 x i8] c"+\00"
@.str.2 = [2 x i8] c"-\00"
@.str.3 = [2 x i8] c"*\00"
@.str.4 = [2 x i8] c"/\00"
@.str.5 = [4 x i8] c"odd\00"
@.str.6 = [2 x i8] c"=\00"
@.str.7 = [2 x i8] c"!\00"
@.str.8 = [2 x i8] c"<\00"
@.str.9 = [3 x i8] c"<=\00"
@.str.10 = [2 x i8] c">\00"
@.str.11 = [3 x i8] c">=\00"
@.str.12 = [2 x i8] c"(\00"
@.str.13 = [2 x i8] c")\00"
@.str.14 = [2 x i8] c",\00"
@.str.15 = [2 x i8] c";\00"
@.str.16 = [2 x i8] c".\00"
@.str.17 = [8 x i8] c"becomes\00"
@.str.18 = [7 x i8] c"begins\00"
@.str.19 = [4 x i8] c"end\00"
@.str.20 = [3 x i8] c"if\00"
@.str.21 = [5 x i8] c"then\00"
@.str.22 = [6 x i8] c"while\00"
@.str.23 = [3 x i8] c"do\00"
@.str.24 = [5 x i8] c"call\00"
@.str.25 = [6 x i8] c"const\00"
@.str.26 = [4 x i8] c"var\00"
@.str.27 = [5 x i8] c"proc\00"
@.str.28 = [6 x i8] c"write\00"
@.str.29 = [5 x i8] c"read\00"
@.str.30 = [5 x i8] c"else\00"
define i32 @get_token_id_from_string(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %106, label %4
4: ; preds = %1
%5 = load i8, i8* %0
%6 = add i8 %5, -48
%7 = icmp ult i8 %6, 10
br i1 %7, label %106, label %8
8: ; preds = %4
%9 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %106, label %11
11: ; preds = %8
%12 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %106, label %14
14: ; preds = %11
%15 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %106, label %17
17: ; preds = %14
%18 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %106, label %20
20: ; preds = %17
%21 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %106, label %23
23: ; preds = %20
%24 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %106, label %26
26: ; preds = %23
%27 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %106, label %29
29: ; preds = %26
%30 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %106, label %32
32: ; preds = %29
%33 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %106, label %35
35: ; preds = %32
%36 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %106, label %38
38: ; preds = %35
%39 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %106, label %41
41: ; preds = %38
%42 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %106, label %44
44: ; preds = %41
%45 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %106, label %47
47: ; preds = %44
%48 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %106, label %50
50: ; preds = %47
%51 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %106, label %53
53: ; preds = %50
%54 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %106, label %56
56: ; preds = %53
%57 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %106, label %59
59: ; preds = %56
%60 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %106, label %62
62: ; preds = %59
%63 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %106, label %65
65: ; preds = %62
%66 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %106, label %68
68: ; preds = %65
%69 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %106, label %71
71: ; preds = %68
%72 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.22, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %106, label %74
74: ; preds = %71
%75 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %106, label %77
77: ; preds = %74
%78 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %106, label %80
80: ; preds = %77
%81 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.25, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %106, label %83
83: ; preds = %80
%84 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %106, label %86
86: ; preds = %83
%87 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.27, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %106, label %89
89: ; preds = %86
%90 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.28, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %106, label %92
92: ; preds = %89
%93 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
%94 = icmp eq i64 %93, 0
br i1 %94, label %106, label %95
95: ; preds = %92
%96 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.30, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %106, label %98
98: ; preds = %95
%99 = load i8, i8* %0
%100 = add i8 %99, -65
%101 = icmp ult i8 %100, 26
br i1 %101, label %106, label %102
102: ; preds = %98
%103 = add i8 %99, -97
%104 = icmp ult i8 %103, 26
%105 = select i1 %104, i32 2, i32 -1
br label %106
106: ; preds = %102, %98, %95, %92, %89, %86, %83, %80, %77, %74, %71, %68, %65, %62, %59, %56, %53, %50, %47, %44, %41, %38, %35, %32, %29, %26, %23, %20, %17, %14, %11, %8, %4, %1
%107 = phi i32 [ 1, %1 ], [ 3, %4 ], [ 4, %8 ], [ 5, %11 ], [ 6, %14 ], [ 7, %17 ], [ 8, %20 ], [ 9, %23 ], [ 10, %26 ], [ 11, %29 ], [ 12, %32 ], [ 13, %35 ], [ 14, %38 ], [ 15, %41 ], [ 16, %44 ], [ 17, %47 ], [ 18, %50 ], [ 19, %53 ], [ 20, %56 ], [ 21, %59 ], [ 22, %62 ], [ 23, %65 ], [ 24, %68 ], [ 25, %71 ], [ 26, %74 ], [ 27, %77 ], [ 28, %80 ], [ 29, %83 ], [ 30, %86 ], [ 31, %89 ], [ 32, %92 ], [ 33, %95 ], [ 2, %98 ], [ %105, %102 ]
ret i32 %107
}