#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*/ Uppercase(char *);
int strlen(char *);
scalar_t__ strncmp(char *, char *, int);
int getModel_DNA(char *c) {
  int ret = 0;
  Uppercase(c);
  if (strlen(c) == 1) {
    switch (c[0]) {
    case 'R':
      ret = 13;
      break;
    case '1':
      ret = 15;
      break;
    case '4':
      ret = 16;
      break;
    case 'T':
      ret = 17;
      break;
    case 'K':
      ret = 18;
      break;
    case 'J':
      ret = 14;
      break;
    case 'L':
      ret = 20;
      break;
    case 'P':
      ret = 11;
      break;
    case 'Y':
      ret = 12;
      break;
    default:
      break;
    }
  } else if (strlen(c) == 2 && strncmp(c, "RY", 2) == 0) {
    ret = 13;
  } else if (strlen(c) == 3) {
    if (strncmp(c, "F81", 3) == 0)
      ret = 15;
    else if (strncmp(c, "F84", 3) == 0)
      ret = 16;
    else if (strncmp(c, "K2P", 3) == 0)
      ret = 18;
  } else if (strlen(c) == 4) {
    if (strncmp(c, "TN93", 4) == 0)
      ret = 17;
    else if (strncmp(c, "JC69", 4) == 0)
      ret = 14;
  } else if (strncmp(c, "RYSYM", 5) == 0 || strncmp(c, "RY-SYM", 6) == 0 ||
             strncmp(c, "RYSYMMETRIC", 10) == 0 ||
             strncmp(c, "RY-SYMMETRIC", 12) == 0)
    ret = 12;
  else if (strncmp(c, "LOGDET", 6) == 0)
    ret = 20;
  else if (strncmp(c, "PDIST", 5) == 0 || strncmp(c, "P-DIST", 6) == 0 ||
           strncmp(c, "PDISTANCE", 9) == 0 || strncmp(c, "P-DISTANCE", 10) == 0)
    ret = 11;
  return ret;
}


x86 assembly (clang, -O0):
<getModel_DNA>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <Uppercase@plt>
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x1,%eax
jne    1201 <getModel_DNA+0xd1>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
add    $0xffffffcf,%eax
mov    %eax,%ecx
mov    %rcx,-0x18(%rbp)
sub    $0x28,%eax
ja     11f7 <getModel_DNA+0xc7>
mov    -0x18(%rbp),%rax
lea    0xe7e(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movl   $0xd,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0xf,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0x10,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0x11,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0x12,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0xe,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0x14,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0xb,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
movl   $0xc,-0xc(%rbp)
jmp    11fc <getModel_DNA+0xcc>
jmp    11fc <getModel_DNA+0xcc>
jmp    149c <getModel_DNA+0x36c>
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x2,%eax
jne    123e <getModel_DNA+0x10e>
mov    -0x8(%rbp),%rdi
lea    0xe86(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    123e <getModel_DNA+0x10e>
movl   $0xd,-0xc(%rbp)
jmp    1497 <getModel_DNA+0x367>
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x3,%eax
jne    12db <getModel_DNA+0x1ab>
mov    -0x8(%rbp),%rdi
lea    0xe4c(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    127b <getModel_DNA+0x14b>
movl   $0xf,-0xc(%rbp)
jmp    12d6 <getModel_DNA+0x1a6>
mov    -0x8(%rbp),%rdi
lea    0xe25(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    12a6 <getModel_DNA+0x176>
movl   $0x10,-0xc(%rbp)
jmp    12d1 <getModel_DNA+0x1a1>
mov    -0x8(%rbp),%rdi
lea    0xdfe(%rip),%rsi
mov    $0x3,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    12cc <getModel_DNA+0x19c>
movl   $0x12,-0xc(%rbp)
jmp    12d1 <getModel_DNA+0x1a1>
jmp    12d6 <getModel_DNA+0x1a6>
jmp    1492 <getModel_DNA+0x362>
mov    -0x8(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x4,%eax
jne    1348 <getModel_DNA+0x218>
mov    -0x8(%rbp),%rdi
lea    0xdbb(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    1318 <getModel_DNA+0x1e8>
movl   $0x11,-0xc(%rbp)
jmp    1343 <getModel_DNA+0x213>
mov    -0x8(%rbp),%rdi
lea    0xd95(%rip),%rsi
mov    $0x4,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    133e <getModel_DNA+0x20e>
movl   $0xe,-0xc(%rbp)
jmp    1343 <getModel_DNA+0x213>
jmp    148d <getModel_DNA+0x35d>
mov    -0x8(%rbp),%rdi
lea    0xd6a(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     13c4 <getModel_DNA+0x294>
mov    -0x8(%rbp),%rdi
lea    0xd51(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     13c4 <getModel_DNA+0x294>
mov    -0x8(%rbp),%rdi
lea    0xd39(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     13c4 <getModel_DNA+0x294>
mov    -0x8(%rbp),%rdi
lea    0xd26(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13d0 <getModel_DNA+0x2a0>
movl   $0xc,-0xc(%rbp)
jmp    1488 <getModel_DNA+0x358>
mov    -0x8(%rbp),%rdi
lea    0xd08(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13fb <getModel_DNA+0x2cb>
movl   $0x14,-0xc(%rbp)
jmp    1483 <getModel_DNA+0x353>
mov    -0x8(%rbp),%rdi
lea    0xce4(%rip),%rsi
mov    $0x5,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     1477 <getModel_DNA+0x347>
mov    -0x8(%rbp),%rdi
lea    0xccb(%rip),%rsi
mov    $0x6,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     1477 <getModel_DNA+0x347>
mov    -0x8(%rbp),%rdi
lea    0xcb3(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
je     1477 <getModel_DNA+0x347>
mov    -0x8(%rbp),%rdi
lea    0xc9e(%rip),%rsi
mov    $0xa,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    147e <getModel_DNA+0x34e>
movl   $0xb,-0xc(%rbp)
jmp    1483 <getModel_DNA+0x353>
jmp    1488 <getModel_DNA+0x358>
jmp    148d <getModel_DNA+0x35d>
jmp    1492 <getModel_DNA+0x362>
jmp    1497 <getModel_DNA+0x367>
jmp    149c <getModel_DNA+0x36c>
mov    -0xc(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getModel_DNA>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <Uppercase@plt>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cmp    $0x1,%eax
jne    1173 <getModel_DNA+0x43>
movsbl (%rbx),%eax
xor    %ebp,%ebp
add    $0xffffffcf,%eax
cmp    $0x28,%eax
ja     1393 <getModel_DNA+0x263>
lea    0xea0(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    $0xe,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cmp    $0x2,%eax
jne    119d <getModel_DNA+0x6d>
lea    0xf1d(%rip),%rsi
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     125a <getModel_DNA+0x12a>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cmp    $0x3,%eax
jne    120a <getModel_DNA+0xda>
lea    0xef6(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1264 <getModel_DNA+0x134>
lea    0xedd(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1372 <getModel_DNA+0x242>
lea    0xec4(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
mov    $0x12,%ebp
cmovne %ecx,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    %rbx,%rdi
call   1050 <strlen@plt>
cmp    $0x4,%eax
jne    126e <getModel_DNA+0x13e>
lea    0xe95(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1379 <getModel_DNA+0x249>
lea    0xe7d(%rip),%rsi
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <strncmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
mov    $0xe,%ebp
cmovne %ecx,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    $0xd,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    $0xf,%ebp
jmp    1393 <getModel_DNA+0x263>
lea    0xe48(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
mov    $0xc,%ebp
test   %rax,%rax
je     1393 <getModel_DNA+0x263>
lea    0xe2c(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1393 <getModel_DNA+0x263>
lea    0xe16(%rip),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1393 <getModel_DNA+0x263>
lea    0xe05(%rip),%rsi
mov    $0xc,%ebp
mov    %rbx,%rdi
mov    $0xc,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1393 <getModel_DNA+0x263>
lea    0xdf0(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1380 <getModel_DNA+0x250>
lea    0xdde(%rip),%rsi
mov    %rbx,%rdi
mov    $0x5,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     136b <getModel_DNA+0x23b>
lea    0xdcb(%rip),%rsi
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     136b <getModel_DNA+0x23b>
lea    0xdb9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     136b <getModel_DNA+0x23b>
lea    0xdaa(%rip),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1030 <strncmp@plt>
xor    %ebp,%ebp
test   %rax,%rax
jne    1393 <getModel_DNA+0x263>
mov    $0xb,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    $0x10,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    $0x11,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    $0x14,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    $0x12,%ebp
jmp    1393 <getModel_DNA+0x263>
mov    $0xc,%ebp
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"RY\00"
@.str.1 = [4 x i8] c"F81\00"
@.str.2 = [4 x i8] c"F84\00"
@.str.3 = [4 x i8] c"K2P\00"
@.str.4 = [5 x i8] c"TN93\00"
@.str.5 = [5 x i8] c"JC69\00"
@.str.6 = [6 x i8] c"RYSYM\00"
@.str.7 = [7 x i8] c"RY-SYM\00"
@.str.8 = [12 x i8] c"RYSYMMETRIC\00"
@.str.9 = [13 x i8] c"RY-SYMMETRIC\00"
@.str.10 = [7 x i8] c"LOGDET\00"
@.str.11 = [6 x i8] c"PDIST\00"
@.str.12 = [7 x i8] c"P-DIST\00"
@.str.13 = [10 x i8] c"PDISTANCE\00"
@.str.14 = [11 x i8] c"P-DISTANCE\00"
define i32 @getModel_DNA(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %3
%4 = load i8*, i8** %2
%5 = call i32 @Uppercase(i8* %4)
%6 = load i8*, i8** %2
%7 = call i32 @strlen(i8* %6)
%8 = icmp eq i32 %7, 1
br i1 %8, label %9, label %25
9: ; preds = %1
%10 = load i8*, i8** %2
%11 = getelementptr inbounds i8, i8* %10, i64 0
%12 = load i8, i8* %11
%13 = sext i8 %12 to i32
switch i32 %13, label %23 [
i32 82, label %14
i32 49, label %15
i32 52, label %16
i32 84, label %17
i32 75, label %18
i32 74, label %19
i32 76, label %20
i32 80, label %21
i32 89, label %22
]
14: ; preds = %9
store i32 13, i32* %3
br label %24
15: ; preds = %9
store i32 15, i32* %3
br label %24
16: ; preds = %9
store i32 16, i32* %3
br label %24
17: ; preds = %9
store i32 17, i32* %3
br label %24
18: ; preds = %9
store i32 18, i32* %3
br label %24
19: ; preds = %9
store i32 14, i32* %3
br label %24
20: ; preds = %9
store i32 20, i32* %3
br label %24
21: ; preds = %9
store i32 11, i32* %3
br label %24
22: ; preds = %9
store i32 12, i32* %3
br label %24
23: ; preds = %9
br label %24
24: ; preds = %23, %22, %21, %20, %19, %18, %17, %16, %15, %14
br label %117
25: ; preds = %1
%26 = load i8*, i8** %2
%27 = call i32 @strlen(i8* %26)
%28 = icmp eq i32 %27, 2
br i1 %28, label %29, label %34
29: ; preds = %25
%30 = load i8*, i8** %2
%31 = call i64 @strncmp(i8* %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%32 = icmp eq i64 %31, 0
br i1 %32, label %33, label %34
33: ; preds = %29
store i32 13, i32* %3
br label %116
34: ; preds = %29, %25
%35 = load i8*, i8** %2
%36 = call i32 @strlen(i8* %35)
%37 = icmp eq i32 %36, 3
br i1 %37, label %38, label %56
38: ; preds = %34
%39 = load i8*, i8** %2
%40 = call i64 @strncmp(i8* %39, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 15, i32* %3
br label %55
43: ; preds = %38
%44 = load i8*, i8** %2
%45 = call i64 @strncmp(i8* %44, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 16, i32* %3
br label %54
48: ; preds = %43
%49 = load i8*, i8** %2
%50 = call i64 @strncmp(i8* %49, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 18, i32* %3
br label %53
53: ; preds = %52, %48
br label %54
54: ; preds = %53, %47
br label %55
55: ; preds = %54, %42
br label %115
56: ; preds = %34
%57 = load i8*, i8** %2
%58 = call i32 @strlen(i8* %57)
%59 = icmp eq i32 %58, 4
br i1 %59, label %60, label %72
60: ; preds = %56
%61 = load i8*, i8** %2
%62 = call i64 @strncmp(i8* %61, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %65
64: ; preds = %60
store i32 17, i32* %3
br label %71
65: ; preds = %60
%66 = load i8*, i8** %2
%67 = call i64 @strncmp(i8* %66, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %70
69: ; preds = %65
store i32 14, i32* %3
br label %70
70: ; preds = %69, %65
br label %71
71: ; preds = %70, %64
br label %114
72: ; preds = %56
%73 = load i8*, i8** %2
%74 = call i64 @strncmp(i8* %73, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 5)
%75 = icmp eq i64 %74, 0
br i1 %75, label %88, label %76
76: ; preds = %72
%77 = load i8*, i8** %2
%78 = call i64 @strncmp(i8* %77, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 6)
%79 = icmp eq i64 %78, 0
br i1 %79, label %88, label %80
80: ; preds = %76
%81 = load i8*, i8** %2
%82 = call i64 @strncmp(i8* %81, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 10)
%83 = icmp eq i64 %82, 0
br i1 %83, label %88, label %84
84: ; preds = %80
%85 = load i8*, i8** %2
%86 = call i64 @strncmp(i8* %85, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %89
88: ; preds = %84, %80, %76, %72
store i32 12, i32* %3
br label %113
89: ; preds = %84
%90 = load i8*, i8** %2
%91 = call i64 @strncmp(i8* %90, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 6)
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %94
93: ; preds = %89
store i32 20, i32* %3
br label %112
94: ; preds = %89
%95 = load i8*, i8** %2
%96 = call i64 @strncmp(i8* %95, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 5)
%97 = icmp eq i64 %96, 0
br i1 %97, label %110, label %98
98: ; preds = %94
%99 = load i8*, i8** %2
%100 = call i64 @strncmp(i8* %99, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 6)
%101 = icmp eq i64 %100, 0
br i1 %101, label %110, label %102
102: ; preds = %98
%103 = load i8*, i8** %2
%104 = call i64 @strncmp(i8* %103, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i32 9)
%105 = icmp eq i64 %104, 0
br i1 %105, label %110, label %106
106: ; preds = %102
%107 = load i8*, i8** %2
%108 = call i64 @strncmp(i8* %107, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 10)
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %111
110: ; preds = %106, %102, %98, %94
store i32 11, i32* %3
br label %111
111: ; preds = %110, %106
br label %112
112: ; preds = %111, %93
br label %113
113: ; preds = %112, %88
br label %114
114: ; preds = %113, %71
br label %115
115: ; preds = %114, %55
br label %116
116: ; preds = %115, %33
br label %117
117: ; preds = %116, %24
%118 = load i32, i32* %3
ret i32 %118
}

LLVM IR (-O2):
@.str = [3 x i8] c"RY\00"
@.str.1 = [4 x i8] c"F81\00"
@.str.2 = [4 x i8] c"F84\00"
@.str.3 = [4 x i8] c"K2P\00"
@.str.4 = [5 x i8] c"TN93\00"
@.str.5 = [5 x i8] c"JC69\00"
@.str.6 = [6 x i8] c"RYSYM\00"
@.str.7 = [7 x i8] c"RY-SYM\00"
@.str.8 = [12 x i8] c"RYSYMMETRIC\00"
@.str.9 = [13 x i8] c"RY-SYMMETRIC\00"
@.str.10 = [7 x i8] c"LOGDET\00"
@.str.11 = [6 x i8] c"PDIST\00"
@.str.12 = [7 x i8] c"P-DIST\00"
@.str.13 = [10 x i8] c"PDISTANCE\00"
@.str.14 = [11 x i8] c"P-DISTANCE\00"
define i32 @getModel_DNA(i8* %0) {
%2 = tail call i32 @Uppercase(i8* %0)
%3 = tail call i32 @strlen(i8* %0)
%4 = icmp eq i32 %3, 1
br i1 %4, label %5, label %17
5: ; preds = %1
%6 = load i8, i8* %0
%7 = sext i8 %6 to i32
switch i32 %7, label %74 [
i32 82, label %8
i32 49, label %9
i32 52, label %10
i32 84, label %11
i32 75, label %12
i32 74, label %13
i32 76, label %14
i32 80, label %15
i32 89, label %16
]
8: ; preds = %5
br label %74
9: ; preds = %5
br label %74
10: ; preds = %5
br label %74
11: ; preds = %5
br label %74
12: ; preds = %5
br label %74
13: ; preds = %5
br label %74
14: ; preds = %5
br label %74
15: ; preds = %5
br label %74
16: ; preds = %5
br label %74
17: ; preds = %1
%18 = tail call i32 @strlen(i8* %0)
%19 = icmp eq i32 %18, 2
br i1 %19, label %20, label %23
20: ; preds = %17
%21 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 2)
%22 = icmp eq i64 %21, 0
br i1 %22, label %74, label %23
23: ; preds = %20, %17
%24 = tail call i32 @strlen(i8* %0)
%25 = icmp eq i32 %24, 3
br i1 %25, label %26, label %36
26: ; preds = %23
%27 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 3)
%28 = icmp eq i64 %27, 0
br i1 %28, label %74, label %29
29: ; preds = %26
%30 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i32 3)
%31 = icmp eq i64 %30, 0
br i1 %31, label %74, label %32
32: ; preds = %29
%33 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 3)
%34 = icmp eq i64 %33, 0
%35 = select i1 %34, i32 18, i32 0
br label %74
36: ; preds = %23
%37 = tail call i32 @strlen(i8* %0)
%38 = icmp eq i32 %37, 4
br i1 %38, label %39, label %46
39: ; preds = %36
%40 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0), i32 4)
%41 = icmp eq i64 %40, 0
br i1 %41, label %74, label %42
42: ; preds = %39
%43 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i32 4)
%44 = icmp eq i64 %43, 0
%45 = select i1 %44, i32 14, i32 0
br label %74
46: ; preds = %36
%47 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 5)
%48 = icmp eq i64 %47, 0
br i1 %48, label %74, label %49
49: ; preds = %46
%50 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 6)
%51 = icmp eq i64 %50, 0
br i1 %51, label %74, label %52
52: ; preds = %49
%53 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0), i32 10)
%54 = icmp eq i64 %53, 0
br i1 %54, label %74, label %55
55: ; preds = %52
%56 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%57 = icmp eq i64 %56, 0
br i1 %57, label %74, label %58
58: ; preds = %55
%59 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i32 6)
%60 = icmp eq i64 %59, 0
br i1 %60, label %74, label %61
61: ; preds = %58
%62 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.11, i64 0, i64 0), i32 5)
%63 = icmp eq i64 %62, 0
br i1 %63, label %73, label %64
64: ; preds = %61
%65 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i32 6)
%66 = icmp eq i64 %65, 0
br i1 %66, label %73, label %67
67: ; preds = %64
%68 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i32 9)
%69 = icmp eq i64 %68, 0
br i1 %69, label %73, label %70
70: ; preds = %67
%71 = tail call i64 @strncmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.14, i64 0, i64 0), i32 10)
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %74
73: ; preds = %70, %67, %64, %61
br label %74
74: ; preds = %42, %32, %58, %46, %49, %52, %55, %39, %29, %26, %20, %73, %70, %8, %9, %10, %11, %12, %13, %14, %15, %16, %5
%75 = phi i32 [ 0, %5 ], [ 12, %16 ], [ 11, %15 ], [ 20, %14 ], [ 14, %13 ], [ 18, %12 ], [ 17, %11 ], [ 16, %10 ], [ 15, %9 ], [ 13, %8 ], [ 11, %73 ], [ 0, %70 ], [ 13, %20 ], [ 15, %26 ], [ 16, %29 ], [ %35, %32 ], [ 17, %39 ], [ %45, %42 ], [ 12, %55 ], [ 12, %52 ], [ 12, %49 ], [ 12, %46 ], [ 20, %58 ]
ret i32 %75
}