#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ command_add(char const *, char const *const *, char const *,
                               int);
int /*<<< orphan*/ command_check(char const *, char const *const *,
                                 char const *, int);
int /*<<< orphan*/ command_finish(char const *, char const *const *,
                                  char const *, int);
int /*<<< orphan*/ command_help(char const *, char const *const *, char const *,
                                int);
int /*<<< orphan*/ command_initialize(char const *, char const *const *,
                                      char const *, int);
int /*<<< orphan*/ command_invariant(char const *, char const *const *,
                                     char const *, int);
int /*<<< orphan*/ command_map(char const *, char const *const *, char const *,
                               int);
int /*<<< orphan*/ command_read(char const *, char const *const *, char const *,
                                int);
int /*<<< orphan*/ command_tabsize(char const *, char const *const *,
                                   char const *, int);
int /*<<< orphan*/ command_write(char const *, char const *const *,
                                 char const *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char const *, int,
                           char const *const);
int /*<<< orphan*/ stderr;
scalar_t__ strcasecmp(char const *const, char *);
scalar_t__ strncasecmp(char const *const, char *, int);
int command(char const *progname, char const *const *argv, FILE *fp,
            char const *filename, int line) {
  if (strcasecmp(argv[0], "quit") == 0)
    return 1;
  else if (strcasecmp(argv[0], "add") == 0)
    command_add(progname, argv, filename, line);
  else if (strncasecmp(argv[0], "initialize", 3) == 0)
    command_initialize(progname, argv, filename, line);
  else if (strncasecmp(argv[0], "invariant", 3) == 0)
    command_invariant(progname, argv, filename, line);
  else if (strncasecmp(argv[0], "finish", 3) == 0)
    command_finish(progname, argv, filename, line);
  else if (strcasecmp(argv[0], "tabsize") == 0)
    command_tabsize(progname, argv, filename, line);
  else if (strcasecmp(argv[0], "help") == 0)
    command_help(progname, argv, filename, line);
  else if (strcasecmp(argv[0], "write") == 0)
    command_write(progname, argv, filename, line);
  else if (strcasecmp(argv[0], "read") == 0)
    command_read(progname, argv, filename, line);
  else if (strcasecmp(argv[0], "check") == 0)
    command_check(progname, argv, filename, line);
  else if (strcasecmp(argv[0], "map") == 0)
    command_map(progname, argv, filename, line);
  else {
    fprintf(stderr,
            "%s:%d: unknown command \"%s\" -- "
            "try \"help\"?\n",
            filename, line, argv[0]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<command>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xe06(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1215 <command+0x45>
movl   $0x1,-0x4(%rbp)
jmp    149c <command+0x2cc>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xde2(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    124b <command+0x7b>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   10a0 <command_add@plt>
jmp    1490 <command+0x2c0>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xdb0(%rip),%rsi
mov    $0x3,%edx
call   10d0 <strncasecmp@plt>
cmp    $0x0,%rax
jne    1286 <command+0xb6>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1080 <command_initialize@plt>
jmp    148b <command+0x2bb>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xd80(%rip),%rsi
mov    $0x3,%edx
call   10d0 <strncasecmp@plt>
cmp    $0x0,%rax
jne    12c1 <command+0xf1>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   10c0 <command_invariant@plt>
jmp    1486 <command+0x2b6>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xd4f(%rip),%rsi
mov    $0x3,%edx
call   10d0 <strncasecmp@plt>
cmp    $0x0,%rax
jne    12fc <command+0x12c>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1070 <command_finish@plt>
jmp    1481 <command+0x2b1>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xd1b(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1332 <command+0x162>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1030 <command_tabsize@plt>
jmp    147c <command+0x2ac>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xced(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1368 <command+0x198>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1060 <command_help@plt>
jmp    1477 <command+0x2a7>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xcbc(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    139e <command+0x1ce>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   10e0 <command_write@plt>
jmp    1472 <command+0x2a2>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xc8c(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    13d4 <command+0x204>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1050 <command_read@plt>
jmp    146d <command+0x29d>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xc5b(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    140a <command+0x23a>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   1090 <command_check@plt>
jmp    1468 <command+0x298>
mov    -0x18(%rbp),%rax
mov    (%rax),%rdi
lea    0xc2b(%rip),%rsi
call   1040 <strcasecmp@plt>
cmp    $0x0,%rax
jne    1440 <command+0x270>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
call   10f0 <command_map@plt>
jmp    1463 <command+0x293>
mov    0x2b99(%rip),%rax
mov    (%rax),%edi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    -0x18(%rbp),%rax
mov    (%rax),%r8
lea    0xbe9(%rip),%rsi
call   10b0 <fprintf@plt>
jmp    1468 <command+0x298>
jmp    146d <command+0x29d>
jmp    1472 <command+0x2a2>
jmp    1477 <command+0x2a7>
jmp    147c <command+0x2ac>
jmp    1481 <command+0x2b1>
jmp    1486 <command+0x2b6>
jmp    148b <command+0x2bb>
jmp    1490 <command+0x2c0>
jmp    1495 <command+0x2c5>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<command>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %r8d,%r14d
mov    %rcx,%r15
mov    %rsi,%rbp
mov    %rdi,%r12
mov    (%rsi),%rbx
lea    0xe12(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     1321 <command+0x151>
lea    0xdff(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     132b <command+0x15b>
lea    0xdeb(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   10d0 <strncasecmp@plt>
test   %rax,%rax
je     1341 <command+0x171>
lea    0xdd9(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   10d0 <strncasecmp@plt>
test   %rax,%rax
je     1357 <command+0x187>
lea    0xdc6(%rip),%rsi
mov    %rbx,%rdi
mov    $0x3,%edx
call   10d0 <strncasecmp@plt>
test   %rax,%rax
je     136d <command+0x19d>
lea    0xdb0(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     1380 <command+0x1b0>
lea    0xda0(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     1393 <command+0x1c3>
lea    0xd8d(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     13a6 <command+0x1d6>
lea    0xd7b(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     13b9 <command+0x1e9>
lea    0xd68(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     13cc <command+0x1fc>
lea    0xd56(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcasecmp@plt>
test   %rax,%rax
je     13df <command+0x20f>
mov    0x2cdb(%rip),%rax
mov    (%rax),%edi
lea    0xd39(%rip),%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
mov    %rbx,%r8
call   10b0 <fprintf@plt>
jmp    13f0 <command+0x220>
mov    $0x1,%eax
jmp    13f2 <command+0x222>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   10a0 <command_add@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1080 <command_initialize@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   10c0 <command_invariant@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1070 <command_finish@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1030 <command_tabsize@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1060 <command_help@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   10e0 <command_write@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1050 <command_read@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1090 <command_check@plt>
jmp    13f0 <command+0x220>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   10f0 <command_map@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"quit\00"
@.str.1 = [4 x i8] c"add\00"
@.str.2 = [11 x i8] c"initialize\00"
@.str.3 = [10 x i8] c"invariant\00"
@.str.4 = [7 x i8] c"finish\00"
@.str.5 = [8 x i8] c"tabsize\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [6 x i8] c"write\00"
@.str.8 = [5 x i8] c"read\00"
@.str.9 = [6 x i8] c"check\00"
@.str.10 = [4 x i8] c"map\00"
@stderr = global i32 0
@.str.11 = [44 x i8] c"%s:%d: unknown command \22%s\22 -- try \22help\22?\0A\00"
define i32 @command(i8* %0, i8** %1, i32* %2, i8* %3, i32 %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8**
%9 = alloca i32*
%10 = alloca i8*
%11 = alloca i32
store i8* %0, i8** %7
store i8** %1, i8*** %8
store i32* %2, i32** %9
store i8* %3, i8** %10
store i32 %4, i32* %11
%12 = load i8**, i8*** %8
%13 = getelementptr inbounds i8*, i8** %12, i64 0
%14 = load i8*, i8** %13
%15 = call i64 @strcasecmp(i8* %14, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %18
17: ; preds = %5
store i32 1, i32* %6
br label %157
18: ; preds = %5
%19 = load i8**, i8*** %8
%20 = getelementptr inbounds i8*, i8** %19, i64 0
%21 = load i8*, i8** %20
%22 = call i64 @strcasecmp(i8* %21, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %18
%25 = load i8*, i8** %7
%26 = load i8**, i8*** %8
%27 = load i8*, i8** %10
%28 = load i32, i32* %11
%29 = call i32 @command_add(i8* %25, i8** %26, i8* %27, i32 %28)
br label %155
30: ; preds = %18
%31 = load i8**, i8*** %8
%32 = getelementptr inbounds i8*, i8** %31, i64 0
%33 = load i8*, i8** %32
%34 = call i64 @strncasecmp(i8* %33, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 3)
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %42
36: ; preds = %30
%37 = load i8*, i8** %7
%38 = load i8**, i8*** %8
%39 = load i8*, i8** %10
%40 = load i32, i32* %11
%41 = call i32 @command_initialize(i8* %37, i8** %38, i8* %39, i32 %40)
br label %154
42: ; preds = %30
%43 = load i8**, i8*** %8
%44 = getelementptr inbounds i8*, i8** %43, i64 0
%45 = load i8*, i8** %44
%46 = call i64 @strncasecmp(i8* %45, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 3)
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %54
48: ; preds = %42
%49 = load i8*, i8** %7
%50 = load i8**, i8*** %8
%51 = load i8*, i8** %10
%52 = load i32, i32* %11
%53 = call i32 @command_invariant(i8* %49, i8** %50, i8* %51, i32 %52)
br label %153
54: ; preds = %42
%55 = load i8**, i8*** %8
%56 = getelementptr inbounds i8*, i8** %55, i64 0
%57 = load i8*, i8** %56
%58 = call i64 @strncasecmp(i8* %57, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 3)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %66
60: ; preds = %54
%61 = load i8*, i8** %7
%62 = load i8**, i8*** %8
%63 = load i8*, i8** %10
%64 = load i32, i32* %11
%65 = call i32 @command_finish(i8* %61, i8** %62, i8* %63, i32 %64)
br label %152
66: ; preds = %54
%67 = load i8**, i8*** %8
%68 = getelementptr inbounds i8*, i8** %67, i64 0
%69 = load i8*, i8** %68
%70 = call i64 @strcasecmp(i8* %69, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %78
72: ; preds = %66
%73 = load i8*, i8** %7
%74 = load i8**, i8*** %8
%75 = load i8*, i8** %10
%76 = load i32, i32* %11
%77 = call i32 @command_tabsize(i8* %73, i8** %74, i8* %75, i32 %76)
br label %151
78: ; preds = %66
%79 = load i8**, i8*** %8
%80 = getelementptr inbounds i8*, i8** %79, i64 0
%81 = load i8*, i8** %80
%82 = call i64 @strcasecmp(i8* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %90
84: ; preds = %78
%85 = load i8*, i8** %7
%86 = load i8**, i8*** %8
%87 = load i8*, i8** %10
%88 = load i32, i32* %11
%89 = call i32 @command_help(i8* %85, i8** %86, i8* %87, i32 %88)
br label %150
90: ; preds = %78
%91 = load i8**, i8*** %8
%92 = getelementptr inbounds i8*, i8** %91, i64 0
%93 = load i8*, i8** %92
%94 = call i64 @strcasecmp(i8* %93, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %96, label %102
96: ; preds = %90
%97 = load i8*, i8** %7
%98 = load i8**, i8*** %8
%99 = load i8*, i8** %10
%100 = load i32, i32* %11
%101 = call i32 @command_write(i8* %97, i8** %98, i8* %99, i32 %100)
br label %149
102: ; preds = %90
%103 = load i8**, i8*** %8
%104 = getelementptr inbounds i8*, i8** %103, i64 0
%105 = load i8*, i8** %104
%106 = call i64 @strcasecmp(i8* %105, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%107 = icmp eq i64 %106, 0
br i1 %107, label %108, label %114
108: ; preds = %102
%109 = load i8*, i8** %7
%110 = load i8**, i8*** %8
%111 = load i8*, i8** %10
%112 = load i32, i32* %11
%113 = call i32 @command_read(i8* %109, i8** %110, i8* %111, i32 %112)
br label %148
114: ; preds = %102
%115 = load i8**, i8*** %8
%116 = getelementptr inbounds i8*, i8** %115, i64 0
%117 = load i8*, i8** %116
%118 = call i64 @strcasecmp(i8* %117, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %126
120: ; preds = %114
%121 = load i8*, i8** %7
%122 = load i8**, i8*** %8
%123 = load i8*, i8** %10
%124 = load i32, i32* %11
%125 = call i32 @command_check(i8* %121, i8** %122, i8* %123, i32 %124)
br label %147
126: ; preds = %114
%127 = load i8**, i8*** %8
%128 = getelementptr inbounds i8*, i8** %127, i64 0
%129 = load i8*, i8** %128
%130 = call i64 @strcasecmp(i8* %129, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%131 = icmp eq i64 %130, 0
br i1 %131, label %132, label %138
132: ; preds = %126
%133 = load i8*, i8** %7
%134 = load i8**, i8*** %8
%135 = load i8*, i8** %10
%136 = load i32, i32* %11
%137 = call i32 @command_map(i8* %133, i8** %134, i8* %135, i32 %136)
br label %146
138: ; preds = %126
%139 = load i32, i32* @stderr
%140 = load i8*, i8** %10
%141 = load i32, i32* %11
%142 = load i8**, i8*** %8
%143 = getelementptr inbounds i8*, i8** %142, i64 0
%144 = load i8*, i8** %143
%145 = call i32 @fprintf(i32 %139, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0), i8* %140, i32 %141, i8* %144)
br label %146
146: ; preds = %138, %132
br label %147
147: ; preds = %146, %120
br label %148
148: ; preds = %147, %108
br label %149
149: ; preds = %148, %96
br label %150
150: ; preds = %149, %84
br label %151
151: ; preds = %150, %72
br label %152
152: ; preds = %151, %60
br label %153
153: ; preds = %152, %48
br label %154
154: ; preds = %153, %36
br label %155
155: ; preds = %154, %24
br label %156
156: ; preds = %155
store i32 0, i32* %6
br label %157
157: ; preds = %156, %17
%158 = load i32, i32* %6
ret i32 %158
}

LLVM IR (-O2):
@.str = [5 x i8] c"quit\00"
@.str.1 = [4 x i8] c"add\00"
@.str.2 = [11 x i8] c"initialize\00"
@.str.3 = [10 x i8] c"invariant\00"
@.str.4 = [7 x i8] c"finish\00"
@.str.5 = [8 x i8] c"tabsize\00"
@.str.6 = [5 x i8] c"help\00"
@.str.7 = [6 x i8] c"write\00"
@.str.8 = [5 x i8] c"read\00"
@.str.9 = [6 x i8] c"check\00"
@.str.10 = [4 x i8] c"map\00"
@stderr = global i32 0
@.str.11 = [44 x i8] c"%s:%d: unknown command \22%s\22 -- try \22help\22?\0A\00"
define i32 @command(i8* %0, i8** %1, i32* nocapture readnone %2, i8* %3, i32 %4) {
%6 = load i8*, i8** %1
%7 = tail call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %62, label %9
9: ; preds = %5
%10 = tail call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %9
%13 = tail call i32 @command_add(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
14: ; preds = %9
%15 = tail call i64 @strncasecmp(i8* %6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i32 3)
%16 = icmp eq i64 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = tail call i32 @command_initialize(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
19: ; preds = %14
%20 = tail call i64 @strncasecmp(i8* %6, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 3)
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %19
%23 = tail call i32 @command_invariant(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
24: ; preds = %19
%25 = tail call i64 @strncasecmp(i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 3)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %24
%28 = tail call i32 @command_finish(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
29: ; preds = %24
%30 = tail call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %29
%33 = tail call i32 @command_tabsize(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
34: ; preds = %29
%35 = tail call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %34
%38 = tail call i32 @command_help(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
39: ; preds = %34
%40 = tail call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %39
%43 = tail call i32 @command_write(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
44: ; preds = %39
%45 = tail call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %44
%48 = tail call i32 @command_read(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
49: ; preds = %44
%50 = tail call i64 @strcasecmp(i8* %6, 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 %54
52: ; preds = %49
%53 = tail call i32 @command_check(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
54: ; preds = %49
%55 = tail call i64 @strcasecmp(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %54
%58 = tail call i32 @command_map(i8* %0, i8** %1, i8* %3, i32 %4)
br label %62
59: ; preds = %54
%60 = load i32, i32* @stderr
%61 = tail call i32 @fprintf(i32 %60, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.11, i64 0, i64 0), i8* %3, i32 %4, i8* %6)
br label %62
62: ; preds = %17, %27, %37, %47, %57, %59, %52, %42, %32, %22, %12, %5
%63 = phi i32 [ 1, %5 ], [ 0, %12 ], [ 0, %22 ], [ 0, %32 ], [ 0, %42 ], [ 0, %52 ], [ 0, %59 ], [ 0, %57 ], [ 0, %47 ], [ 0, %37 ], [ 0, %27 ], [ 0, %17 ]
ret i32 %63
}