#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*/ child_ctcp(char *);
int /*<<< orphan*/ child_disconnect(char *);
int /*<<< orphan*/ child_irc(char *);
int /*<<< orphan*/ child_join(char *);
int /*<<< orphan*/ child_kick(char *);
int /*<<< orphan*/ child_mode(char *);
int /*<<< orphan*/ child_msg(char *);
int /*<<< orphan*/ child_nick(char *);
int /*<<< orphan*/ child_notice(char *);
int /*<<< orphan*/ child_part(char *);
int /*<<< orphan*/ child_reconnect(char *);
int /*<<< orphan*/ child_topic(char *);
int /*<<< orphan*/ log_add(int, int /*<<< orphan*/ *, int, char *, ...);
scalar_t__ strcmp(char *, char *);
char *strtok(char *, char *);
int parse_child_input(char *msg) {
  char *cmd, *param;
  cmd = strtok(msg, " ");
  param = strtok(NULL, "");
  if (cmd == NULL) {
    log_add(-1, NULL, 0x00000004, "Garbage child input: no command");
    return 4;
  }
  if (strcmp(cmd, "OK") == 0)
    return 2;
  else if (strcmp(cmd, "FAIL") == 0)
    return 3;
  if (strcmp(cmd, "MSG") == 0)
    child_msg(param);
  else if (strcmp(cmd, "CTCP") == 0)
    child_ctcp(param);
  else if (strcmp(cmd, "NOTICE") == 0)
    child_notice(param);
  else if (strcmp(cmd, "JOIN") == 0)
    child_join(param);
  else if (strcmp(cmd, "PART") == 0)
    child_part(param);
  else if (strcmp(cmd, "TOPIC") == 0)
    child_topic(param);
  else if (strcmp(cmd, "DISCONNECT") == 0)
    child_disconnect(param);
  else if (strcmp(cmd, "RECONNECT") == 0)
    child_reconnect(param);
  else if (strcmp(cmd, "NICK") == 0)
    child_nick(param);
  else if (strcmp(cmd, "MODE") == 0)
    child_mode(param);
  else if (strcmp(cmd, "KICK") == 0)
    child_kick(param);
  else if (strcmp(cmd, "IRC") == 0)
    child_irc(param);
  else {
    log_add(-1, NULL, 0x00000002, "Garbage child input: unknown command `%s'.",
            cmd);
    return 4;
  }
  return 1;
}


x86 assembly (clang, -O0):
<parse_child_input>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xdf9(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x18(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xde6(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1257 <parse_child_input+0x67>
mov    $0xffffffff,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x4,%edx
lea    0xdbe(%rip),%rcx
mov    $0x0,%al
call   10d0 <log_add@plt>
movl   $0x4,-0x4(%rbp)
jmp    14f2 <parse_child_input+0x302>
mov    -0x18(%rbp),%rdi
lea    0xdc0(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    127d <parse_child_input+0x8d>
movl   $0x2,-0x4(%rbp)
jmp    14f2 <parse_child_input+0x302>
mov    -0x18(%rbp),%rdi
lea    0xd9d(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    12a3 <parse_child_input+0xb3>
movl   $0x3,-0x4(%rbp)
jmp    14f2 <parse_child_input+0x302>
jmp    12a8 <parse_child_input+0xb8>
mov    -0x18(%rbp),%rdi
lea    0xd77(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    12d0 <parse_child_input+0xe0>
mov    -0x20(%rbp),%rdi
call   10b0 <child_msg@plt>
jmp    14eb <parse_child_input+0x2fb>
mov    -0x18(%rbp),%rdi
lea    0xd53(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    12f8 <parse_child_input+0x108>
mov    -0x20(%rbp),%rdi
call   1110 <child_ctcp@plt>
jmp    14e6 <parse_child_input+0x2f6>
mov    -0x18(%rbp),%rdi
lea    0xd30(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1320 <parse_child_input+0x130>
mov    -0x20(%rbp),%rdi
call   1100 <child_notice@plt>
jmp    14e1 <parse_child_input+0x2f1>
mov    -0x18(%rbp),%rdi
lea    0xd0f(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1348 <parse_child_input+0x158>
mov    -0x20(%rbp),%rdi
call   1070 <child_join@plt>
jmp    14dc <parse_child_input+0x2ec>
mov    -0x18(%rbp),%rdi
lea    0xcec(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1370 <parse_child_input+0x180>
mov    -0x20(%rbp),%rdi
call   1030 <child_part@plt>
jmp    14d7 <parse_child_input+0x2e7>
mov    -0x18(%rbp),%rdi
lea    0xcc9(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1398 <parse_child_input+0x1a8>
mov    -0x20(%rbp),%rdi
call   1040 <child_topic@plt>
jmp    14d2 <parse_child_input+0x2e2>
mov    -0x18(%rbp),%rdi
lea    0xca7(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13c0 <parse_child_input+0x1d0>
mov    -0x20(%rbp),%rdi
call   10e0 <child_disconnect@plt>
jmp    14cd <parse_child_input+0x2dd>
mov    -0x18(%rbp),%rdi
lea    0xc8a(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    13e8 <parse_child_input+0x1f8>
mov    -0x20(%rbp),%rdi
call   10a0 <child_reconnect@plt>
jmp    14c8 <parse_child_input+0x2d8>
mov    -0x18(%rbp),%rdi
lea    0xc6c(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1410 <parse_child_input+0x220>
mov    -0x20(%rbp),%rdi
call   1050 <child_nick@plt>
jmp    14c3 <parse_child_input+0x2d3>
mov    -0x18(%rbp),%rdi
lea    0xc49(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1438 <parse_child_input+0x248>
mov    -0x20(%rbp),%rdi
call   10c0 <child_mode@plt>
jmp    14be <parse_child_input+0x2ce>
mov    -0x18(%rbp),%rdi
lea    0xc26(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1460 <parse_child_input+0x270>
mov    -0x20(%rbp),%rdi
call   1080 <child_kick@plt>
jmp    14b9 <parse_child_input+0x2c9>
mov    -0x18(%rbp),%rdi
lea    0xc03(%rip),%rsi
call   1090 <strcmp@plt>
cmp    $0x0,%rax
jne    1488 <parse_child_input+0x298>
mov    -0x20(%rbp),%rdi
call   1060 <child_irc@plt>
jmp    14b4 <parse_child_input+0x2c4>
mov    -0x18(%rbp),%r8
mov    $0xffffffff,%edi
xor    %eax,%eax
mov    %eax,%esi
mov    $0x2,%edx
lea    0xbd1(%rip),%rcx
mov    $0x0,%al
call   10d0 <log_add@plt>
movl   $0x4,-0x4(%rbp)
jmp    14f2 <parse_child_input+0x302>
jmp    14b9 <parse_child_input+0x2c9>
jmp    14be <parse_child_input+0x2ce>
jmp    14c3 <parse_child_input+0x2d3>
jmp    14c8 <parse_child_input+0x2d8>
jmp    14cd <parse_child_input+0x2dd>
jmp    14d2 <parse_child_input+0x2e2>
jmp    14d7 <parse_child_input+0x2e7>
jmp    14dc <parse_child_input+0x2ec>
jmp    14e1 <parse_child_input+0x2f1>
jmp    14e6 <parse_child_input+0x2f6>
jmp    14eb <parse_child_input+0x2fb>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_child_input>:
push   %r14
push   %rbx
push   %rax
lea    0xe05(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,%rbx
lea    0xdf7(%rip),%rsi
xor    %edi,%edi
call   10f0 <strtok@plt>
test   %rbx,%rbx
je     1394 <parse_child_input+0x1a4>
mov    %rax,%r14
lea    0xdfe(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13b8 <parse_child_input+0x1c8>
lea    0xde9(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13c2 <parse_child_input+0x1d2>
lea    0xdd6(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13c9 <parse_child_input+0x1d9>
lea    0xdc2(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13d3 <parse_child_input+0x1e3>
lea    0xdaf(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13dd <parse_child_input+0x1ed>
lea    0xd9e(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13e7 <parse_child_input+0x1f7>
lea    0xd8b(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13f1 <parse_child_input+0x201>
lea    0xd78(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13fb <parse_child_input+0x20b>
lea    0xd66(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1405 <parse_child_input+0x215>
lea    0xd59(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     140f <parse_child_input+0x21f>
lea    0xd4b(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1419 <parse_child_input+0x229>
lea    0xd38(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1423 <parse_child_input+0x233>
lea    0xd25(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     142d <parse_child_input+0x23d>
lea    0xd12(%rip),%rsi
mov    %rbx,%rdi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1437 <parse_child_input+0x247>
lea    0xcfe(%rip),%rcx
mov    $0xffffffff,%edi
xor    %esi,%esi
mov    $0x2,%edx
mov    %rbx,%r8
xor    %eax,%eax
call   10d0 <log_add@plt>
mov    $0x4,%ebx
jmp    1444 <parse_child_input+0x254>
lea    0xc67(%rip),%rcx
mov    $0x4,%ebx
mov    $0xffffffff,%edi
xor    %esi,%esi
mov    $0x4,%edx
xor    %eax,%eax
call   10d0 <log_add@plt>
jmp    1444 <parse_child_input+0x254>
mov    $0x2,%ebx
jmp    1444 <parse_child_input+0x254>
mov    $0x3,%ebx
jmp    1444 <parse_child_input+0x254>
mov    %r14,%rdi
call   10b0 <child_msg@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1110 <child_ctcp@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1100 <child_notice@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1070 <child_join@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1030 <child_part@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1040 <child_topic@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   10e0 <child_disconnect@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   10a0 <child_reconnect@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1050 <child_nick@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   10c0 <child_mode@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1080 <child_kick@plt>
jmp    143f <parse_child_input+0x24f>
mov    %r14,%rdi
call   1060 <child_irc@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [32 x i8] c"Garbage child input: no command\00"
@.str.3 = [3 x i8] c"OK\00"
@.str.4 = [5 x i8] c"FAIL\00"
@.str.5 = [4 x i8] c"MSG\00"
@.str.6 = [5 x i8] c"CTCP\00"
@.str.7 = [7 x i8] c"NOTICE\00"
@.str.8 = [5 x i8] c"JOIN\00"
@.str.9 = [5 x i8] c"PART\00"
@.str.10 = [6 x i8] c"TOPIC\00"
@.str.11 = [11 x i8] c"DISCONNECT\00"
@.str.12 = [10 x i8] c"RECONNECT\00"
@.str.13 = [5 x i8] c"NICK\00"
@.str.14 = [5 x i8] c"MODE\00"
@.str.15 = [5 x i8] c"KICK\00"
@.str.16 = [4 x i8] c"IRC\00"
@.str.17 = [43 x i8] c"Garbage child input: unknown command `%s'.\00"
define i32 @parse_child_input(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
store i8* %0, i8** %3
%6 = load i8*, i8** %3
%7 = call i8* @strtok(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i8* %7, i8** %4
%8 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
store i8* %8, i8** %5
%9 = load i8*, i8** %4
%10 = icmp eq i8* %9, null
br i1 %10, label %11, label %13
11: ; preds = %1
%12 = call i32 (i32, i32*, i32, i8*, ...) @log_add(i32 -1, i32* null, i32 4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
store i32 4, i32* %2
br label %123
13: ; preds = %1
%14 = load i8*, i8** %4
%15 = call i64 @strcmp(i8* %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %13
store i32 2, i32* %2
br label %123
18: ; preds = %13
%19 = load i8*, i8** %4
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %23
22: ; preds = %18
store i32 3, i32* %2
br label %123
23: ; preds = %18
br label %24
24: ; preds = %23
%25 = load i8*, i8** %4
%26 = call i64 @strcmp(i8* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %31
28: ; preds = %24
%29 = load i8*, i8** %5
%30 = call i32 @child_msg(i8* %29)
br label %122
31: ; preds = %24
%32 = load i8*, i8** %4
%33 = call i64 @strcmp(i8* %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%34 = icmp eq i64 %33, 0
br i1 %34, label %35, label %38
35: ; preds = %31
%36 = load i8*, i8** %5
%37 = call i32 @child_ctcp(i8* %36)
br label %121
38: ; preds = %31
%39 = load i8*, i8** %4
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %45
42: ; preds = %38
%43 = load i8*, i8** %5
%44 = call i32 @child_notice(i8* %43)
br label %120
45: ; preds = %38
%46 = load i8*, i8** %4
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %52
49: ; preds = %45
%50 = load i8*, i8** %5
%51 = call i32 @child_join(i8* %50)
br label %119
52: ; preds = %45
%53 = load i8*, i8** %4
%54 = call i64 @strcmp(i8* %53, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %59
56: ; preds = %52
%57 = load i8*, i8** %5
%58 = call i32 @child_part(i8* %57)
br label %118
59: ; preds = %52
%60 = load i8*, i8** %4
%61 = call i64 @strcmp(i8* %60, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i8*, i8** %5
%65 = call i32 @child_topic(i8* %64)
br label %117
66: ; preds = %59
%67 = load i8*, i8** %4
%68 = call i64 @strcmp(i8* %67, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
br i1 %69, label %70, label %73
70: ; preds = %66
%71 = load i8*, i8** %5
%72 = call i32 @child_disconnect(i8* %71)
br label %116
73: ; preds = %66
%74 = load i8*, i8** %4
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %80
77: ; preds = %73
%78 = load i8*, i8** %5
%79 = call i32 @child_reconnect(i8* %78)
br label %115
80: ; preds = %73
%81 = load i8*, i8** %4
%82 = call i64 @strcmp(i8* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %87
84: ; preds = %80
%85 = load i8*, i8** %5
%86 = call i32 @child_nick(i8* %85)
br label %114
87: ; preds = %80
%88 = load i8*, i8** %4
%89 = call i64 @strcmp(i8* %88, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%90 = icmp eq i64 %89, 0
br i1 %90, label %91, label %94
91: ; preds = %87
%92 = load i8*, i8** %5
%93 = call i32 @child_mode(i8* %92)
br label %113
94: ; preds = %87
%95 = load i8*, i8** %4
%96 = call i64 @strcmp(i8* %95, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%97 = icmp eq i64 %96, 0
br i1 %97, label %98, label %101
98: ; preds = %94
%99 = load i8*, i8** %5
%100 = call i32 @child_kick(i8* %99)
br label %112
101: ; preds = %94
%102 = load i8*, i8** %4
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %108
105: ; preds = %101
%106 = load i8*, i8** %5
%107 = call i32 @child_irc(i8* %106)
br label %111
108: ; preds = %101
%109 = load i8*, i8** %4
%110 = call i32 (i32, i32*, i32, i8*, ...) @log_add(i32 -1, i32* null, i32 2, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.17, i64 0, i64 0), i8* %109)
store i32 4, i32* %2
br label %123
111: ; preds = %105
br label %112
112: ; preds = %111, %98
br label %113
113: ; preds = %112, %91
br label %114
114: ; preds = %113, %84
br label %115
115: ; preds = %114, %77
br label %116
116: ; preds = %115, %70
br label %117
117: ; preds = %116, %63
br label %118
118: ; preds = %117, %56
br label %119
119: ; preds = %118, %49
br label %120
120: ; preds = %119, %42
br label %121
121: ; preds = %120, %35
br label %122
122: ; preds = %121, %28
store i32 1, i32* %2
br label %123
123: ; preds = %122, %108, %22, %17, %11
%124 = load i32, i32* %2
ret i32 %124
}

LLVM IR (-O2):
@.str = [2 x i8] c" \00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [32 x i8] c"Garbage child input: no command\00"
@.str.3 = [3 x i8] c"OK\00"
@.str.4 = [5 x i8] c"FAIL\00"
@.str.5 = [4 x i8] c"MSG\00"
@.str.6 = [5 x i8] c"CTCP\00"
@.str.7 = [7 x i8] c"NOTICE\00"
@.str.8 = [5 x i8] c"JOIN\00"
@.str.9 = [5 x i8] c"PART\00"
@.str.10 = [6 x i8] c"TOPIC\00"
@.str.11 = [11 x i8] c"DISCONNECT\00"
@.str.12 = [10 x i8] c"RECONNECT\00"
@.str.13 = [5 x i8] c"NICK\00"
@.str.14 = [5 x i8] c"MODE\00"
@.str.15 = [5 x i8] c"KICK\00"
@.str.16 = [4 x i8] c"IRC\00"
@.str.17 = [43 x i8] c"Garbage child input: unknown command `%s'.\00"
define i32 @parse_child_input(i8* %0) {
%2 = tail call i8* @strtok(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%3 = tail call i8* @strtok(i8* null, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%4 = icmp eq i8* %2, null
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = tail call i32 (i32, i32*, i32, i8*, ...) @log_add(i32 -1, i32* null, i32 4, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0))
br label %75
7: ; preds = %1
%8 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %75, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %75, label %13
13: ; preds = %10
%14 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %13
%17 = tail call i32 @child_msg(i8* %3)
br label %75
18: ; preds = %13
%19 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %23
21: ; preds = %18
%22 = tail call i32 @child_ctcp(i8* %3)
br label %75
23: ; preds = %18
%24 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %23
%27 = tail call i32 @child_notice(i8* %3)
br label %75
28: ; preds = %23
%29 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = tail call i32 @child_join(i8* %3)
br label %75
33: ; preds = %28
%34 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %33
%37 = tail call i32 @child_part(i8* %3)
br label %75
38: ; preds = %33
%39 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = tail call i32 @child_topic(i8* %3)
br label %75
43: ; preds = %38
%44 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 @child_disconnect(i8* %3)
br label %75
48: ; preds = %43
%49 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = tail call i32 @child_reconnect(i8* %3)
br label %75
53: ; preds = %48
%54 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%55 = icmp eq i64 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %53
%57 = tail call i32 @child_nick(i8* %3)
br label %75
58: ; preds = %53
%59 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %58
%62 = tail call i32 @child_mode(i8* %3)
br label %75
63: ; preds = %58
%64 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %63
%67 = tail call i32 @child_kick(i8* %3)
br label %75
68: ; preds = %63
%69 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %68
%72 = tail call i32 @child_irc(i8* %3)
br label %75
73: ; preds = %68
%74 = tail call i32 (i32, i32*, i32, i8*, ...) @log_add(i32 -1, i32* null, i32 2, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.17, i64 0, i64 0), i8* %2)
br label %75
75: ; preds = %16, %26, %36, %46, %56, %66, %71, %61, %51, %41, %31, %21, %10, %7, %73, %5
%76 = phi i32 [ 4, %5 ], [ 4, %73 ], [ 2, %7 ], [ 3, %10 ], [ 1, %21 ], [ 1, %31 ], [ 1, %41 ], [ 1, %51 ], [ 1, %61 ], [ 1, %71 ], [ 1, %66 ], [ 1, %56 ], [ 1, %46 ], [ 1, %36 ], [ 1, %26 ], [ 1, %16 ]
ret i32 %76
}