#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*/ free(char *);
scalar_t__ read_separator(char **);
char *read_word(char **);
scalar_t__ strcmp(char *, char *);
int get_code(char **message) {
  char *command;
  int result = 0;
  if (read_separator(message) == 0) {
    if ((command = read_word(message)) != NULL) {
      if (strcmp((command), ("OK")) == 0) {
        result = 1;
      } else if (strcmp((command), ("ERR")) == 0) {
        result = 2;
      } else if (strcmp((command), ("PING")) == 0) {
        result = 3;
      } else if (strcmp((command), ("ECHO")) == 0) {
        result = 4;
      } else if (strcmp((command), ("PROGRAM")) == 0) {
        result = 5;
      } else if (strcmp((command), ("VERSION")) == 0) {
        result = 6;
      } else if (strcmp((command), ("PASSWORD")) == 0) {
        result = 7;
      } else if (strcmp((command), ("FREE")) == 0) {
        result = 8;
      } else if (strcmp((command), ("TEAM")) == 0) {
        result = 9;
      } else if (strcmp((command), ("READY")) == 0) {
        result = 10;
      } else if (strcmp((command), ("START")) == 0) {
        result = 11;
      } else if (strcmp((command), ("WAITING")) == 0) {
        result = 12;
      } else if (strcmp((command), ("NEXT")) == 0) {
        result = 13;
      } else if (strcmp((command), ("TEAMSTARTINFO")) == 0) {
        result = 14;
      } else if (strcmp((command), ("WHO")) == 0) {
        result = 15;
      } else if (strcmp((command), ("LOCAL")) == 0) {
        result = 16;
      } else if (strcmp((command), ("NETWORK")) == 0) {
        result = 17;
      } else if (strcmp((command), ("NOBODY")) == 0) {
        result = 18;
      } else if (strcmp((command), ("SENDMAP")) == 0) {
        result = 19;
      } else if (strcmp((command), ("RECVMAP")) == 0) {
        result = 20;
      } else if (strcmp((command), ("SENDCONFIG")) == 0) {
        result = 21;
      } else if (strcmp((command), ("RECVCONFIG")) == 0) {
        result = 22;
      } else if (strcmp((command), ("CHATTALK")) == 0) {
        result = 23;
      } else if (strcmp((command), ("CHATLISTEN")) == 0) {
        result = 24;
      } else if (strcmp((command), ("QUIT")) == 0) {
        result = 25;
      }
      free(command);
    }
  }
  return result;
}


x86 assembly (clang, -O0):
<get_code>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <read_separator@plt>
cmp    $0x0,%rax
jne    15b4 <get_code+0x474>
mov    -0x8(%rbp),%rdi
call   1060 <read_word@plt>
mov    %rax,-0x10(%rbp)
cmp    $0x0,%rax
je     15af <get_code+0x46f>
mov    -0x10(%rbp),%rdi
lea    0xe78(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11a3 <get_code+0x63>
movl   $0x1,-0x14(%rbp)
jmp    15a6 <get_code+0x466>
mov    -0x10(%rbp),%rdi
lea    0xe55(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11c9 <get_code+0x89>
movl   $0x2,-0x14(%rbp)
jmp    15a1 <get_code+0x461>
mov    -0x10(%rbp),%rdi
lea    0xe33(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    11ef <get_code+0xaf>
movl   $0x3,-0x14(%rbp)
jmp    159c <get_code+0x45c>
mov    -0x10(%rbp),%rdi
lea    0xe12(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1215 <get_code+0xd5>
movl   $0x4,-0x14(%rbp)
jmp    1597 <get_code+0x457>
mov    -0x10(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    123b <get_code+0xfb>
movl   $0x5,-0x14(%rbp)
jmp    1592 <get_code+0x452>
mov    -0x10(%rbp),%rdi
lea    0xdd3(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1261 <get_code+0x121>
movl   $0x6,-0x14(%rbp)
jmp    158d <get_code+0x44d>
mov    -0x10(%rbp),%rdi
lea    0xdb5(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1287 <get_code+0x147>
movl   $0x7,-0x14(%rbp)
jmp    1588 <get_code+0x448>
mov    -0x10(%rbp),%rdi
lea    0xd98(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12ad <get_code+0x16d>
movl   $0x8,-0x14(%rbp)
jmp    1583 <get_code+0x443>
mov    -0x10(%rbp),%rdi
lea    0xd77(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12d3 <get_code+0x193>
movl   $0x9,-0x14(%rbp)
jmp    157e <get_code+0x43e>
mov    -0x10(%rbp),%rdi
lea    0xd56(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    12f9 <get_code+0x1b9>
movl   $0xa,-0x14(%rbp)
jmp    1579 <get_code+0x439>
mov    -0x10(%rbp),%rdi
lea    0xd36(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    131f <get_code+0x1df>
movl   $0xb,-0x14(%rbp)
jmp    1574 <get_code+0x434>
mov    -0x10(%rbp),%rdi
lea    0xd16(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1345 <get_code+0x205>
movl   $0xc,-0x14(%rbp)
jmp    156f <get_code+0x42f>
mov    -0x10(%rbp),%rdi
lea    0xcf8(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    136b <get_code+0x22b>
movl   $0xd,-0x14(%rbp)
jmp    156a <get_code+0x42a>
mov    -0x10(%rbp),%rdi
lea    0xcd7(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1391 <get_code+0x251>
movl   $0xe,-0x14(%rbp)
jmp    1565 <get_code+0x425>
mov    -0x10(%rbp),%rdi
lea    0xcbf(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13b7 <get_code+0x277>
movl   $0xf,-0x14(%rbp)
jmp    1560 <get_code+0x420>
mov    -0x10(%rbp),%rdi
lea    0xc9d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    13dd <get_code+0x29d>
movl   $0x10,-0x14(%rbp)
jmp    155b <get_code+0x41b>
mov    -0x10(%rbp),%rdi
lea    0xc7d(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1403 <get_code+0x2c3>
movl   $0x11,-0x14(%rbp)
jmp    1556 <get_code+0x416>
mov    -0x10(%rbp),%rdi
lea    0xc5f(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1429 <get_code+0x2e9>
movl   $0x12,-0x14(%rbp)
jmp    1551 <get_code+0x411>
mov    -0x10(%rbp),%rdi
lea    0xc40(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    144f <get_code+0x30f>
movl   $0x13,-0x14(%rbp)
jmp    154c <get_code+0x40c>
mov    -0x10(%rbp),%rdi
lea    0xc22(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    1475 <get_code+0x335>
movl   $0x14,-0x14(%rbp)
jmp    1547 <get_code+0x407>
mov    -0x10(%rbp),%rdi
lea    0xc04(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    149b <get_code+0x35b>
movl   $0x15,-0x14(%rbp)
jmp    1542 <get_code+0x402>
mov    -0x10(%rbp),%rdi
lea    0xbe9(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14c1 <get_code+0x381>
movl   $0x16,-0x14(%rbp)
jmp    153d <get_code+0x3fd>
mov    -0x10(%rbp),%rdi
lea    0xbce(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    14e7 <get_code+0x3a7>
movl   $0x17,-0x14(%rbp)
jmp    1538 <get_code+0x3f8>
mov    -0x10(%rbp),%rdi
lea    0xbb1(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    150d <get_code+0x3cd>
movl   $0x18,-0x14(%rbp)
jmp    1533 <get_code+0x3f3>
mov    -0x10(%rbp),%rdi
lea    0xb96(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%rax
jne    152e <get_code+0x3ee>
movl   $0x19,-0x14(%rbp)
jmp    1533 <get_code+0x3f3>
jmp    1538 <get_code+0x3f8>
jmp    153d <get_code+0x3fd>
jmp    1542 <get_code+0x402>
jmp    1547 <get_code+0x407>
jmp    154c <get_code+0x40c>
jmp    1551 <get_code+0x411>
jmp    1556 <get_code+0x416>
jmp    155b <get_code+0x41b>
jmp    1560 <get_code+0x420>
jmp    1565 <get_code+0x425>
jmp    156a <get_code+0x42a>
jmp    156f <get_code+0x42f>
jmp    1574 <get_code+0x434>
jmp    1579 <get_code+0x439>
jmp    157e <get_code+0x43e>
jmp    1583 <get_code+0x443>
jmp    1588 <get_code+0x448>
jmp    158d <get_code+0x44d>
jmp    1592 <get_code+0x452>
jmp    1597 <get_code+0x457>
jmp    159c <get_code+0x45c>
jmp    15a1 <get_code+0x461>
jmp    15a6 <get_code+0x466>
mov    -0x10(%rbp),%rdi
call   1030 <free@plt>
jmp    15b4 <get_code+0x474>
mov    -0x14(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_code>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
call   1040 <read_separator@plt>
xor    %ebp,%ebp
test   %rax,%rax
jne    1488 <get_code+0x348>
mov    %rbx,%rdi
call   1060 <read_word@plt>
test   %rax,%rax
je     1488 <get_code+0x348>
mov    %rax,%rbx
lea    0xe8f(%rip),%rsi
mov    %rax,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13cb <get_code+0x28b>
lea    0xe7a(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13d5 <get_code+0x295>
lea    0xe66(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13df <get_code+0x29f>
lea    0xe53(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13e9 <get_code+0x2a9>
lea    0xe40(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13f3 <get_code+0x2b3>
lea    0xe30(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     13fd <get_code+0x2bd>
lea    0xe20(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1404 <get_code+0x2c4>
lea    0xe11(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     140b <get_code+0x2cb>
lea    0xdfe(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1412 <get_code+0x2d2>
lea    0xdeb(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1419 <get_code+0x2d9>
lea    0xdd9(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1420 <get_code+0x2e0>
lea    0xdc7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1427 <get_code+0x2e7>
lea    0xdb7(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     142e <get_code+0x2ee>
lea    0xda4(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1435 <get_code+0x2f5>
lea    0xd9a(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     143c <get_code+0x2fc>
lea    0xd86(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1443 <get_code+0x303>
lea    0xd74(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     144a <get_code+0x30a>
lea    0xd64(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1451 <get_code+0x311>
lea    0xd53(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1458 <get_code+0x318>
lea    0xd43(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     145f <get_code+0x31f>
lea    0xd33(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1466 <get_code+0x326>
lea    0xd26(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     146d <get_code+0x32d>
lea    0xd19(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     1474 <get_code+0x334>
lea    0xd0a(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %rax,%rax
je     147b <get_code+0x33b>
lea    0xcfd(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
xor    %ecx,%ecx
test   %rax,%rax
mov    $0x19,%ebp
cmovne %ecx,%ebp
jmp    1480 <get_code+0x340>
mov    $0x1,%ebp
jmp    1480 <get_code+0x340>
mov    $0x2,%ebp
jmp    1480 <get_code+0x340>
mov    $0x3,%ebp
jmp    1480 <get_code+0x340>
mov    $0x4,%ebp
jmp    1480 <get_code+0x340>
mov    $0x5,%ebp
jmp    1480 <get_code+0x340>
mov    $0x6,%ebp
jmp    1480 <get_code+0x340>
mov    $0x7,%ebp
jmp    1480 <get_code+0x340>
mov    $0x8,%ebp
jmp    1480 <get_code+0x340>
mov    $0x9,%ebp
jmp    1480 <get_code+0x340>
mov    $0xa,%ebp
jmp    1480 <get_code+0x340>
mov    $0xb,%ebp
jmp    1480 <get_code+0x340>
mov    $0xc,%ebp
jmp    1480 <get_code+0x340>
mov    $0xd,%ebp
jmp    1480 <get_code+0x340>
mov    $0xe,%ebp
jmp    1480 <get_code+0x340>
mov    $0xf,%ebp
jmp    1480 <get_code+0x340>
mov    $0x10,%ebp
jmp    1480 <get_code+0x340>
mov    $0x11,%ebp
jmp    1480 <get_code+0x340>
mov    $0x12,%ebp
jmp    1480 <get_code+0x340>
mov    $0x13,%ebp
jmp    1480 <get_code+0x340>
mov    $0x14,%ebp
jmp    1480 <get_code+0x340>
mov    $0x15,%ebp
jmp    1480 <get_code+0x340>
mov    $0x16,%ebp
jmp    1480 <get_code+0x340>
mov    $0x17,%ebp
jmp    1480 <get_code+0x340>
mov    $0x18,%ebp
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"OK\00"
@.str.1 = [4 x i8] c"ERR\00"
@.str.2 = [5 x i8] c"PING\00"
@.str.3 = [5 x i8] c"ECHO\00"
@.str.4 = [8 x i8] c"PROGRAM\00"
@.str.5 = [8 x i8] c"VERSION\00"
@.str.6 = [9 x i8] c"PASSWORD\00"
@.str.7 = [5 x i8] c"FREE\00"
@.str.8 = [5 x i8] c"TEAM\00"
@.str.9 = [6 x i8] c"READY\00"
@.str.10 = [6 x i8] c"START\00"
@.str.11 = [8 x i8] c"WAITING\00"
@.str.12 = [5 x i8] c"NEXT\00"
@.str.13 = [14 x i8] c"TEAMSTARTINFO\00"
@.str.14 = [4 x i8] c"WHO\00"
@.str.15 = [6 x i8] c"LOCAL\00"
@.str.16 = [8 x i8] c"NETWORK\00"
@.str.17 = [7 x i8] c"NOBODY\00"
@.str.18 = [8 x i8] c"SENDMAP\00"
@.str.19 = [8 x i8] c"RECVMAP\00"
@.str.20 = [11 x i8] c"SENDCONFIG\00"
@.str.21 = [11 x i8] c"RECVCONFIG\00"
@.str.22 = [9 x i8] c"CHATTALK\00"
@.str.23 = [11 x i8] c"CHATLISTEN\00"
@.str.24 = [5 x i8] c"QUIT\00"
define i32 @get_code(i8** %0) {
%2 = alloca i8**
%3 = alloca i8*
%4 = alloca i32
store i8** %0, i8*** %2
store i32 0, i32* %4
%5 = load i8**, i8*** %2
%6 = call i64 @read_separator(i8** %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %8, label %165
8: ; preds = %1
%9 = load i8**, i8*** %2
%10 = call i8* @read_word(i8** %9)
store i8* %10, i8** %3
%11 = icmp ne i8* %10, null
br i1 %11, label %12, label %164
12: ; preds = %8
%13 = load i8*, i8** %3
%14 = call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %17
16: ; preds = %12
store i32 1, i32* %4
br label %161
17: ; preds = %12
%18 = load i8*, i8** %3
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %17
store i32 2, i32* %4
br label %160
22: ; preds = %17
%23 = load i8*, i8** %3
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %27
26: ; preds = %22
store i32 3, i32* %4
br label %159
27: ; preds = %22
%28 = load i8*, i8** %3
%29 = call i64 @strcmp(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %32
31: ; preds = %27
store i32 4, i32* %4
br label %158
32: ; preds = %27
%33 = load i8*, i8** %3
%34 = call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %37
36: ; preds = %32
store i32 5, i32* %4
br label %157
37: ; preds = %32
%38 = load i8*, i8** %3
%39 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %42
41: ; preds = %37
store i32 6, i32* %4
br label %156
42: ; preds = %37
%43 = load i8*, i8** %3
%44 = call i64 @strcmp(i8* %43, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %47
46: ; preds = %42
store i32 7, i32* %4
br label %155
47: ; preds = %42
%48 = load i8*, i8** %3
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %52
51: ; preds = %47
store i32 8, i32* %4
br label %154
52: ; preds = %47
%53 = load i8*, i8** %3
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %57
56: ; preds = %52
store i32 9, i32* %4
br label %153
57: ; preds = %52
%58 = load i8*, i8** %3
%59 = call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %62
61: ; preds = %57
store i32 10, i32* %4
br label %152
62: ; preds = %57
%63 = load i8*, i8** %3
%64 = call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %67
66: ; preds = %62
store i32 11, i32* %4
br label %151
67: ; preds = %62
%68 = load i8*, i8** %3
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %72
71: ; preds = %67
store i32 12, i32* %4
br label %150
72: ; preds = %67
%73 = load i8*, i8** %3
%74 = call i64 @strcmp(i8* %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %77
76: ; preds = %72
store i32 13, i32* %4
br label %149
77: ; preds = %72
%78 = load i8*, i8** %3
%79 = call i64 @strcmp(i8* %78, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%80 = icmp eq i64 %79, 0
br i1 %80, label %81, label %82
81: ; preds = %77
store i32 14, i32* %4
br label %148
82: ; preds = %77
%83 = load i8*, i8** %3
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %87
86: ; preds = %82
store i32 15, i32* %4
br label %147
87: ; preds = %82
%88 = load i8*, i8** %3
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %92
91: ; preds = %87
store i32 16, i32* %4
br label %146
92: ; preds = %87
%93 = load i8*, i8** %3
%94 = call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %97
96: ; preds = %92
store i32 17, i32* %4
br label %145
97: ; preds = %92
%98 = load i8*, i8** %3
%99 = call i64 @strcmp(i8* %98, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%100 = icmp eq i64 %99, 0
br i1 %100, label %101, label %102
101: ; preds = %97
store i32 18, i32* %4
br label %144
102: ; preds = %97
%103 = load i8*, i8** %3
%104 = call i64 @strcmp(i8* %103, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %107
106: ; preds = %102
store i32 19, i32* %4
br label %143
107: ; preds = %102
%108 = load i8*, i8** %3
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %112
111: ; preds = %107
store i32 20, i32* %4
br label %142
112: ; preds = %107
%113 = load i8*, i8** %3
%114 = call i64 @strcmp(i8* %113, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %117
116: ; preds = %112
store i32 21, i32* %4
br label %141
117: ; preds = %112
%118 = load i8*, i8** %3
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %122
121: ; preds = %117
store i32 22, i32* %4
br label %140
122: ; preds = %117
%123 = load i8*, i8** %3
%124 = call i64 @strcmp(i8* %123, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0))
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %127
126: ; preds = %122
store i32 23, i32* %4
br label %139
127: ; preds = %122
%128 = load i8*, i8** %3
%129 = call i64 @strcmp(i8* %128, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %132
131: ; preds = %127
store i32 24, i32* %4
br label %138
132: ; preds = %127
%133 = load i8*, i8** %3
%134 = call i64 @strcmp(i8* %133, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %137
136: ; preds = %132
store i32 25, i32* %4
br label %137
137: ; preds = %136, %132
br label %138
138: ; preds = %137, %131
br label %139
139: ; preds = %138, %126
br label %140
140: ; preds = %139, %121
br label %141
141: ; preds = %140, %116
br label %142
142: ; preds = %141, %111
br label %143
143: ; preds = %142, %106
br label %144
144: ; preds = %143, %101
br label %145
145: ; preds = %144, %96
br label %146
146: ; preds = %145, %91
br label %147
147: ; preds = %146, %86
br label %148
148: ; preds = %147, %81
br label %149
149: ; preds = %148, %76
br label %150
150: ; preds = %149, %71
br label %151
151: ; preds = %150, %66
br label %152
152: ; preds = %151, %61
br label %153
153: ; preds = %152, %56
br label %154
154: ; preds = %153, %51
br label %155
155: ; preds = %154, %46
br label %156
156: ; preds = %155, %41
br label %157
157: ; preds = %156, %36
br label %158
158: ; preds = %157, %31
br label %159
159: ; preds = %158, %26
br label %160
160: ; preds = %159, %21
br label %161
161: ; preds = %160, %16
%162 = load i8*, i8** %3
%163 = call i32 @free(i8* %162)
br label %164
164: ; preds = %161, %8
br label %165
165: ; preds = %164, %1
%166 = load i32, i32* %4
ret i32 %166
}

LLVM IR (-O2):
@.str = [3 x i8] c"OK\00"
@.str.1 = [4 x i8] c"ERR\00"
@.str.2 = [5 x i8] c"PING\00"
@.str.3 = [5 x i8] c"ECHO\00"
@.str.4 = [8 x i8] c"PROGRAM\00"
@.str.5 = [8 x i8] c"VERSION\00"
@.str.6 = [9 x i8] c"PASSWORD\00"
@.str.7 = [5 x i8] c"FREE\00"
@.str.8 = [5 x i8] c"TEAM\00"
@.str.9 = [6 x i8] c"READY\00"
@.str.10 = [6 x i8] c"START\00"
@.str.11 = [8 x i8] c"WAITING\00"
@.str.12 = [5 x i8] c"NEXT\00"
@.str.13 = [14 x i8] c"TEAMSTARTINFO\00"
@.str.14 = [4 x i8] c"WHO\00"
@.str.15 = [6 x i8] c"LOCAL\00"
@.str.16 = [8 x i8] c"NETWORK\00"
@.str.17 = [7 x i8] c"NOBODY\00"
@.str.18 = [8 x i8] c"SENDMAP\00"
@.str.19 = [8 x i8] c"RECVMAP\00"
@.str.20 = [11 x i8] c"SENDCONFIG\00"
@.str.21 = [11 x i8] c"RECVCONFIG\00"
@.str.22 = [9 x i8] c"CHATTALK\00"
@.str.23 = [11 x i8] c"CHATLISTEN\00"
@.str.24 = [5 x i8] c"QUIT\00"
define i32 @get_code(i8** %0) {
%2 = tail call i64 @read_separator(i8** %0)
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %86
4: ; preds = %1
%5 = tail call i8* @read_word(i8** %0)
%6 = icmp eq i8* %5, null
br i1 %6, label %86, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %83, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %83, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %83, label %16
16: ; preds = %13
%17 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %83, label %19
19: ; preds = %16
%20 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %83, label %22
22: ; preds = %19
%23 = tail call i64 @strcmp(i8* %5, 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 %83, label %25
25: ; preds = %22
%26 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %83, label %28
28: ; preds = %25
%29 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %83, label %31
31: ; preds = %28
%32 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %83, label %34
34: ; preds = %31
%35 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %83, label %37
37: ; preds = %34
%38 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %83, label %40
40: ; preds = %37
%41 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %83, label %43
43: ; preds = %40
%44 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %83, label %46
46: ; preds = %43
%47 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.13, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %83, label %49
49: ; preds = %46
%50 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %83, label %52
52: ; preds = %49
%53 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %83, label %55
55: ; preds = %52
%56 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %83, label %58
58: ; preds = %55
%59 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.17, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %83, label %61
61: ; preds = %58
%62 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %83, label %64
64: ; preds = %61
%65 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.19, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %83, label %67
67: ; preds = %64
%68 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.20, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %83, label %70
70: ; preds = %67
%71 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.21, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %83, label %73
73: ; preds = %70
%74 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.22, i64 0, i64 0))
%75 = icmp eq i64 %74, 0
br i1 %75, label %83, label %76
76: ; preds = %73
%77 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %83, label %79
79: ; preds = %76
%80 = tail call i64 @strcmp(i8* %5, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0))
%81 = icmp eq i64 %80, 0
%82 = select i1 %81, i32 25, i32 0
br label %83
83: ; preds = %79, %76, %73, %70, %67, %64, %61, %58, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7
%84 = phi i32 [ 1, %7 ], [ 2, %10 ], [ 3, %13 ], [ 4, %16 ], [ 5, %19 ], [ 6, %22 ], [ 7, %25 ], [ 8, %28 ], [ 9, %31 ], [ 10, %34 ], [ 11, %37 ], [ 12, %40 ], [ 13, %43 ], [ 14, %46 ], [ 15, %49 ], [ 16, %52 ], [ 17, %55 ], [ 18, %58 ], [ 19, %61 ], [ 20, %64 ], [ 21, %67 ], [ 22, %70 ], [ 23, %73 ], [ 24, %76 ], [ %82, %79 ]
%85 = tail call i32 @free(i8* %5)
br label %86
86: ; preds = %4, %83, %1
%87 = phi i32 [ %84, %83 ], [ 0, %4 ], [ 0, %1 ]
ret i32 %87
}