#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 class_number(char *class) {
  int class_num = 0;
  if (strcmp(class, "druidwin") == 0)
    class_num = 21;
  else if (strcmp(class, "hunterwin") == 0)
    class_num = 22;
  else if (strcmp(class, "magewin") == 0)
    class_num = 23;
  else if (strcmp(class, "paladinwin") == 0)
    class_num = 24;
  else if (strcmp(class, "priestwin") == 0)
    class_num = 25;
  else if (strcmp(class, "roguewin") == 0)
    class_num = 26;
  else if (strcmp(class, "shamanwin") == 0)
    class_num = 27;
  else if (strcmp(class, "warlockwin") == 0)
    class_num = 28;
  else if (strcmp(class, "warriorwin") == 0)
    class_num = 29;
  else if (strcmp(class, "druid") == 0)
    class_num = 1;
  else if (strcmp(class, "hunter") == 0)
    class_num = 2;
  else if (strcmp(class, "mage") == 0)
    class_num = 3;
  else if (strcmp(class, "paladin") == 0)
    class_num = 4;
  else if (strcmp(class, "priest") == 0)
    class_num = 5;
  else if (strcmp(class, "rogue") == 0)
    class_num = 6;
  else if (strcmp(class, "shaman") == 0)
    class_num = 7;
  else if (strcmp(class, "warlock") == 0)
    class_num = 8;
  else if (strcmp(class, "warrior") == 0)
    class_num = 9;
  else if (strcmp(class, "recover") == 0)
    class_num = 10;
  else if (strcmp(class, "all") == 0)
    class_num = 11;
  else if (strcmp(class, "allwin") == 0)
    class_num = 12;
  else if (strcmp(class, "bclass") == 0)
    class_num = 13;
  else if (strcmp(class, "wclass") == 0)
    class_num = 14;
  else if (strcmp(class, "pclass") == 0)
    class_num = 15;
  else if (strcmp(class, "myelo") == 0)
    class_num = 16;
  else
    class_num = 0;
  return class_num;
}


x86 assembly (clang, -O0):
<class_number>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed2(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1149 <class_number+0x39>
movl   $0x15,-0xc(%rbp)
jmp    1558 <class_number+0x448>
mov    -0x8(%rbp),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    116f <class_number+0x5f>
movl   $0x16,-0xc(%rbp)
jmp    1553 <class_number+0x443>
mov    -0x8(%rbp),%rdi
lea    0xe99(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1195 <class_number+0x85>
movl   $0x17,-0xc(%rbp)
jmp    154e <class_number+0x43e>
mov    -0x8(%rbp),%rdi
lea    0xe7b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11bb <class_number+0xab>
movl   $0x18,-0xc(%rbp)
jmp    1549 <class_number+0x439>
mov    -0x8(%rbp),%rdi
lea    0xe60(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    11e1 <class_number+0xd1>
movl   $0x19,-0xc(%rbp)
jmp    1544 <class_number+0x434>
mov    -0x8(%rbp),%rdi
lea    0xe44(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1207 <class_number+0xf7>
movl   $0x1a,-0xc(%rbp)
jmp    153f <class_number+0x42f>
mov    -0x8(%rbp),%rdi
lea    0xe27(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    122d <class_number+0x11d>
movl   $0x1b,-0xc(%rbp)
jmp    153a <class_number+0x42a>
mov    -0x8(%rbp),%rdi
lea    0xe0b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1253 <class_number+0x143>
movl   $0x1c,-0xc(%rbp)
jmp    1535 <class_number+0x425>
mov    -0x8(%rbp),%rdi
lea    0xdf0(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1279 <class_number+0x169>
movl   $0x1d,-0xc(%rbp)
jmp    1530 <class_number+0x420>
mov    -0x8(%rbp),%rdi
lea    0xdd5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    129f <class_number+0x18f>
movl   $0x1,-0xc(%rbp)
jmp    152b <class_number+0x41b>
mov    -0x8(%rbp),%rdi
lea    0xdb5(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12c5 <class_number+0x1b5>
movl   $0x2,-0xc(%rbp)
jmp    1526 <class_number+0x416>
mov    -0x8(%rbp),%rdi
lea    0xd96(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    12eb <class_number+0x1db>
movl   $0x3,-0xc(%rbp)
jmp    1521 <class_number+0x411>
mov    -0x8(%rbp),%rdi
lea    0xd75(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1311 <class_number+0x201>
movl   $0x4,-0xc(%rbp)
jmp    151c <class_number+0x40c>
mov    -0x8(%rbp),%rdi
lea    0xd57(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1337 <class_number+0x227>
movl   $0x5,-0xc(%rbp)
jmp    1517 <class_number+0x407>
mov    -0x8(%rbp),%rdi
lea    0xd38(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    135d <class_number+0x24d>
movl   $0x6,-0xc(%rbp)
jmp    1512 <class_number+0x402>
mov    -0x8(%rbp),%rdi
lea    0xd18(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1383 <class_number+0x273>
movl   $0x7,-0xc(%rbp)
jmp    150d <class_number+0x3fd>
mov    -0x8(%rbp),%rdi
lea    0xcf9(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13a9 <class_number+0x299>
movl   $0x8,-0xc(%rbp)
jmp    1508 <class_number+0x3f8>
mov    -0x8(%rbp),%rdi
lea    0xcdb(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13cf <class_number+0x2bf>
movl   $0x9,-0xc(%rbp)
jmp    1503 <class_number+0x3f3>
mov    -0x8(%rbp),%rdi
lea    0xcbd(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13f5 <class_number+0x2e5>
movl   $0xa,-0xc(%rbp)
jmp    14fe <class_number+0x3ee>
mov    -0x8(%rbp),%rdi
lea    0xc9f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    141b <class_number+0x30b>
movl   $0xb,-0xc(%rbp)
jmp    14f9 <class_number+0x3e9>
mov    -0x8(%rbp),%rdi
lea    0xc7d(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1441 <class_number+0x331>
movl   $0xc,-0xc(%rbp)
jmp    14f4 <class_number+0x3e4>
mov    -0x8(%rbp),%rdi
lea    0xc5e(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    1467 <class_number+0x357>
movl   $0xd,-0xc(%rbp)
jmp    14ef <class_number+0x3df>
mov    -0x8(%rbp),%rdi
lea    0xc3f(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    148d <class_number+0x37d>
movl   $0xe,-0xc(%rbp)
jmp    14ea <class_number+0x3da>
mov    -0x8(%rbp),%rdi
lea    0xc20(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14b3 <class_number+0x3a3>
movl   $0xf,-0xc(%rbp)
jmp    14e5 <class_number+0x3d5>
mov    -0x8(%rbp),%rdi
lea    0xc01(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    14d9 <class_number+0x3c9>
movl   $0x10,-0xc(%rbp)
jmp    14e0 <class_number+0x3d0>
movl   $0x0,-0xc(%rbp)
jmp    14e5 <class_number+0x3d5>
jmp    14ea <class_number+0x3da>
jmp    14ef <class_number+0x3df>
jmp    14f4 <class_number+0x3e4>
jmp    14f9 <class_number+0x3e9>
jmp    14fe <class_number+0x3ee>
jmp    1503 <class_number+0x3f3>
jmp    1508 <class_number+0x3f8>
jmp    150d <class_number+0x3fd>
jmp    1512 <class_number+0x402>
jmp    1517 <class_number+0x407>
jmp    151c <class_number+0x40c>
jmp    1521 <class_number+0x411>
jmp    1526 <class_number+0x416>
jmp    152b <class_number+0x41b>
jmp    1530 <class_number+0x420>
jmp    1535 <class_number+0x425>
jmp    153a <class_number+0x42a>
jmp    153f <class_number+0x42f>
jmp    1544 <class_number+0x434>
jmp    1549 <class_number+0x439>
jmp    154e <class_number+0x43e>
jmp    1553 <class_number+0x443>
jmp    1558 <class_number+0x448>
mov    -0xc(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<class_number>:
push   %rbx
mov    %rdi,%rbx
lea    0xee5(%rip),%rsi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1370 <class_number+0x260>
lea    0xed9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1377 <class_number+0x267>
lea    0xecb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     137e <class_number+0x26e>
lea    0xebb(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1385 <class_number+0x275>
lea    0xeae(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     138c <class_number+0x27c>
lea    0xea0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1393 <class_number+0x283>
lea    0xe91(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     139a <class_number+0x28a>
lea    0xe83(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13a1 <class_number+0x291>
lea    0xe76(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13a8 <class_number+0x298>
lea    0xe69(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13af <class_number+0x29f>
lea    0xe57(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13b6 <class_number+0x2a6>
lea    0xe46(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13bd <class_number+0x2ad>
lea    0xe33(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13c4 <class_number+0x2b4>
lea    0xe23(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13cb <class_number+0x2bb>
lea    0xe12(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13d2 <class_number+0x2c2>
lea    0xe00(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13d9 <class_number+0x2c9>
lea    0xdef(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13e0 <class_number+0x2d0>
lea    0xddf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13e7 <class_number+0x2d7>
lea    0xdcf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13ee <class_number+0x2de>
lea    0xdbf(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13f5 <class_number+0x2e5>
lea    0xdab(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     13fc <class_number+0x2ec>
lea    0xd9a(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1403 <class_number+0x2f3>
lea    0xd89(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     140a <class_number+0x2fa>
lea    0xd78(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1411 <class_number+0x301>
lea    0xd67(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    %rax,%rcx
xor    %eax,%eax
test   %rcx,%rcx
sete   %al
shl    $0x4,%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    $0x1,%eax
pop    %rbx
ret
mov    $0x2,%eax
pop    %rbx
ret
mov    $0x3,%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

LLVM IR (-O0):
@.str = [9 x i8] c"druidwin\00"
@.str.1 = [10 x i8] c"hunterwin\00"
@.str.2 = [8 x i8] c"magewin\00"
@.str.3 = [11 x i8] c"paladinwin\00"
@.str.4 = [10 x i8] c"priestwin\00"
@.str.5 = [9 x i8] c"roguewin\00"
@.str.6 = [10 x i8] c"shamanwin\00"
@.str.7 = [11 x i8] c"warlockwin\00"
@.str.8 = [11 x i8] c"warriorwin\00"
@.str.9 = [6 x i8] c"druid\00"
@.str.10 = [7 x i8] c"hunter\00"
@.str.11 = [5 x i8] c"mage\00"
@.str.12 = [8 x i8] c"paladin\00"
@.str.13 = [7 x i8] c"priest\00"
@.str.14 = [6 x i8] c"rogue\00"
@.str.15 = [7 x i8] c"shaman\00"
@.str.16 = [8 x i8] c"warlock\00"
@.str.17 = [8 x i8] c"warrior\00"
@.str.18 = [8 x i8] c"recover\00"
@.str.19 = [4 x i8] c"all\00"
@.str.20 = [7 x i8] c"allwin\00"
@.str.21 = [7 x i8] c"bclass\00"
@.str.22 = [7 x i8] c"wclass\00"
@.str.23 = [7 x i8] c"pclass\00"
@.str.24 = [6 x i8] c"myelo\00"
define i32 @class_number(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 i64 @strcmp(i8* %4, i8* getelementptr inbounds ([9 x i8], [9 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 21, i32* %3
br label %153
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %13
12: ; preds = %8
store i32 22, i32* %3
br label %152
13: ; preds = %8
%14 = load i8*, i8** %2
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 23, i32* %3
br label %151
18: ; preds = %13
%19 = load i8*, i8** %2
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 24, i32* %3
br label %150
23: ; preds = %18
%24 = load i8*, i8** %2
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %23
store i32 25, i32* %3
br label %149
28: ; preds = %23
%29 = load i8*, i8** %2
%30 = call i64 @strcmp(i8* %29, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %28
store i32 26, i32* %3
br label %148
33: ; preds = %28
%34 = load i8*, i8** %2
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %38
37: ; preds = %33
store i32 27, i32* %3
br label %147
38: ; preds = %33
%39 = load i8*, i8** %2
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %38
store i32 28, i32* %3
br label %146
43: ; preds = %38
%44 = load i8*, i8** %2
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %48
47: ; preds = %43
store i32 29, i32* %3
br label %145
48: ; preds = %43
%49 = load i8*, i8** %2
%50 = call i64 @strcmp(i8* %49, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %53
52: ; preds = %48
store i32 1, i32* %3
br label %144
53: ; preds = %48
%54 = load i8*, i8** %2
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %58
57: ; preds = %53
store i32 2, i32* %3
br label %143
58: ; preds = %53
%59 = load i8*, i8** %2
%60 = call i64 @strcmp(i8* %59, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %58
store i32 3, i32* %3
br label %142
63: ; preds = %58
%64 = load i8*, i8** %2
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %68
67: ; preds = %63
store i32 4, i32* %3
br label %141
68: ; preds = %63
%69 = load i8*, i8** %2
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %73
72: ; preds = %68
store i32 5, i32* %3
br label %140
73: ; preds = %68
%74 = load i8*, i8** %2
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %78
77: ; preds = %73
store i32 6, i32* %3
br label %139
78: ; preds = %73
%79 = load i8*, i8** %2
%80 = call i64 @strcmp(i8* %79, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
br i1 %81, label %82, label %83
82: ; preds = %78
store i32 7, i32* %3
br label %138
83: ; preds = %78
%84 = load i8*, i8** %2
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %88
87: ; preds = %83
store i32 8, i32* %3
br label %137
88: ; preds = %83
%89 = load i8*, i8** %2
%90 = call i64 @strcmp(i8* %89, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %88
store i32 9, i32* %3
br label %136
93: ; preds = %88
%94 = load i8*, i8** %2
%95 = call i64 @strcmp(i8* %94, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %98
97: ; preds = %93
store i32 10, i32* %3
br label %135
98: ; preds = %93
%99 = load i8*, i8** %2
%100 = call i64 @strcmp(i8* %99, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%101 = icmp eq i64 %100, 0
br i1 %101, label %102, label %103
102: ; preds = %98
store i32 11, i32* %3
br label %134
103: ; preds = %98
%104 = load i8*, i8** %2
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %108
107: ; preds = %103
store i32 12, i32* %3
br label %133
108: ; preds = %103
%109 = load i8*, i8** %2
%110 = call i64 @strcmp(i8* %109, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%111 = icmp eq i64 %110, 0
br i1 %111, label %112, label %113
112: ; preds = %108
store i32 13, i32* %3
br label %132
113: ; preds = %108
%114 = load i8*, i8** %2
%115 = call i64 @strcmp(i8* %114, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %118
117: ; preds = %113
store i32 14, i32* %3
br label %131
118: ; preds = %113
%119 = load i8*, i8** %2
%120 = call i64 @strcmp(i8* %119, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %118
store i32 15, i32* %3
br label %130
123: ; preds = %118
%124 = load i8*, i8** %2
%125 = call i64 @strcmp(i8* %124, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %128
127: ; preds = %123
store i32 16, i32* %3
br label %129
128: ; preds = %123
store i32 0, i32* %3
br label %129
129: ; preds = %128, %127
br label %130
130: ; preds = %129, %122
br label %131
131: ; preds = %130, %117
br label %132
132: ; preds = %131, %112
br label %133
133: ; preds = %132, %107
br label %134
134: ; preds = %133, %102
br label %135
135: ; preds = %134, %97
br label %136
136: ; preds = %135, %92
br label %137
137: ; preds = %136, %87
br label %138
138: ; preds = %137, %82
br label %139
139: ; preds = %138, %77
br label %140
140: ; preds = %139, %72
br label %141
141: ; preds = %140, %67
br label %142
142: ; preds = %141, %62
br label %143
143: ; preds = %142, %57
br label %144
144: ; preds = %143, %52
br label %145
145: ; preds = %144, %47
br label %146
146: ; preds = %145, %42
br label %147
147: ; preds = %146, %37
br label %148
148: ; preds = %147, %32
br label %149
149: ; preds = %148, %27
br label %150
150: ; preds = %149, %22
br label %151
151: ; preds = %150, %17
br label %152
152: ; preds = %151, %12
br label %153
153: ; preds = %152, %7
%154 = load i32, i32* %3
ret i32 %154
}

LLVM IR (-O2):
@.str = [9 x i8] c"druidwin\00"
@.str.1 = [10 x i8] c"hunterwin\00"
@.str.2 = [8 x i8] c"magewin\00"
@.str.3 = [11 x i8] c"paladinwin\00"
@.str.4 = [10 x i8] c"priestwin\00"
@.str.5 = [9 x i8] c"roguewin\00"
@.str.6 = [10 x i8] c"shamanwin\00"
@.str.7 = [11 x i8] c"warlockwin\00"
@.str.8 = [11 x i8] c"warriorwin\00"
@.str.9 = [6 x i8] c"druid\00"
@.str.10 = [7 x i8] c"hunter\00"
@.str.11 = [5 x i8] c"mage\00"
@.str.12 = [8 x i8] c"paladin\00"
@.str.13 = [7 x i8] c"priest\00"
@.str.14 = [6 x i8] c"rogue\00"
@.str.15 = [7 x i8] c"shaman\00"
@.str.16 = [8 x i8] c"warlock\00"
@.str.17 = [8 x i8] c"warrior\00"
@.str.18 = [8 x i8] c"recover\00"
@.str.19 = [4 x i8] c"all\00"
@.str.20 = [7 x i8] c"allwin\00"
@.str.21 = [7 x i8] c"bclass\00"
@.str.22 = [7 x i8] c"wclass\00"
@.str.23 = [7 x i8] c"pclass\00"
@.str.24 = [6 x i8] c"myelo\00"
define i32 @class_number(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %77, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %77, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %77, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %77, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %77, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %77, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %77, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %77, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %77, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %77, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %77, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %77, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %77, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %77, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %77, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %77, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %77, label %52
52: ; preds = %49
%53 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.17, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %77, label %55
55: ; preds = %52
%56 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %77, label %58
58: ; preds = %55
%59 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.19, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %77, label %61
61: ; preds = %58
%62 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %77, label %64
64: ; preds = %61
%65 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.21, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %77, label %67
67: ; preds = %64
%68 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %77, label %70
70: ; preds = %67
%71 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.23, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %77, label %73
73: ; preds = %70
%74 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
%76 = select i1 %75, i32 16, i32 0
br label %77
77: ; preds = %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%78 = phi i32 [ 21, %1 ], [ 22, %4 ], [ 23, %7 ], [ 24, %10 ], [ 25, %13 ], [ 26, %16 ], [ 27, %19 ], [ 28, %22 ], [ 29, %25 ], [ 1, %28 ], [ 2, %31 ], [ 3, %34 ], [ 4, %37 ], [ 5, %40 ], [ 6, %43 ], [ 7, %46 ], [ 8, %49 ], [ 9, %52 ], [ 10, %55 ], [ 11, %58 ], [ 12, %61 ], [ 13, %64 ], [ 14, %67 ], [ 15, %70 ], [ %76, %73 ]
ret i32 %78
}