#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 *);
short gr_get_color_int(char *colorstr) {
  if (!colorstr)
    return -1;
  if (!strcmp(colorstr, "Green"))
    return 1;
  if (!strcmp(colorstr, "Navy"))
    return 2;
  if (!strcmp(colorstr, "Yellow"))
    return 3;
  if (!strcmp(colorstr, "Magenta"))
    return 4;
  if (!strcmp(colorstr, "Cyan"))
    return 5;
  if (!strcmp(colorstr, "Gray"))
    return 6;
  if (!strcmp(colorstr, "Orange"))
    return 7;
  if (!strcmp(colorstr, "Black"))
    return 8;
  if (!strcmp(colorstr, "Maroon"))
    return 9;
  if (!strcmp(colorstr, "White"))
    return 10;
  if (!strcmp(colorstr, "Blue"))
    return 11;
  if (!strcmp(colorstr, "Pink"))
    return 12;
  if (!strcmp(colorstr, "Brown"))
    return 13;
  if (!strcmp(colorstr, "Grey"))
    return 14;
  if (!strcmp(colorstr, "LimeGreen"))
    return 15;
  if (!strcmp(colorstr, "Turquoise"))
    return 16;
  if (!strcmp(colorstr, "Violet"))
    return 17;
  if (!strcmp(colorstr, "Wheat"))
    return 18;
  if (!strcmp(colorstr, "Purple"))
    return 19;
  if (!strcmp(colorstr, "Beige"))
    return 20;
  if (!strcmp(colorstr, "Red"))
    return 21;
  return 0;
}


x86 assembly (clang, -O0):
<gr_get_color_int>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1132 <gr_get_color_int+0x22>
movw   $0xffff,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xf14(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1156 <gr_get_color_int+0x46>
movw   $0x1,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xe9f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    117a <gr_get_color_int+0x6a>
movw   $0x2,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xe80(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    119e <gr_get_color_int+0x8e>
movw   $0x3,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11c2 <gr_get_color_int+0xb2>
movw   $0x4,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xe47(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11e6 <gr_get_color_int+0xd6>
movw   $0x5,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xe28(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    120a <gr_get_color_int+0xfa>
movw   $0x6,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xe09(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    122e <gr_get_color_int+0x11e>
movw   $0x7,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xdec(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1252 <gr_get_color_int+0x142>
movw   $0x8,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xdce(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1276 <gr_get_color_int+0x166>
movw   $0x9,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xdb1(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    129a <gr_get_color_int+0x18a>
movw   $0xa,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xd93(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    12be <gr_get_color_int+0x1ae>
movw   $0xb,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xd74(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    12e2 <gr_get_color_int+0x1d2>
movw   $0xc,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xd55(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1306 <gr_get_color_int+0x1f6>
movw   $0xd,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xd37(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    132a <gr_get_color_int+0x21a>
movw   $0xe,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xd18(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    134e <gr_get_color_int+0x23e>
movw   $0xf,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xcfe(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1372 <gr_get_color_int+0x262>
movw   $0x10,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xce4(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1396 <gr_get_color_int+0x286>
movw   $0x11,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xcc7(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    13ba <gr_get_color_int+0x2aa>
movw   $0x12,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xca9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    13de <gr_get_color_int+0x2ce>
movw   $0x13,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xc8c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1402 <gr_get_color_int+0x2f2>
movw   $0x14,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
mov    -0x10(%rbp),%rdi
lea    0xc6e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1426 <gr_get_color_int+0x316>
movw   $0x15,-0x2(%rbp)
jmp    142c <gr_get_color_int+0x31c>
movw   $0x0,-0x2(%rbp)
movswl -0x2(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gr_get_color_int>:
push   %rbx
test   %rdi,%rdi
je     1303 <gr_get_color_int+0x1f3>
mov    %rdi,%rbx
lea    0xf2d(%rip),%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1309 <gr_get_color_int+0x1f9>
lea    0xec8(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     130f <gr_get_color_int+0x1ff>
lea    0xeb6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1315 <gr_get_color_int+0x205>
lea    0xea6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     131b <gr_get_color_int+0x20b>
lea    0xe97(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1321 <gr_get_color_int+0x211>
lea    0xe85(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1327 <gr_get_color_int+0x217>
lea    0xe73(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     132d <gr_get_color_int+0x21d>
lea    0xe63(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1333 <gr_get_color_int+0x223>
lea    0xe52(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1339 <gr_get_color_int+0x229>
lea    0xe42(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     133f <gr_get_color_int+0x22f>
lea    0xe31(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1345 <gr_get_color_int+0x235>
lea    0xe1f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     134b <gr_get_color_int+0x23b>
lea    0xe0d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1351 <gr_get_color_int+0x241>
lea    0xdfc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1357 <gr_get_color_int+0x247>
lea    0xdea(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     135d <gr_get_color_int+0x24d>
lea    0xddd(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1363 <gr_get_color_int+0x253>
lea    0xdd0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1369 <gr_get_color_int+0x259>
lea    0xdc0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     136f <gr_get_color_int+0x25f>
lea    0xdaf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1375 <gr_get_color_int+0x265>
lea    0xd9f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     137b <gr_get_color_int+0x26b>
lea    0xd8e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
xor    %ecx,%ecx
test   %eax,%eax
mov    $0x15,%eax
cmovne %ecx,%eax
pop    %rbx
ret
mov    $0xffff,%ax
pop    %rbx
ret
mov    $0x1,%ax
pop    %rbx
ret
mov    $0x2,%ax
pop    %rbx
ret
mov    $0x3,%ax
pop    %rbx
ret
mov    $0x4,%ax
pop    %rbx
ret
mov    $0x5,%ax
pop    %rbx
ret
mov    $0x6,%ax
pop    %rbx
ret
mov    $0x7,%ax
pop    %rbx
ret
mov    $0x8,%ax
pop    %rbx
ret
mov    $0x9,%ax
pop    %rbx
ret
mov    $0xa,%ax
pop    %rbx
ret
mov    $0xb,%ax
pop    %rbx
ret
mov    $0xc,%ax
pop    %rbx
ret
mov    $0xd,%ax
pop    %rbx
ret
mov    $0xe,%ax
pop    %rbx
ret
mov    $0xf,%ax
pop    %rbx
ret
mov    $0x10,%ax
pop    %rbx
ret
mov    $0x11,%ax
pop    %rbx
ret
mov    $0x12,%ax
pop    %rbx
ret
mov    $0x13,%ax
pop    %rbx
ret
mov    $0x14,%ax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"Green\00"
@.str.1 = [5 x i8] c"Navy\00"
@.str.2 = [7 x i8] c"Yellow\00"
@.str.3 = [8 x i8] c"Magenta\00"
@.str.4 = [5 x i8] c"Cyan\00"
@.str.5 = [5 x i8] c"Gray\00"
@.str.6 = [7 x i8] c"Orange\00"
@.str.7 = [6 x i8] c"Black\00"
@.str.8 = [7 x i8] c"Maroon\00"
@.str.9 = [6 x i8] c"White\00"
@.str.10 = [5 x i8] c"Blue\00"
@.str.11 = [5 x i8] c"Pink\00"
@.str.12 = [6 x i8] c"Brown\00"
@.str.13 = [5 x i8] c"Grey\00"
@.str.14 = [10 x i8] c"LimeGreen\00"
@.str.15 = [10 x i8] c"Turquoise\00"
@.str.16 = [7 x i8] c"Violet\00"
@.str.17 = [6 x i8] c"Wheat\00"
@.str.18 = [7 x i8] c"Purple\00"
@.str.19 = [6 x i8] c"Beige\00"
@.str.20 = [4 x i8] c"Red\00"
define signext i16 @gr_get_color_int(i8* %0) {
%2 = alloca i16
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = icmp ne i8* %4, null
br i1 %5, label %7, label %6
6: ; preds = %1
store i16 -1, i16* %2
br label %113
7: ; preds = %1
%8 = load i8*, i8** %3
%9 = call i32 @strcmp(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%10 = icmp ne i32 %9, 0
br i1 %10, label %12, label %11
11: ; preds = %7
store i16 1, i16* %2
br label %113
12: ; preds = %7
%13 = load i8*, i8** %3
%14 = call i32 @strcmp(i8* %13, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %12
store i16 2, i16* %2
br label %113
17: ; preds = %12
%18 = load i8*, i8** %3
%19 = call i32 @strcmp(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%20 = icmp ne i32 %19, 0
br i1 %20, label %22, label %21
21: ; preds = %17
store i16 3, i16* %2
br label %113
22: ; preds = %17
%23 = load i8*, i8** %3
%24 = call i32 @strcmp(i8* %23, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp ne i32 %24, 0
br i1 %25, label %27, label %26
26: ; preds = %22
store i16 4, i16* %2
br label %113
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = call i32 @strcmp(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp ne i32 %29, 0
br i1 %30, label %32, label %31
31: ; preds = %27
store i16 5, i16* %2
br label %113
32: ; preds = %27
%33 = load i8*, i8** %3
%34 = call i32 @strcmp(i8* %33, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp ne i32 %34, 0
br i1 %35, label %37, label %36
36: ; preds = %32
store i16 6, i16* %2
br label %113
37: ; preds = %32
%38 = load i8*, i8** %3
%39 = call i32 @strcmp(i8* %38, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%40 = icmp ne i32 %39, 0
br i1 %40, label %42, label %41
41: ; preds = %37
store i16 7, i16* %2
br label %113
42: ; preds = %37
%43 = load i8*, i8** %3
%44 = call i32 @strcmp(i8* %43, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%45 = icmp ne i32 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %42
store i16 8, i16* %2
br label %113
47: ; preds = %42
%48 = load i8*, i8** %3
%49 = call i32 @strcmp(i8* %48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%50 = icmp ne i32 %49, 0
br i1 %50, label %52, label %51
51: ; preds = %47
store i16 9, i16* %2
br label %113
52: ; preds = %47
%53 = load i8*, i8** %3
%54 = call i32 @strcmp(i8* %53, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%55 = icmp ne i32 %54, 0
br i1 %55, label %57, label %56
56: ; preds = %52
store i16 10, i16* %2
br label %113
57: ; preds = %52
%58 = load i8*, i8** %3
%59 = call i32 @strcmp(i8* %58, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%60 = icmp ne i32 %59, 0
br i1 %60, label %62, label %61
61: ; preds = %57
store i16 11, i16* %2
br label %113
62: ; preds = %57
%63 = load i8*, i8** %3
%64 = call i32 @strcmp(i8* %63, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%65 = icmp ne i32 %64, 0
br i1 %65, label %67, label %66
66: ; preds = %62
store i16 12, i16* %2
br label %113
67: ; preds = %62
%68 = load i8*, i8** %3
%69 = call i32 @strcmp(i8* %68, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%70 = icmp ne i32 %69, 0
br i1 %70, label %72, label %71
71: ; preds = %67
store i16 13, i16* %2
br label %113
72: ; preds = %67
%73 = load i8*, i8** %3
%74 = call i32 @strcmp(i8* %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%75 = icmp ne i32 %74, 0
br i1 %75, label %77, label %76
76: ; preds = %72
store i16 14, i16* %2
br label %113
77: ; preds = %72
%78 = load i8*, i8** %3
%79 = call i32 @strcmp(i8* %78, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%80 = icmp ne i32 %79, 0
br i1 %80, label %82, label %81
81: ; preds = %77
store i16 15, i16* %2
br label %113
82: ; preds = %77
%83 = load i8*, i8** %3
%84 = call i32 @strcmp(i8* %83, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%85 = icmp ne i32 %84, 0
br i1 %85, label %87, label %86
86: ; preds = %82
store i16 16, i16* %2
br label %113
87: ; preds = %82
%88 = load i8*, i8** %3
%89 = call i32 @strcmp(i8* %88, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%90 = icmp ne i32 %89, 0
br i1 %90, label %92, label %91
91: ; preds = %87
store i16 17, i16* %2
br label %113
92: ; preds = %87
%93 = load i8*, i8** %3
%94 = call i32 @strcmp(i8* %93, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%95 = icmp ne i32 %94, 0
br i1 %95, label %97, label %96
96: ; preds = %92
store i16 18, i16* %2
br label %113
97: ; preds = %92
%98 = load i8*, i8** %3
%99 = call i32 @strcmp(i8* %98, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%100 = icmp ne i32 %99, 0
br i1 %100, label %102, label %101
101: ; preds = %97
store i16 19, i16* %2
br label %113
102: ; preds = %97
%103 = load i8*, i8** %3
%104 = call i32 @strcmp(i8* %103, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%105 = icmp ne i32 %104, 0
br i1 %105, label %107, label %106
106: ; preds = %102
store i16 20, i16* %2
br label %113
107: ; preds = %102
%108 = load i8*, i8** %3
%109 = call i32 @strcmp(i8* %108, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%110 = icmp ne i32 %109, 0
br i1 %110, label %112, label %111
111: ; preds = %107
store i16 21, i16* %2
br label %113
112: ; preds = %107
store i16 0, i16* %2
br label %113
113: ; preds = %112, %111, %106, %101, %96, %91, %86, %81, %76, %71, %66, %61, %56, %51, %46, %41, %36, %31, %26, %21, %16, %11, %6
%114 = load i16, i16* %2
ret i16 %114
}

LLVM IR (-O2):
@.str = [6 x i8] c"Green\00"
@.str.1 = [5 x i8] c"Navy\00"
@.str.2 = [7 x i8] c"Yellow\00"
@.str.3 = [8 x i8] c"Magenta\00"
@.str.4 = [5 x i8] c"Cyan\00"
@.str.5 = [5 x i8] c"Gray\00"
@.str.6 = [7 x i8] c"Orange\00"
@.str.7 = [6 x i8] c"Black\00"
@.str.8 = [7 x i8] c"Maroon\00"
@.str.9 = [6 x i8] c"White\00"
@.str.10 = [5 x i8] c"Blue\00"
@.str.11 = [5 x i8] c"Pink\00"
@.str.12 = [6 x i8] c"Brown\00"
@.str.13 = [5 x i8] c"Grey\00"
@.str.14 = [10 x i8] c"LimeGreen\00"
@.str.15 = [10 x i8] c"Turquoise\00"
@.str.16 = [7 x i8] c"Violet\00"
@.str.17 = [6 x i8] c"Wheat\00"
@.str.18 = [7 x i8] c"Purple\00"
@.str.19 = [6 x i8] c"Beige\00"
@.str.20 = [4 x i8] c"Red\00"
define signext i16 @gr_get_color_int(i8* %0) {
%2 = icmp eq i8* %0, null
br i1 %2, label %67, label %3
3: ; preds = %1
%4 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i32 %4, 0
br i1 %5, label %67, label %6
6: ; preds = %3
%7 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i32 %7, 0
br i1 %8, label %67, label %9
9: ; preds = %6
%10 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i32 %10, 0
br i1 %11, label %67, label %12
12: ; preds = %9
%13 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%14 = icmp eq i32 %13, 0
br i1 %14, label %67, label %15
15: ; preds = %12
%16 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i32 %16, 0
br i1 %17, label %67, label %18
18: ; preds = %15
%19 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i32 %19, 0
br i1 %20, label %67, label %21
21: ; preds = %18
%22 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i32 %22, 0
br i1 %23, label %67, label %24
24: ; preds = %21
%25 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%26 = icmp eq i32 %25, 0
br i1 %26, label %67, label %27
27: ; preds = %24
%28 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%29 = icmp eq i32 %28, 0
br i1 %29, label %67, label %30
30: ; preds = %27
%31 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %67, label %33
33: ; preds = %30
%34 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%35 = icmp eq i32 %34, 0
br i1 %35, label %67, label %36
36: ; preds = %33
%37 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%38 = icmp eq i32 %37, 0
br i1 %38, label %67, label %39
39: ; preds = %36
%40 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%41 = icmp eq i32 %40, 0
br i1 %41, label %67, label %42
42: ; preds = %39
%43 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %67, label %45
45: ; preds = %42
%46 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
%47 = icmp eq i32 %46, 0
br i1 %47, label %67, label %48
48: ; preds = %45
%49 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.15, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %67, label %51
51: ; preds = %48
%52 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.16, i64 0, i64 0))
%53 = icmp eq i32 %52, 0
br i1 %53, label %67, label %54
54: ; preds = %51
%55 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%56 = icmp eq i32 %55, 0
br i1 %56, label %67, label %57
57: ; preds = %54
%58 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.18, i64 0, i64 0))
%59 = icmp eq i32 %58, 0
br i1 %59, label %67, label %60
60: ; preds = %57
%61 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%62 = icmp eq i32 %61, 0
br i1 %62, label %67, label %63
63: ; preds = %60
%64 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%65 = icmp eq i32 %64, 0
%66 = select i1 %65, i16 21, i16 0
br label %67
67: ; preds = %63, %60, %57, %54, %51, %48, %45, %42, %39, %36, %33, %30, %27, %24, %21, %18, %15, %12, %9, %6, %3, %1
%68 = phi i16 [ -1, %1 ], [ 1, %3 ], [ 2, %6 ], [ 3, %9 ], [ 4, %12 ], [ 5, %15 ], [ 6, %18 ], [ 7, %21 ], [ 8, %24 ], [ 9, %27 ], [ 10, %30 ], [ 11, %33 ], [ 12, %36 ], [ 13, %39 ], [ 14, %42 ], [ 15, %45 ], [ 16, %48 ], [ 17, %51 ], [ 18, %54 ], [ 19, %57 ], [ 20, %60 ], [ %66, %63 ]
ret i16 %68
}