#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*/ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ toUpperCase(char *);
int getOpcode(char *keyword) {
  toUpperCase(keyword);
  if (*keyword == '`')
    return 300000;
  if (keyword[strlen(keyword) - 1] == '`')
    return 310000;
  if (!strcmp(keyword, "NOP"))
    return 10000;
  else if (!strcmp(keyword, "MOVE"))
    return 20000;
  else if (!strcmp(keyword, "PREV"))
    return 30000;
  else if (!strcmp(keyword, "NEXT"))
    return 40000;
  else if (!strcmp(keyword, "HERE"))
    return 50000;
  else if (!strcmp(keyword, "THERE"))
    return 60000;
  else if (!strcmp(keyword, "MARK"))
    return 70000;
  else if (!strcmp(keyword, "REMIND"))
    return 80000;
  else if (!strcmp(keyword, "SKIP"))
    return 90000;
  else if (!strcmp(keyword, "SET"))
    return 100000;
  else if (!strcmp(keyword, "IMPORT"))
    return 110000;
  else if (!strcmp(keyword, "EXPORT"))
    return 120000;
  else if (!strcmp(keyword, "SCAN"))
    return 130000;
  else if (!strcmp(keyword, "SCANS"))
    return 140000;
  else if (!strcmp(keyword, "PRINT"))
    return 150000;
  else if (!strcmp(keyword, "PRINTS"))
    return 160000;
  else if (!strcmp(keyword, "ADD"))
    return 200000;
  else if (!strcmp(keyword, "SUBTRACT"))
    return 210000;
  else if (!strcmp(keyword, "MULTIPLY"))
    return 220000;
  else if (!strcmp(keyword, "DIVIDE"))
    return 230000;
  else if (!strcmp(keyword, "REMAINDER"))
    return 240000;
  else if (!strcmp(keyword, "MIN"))
    return 250000;
  else if (!strcmp(keyword, "MAX"))
    return 260000;
  else
    return 0;
}


x86 assembly (clang, -O0):
<getOpcode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <toUpperCase@plt>
mov    -0x10(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x60,%eax
jne    1161 <getOpcode+0x31>
movl   $0x493e0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlen@plt>
mov    %eax,%ecx
mov    -0x18(%rbp),%rax
sub    $0x1,%ecx
movslq %ecx,%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x60,%eax
jne    1197 <getOpcode+0x67>
movl   $0x4baf0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xe5e(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11bc <getOpcode+0x8c>
movl   $0x2710,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xe3d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11e1 <getOpcode+0xb1>
movl   $0x4e20,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xe1d(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1206 <getOpcode+0xd6>
movl   $0x7530,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xdfd(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    122b <getOpcode+0xfb>
movl   $0x9c40,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xdde(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1250 <getOpcode+0x120>
movl   $0xc350,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1275 <getOpcode+0x145>
movl   $0xea60,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xd99(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    129a <getOpcode+0x16a>
movl   $0x11170,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xd79(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12bf <getOpcode+0x18f>
movl   $0x13880,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xd5b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12e4 <getOpcode+0x1b4>
movl   $0x15f90,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xd3b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1309 <getOpcode+0x1d9>
movl   $0x186a0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xd1a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    132e <getOpcode+0x1fe>
movl   $0x1adb0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xcfc(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1353 <getOpcode+0x223>
movl   $0x1d4c0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xcde(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1378 <getOpcode+0x248>
movl   $0x1fbd0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xcbe(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    139d <getOpcode+0x26d>
movl   $0x222e0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xc9f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13c2 <getOpcode+0x292>
movl   $0x249f0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xc80(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13e7 <getOpcode+0x2b7>
movl   $0x27100,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xc62(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    140c <getOpcode+0x2dc>
movl   $0x30d40,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xc41(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1431 <getOpcode+0x301>
movl   $0x33450,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xc25(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1456 <getOpcode+0x326>
movl   $0x35b60,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xc09(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    147b <getOpcode+0x34b>
movl   $0x38270,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xbeb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    14a0 <getOpcode+0x370>
movl   $0x3a980,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xbd0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    14c5 <getOpcode+0x395>
movl   $0x3d090,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
mov    -0x10(%rbp),%rdi
lea    0xbaf(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    14ea <getOpcode+0x3ba>
movl   $0x3f7a0,-0x4(%rbp)
jmp    14f1 <getOpcode+0x3c1>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getOpcode>:
push   %rbx
mov    %rdi,%rbx
call   1050 <toUpperCase@plt>
mov    $0x493e0,%eax
cmpb   $0x60,(%rbx)
je     115a <getOpcode+0x2a>
mov    %rbx,%rdi
call   1030 <strlen@plt>
movslq %eax,%rcx
mov    $0x4baf0,%eax
cmpb   $0x60,-0x1(%rcx,%rbx,1)
jne    115c <getOpcode+0x2c>
pop    %rbx
ret
lea    0xe9d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1373 <getOpcode+0x243>
lea    0xe8a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     137a <getOpcode+0x24a>
lea    0xe78(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1381 <getOpcode+0x251>
lea    0xe66(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1388 <getOpcode+0x258>
lea    0xe55(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     138f <getOpcode+0x25f>
lea    0xe3d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1396 <getOpcode+0x266>
lea    0xe2c(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     139d <getOpcode+0x26d>
lea    0xe1a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13a4 <getOpcode+0x274>
lea    0xe0a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13ab <getOpcode+0x27b>
lea    0xdf8(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13b2 <getOpcode+0x282>
lea    0xde5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13b9 <getOpcode+0x289>
lea    0xdd5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13c0 <getOpcode+0x290>
lea    0xdc5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13c7 <getOpcode+0x297>
lea    0xdb3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13ce <getOpcode+0x29e>
lea    0xda2(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13d5 <getOpcode+0x2a5>
lea    0xd91(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13dc <getOpcode+0x2ac>
lea    0xd81(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13e3 <getOpcode+0x2b3>
lea    0xd6e(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13ea <getOpcode+0x2ba>
lea    0xd60(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13f1 <getOpcode+0x2c1>
lea    0xd52(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13f8 <getOpcode+0x2c8>
lea    0xd42(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     13ff <getOpcode+0x2cf>
lea    0xd35(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %eax,%eax
je     1406 <getOpcode+0x2d6>
lea    0xd22(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
mov    $0x3f7a0,%eax
cmovne %ecx,%eax
pop    %rbx
ret
mov    $0x2710,%eax
pop    %rbx
ret
mov    $0x4e20,%eax
pop    %rbx
ret
mov    $0x7530,%eax
pop    %rbx
ret
mov    $0x9c40,%eax
pop    %rbx
ret
mov    $0xc350,%eax
pop    %rbx
ret
mov    $0xea60,%eax
pop    %rbx
ret
mov    $0x11170,%eax
pop    %rbx
ret
mov    $0x13880,%eax
pop    %rbx
ret
mov    $0x15f90,%eax
pop    %rbx
ret
mov    $0x186a0,%eax
pop    %rbx
ret
mov    $0x1adb0,%eax
pop    %rbx
ret
mov    $0x1d4c0,%eax
pop    %rbx
ret
mov    $0x1fbd0,%eax
pop    %rbx
ret
mov    $0x222e0,%eax
pop    %rbx
ret
mov    $0x249f0,%eax
pop    %rbx
ret
mov    $0x27100,%eax
pop    %rbx
ret
mov    $0x30d40,%eax
pop    %rbx
ret
mov    $0x33450,%eax
pop    %rbx
ret
mov    $0x35b60,%eax
pop    %rbx
ret
mov    $0x38270,%eax
pop    %rbx
ret
mov    $0x3a980,%eax
pop    %rbx
ret
mov    $0x3d090,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [4 x i8] c"NOP\00"
@.str.1 = [5 x i8] c"MOVE\00"
@.str.2 = [5 x i8] c"PREV\00"
@.str.3 = [5 x i8] c"NEXT\00"
@.str.4 = [5 x i8] c"HERE\00"
@.str.5 = [6 x i8] c"THERE\00"
@.str.6 = [5 x i8] c"MARK\00"
@.str.7 = [7 x i8] c"REMIND\00"
@.str.8 = [5 x i8] c"SKIP\00"
@.str.9 = [4 x i8] c"SET\00"
@.str.10 = [7 x i8] c"IMPORT\00"
@.str.11 = [7 x i8] c"EXPORT\00"
@.str.12 = [5 x i8] c"SCAN\00"
@.str.13 = [6 x i8] c"SCANS\00"
@.str.14 = [6 x i8] c"PRINT\00"
@.str.15 = [7 x i8] c"PRINTS\00"
@.str.16 = [4 x i8] c"ADD\00"
@.str.17 = [9 x i8] c"SUBTRACT\00"
@.str.18 = [9 x i8] c"MULTIPLY\00"
@.str.19 = [7 x i8] c"DIVIDE\00"
@.str.20 = [10 x i8] c"REMAINDER\00"
@.str.21 = [4 x i8] c"MIN\00"
@.str.22 = [4 x i8] c"MAX\00"
define i32 @getOpcode(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @toUpperCase(i8* %4)
%6 = load i8*, i8** %3
%7 = load i8, i8* %6
%8 = sext i8 %7 to i32
%9 = icmp eq i32 %8, 96
br i1 %9, label %10, label %11
10: ; preds = %1
store i32 300000, i32* %2
br label %138
11: ; preds = %1
%12 = load i8*, i8** %3
%13 = load i8*, i8** %3
%14 = call i32 @strlen(i8* %13)
%15 = sub nsw i32 %14, 1
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds i8, i8* %12, i64 %16
%18 = load i8, i8* %17
%19 = sext i8 %18 to i32
%20 = icmp eq i32 %19, 96
br i1 %20, label %21, label %22
21: ; preds = %11
store i32 310000, i32* %2
br label %138
22: ; preds = %11
%23 = load i8*, i8** %3
%24 = call i32 @strcmp(i8* %23, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %22
store i32 10000, i32* %2
br label %138
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = call i32 @strcmp(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %27
store i32 20000, i32* %2
br label %138
32: ; preds = %27
%33 = load i8*, i8** %3
%34 = call i32 @strcmp(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %32
store i32 30000, i32* %2
br label %138
37: ; preds = %32
%38 = load i8*, i8** %3
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %42, label %41
41: ; preds = %37
store i32 40000, i32* %2
br label %138
42: ; preds = %37
%43 = load i8*, i8** %3
%44 = call i32 @strcmp(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%45 = icmp ne i32 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %42
store i32 50000, i32* %2
br label %138
47: ; preds = %42
%48 = load i8*, i8** %3
%49 = call i32 @strcmp(i8* %48, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%50 = icmp ne i32 %49, 0
br i1 %50, label %52, label %51
51: ; preds = %47
store i32 60000, i32* %2
br label %138
52: ; preds = %47
%53 = load i8*, i8** %3
%54 = call i32 @strcmp(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%55 = icmp ne i32 %54, 0
br i1 %55, label %57, label %56
56: ; preds = %52
store i32 70000, i32* %2
br label %138
57: ; preds = %52
%58 = load i8*, i8** %3
%59 = call i32 @strcmp(i8* %58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%60 = icmp ne i32 %59, 0
br i1 %60, label %62, label %61
61: ; preds = %57
store i32 80000, i32* %2
br label %138
62: ; preds = %57
%63 = load i8*, i8** %3
%64 = call i32 @strcmp(i8* %63, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%65 = icmp ne i32 %64, 0
br i1 %65, label %67, label %66
66: ; preds = %62
store i32 90000, i32* %2
br label %138
67: ; preds = %62
%68 = load i8*, i8** %3
%69 = call i32 @strcmp(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%70 = icmp ne i32 %69, 0
br i1 %70, label %72, label %71
71: ; preds = %67
store i32 100000, i32* %2
br label %138
72: ; preds = %67
%73 = load i8*, i8** %3
%74 = call i32 @strcmp(i8* %73, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%75 = icmp ne i32 %74, 0
br i1 %75, label %77, label %76
76: ; preds = %72
store i32 110000, i32* %2
br label %138
77: ; preds = %72
%78 = load i8*, i8** %3
%79 = call i32 @strcmp(i8* %78, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%80 = icmp ne i32 %79, 0
br i1 %80, label %82, label %81
81: ; preds = %77
store i32 120000, i32* %2
br label %138
82: ; preds = %77
%83 = load i8*, i8** %3
%84 = call i32 @strcmp(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%85 = icmp ne i32 %84, 0
br i1 %85, label %87, label %86
86: ; preds = %82
store i32 130000, i32* %2
br label %138
87: ; preds = %82
%88 = load i8*, i8** %3
%89 = call i32 @strcmp(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%90 = icmp ne i32 %89, 0
br i1 %90, label %92, label %91
91: ; preds = %87
store i32 140000, i32* %2
br label %138
92: ; preds = %87
%93 = load i8*, i8** %3
%94 = call i32 @strcmp(i8* %93, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%95 = icmp ne i32 %94, 0
br i1 %95, label %97, label %96
96: ; preds = %92
store i32 150000, i32* %2
br label %138
97: ; preds = %92
%98 = load i8*, i8** %3
%99 = call i32 @strcmp(i8* %98, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
%100 = icmp ne i32 %99, 0
br i1 %100, label %102, label %101
101: ; preds = %97
store i32 160000, i32* %2
br label %138
102: ; preds = %97
%103 = load i8*, i8** %3
%104 = call i32 @strcmp(i8* %103, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%105 = icmp ne i32 %104, 0
br i1 %105, label %107, label %106
106: ; preds = %102
store i32 200000, i32* %2
br label %138
107: ; preds = %102
%108 = load i8*, i8** %3
%109 = call i32 @strcmp(i8* %108, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%110 = icmp ne i32 %109, 0
br i1 %110, label %112, label %111
111: ; preds = %107
store i32 210000, i32* %2
br label %138
112: ; preds = %107
%113 = load i8*, i8** %3
%114 = call i32 @strcmp(i8* %113, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%115 = icmp ne i32 %114, 0
br i1 %115, label %117, label %116
116: ; preds = %112
store i32 220000, i32* %2
br label %138
117: ; preds = %112
%118 = load i8*, i8** %3
%119 = call i32 @strcmp(i8* %118, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%120 = icmp ne i32 %119, 0
br i1 %120, label %122, label %121
121: ; preds = %117
store i32 230000, i32* %2
br label %138
122: ; preds = %117
%123 = load i8*, i8** %3
%124 = call i32 @strcmp(i8* %123, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%125 = icmp ne i32 %124, 0
br i1 %125, label %127, label %126
126: ; preds = %122
store i32 240000, i32* %2
br label %138
127: ; preds = %122
%128 = load i8*, i8** %3
%129 = call i32 @strcmp(i8* %128, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%130 = icmp ne i32 %129, 0
br i1 %130, label %132, label %131
131: ; preds = %127
store i32 250000, i32* %2
br label %138
132: ; preds = %127
%133 = load i8*, i8** %3
%134 = call i32 @strcmp(i8* %133, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%135 = icmp ne i32 %134, 0
br i1 %135, label %137, label %136
136: ; preds = %132
store i32 260000, i32* %2
br label %138
137: ; preds = %132
store i32 0, i32* %2
br label %138
138: ; preds = %137, %136, %131, %126, %121, %116, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %10
%139 = load i32, i32* %2
ret i32 %139
}

LLVM IR (-O2):
@.str = [4 x i8] c"NOP\00"
@.str.1 = [5 x i8] c"MOVE\00"
@.str.2 = [5 x i8] c"PREV\00"
@.str.3 = [5 x i8] c"NEXT\00"
@.str.4 = [5 x i8] c"HERE\00"
@.str.5 = [6 x i8] c"THERE\00"
@.str.6 = [5 x i8] c"MARK\00"
@.str.7 = [7 x i8] c"REMIND\00"
@.str.8 = [5 x i8] c"SKIP\00"
@.str.9 = [4 x i8] c"SET\00"
@.str.10 = [7 x i8] c"IMPORT\00"
@.str.11 = [7 x i8] c"EXPORT\00"
@.str.12 = [5 x i8] c"SCAN\00"
@.str.13 = [6 x i8] c"SCANS\00"
@.str.14 = [6 x i8] c"PRINT\00"
@.str.15 = [7 x i8] c"PRINTS\00"
@.str.16 = [4 x i8] c"ADD\00"
@.str.17 = [9 x i8] c"SUBTRACT\00"
@.str.18 = [9 x i8] c"MULTIPLY\00"
@.str.19 = [7 x i8] c"DIVIDE\00"
@.str.20 = [10 x i8] c"REMAINDER\00"
@.str.21 = [4 x i8] c"MIN\00"
@.str.22 = [4 x i8] c"MAX\00"
define i32 @getOpcode(i8* %0) {
%2 = tail call i32 @toUpperCase(i8* %0)
%3 = load i8, i8* %0
%4 = icmp eq i8 %3, 96
br i1 %4, label %82, label %5
5: ; preds = %1
%6 = tail call i32 @strlen(i8* %0)
%7 = add nsw i32 %6, -1
%8 = sext i32 %7 to i64
%9 = getelementptr inbounds i8, i8* %0, i64 %8
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 96
br i1 %11, label %82, label %12
12: ; preds = %5
%13 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %82, label %15
15: ; preds = %12
%16 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %82, label %18
18: ; preds = %15
%19 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %82, label %21
21: ; preds = %18
%22 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %82, label %24
24: ; preds = %21
%25 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %82, label %27
27: ; preds = %24
%28 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %82, label %30
30: ; preds = %27
%31 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %82, label %33
33: ; preds = %30
%34 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %82, label %36
36: ; preds = %33
%37 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%38 = icmp eq i32 %37, 0
br i1 %38, label %82, label %39
39: ; preds = %36
%40 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %82, label %42
42: ; preds = %39
%43 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %82, label %45
45: ; preds = %42
%46 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%47 = icmp eq i32 %46, 0
br i1 %47, label %82, label %48
48: ; preds = %45
%49 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %82, label %51
51: ; preds = %48
%52 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
%53 = icmp eq i32 %52, 0
br i1 %53, label %82, label %54
54: ; preds = %51
%55 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %82, label %57
57: ; preds = %54
%58 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
%59 = icmp eq i32 %58, 0
br i1 %59, label %82, label %60
60: ; preds = %57
%61 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%62 = icmp eq i32 %61, 0
br i1 %62, label %82, label %63
63: ; preds = %60
%64 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
br i1 %65, label %82, label %66
66: ; preds = %63
%67 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.18, i64 0, i64 0))
%68 = icmp eq i32 %67, 0
br i1 %68, label %82, label %69
69: ; preds = %66
%70 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%71 = icmp eq i32 %70, 0
br i1 %71, label %82, label %72
72: ; preds = %69
%73 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.20, i64 0, i64 0))
%74 = icmp eq i32 %73, 0
br i1 %74, label %82, label %75
75: ; preds = %72
%76 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.21, i64 0, i64 0))
%77 = icmp eq i32 %76, 0
br i1 %77, label %82, label %78
78: ; preds = %75
%79 = tail call i32 @strcmp(i8* %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%80 = icmp eq i32 %79, 0
%81 = select i1 %80, i32 260000, i32 0
br label %82
82: ; preds = %78, %75, %72, %69, %66, %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %5, %1
%83 = phi i32 [ 300000, %1 ], [ 310000, %5 ], [ 10000, %12 ], [ 20000, %15 ], [ 30000, %18 ], [ 40000, %21 ], [ 50000, %24 ], [ 60000, %27 ], [ 70000, %30 ], [ 80000, %33 ], [ 90000, %36 ], [ 100000, %39 ], [ 110000, %42 ], [ 120000, %45 ], [ 130000, %48 ], [ 140000, %51 ], [ 150000, %54 ], [ 160000, %57 ], [ 200000, %60 ], [ 210000, %63 ], [ 220000, %66 ], [ 230000, %69 ], [ 240000, %72 ], [ 250000, %75 ], [ %81, %78 ]
ret i32 %83
}