#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*/ fullCommand;

/* Variables and functions */
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ fs_clear();
int /*<<< orphan*/ fs_exit();
int /*<<< orphan*/ fs_help();
int /*<<< orphan*/ fs_lsdir(char *);
int /*<<< orphan*/ fs_lssec(char *);
int /*<<< orphan*/ fs_map();
int /*<<< orphan*/ fs_mkdir(char *);
int /*<<< orphan*/ fs_mkfile(char *);
int /*<<< orphan*/ fs_rmdir(char *);
int /*<<< orphan*/ fs_rmfile(char *);
int /*<<< orphan*/ fs_tree();
int /*<<< orphan*/ init_directoryTable();
int /*<<< orphan*/ init_fileAllocationTable();
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int strlen(char *);
char *strtok(char *, char *);
int main() {
  char fullCommand[255];
  char command[255];
  init_directoryTable();
  init_fileAllocationTable();
  fprintf(stderr, "  ____________                   \n");
  fprintf(stderr, " < fileSystem >                  \n");
  fprintf(stderr, "  ------------                   \n");
  fprintf(stderr, "         \\   ^__^               \n");
  fprintf(stderr, "          \\  (oo)\\_______      \n");
  fprintf(stderr, "             (__)\\       )\\/\\ \n");
  fprintf(stderr, "                 ||----w |       \n");
  fprintf(stderr, "                 ||     ||       \n");
  while (1) {
    fprintf(stdout, "->");
    fgets(fullCommand, sizeof(fullCommand), stdin);
    if (fullCommand[strlen(fullCommand) - 1] == '\n')
      fullCommand[strlen(fullCommand) - 1] = '\0';
    char *command = strtok(fullCommand, " ");
    char *parameter = strtok(NULL, " ");
    if (strcmp(command, "mkdir") == 0)
      fs_mkdir(parameter);
    else if (strcmp(command, "mkfile") == 0)
      fs_mkfile(parameter);
    else if (strcmp(command, "rmdir") == 0)
      fs_rmdir(parameter);
    else if (strcmp(command, "rmfile") == 0)
      fs_rmfile(parameter);
    else if (strcmp(command, "lsdir") == 0)
      fs_lsdir(parameter);
    else if (strcmp(command, "lssec") == 0)
      fs_lssec(parameter);
    else if (strcmp(command, "map") == 0)
      fs_map();
    else if (strcmp(command, "tree") == 0)
      fs_tree();
    else if (strcmp(command, "help") == 0)
      fs_help();
    else if (strcmp(command, "clear") == 0)
      fs_clear();
    else if (strcmp(command, "exit") == 0)
      fs_exit();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1140 <init_directoryTable@plt>
mov    $0x0,%al
call   1110 <init_fileAllocationTable@plt>
mov    0x2d91(%rip),%rax
mov    (%rax),%edi
lea    0xdb0(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2d7c(%rip),%rax
mov    (%rax),%edi
lea    0xdbe(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2d67(%rip),%rax
mov    (%rax),%edi
lea    0xdcc(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
lea    0xdda(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2d3d(%rip),%rax
mov    (%rax),%edi
lea    0xde7(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2d28(%rip),%rax
mov    (%rax),%edi
lea    0xdf3(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2d13(%rip),%rax
mov    (%rax),%edi
lea    0xdfe(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2cfe(%rip),%rax
mov    (%rax),%edi
lea    0xe0c(%rip),%rsi
call   10c0 <fprintf@plt>
mov    0x2ce1(%rip),%rax
mov    (%rax),%edi
lea    0xe1a(%rip),%rsi
call   10c0 <fprintf@plt>
lea    -0x110(%rbp),%rdi
mov    0x2cdd(%rip),%rax
mov    (%rax),%edx
mov    $0xff,%esi
call   1080 <fgets@plt>
lea    -0x110(%rbp),%rdi
call   1040 <strlen@plt>
sub    $0x1,%eax
cltq
movsbl -0x110(%rbp,%rax,1),%eax
ff
cmp    $0xa,%eax
jne    1352 <main+0x132>
lea    -0x110(%rbp),%rdi
call   1040 <strlen@plt>
sub    $0x1,%eax
cltq
movb   $0x0,-0x110(%rbp,%rax,1)
lea    -0x110(%rbp),%rdi
lea    0xdb5(%rip),%rsi
call   1130 <strtok@plt>
mov    %rax,-0x218(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xd9e(%rip),%rsi
call   1130 <strtok@plt>
mov    %rax,-0x220(%rbp)
mov    -0x218(%rbp),%rdi
lea    0xd86(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13b1 <main+0x191>
mov    -0x220(%rbp),%rdi
call   10a0 <fs_mkdir@plt>
jmp    1591 <main+0x371>
mov    -0x218(%rbp),%rdi
lea    0xd5e(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    13df <main+0x1bf>
mov    -0x220(%rbp),%rdi
call   1030 <fs_mkfile@plt>
jmp    158c <main+0x36c>
mov    -0x218(%rbp),%rdi
lea    0xd37(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    140d <main+0x1ed>
mov    -0x220(%rbp),%rdi
call   10f0 <fs_rmdir@plt>
jmp    1587 <main+0x367>
mov    -0x218(%rbp),%rdi
lea    0xd0f(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    143b <main+0x21b>
mov    -0x220(%rbp),%rdi
call   1090 <fs_rmfile@plt>
jmp    1582 <main+0x362>
mov    -0x218(%rbp),%rdi
lea    0xce8(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1469 <main+0x249>
mov    -0x220(%rbp),%rdi
call   1100 <fs_lsdir@plt>
jmp    157d <main+0x35d>
mov    -0x218(%rbp),%rdi
lea    0xcc0(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1497 <main+0x277>
mov    -0x220(%rbp),%rdi
call   1070 <fs_lssec@plt>
jmp    1578 <main+0x358>
mov    -0x218(%rbp),%rdi
lea    0xc98(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    14c0 <main+0x2a0>
mov    $0x0,%al
call   1120 <fs_map@plt>
jmp    1573 <main+0x353>
mov    -0x218(%rbp),%rdi
lea    0xc73(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    14e9 <main+0x2c9>
mov    $0x0,%al
call   10e0 <fs_tree@plt>
jmp    156e <main+0x34e>
mov    -0x218(%rbp),%rdi
lea    0xc4f(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    1512 <main+0x2f2>
mov    $0x0,%al
call   1060 <fs_help@plt>
jmp    1569 <main+0x349>
mov    -0x218(%rbp),%rdi
lea    0xc2b(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    153b <main+0x31b>
mov    $0x0,%al
call   10d0 <fs_clear@plt>
jmp    1564 <main+0x344>
mov    -0x218(%rbp),%rdi
lea    0xc08(%rip),%rsi
call   10b0 <strcmp@plt>
cmp    $0x0,%rax
jne    155f <main+0x33f>
mov    $0x0,%al
call   1050 <fs_exit@plt>
jmp    1564 <main+0x344>
jmp    1569 <main+0x349>
jmp    156e <main+0x34e>
jmp    1573 <main+0x353>
jmp    1578 <main+0x358>
jmp    157d <main+0x35d>
jmp    1582 <main+0x362>
jmp    1587 <main+0x367>
jmp    158c <main+0x36c>
jmp    1591 <main+0x371>
jmp    12e8 <main+0xc8>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
xor    %eax,%eax
call   1140 <init_directoryTable@plt>
xor    %eax,%eax
call   1110 <init_fileAllocationTable@plt>
mov    0x2d92(%rip),%rbx
mov    (%rbx),%edi
lea    0xdb1(%rip),%rsi
call   10c0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdc6(%rip),%rsi
call   10c0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xddb(%rip),%rsi
call   10c0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdf0(%rip),%rsi
call   10c0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe04(%rip),%rsi
call   10c0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe17(%rip),%rsi
call   10c0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe29(%rip),%rsi
call   10c0 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe3e(%rip),%rsi
call   10c0 <fprintf@plt>
lea    0xe55(%rip),%r14
mov    %rsp,%rbx
lea    0xe4e(%rip),%r15
lea    0xe49(%rip),%r12
jmp    12d8 <main+0xb8>
mov    %r13,%rdi
call   10a0 <fs_mkdir@plt>
mov    0x2cf1(%rip),%rax
mov    (%rax),%edi
mov    %r14,%rsi
call   10c0 <fprintf@plt>
mov    0x2cf8(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0xff,%esi
call   1080 <fgets@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
cmpb   $0xa,-0x1(%rax,%rbx,1)
jne    131f <main+0xff>
mov    %rbx,%rdi
call   1040 <strlen@plt>
cltq
movb   $0x0,-0x1(%rax,%rbx,1)
mov    %rbx,%rdi
mov    %r15,%rsi
call   1130 <strtok@plt>
mov    %rax,%rbp
xor    %edi,%edi
mov    %r15,%rsi
call   1130 <strtok@plt>
mov    %rax,%r13
mov    %rbp,%rdi
mov    %r12,%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     12d0 <main+0xb0>
mov    %rbp,%rdi
lea    0xdc9(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1450 <main+0x230>
mov    %rbp,%rdi
lea    0xdb8(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     145d <main+0x23d>
mov    %rbp,%rdi
lea    0xda6(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     146a <main+0x24a>
mov    %rbp,%rdi
lea    0xd95(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1477 <main+0x257>
mov    %rbp,%rdi
lea    0xd83(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1484 <main+0x264>
mov    %rbp,%rdi
lea    0xd71(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     1491 <main+0x271>
mov    %rbp,%rdi
lea    0xd5d(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     149d <main+0x27d>
mov    %rbp,%rdi
lea    0xd4a(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     14a9 <main+0x289>
mov    %rbp,%rdi
lea    0xd37(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
je     14b5 <main+0x295>
mov    %rbp,%rdi
lea    0xd25(%rip),%rsi
call   10b0 <strcmp@plt>
test   %rax,%rax
jne    12d8 <main+0xb8>
xor    %eax,%eax
call   1050 <fs_exit@plt>
jmp    12d8 <main+0xb8>
cs nopw 0x0(%rax,%rax,1)
mov    %r13,%rdi
call   1030 <fs_mkfile@plt>
jmp    12d8 <main+0xb8>
mov    %r13,%rdi
call   10f0 <fs_rmdir@plt>
jmp    12d8 <main+0xb8>
mov    %r13,%rdi
call   1090 <fs_rmfile@plt>
jmp    12d8 <main+0xb8>
mov    %r13,%rdi
call   1100 <fs_lsdir@plt>
jmp    12d8 <main+0xb8>
mov    %r13,%rdi
call   1070 <fs_lssec@plt>
jmp    12d8 <main+0xb8>
xor    %eax,%eax
call   1120 <fs_map@plt>
jmp    12d8 <main+0xb8>
xor    %eax,%eax
call   10e0 <fs_tree@plt>
jmp    12d8 <main+0xb8>
xor    %eax,%eax
call   1060 <fs_help@plt>
jmp    12d8 <main+0xb8>
xor    %eax,%eax
call   10d0 <fs_clear@plt>
jmp    12d8 <main+0xb8>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [35 x i8] c" ____________ \0A\00"
@.str.1 = [35 x i8] c" < fileSystem > \0A\00"
@.str.2 = [35 x i8] c" ------------ \0A\00"
@.str.3 = [34 x i8] c" \\ ^__^ \0A\00"
@.str.4 = [33 x i8] c" \\ (oo)\\_______ \0A\00"
@.str.5 = [32 x i8] c" (__)\\ )\\/\\ \0A\00"
@.str.6 = [35 x i8] c" ||----w | \0A\00"
@.str.7 = [35 x i8] c" || || \0A\00"
@stdout = global i32 0
@.str.8 = [3 x i8] c"->\00"
@stdin = global i32 0
@.str.9 = [2 x i8] c" \00"
@.str.10 = [6 x i8] c"mkdir\00"
@.str.11 = [7 x i8] c"mkfile\00"
@.str.12 = [6 x i8] c"rmdir\00"
@.str.13 = [7 x i8] c"rmfile\00"
@.str.14 = [6 x i8] c"lsdir\00"
@.str.15 = [6 x i8] c"lssec\00"
@.str.16 = [4 x i8] c"map\00"
@.str.17 = [5 x i8] c"tree\00"
@.str.18 = [5 x i8] c"help\00"
@.str.19 = [6 x i8] c"clear\00"
@.str.20 = [5 x i8] c"exit\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [255 x i8]
%3 = alloca [255 x i8]
%4 = alloca i8*
%5 = alloca i8*
store i32 0, i32* %1
%6 = call i32 (...) @init_directoryTable()
%7 = call i32 (...) @init_fileAllocationTable()
%8 = load i32, i32* @stderr
%9 = call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @stderr
%11 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%22 = load i32, i32* @stderr
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
br label %24
24: ; preds = %0, %129
%25 = load i32, i32* @stdout
%26 = call i32 @fprintf(i32 %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%27 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%28 = load i32, i32* @stdin
%29 = call i32 @fgets(i8* %27, i32 255, i32 %28)
%30 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%31 = call i32 @strlen(i8* %30)
%32 = sub nsw i32 %31, 1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 %33
%35 = load i8, i8* %34
%36 = sext i8 %35 to i32
%37 = icmp eq i32 %36, 10
br i1 %37, label %38, label %44
38: ; preds = %24
%39 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%40 = call i32 @strlen(i8* %39)
%41 = sub nsw i32 %40, 1
%42 = sext i32 %41 to i64
%43 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 %42
store i8 0, i8* %43
br label %44
44: ; preds = %38, %24
%45 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%46 = call i8* @strtok(i8* %45, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i8* %46, i8** %4
%47 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i8* %47, i8** %5
%48 = load i8*, i8** %4
%49 = call i64 @strcmp(i8* %48, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %44
%52 = load i8*, i8** %5
%53 = call i32 @fs_mkdir(i8* %52)
br label %129
54: ; preds = %44
%55 = load i8*, i8** %4
%56 = call i64 @strcmp(i8* %55, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %61
58: ; preds = %54
%59 = load i8*, i8** %5
%60 = call i32 @fs_mkfile(i8* %59)
br label %128
61: ; preds = %54
%62 = load i8*, i8** %4
%63 = call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %68
65: ; preds = %61
%66 = load i8*, i8** %5
%67 = call i32 @fs_rmdir(i8* %66)
br label %127
68: ; preds = %61
%69 = load i8*, i8** %4
%70 = call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %75
72: ; preds = %68
%73 = load i8*, i8** %5
%74 = call i32 @fs_rmfile(i8* %73)
br label %126
75: ; preds = %68
%76 = load i8*, i8** %4
%77 = call i64 @strcmp(i8* %76, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%78 = icmp eq i64 %77, 0
br i1 %78, label %79, label %82
79: ; preds = %75
%80 = load i8*, i8** %5
%81 = call i32 @fs_lsdir(i8* %80)
br label %125
82: ; preds = %75
%83 = load i8*, i8** %4
%84 = call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %89
86: ; preds = %82
%87 = load i8*, i8** %5
%88 = call i32 @fs_lssec(i8* %87)
br label %124
89: ; preds = %82
%90 = load i8*, i8** %4
%91 = call i64 @strcmp(i8* %90, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %95
93: ; preds = %89
%94 = call i32 (...) @fs_map()
br label %123
95: ; preds = %89
%96 = load i8*, i8** %4
%97 = call i64 @strcmp(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %95
%100 = call i32 (...) @fs_tree()
br label %122
101: ; preds = %95
%102 = load i8*, i8** %4
%103 = call i64 @strcmp(i8* %102, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%104 = icmp eq i64 %103, 0
br i1 %104, label %105, label %107
105: ; preds = %101
%106 = call i32 (...) @fs_help()
br label %121
107: ; preds = %101
%108 = load i8*, i8** %4
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %113
111: ; preds = %107
%112 = call i32 (...) @fs_clear()
br label %120
113: ; preds = %107
%114 = load i8*, i8** %4
%115 = call i64 @strcmp(i8* %114, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %119
117: ; preds = %113
%118 = call i32 (...) @fs_exit()
br label %119
119: ; preds = %117, %113
br label %120
120: ; preds = %119, %111
br label %121
121: ; preds = %120, %105
br label %122
122: ; preds = %121, %99
br label %123
123: ; preds = %122, %93
br label %124
124: ; preds = %123, %86
br label %125
125: ; preds = %124, %79
br label %126
126: ; preds = %125, %72
br label %127
127: ; preds = %126, %65
br label %128
128: ; preds = %127, %58
br label %129
129: ; preds = %128, %51
br label %24
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [35 x i8] c" ____________ \0A\00"
@.str.1 = [35 x i8] c" < fileSystem > \0A\00"
@.str.2 = [35 x i8] c" ------------ \0A\00"
@.str.3 = [34 x i8] c" \\ ^__^ \0A\00"
@.str.4 = [33 x i8] c" \\ (oo)\\_______ \0A\00"
@.str.5 = [32 x i8] c" (__)\\ )\\/\\ \0A\00"
@.str.6 = [35 x i8] c" ||----w | \0A\00"
@.str.7 = [35 x i8] c" || || \0A\00"
@stdout = global i32 0
@.str.8 = [3 x i8] c"->\00"
@stdin = global i32 0
@.str.9 = [2 x i8] c" \00"
@.str.10 = [6 x i8] c"mkdir\00"
@.str.11 = [7 x i8] c"mkfile\00"
@.str.12 = [6 x i8] c"rmdir\00"
@.str.13 = [7 x i8] c"rmfile\00"
@.str.14 = [6 x i8] c"lsdir\00"
@.str.15 = [6 x i8] c"lssec\00"
@.str.16 = [4 x i8] c"map\00"
@.str.17 = [5 x i8] c"tree\00"
@.str.18 = [5 x i8] c"help\00"
@.str.19 = [6 x i8] c"clear\00"
@.str.20 = [5 x i8] c"exit\00"
define i32 @main() {
%1 = alloca [255 x i8]
%2 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 0
%3 = tail call i32 (...) @init_directoryTable()
%4 = tail call i32 (...) @init_fileAllocationTable()
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0))
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.2, i64 0, i64 0))
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%13 = load i32, i32* @stderr
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%15 = load i32, i32* @stderr
%16 = tail call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32, i32* @stderr
%18 = tail call i32 @fprintf(i32 %17, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.6, i64 0, i64 0))
%19 = load i32, i32* @stderr
%20 = tail call i32 @fprintf(i32 %19, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.7, i64 0, i64 0))
br label %21
21: ; preds = %49, %0
%22 = load i32, i32* @stdout
%23 = call i32 @fprintf(i32 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%24 = load i32, i32* @stdin
%25 = call i32 @fgets(i8* %2, i32 255, i32 %24)
%26 = call i32 @strlen(i8* %2)
%27 = add nsw i32 %26, -1
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 %28
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, 10
br i1 %31, label %32, label %37
32: ; preds = %21
%33 = call i32 @strlen(i8* %2)
%34 = add nsw i32 %33, -1
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [255 x i8], [255 x i8]* %1, i64 0, i64 %35
store i8 0, i8* %36
br label %37
37: ; preds = %32, %21
%38 = call i8* @strtok(i8* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%39 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%40 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %37
%43 = call i32 @fs_mkdir(i8* %39)
br label %49
44: ; preds = %37
%45 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %50
47: ; preds = %44
%48 = call i32 @fs_mkfile(i8* %39)
br label %49
49: ; preds = %47, %58, %68, %78, %88, %93, %90, %83, %73, %63, %53, %42
br label %21
50: ; preds = %44
%51 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%52 = icmp eq i64 %51, 0
br i1 %52, label %53, label %55
53: ; preds = %50
%54 = call i32 @fs_rmdir(i8* %39)
br label %49
55: ; preds = %50
%56 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %60
58: ; preds = %55
%59 = call i32 @fs_rmfile(i8* %39)
br label %49
60: ; preds = %55
%61 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %60
%64 = call i32 @fs_lsdir(i8* %39)
br label %49
65: ; preds = %60
%66 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %65
%69 = call i32 @fs_lssec(i8* %39)
br label %49
70: ; preds = %65
%71 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %70
%74 = call i32 (...) @fs_map()
br label %49
75: ; preds = %70
%76 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %75
%79 = call i32 (...) @fs_tree()
br label %49
80: ; preds = %75
%81 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %85
83: ; preds = %80
%84 = call i32 (...) @fs_help()
br label %49
85: ; preds = %80
%86 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.19, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %85
%89 = call i32 (...) @fs_clear()
br label %49
90: ; preds = %85
%91 = call i64 @strcmp(i8* %38, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %49
93: ; preds = %90
%94 = call i32 (...) @fs_exit()
br label %49
}