#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(int /*<<< orphan*/, char *);
int /*<<< orphan*/ strlwr(char *);
int encodeCommand(char *clientCommandChar) {
  if (strcmp(strlwr(clientCommandChar), "/login") == 0)
    return 1;
  if (strcmp(strlwr(clientCommandChar), "/register") == 0)
    return 2;
  if (strcmp(strlwr(clientCommandChar), "/quit") == 0)
    return 0;
  if (strcmp(strlwr(clientCommandChar), "/help") == 0)
    return 3;
  if (strcmp(strlwr(clientCommandChar), "/viewprofile") == 0)
    return 4;
  if (strcmp(strlwr(clientCommandChar), "/logout") == 0)
    return 5;
  if (strcmp(strlwr(clientCommandChar), "/addfriend") == 0)
    return 6;
  if (strcmp(strlwr(clientCommandChar), "/addpost") == 0)
    return 7;
  if (strcmp(strlwr(clientCommandChar), "/setprofile") == 0)
    return 8;
  if (strcmp(strlwr(clientCommandChar), "/recvreq") == 0)
    return 9;
  if (strcmp(strlwr(clientCommandChar), "/accfriend") == 0)
    return 10;
  if (strcmp(strlwr(clientCommandChar), "/friends") == 0)
    return 12;
  if (strcmp(strlwr(clientCommandChar), "/online") == 0)
    return 13;
  if (strcmp(strlwr(clientCommandChar), "/createchat") == 0)
    return 14;
  if (strcmp(strlwr(clientCommandChar), "/chat") == 0)
    return 15;
  if (strcmp(strlwr(clientCommandChar), "/deletechat") == 0)
    return 16;
  if (strcmp(strlwr(clientCommandChar), "/joinchat") == 0)
    return 17;
  if (strcmp(strlwr(clientCommandChar), "/setpriv") == 0)
    return 18;
  if (strcmp(strlwr(clientCommandChar), "/deletefriend") == 0)
    return 19;
  if (strcmp(strlwr(clientCommandChar), "/deleterecvreq") == 0)
    return 20;
  if (strcmp(strlwr(clientCommandChar), "/sentreq") == 0)
    return 21;
  if (strcmp(strlwr(clientCommandChar), "/deletesentreq") == 0)
    return 22;
  if (strcmp(strlwr(clientCommandChar), "/deleteuser") == 0)
    return 23;
  if (strcmp(strlwr(clientCommandChar), "/deletepost") == 0)
    return 24;
  if (strcmp(strlwr(clientCommandChar), "/wall") == 0)
    return 25;
  return -1;
}


x86 assembly (clang, -O0):
<encodeCommand>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xec2(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1159 <encodeCommand+0x39>
movl   $0x1,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xe9c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1186 <encodeCommand+0x66>
movl   $0x2,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xe79(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11b3 <encodeCommand+0x93>
movl   $0x0,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xe52(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11e0 <encodeCommand+0xc0>
movl   $0x3,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xe2b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    120d <encodeCommand+0xed>
movl   $0x4,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xe0b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    123a <encodeCommand+0x11a>
movl   $0x5,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xde6(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1267 <encodeCommand+0x147>
movl   $0x6,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xdc4(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1294 <encodeCommand+0x174>
movl   $0x7,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xda0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12c1 <encodeCommand+0x1a1>
movl   $0x8,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xd7f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    12ee <encodeCommand+0x1ce>
movl   $0x9,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xd5b(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    131b <encodeCommand+0x1fb>
movl   $0xa,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xd39(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1348 <encodeCommand+0x228>
movl   $0xc,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xd15(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1375 <encodeCommand+0x255>
movl   $0xd,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xcf0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13a2 <encodeCommand+0x282>
movl   $0xe,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xccf(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13cf <encodeCommand+0x2af>
movl   $0xf,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xca8(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    13fc <encodeCommand+0x2dc>
movl   $0x10,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xc87(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1429 <encodeCommand+0x309>
movl   $0x11,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xc64(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1456 <encodeCommand+0x336>
movl   $0x12,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xc40(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1483 <encodeCommand+0x363>
movl   $0x13,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xc21(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    14b0 <encodeCommand+0x390>
movl   $0x14,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xc03(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    14dd <encodeCommand+0x3bd>
movl   $0x15,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xbdf(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    150a <encodeCommand+0x3ea>
movl   $0x16,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xbc1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1537 <encodeCommand+0x417>
movl   $0x17,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xba0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1564 <encodeCommand+0x444>
movl   $0x18,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
mov    -0x10(%rbp),%rdi
call   1030 <strlwr@plt>
mov    %eax,%edi
lea    0xb7f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1591 <encodeCommand+0x471>
movl   $0x19,-0x4(%rbp)
jmp    1598 <encodeCommand+0x478>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<encodeCommand>:
push   %rbx
mov    %rdi,%rbx
call   1030 <strlwr@plt>
lea    0xed0(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1429 <encodeCommand+0x309>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xeb8(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1430 <encodeCommand+0x310>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xea3(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1437 <encodeCommand+0x317>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xe8a(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     143b <encodeCommand+0x31b>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xe71(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1442 <encodeCommand+0x322>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xe5f(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1449 <encodeCommand+0x329>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xe48(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1450 <encodeCommand+0x330>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xe34(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1457 <encodeCommand+0x337>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xe1e(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     145e <encodeCommand+0x33e>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xe0b(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1465 <encodeCommand+0x345>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xdf5(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     146c <encodeCommand+0x34c>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xde1(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1473 <encodeCommand+0x353>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xdcb(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     147a <encodeCommand+0x35a>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xdb4(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1481 <encodeCommand+0x361>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xda1(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1488 <encodeCommand+0x368>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd88(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     148f <encodeCommand+0x36f>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd75(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1496 <encodeCommand+0x376>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd60(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     149d <encodeCommand+0x37d>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd4a(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     14a4 <encodeCommand+0x384>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd39(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     14ab <encodeCommand+0x38b>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd29(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     14b2 <encodeCommand+0x392>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd13(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     14b9 <encodeCommand+0x399>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xd03(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     14c0 <encodeCommand+0x3a0>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xcf0(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
test   %rax,%rax
je     14c7 <encodeCommand+0x3a7>
mov    %rbx,%rdi
call   1030 <strlwr@plt>
lea    0xcdd(%rip),%rsi
mov    %eax,%edi
call   1040 <strcmp@plt>
neg    %rax
sbb    %eax,%eax
or     $0x19,%eax
pop    %rbx
ret
mov    $0x1,%eax
pop    %rbx
ret
mov    $0x2,%eax
pop    %rbx
ret
xor    %eax,%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    $0xc,%eax
pop    %rbx
ret
mov    $0xd,%eax
pop    %rbx
ret
mov    $0xe,%eax
pop    %rbx
ret
mov    $0xf,%eax
pop    %rbx
ret
mov    $0x10,%eax
pop    %rbx
ret
mov    $0x11,%eax
pop    %rbx
ret
mov    $0x12,%eax
pop    %rbx
ret
mov    $0x13,%eax
pop    %rbx
ret
mov    $0x14,%eax
pop    %rbx
ret
mov    $0x15,%eax
pop    %rbx
ret
mov    $0x16,%eax
pop    %rbx
ret
mov    $0x17,%eax
pop    %rbx
ret
mov    $0x18,%eax
pop    %rbx
ret

LLVM IR (-O0):
@.str = [7 x i8] c"/login\00"
@.str.1 = [10 x i8] c"/register\00"
@.str.2 = [6 x i8] c"/quit\00"
@.str.3 = [6 x i8] c"/help\00"
@.str.4 = [13 x i8] c"/viewprofile\00"
@.str.5 = [8 x i8] c"/logout\00"
@.str.6 = [11 x i8] c"/addfriend\00"
@.str.7 = [9 x i8] c"/addpost\00"
@.str.8 = [12 x i8] c"/setprofile\00"
@.str.9 = [9 x i8] c"/recvreq\00"
@.str.10 = [11 x i8] c"/accfriend\00"
@.str.11 = [9 x i8] c"/friends\00"
@.str.12 = [8 x i8] c"/online\00"
@.str.13 = [12 x i8] c"/createchat\00"
@.str.14 = [6 x i8] c"/chat\00"
@.str.15 = [12 x i8] c"/deletechat\00"
@.str.16 = [10 x i8] c"/joinchat\00"
@.str.17 = [9 x i8] c"/setpriv\00"
@.str.18 = [14 x i8] c"/deletefriend\00"
@.str.19 = [15 x i8] c"/deleterecvreq\00"
@.str.20 = [9 x i8] c"/sentreq\00"
@.str.21 = [15 x i8] c"/deletesentreq\00"
@.str.22 = [12 x i8] c"/deleteuser\00"
@.str.23 = [12 x i8] c"/deletepost\00"
@.str.24 = [6 x i8] c"/wall\00"
define i32 @encodeCommand(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i32 @strlwr(i8* %4)
%6 = call i64 @strcmp(i32 %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %9
8: ; preds = %1
store i32 1, i32* %2
br label %154
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i32 @strlwr(i8* %10)
%12 = call i64 @strcmp(i32 %11, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i64 %12, 0
br i1 %13, label %14, label %15
14: ; preds = %9
store i32 2, i32* %2
br label %154
15: ; preds = %9
%16 = load i8*, i8** %3
%17 = call i32 @strlwr(i8* %16)
%18 = call i64 @strcmp(i32 %17, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %21
20: ; preds = %15
store i32 0, i32* %2
br label %154
21: ; preds = %15
%22 = load i8*, i8** %3
%23 = call i32 @strlwr(i8* %22)
%24 = call i64 @strcmp(i32 %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %21
store i32 3, i32* %2
br label %154
27: ; preds = %21
%28 = load i8*, i8** %3
%29 = call i32 @strlwr(i8* %28)
%30 = call i64 @strcmp(i32 %29, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %27
store i32 4, i32* %2
br label %154
33: ; preds = %27
%34 = load i8*, i8** %3
%35 = call i32 @strlwr(i8* %34)
%36 = call i64 @strcmp(i32 %35, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %39
38: ; preds = %33
store i32 5, i32* %2
br label %154
39: ; preds = %33
%40 = load i8*, i8** %3
%41 = call i32 @strlwr(i8* %40)
%42 = call i64 @strcmp(i32 %41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %45
44: ; preds = %39
store i32 6, i32* %2
br label %154
45: ; preds = %39
%46 = load i8*, i8** %3
%47 = call i32 @strlwr(i8* %46)
%48 = call i64 @strcmp(i32 %47, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %51
50: ; preds = %45
store i32 7, i32* %2
br label %154
51: ; preds = %45
%52 = load i8*, i8** %3
%53 = call i32 @strlwr(i8* %52)
%54 = call i64 @strcmp(i32 %53, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %51
store i32 8, i32* %2
br label %154
57: ; preds = %51
%58 = load i8*, i8** %3
%59 = call i32 @strlwr(i8* %58)
%60 = call i64 @strcmp(i32 %59, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %63
62: ; preds = %57
store i32 9, i32* %2
br label %154
63: ; preds = %57
%64 = load i8*, i8** %3
%65 = call i32 @strlwr(i8* %64)
%66 = call i64 @strcmp(i32 %65, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %69
68: ; preds = %63
store i32 10, i32* %2
br label %154
69: ; preds = %63
%70 = load i8*, i8** %3
%71 = call i32 @strlwr(i8* %70)
%72 = call i64 @strcmp(i32 %71, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%73 = icmp eq i64 %72, 0
br i1 %73, label %74, label %75
74: ; preds = %69
store i32 12, i32* %2
br label %154
75: ; preds = %69
%76 = load i8*, i8** %3
%77 = call i32 @strlwr(i8* %76)
%78 = call i64 @strcmp(i32 %77, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%79 = icmp eq i64 %78, 0
br i1 %79, label %80, label %81
80: ; preds = %75
store i32 13, i32* %2
br label %154
81: ; preds = %75
%82 = load i8*, i8** %3
%83 = call i32 @strlwr(i8* %82)
%84 = call i64 @strcmp(i32 %83, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %81
store i32 14, i32* %2
br label %154
87: ; preds = %81
%88 = load i8*, i8** %3
%89 = call i32 @strlwr(i8* %88)
%90 = call i64 @strcmp(i32 %89, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %92, label %93
92: ; preds = %87
store i32 15, i32* %2
br label %154
93: ; preds = %87
%94 = load i8*, i8** %3
%95 = call i32 @strlwr(i8* %94)
%96 = call i64 @strcmp(i32 %95, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %99
98: ; preds = %93
store i32 16, i32* %2
br label %154
99: ; preds = %93
%100 = load i8*, i8** %3
%101 = call i32 @strlwr(i8* %100)
%102 = call i64 @strcmp(i32 %101, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%103 = icmp eq i64 %102, 0
br i1 %103, label %104, label %105
104: ; preds = %99
store i32 17, i32* %2
br label %154
105: ; preds = %99
%106 = load i8*, i8** %3
%107 = call i32 @strlwr(i8* %106)
%108 = call i64 @strcmp(i32 %107, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %111
110: ; preds = %105
store i32 18, i32* %2
br label %154
111: ; preds = %105
%112 = load i8*, i8** %3
%113 = call i32 @strlwr(i8* %112)
%114 = call i64 @strcmp(i32 %113, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %111
store i32 19, i32* %2
br label %154
117: ; preds = %111
%118 = load i8*, i8** %3
%119 = call i32 @strlwr(i8* %118)
%120 = call i64 @strcmp(i32 %119, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %123
122: ; preds = %117
store i32 20, i32* %2
br label %154
123: ; preds = %117
%124 = load i8*, i8** %3
%125 = call i32 @strlwr(i8* %124)
%126 = call i64 @strcmp(i32 %125, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
%127 = icmp eq i64 %126, 0
br i1 %127, label %128, label %129
128: ; preds = %123
store i32 21, i32* %2
br label %154
129: ; preds = %123
%130 = load i8*, i8** %3
%131 = call i32 @strlwr(i8* %130)
%132 = call i64 @strcmp(i32 %131, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
%133 = icmp eq i64 %132, 0
br i1 %133, label %134, label %135
134: ; preds = %129
store i32 22, i32* %2
br label %154
135: ; preds = %129
%136 = load i8*, i8** %3
%137 = call i32 @strlwr(i8* %136)
%138 = call i64 @strcmp(i32 %137, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i64 0, i64 0))
%139 = icmp eq i64 %138, 0
br i1 %139, label %140, label %141
140: ; preds = %135
store i32 23, i32* %2
br label %154
141: ; preds = %135
%142 = load i8*, i8** %3
%143 = call i32 @strlwr(i8* %142)
%144 = call i64 @strcmp(i32 %143, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0))
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %147
146: ; preds = %141
store i32 24, i32* %2
br label %154
147: ; preds = %141
%148 = load i8*, i8** %3
%149 = call i32 @strlwr(i8* %148)
%150 = call i64 @strcmp(i32 %149, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
%151 = icmp eq i64 %150, 0
br i1 %151, label %152, label %153
152: ; preds = %147
store i32 25, i32* %2
br label %154
153: ; preds = %147
store i32 -1, i32* %2
br label %154
154: ; preds = %153, %152, %146, %140, %134, %128, %122, %116, %110, %104, %98, %92, %86, %80, %74, %68, %62, %56, %50, %44, %38, %32, %26, %20, %14, %8
%155 = load i32, i32* %2
ret i32 %155
}

LLVM IR (-O2):
@.str = [7 x i8] c"/login\00"
@.str.1 = [10 x i8] c"/register\00"
@.str.2 = [6 x i8] c"/quit\00"
@.str.3 = [6 x i8] c"/help\00"
@.str.4 = [13 x i8] c"/viewprofile\00"
@.str.5 = [8 x i8] c"/logout\00"
@.str.6 = [11 x i8] c"/addfriend\00"
@.str.7 = [9 x i8] c"/addpost\00"
@.str.8 = [12 x i8] c"/setprofile\00"
@.str.9 = [9 x i8] c"/recvreq\00"
@.str.10 = [11 x i8] c"/accfriend\00"
@.str.11 = [9 x i8] c"/friends\00"
@.str.12 = [8 x i8] c"/online\00"
@.str.13 = [12 x i8] c"/createchat\00"
@.str.14 = [6 x i8] c"/chat\00"
@.str.15 = [12 x i8] c"/deletechat\00"
@.str.16 = [10 x i8] c"/joinchat\00"
@.str.17 = [9 x i8] c"/setpriv\00"
@.str.18 = [14 x i8] c"/deletefriend\00"
@.str.19 = [15 x i8] c"/deleterecvreq\00"
@.str.20 = [9 x i8] c"/sentreq\00"
@.str.21 = [15 x i8] c"/deletesentreq\00"
@.str.22 = [12 x i8] c"/deleteuser\00"
@.str.23 = [12 x i8] c"/deletepost\00"
@.str.24 = [6 x i8] c"/wall\00"
define i32 @encodeCommand(i8* %0) {
%2 = tail call i32 @strlwr(i8* %0)
%3 = tail call i64 @strcmp(i32 %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %102, label %5
5: ; preds = %1
%6 = tail call i32 @strlwr(i8* %0)
%7 = tail call i64 @strcmp(i32 %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %102, label %9
9: ; preds = %5
%10 = tail call i32 @strlwr(i8* %0)
%11 = tail call i64 @strcmp(i32 %10, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %102, label %13
13: ; preds = %9
%14 = tail call i32 @strlwr(i8* %0)
%15 = tail call i64 @strcmp(i32 %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %102, label %17
17: ; preds = %13
%18 = tail call i32 @strlwr(i8* %0)
%19 = tail call i64 @strcmp(i32 %18, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %102, label %21
21: ; preds = %17
%22 = tail call i32 @strlwr(i8* %0)
%23 = tail call i64 @strcmp(i32 %22, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %102, label %25
25: ; preds = %21
%26 = tail call i32 @strlwr(i8* %0)
%27 = tail call i64 @strcmp(i32 %26, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %102, label %29
29: ; preds = %25
%30 = tail call i32 @strlwr(i8* %0)
%31 = tail call i64 @strcmp(i32 %30, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%32 = icmp eq i64 %31, 0
br i1 %32, label %102, label %33
33: ; preds = %29
%34 = tail call i32 @strlwr(i8* %0)
%35 = tail call i64 @strcmp(i32 %34, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %102, label %37
37: ; preds = %33
%38 = tail call i32 @strlwr(i8* %0)
%39 = tail call i64 @strcmp(i32 %38, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %102, label %41
41: ; preds = %37
%42 = tail call i32 @strlwr(i8* %0)
%43 = tail call i64 @strcmp(i32 %42, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.10, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %102, label %45
45: ; preds = %41
%46 = tail call i32 @strlwr(i8* %0)
%47 = tail call i64 @strcmp(i32 %46, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %102, label %49
49: ; preds = %45
%50 = tail call i32 @strlwr(i8* %0)
%51 = tail call i64 @strcmp(i32 %50, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %102, label %53
53: ; preds = %49
%54 = tail call i32 @strlwr(i8* %0)
%55 = tail call i64 @strcmp(i32 %54, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %102, label %57
57: ; preds = %53
%58 = tail call i32 @strlwr(i8* %0)
%59 = tail call i64 @strcmp(i32 %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %102, label %61
61: ; preds = %57
%62 = tail call i32 @strlwr(i8* %0)
%63 = tail call i64 @strcmp(i32 %62, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %102, label %65
65: ; preds = %61
%66 = tail call i32 @strlwr(i8* %0)
%67 = tail call i64 @strcmp(i32 %66, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.16, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %102, label %69
69: ; preds = %65
%70 = tail call i32 @strlwr(i8* %0)
%71 = tail call i64 @strcmp(i32 %70, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %102, label %73
73: ; preds = %69
%74 = tail call i32 @strlwr(i8* %0)
%75 = tail call i64 @strcmp(i32 %74, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.18, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %102, label %77
77: ; preds = %73
%78 = tail call i32 @strlwr(i8* %0)
%79 = tail call i64 @strcmp(i32 %78, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %102, label %81
81: ; preds = %77
%82 = tail call i32 @strlwr(i8* %0)
%83 = tail call i64 @strcmp(i32 %82, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.20, i64 0, i64 0))
%84 = icmp eq i64 %83, 0
br i1 %84, label %102, label %85
85: ; preds = %81
%86 = tail call i32 @strlwr(i8* %0)
%87 = tail call i64 @strcmp(i32 %86, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.21, i64 0, i64 0))
%88 = icmp eq i64 %87, 0
br i1 %88, label %102, label %89
89: ; preds = %85
%90 = tail call i32 @strlwr(i8* %0)
%91 = tail call i64 @strcmp(i32 %90, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.22, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %102, label %93
93: ; preds = %89
%94 = tail call i32 @strlwr(i8* %0)
%95 = tail call i64 @strcmp(i32 %94, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.23, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %102, label %97
97: ; preds = %93
%98 = tail call i32 @strlwr(i8* %0)
%99 = tail call i64 @strcmp(i32 %98, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
%101 = select i1 %100, i32 25, i32 -1
br label %102
102: ; preds = %97, %93, %89, %85, %81, %77, %73, %69, %65, %61, %57, %53, %49, %45, %41, %37, %33, %29, %25, %21, %17, %13, %9, %5, %1
%103 = phi i32 [ 1, %1 ], [ 2, %5 ], [ 0, %9 ], [ 3, %13 ], [ 4, %17 ], [ 5, %21 ], [ 6, %25 ], [ 7, %29 ], [ 8, %33 ], [ 9, %37 ], [ 10, %41 ], [ 12, %45 ], [ 13, %49 ], [ 14, %53 ], [ 15, %57 ], [ 16, %61 ], [ 17, %65 ], [ 18, %69 ], [ 19, %73 ], [ 20, %77 ], [ 21, %81 ], [ 22, %85 ], [ 23, %89 ], [ 24, %93 ], [ %101, %97 ]
ret i32 %103
}