#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ createDirectory(char *, char *);
scalar_t__ createFile(char *, char *);
int /*<<< orphan*/ fgets(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ readListFile(char *);
int /*<<< orphan*/ removeDirectory(char *, char *);
int /*<<< orphan*/ removeFile(char *, char *);
scalar_t__ startsWithString(char *, char *);
int /*<<< orphan*/ stdin;
scalar_t__ strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
scalar_t__ strncmp(char *, char *, int);
char *strtok(char *, char *);
int /*<<< orphan*/ testRam();
int /*<<< orphan*/ writeToListFile(char *, char *);
void runShell() {
  char rootOfFileSystem[20] = ".VirtualFileSystem/";
  char currentPath[255];
  currentPath[0] = 0;
  strncat(currentPath, rootOfFileSystem, 20);
  while (1) {
    printf("%s>", currentPath + 18);
    char buffer[255];
    fgets(buffer, 255, stdin);
    if (strncmp(buffer, "Exit Shell", 10) == 0) {
      break;
    } else if (strncmp(buffer, "Test RAM", 8) == 0) {
      testRam();
    } else if (startsWithString(buffer, "mkdir ")) {
      char *tokens = strtok(buffer, " ");
      int counter = 0;
      while (tokens != NULL) {
        if (counter == 1) {
          tokens = strtok(tokens, "\n");
          if (createDirectory(currentPath, tokens)) {
            writeToListFile(currentPath, tokens);
          }
          break;
        }
        counter++;
        tokens = strtok(NULL, " ");
      }
    } else if (startsWithString(buffer, "mkfile ")) {
      char *tokens = strtok(buffer, " ");
      int counter = 0;
      while (tokens != NULL) {
        if (counter == 1) {
          tokens = strtok(tokens, "\n");
          if (createFile(currentPath, tokens)) {
            writeToListFile(currentPath, tokens);
          }
          break;
        }
        counter++;
        tokens = strtok(NULL, " ");
      }
    } else if (startsWithString(buffer, "cd ")) {
      char *tokens = strtok(buffer, " ");
      int counter = 0;
      while (tokens != NULL) {
        if (counter == 1) {
          if (strncmp(tokens, "..", 2) == 0) {
            int len = strlen(currentPath);
            if (len > 19) {
              int c = len - 2;
              for (; c >= 0; c--) {
                if (currentPath[c] != '/') {
                  currentPath[c] = 0;
                } else {
                  break;
                }
              }
            }
          } else {
            tokens = strtok(tokens, "\n");
            strncat(currentPath, tokens, 128);
            char tmp[1] = "/";
            strncat(currentPath, tmp, 1);
            printf("Debug %s\n", currentPath);
          }
          break;
        }
        counter++;
        tokens = strtok(NULL, " ");
      }
    } else if (strncmp(buffer, "ls", 3) &&
               (strlen(buffer) == 2 || strlen(buffer) == 3)) {
      printf("Displaying directory contents...\n");
      if (strlen(currentPath) == 0) {
        continue;
      }
      readListFile(currentPath);
    } else if (startsWithString(buffer, "rmdir ")) {
      char *tokens = strtok(buffer, " ");
      int counter = 0;
      while (tokens != NULL) {
        if (counter == 1) {
          tokens = strtok(tokens, "\n");
          removeDirectory(currentPath, tokens);
        }
        counter++;
        tokens = strtok(NULL, " ");
      }
    } else if (startsWithString(buffer, "rm ")) {
      char *tokens = strtok(buffer, " ");
      int counter = 0;
      while (tokens != NULL) {
        if (counter == 1) {
          tokens = strtok(tokens, "\n");
          removeFile(currentPath, tokens);
        }
        counter++;
        tokens = strtok(NULL, " ");
      }
    } else {
    }
  }
}


x86 assembly (clang, -O0):
<runShell>:
push   %rbp
mov    %rsp,%rbp
sub    $0x280,%rsp
mov    0xe0e(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xe0b(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xe09(%rip),%eax
mov    %eax,-0x10(%rbp)
movb   $0x0,-0x120(%rbp)
lea    -0x120(%rbp),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x14,%edx
call   1090 <strncat@plt>
lea    -0x120(%rbp),%rsi
add    $0x12,%rsi
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x220(%rbp),%rdi
mov    0x2d9b(%rip),%rax
mov    (%rax),%edx
mov    $0xff,%esi
call   10b0 <fgets@plt>
lea    -0x220(%rbp),%rdi
lea    0xdb1(%rip),%rsi
mov    $0xa,%edx
call   1050 <strncmp@plt>
cmp    $0x0,%rax
jne    1280 <runShell+0xa0>
jmp    1838 <runShell+0x658>
lea    -0x220(%rbp),%rdi
lea    0xd95(%rip),%rsi
mov    $0x8,%edx
call   1050 <strncmp@plt>
cmp    $0x0,%rax
jne    12ae <runShell+0xce>
mov    $0x0,%al
call   10c0 <testRam@plt>
jmp    182e <runShell+0x64e>
lea    -0x220(%rbp),%rdi
lea    0xd70(%rip),%rsi
call   1100 <startsWithString@plt>
cmp    $0x0,%rax
je     1389 <runShell+0x1a9>
lea    -0x220(%rbp),%rdi
lea    0xd64(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x228(%rbp)
movl   $0x0,-0x22c(%rbp)
cmpq   $0x0,-0x228(%rbp)
je     1384 <runShell+0x1a4>
cmpl   $0x1,-0x22c(%rbp)
jne    1359 <runShell+0x179>
mov    -0x228(%rbp),%rdi
lea    0xd57(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x228(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x228(%rbp),%rsi
call   1070 <createDirectory@plt>
cmp    $0x0,%rax
je     1354 <runShell+0x174>
lea    -0x120(%rbp),%rdi
mov    -0x228(%rbp),%rsi
call   10d0 <writeToListFile@plt>
jmp    1384 <runShell+0x1a4>
mov    -0x22c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x22c(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xcca(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x228(%rbp)
jmp    12ef <runShell+0x10f>
jmp    1829 <runShell+0x649>
lea    -0x220(%rbp),%rdi
lea    0xc9c(%rip),%rsi
call   1100 <startsWithString@plt>
cmp    $0x0,%rax
je     1464 <runShell+0x284>
lea    -0x220(%rbp),%rdi
lea    0xc89(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x238(%rbp)
movl   $0x0,-0x23c(%rbp)
cmpq   $0x0,-0x238(%rbp)
je     145f <runShell+0x27f>
cmpl   $0x1,-0x23c(%rbp)
jne    1434 <runShell+0x254>
mov    -0x238(%rbp),%rdi
lea    0xc7c(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x238(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x238(%rbp),%rsi
call   10a0 <createFile@plt>
cmp    $0x0,%rax
je     142f <runShell+0x24f>
lea    -0x120(%rbp),%rdi
mov    -0x238(%rbp),%rsi
call   10d0 <writeToListFile@plt>
jmp    145f <runShell+0x27f>
mov    -0x23c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x23c(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xbef(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x238(%rbp)
jmp    13ca <runShell+0x1ea>
jmp    1824 <runShell+0x644>
lea    -0x220(%rbp),%rdi
lea    0xbc9(%rip),%rsi
call   1100 <startsWithString@plt>
cmp    $0x0,%rax
je     1611 <runShell+0x431>
lea    -0x220(%rbp),%rdi
lea    0xbae(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x248(%rbp)
movl   $0x0,-0x24c(%rbp)
cmpq   $0x0,-0x248(%rbp)
je     160c <runShell+0x42c>
cmpl   $0x1,-0x24c(%rbp)
jne    15e1 <runShell+0x401>
mov    -0x248(%rbp),%rdi
lea    0xb71(%rip),%rsi
mov    $0x2,%edx
call   1050 <strncmp@plt>
cmp    $0x0,%rax
jne    1571 <runShell+0x391>
lea    -0x120(%rbp),%rdi
call   1060 <strlen@plt>
mov    %eax,-0x250(%rbp)
cmpl   $0x13,-0x250(%rbp)
jle    156c <runShell+0x38c>
mov    -0x250(%rbp),%eax
sub    $0x2,%eax
mov    %eax,-0x254(%rbp)
cmpl   $0x0,-0x254(%rbp)
jl     1567 <runShell+0x387>
movslq -0x254(%rbp),%rax
movsbl -0x120(%rbp,%rax,1),%eax
ff
cmp    $0x2f,%eax
je     1549 <runShell+0x369>
movslq -0x254(%rbp),%rax
movb   $0x0,-0x120(%rbp,%rax,1)
jmp    154e <runShell+0x36e>
jmp    1567 <runShell+0x387>
jmp    1553 <runShell+0x373>
mov    -0x254(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x254(%rbp)
jmp    1510 <runShell+0x330>
jmp    156c <runShell+0x38c>
jmp    15dc <runShell+0x3fc>
mov    -0x248(%rbp),%rdi
lea    0xaf0(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x248(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x248(%rbp),%rsi
mov    $0x80,%edx
call   1090 <strncat@plt>
mov    0xad3(%rip),%al
mov    %al,-0x255(%rbp)
lea    -0x120(%rbp),%rdi
lea    -0x255(%rbp),%rsi
mov    $0x1,%edx
call   1090 <strncat@plt>
lea    -0x120(%rbp),%rsi
lea    0xa6d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
jmp    160c <runShell+0x42c>
mov    -0x24c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24c(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xa42(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x248(%rbp)
jmp    14a5 <runShell+0x2c5>
jmp    181f <runShell+0x63f>
lea    -0x220(%rbp),%rdi
lea    0xa2d(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncmp@plt>
cmp    $0x0,%rax
je     1699 <runShell+0x4b9>
lea    -0x220(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x2,%rax
je     165f <runShell+0x47f>
lea    -0x220(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x3,%rax
jne    1699 <runShell+0x4b9>
lea    0x9e9(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x120(%rbp),%rdi
call   1060 <strlen@plt>
cmp    $0x0,%rax
jne    1688 <runShell+0x4a8>
jmp    1226 <runShell+0x46>
lea    -0x120(%rbp),%rdi
call   1040 <readListFile@plt>
jmp    181a <runShell+0x63a>
lea    -0x220(%rbp),%rdi
lea    0x9ca(%rip),%rsi
call   1100 <startsWithString@plt>
cmp    $0x0,%rax
je     1752 <runShell+0x572>
lea    -0x220(%rbp),%rdi
lea    0x979(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x260(%rbp)
movl   $0x0,-0x264(%rbp)
cmpq   $0x0,-0x260(%rbp)
je     174d <runShell+0x56d>
cmpl   $0x1,-0x264(%rbp)
jne    1722 <runShell+0x542>
mov    -0x260(%rbp),%rdi
lea    0x96c(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x260(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x260(%rbp),%rsi
call   1030 <removeDirectory@plt>
mov    -0x264(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x264(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0x901(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x260(%rbp)
jmp    16da <runShell+0x4fa>
jmp    1815 <runShell+0x635>
lea    -0x220(%rbp),%rdi
lea    0x918(%rip),%rsi
call   1100 <startsWithString@plt>
cmp    $0x0,%rax
je     180b <runShell+0x62b>
lea    -0x220(%rbp),%rdi
lea    0x8c0(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x270(%rbp)
movl   $0x0,-0x274(%rbp)
cmpq   $0x0,-0x270(%rbp)
je     1806 <runShell+0x626>
cmpl   $0x1,-0x274(%rbp)
jne    17db <runShell+0x5fb>
mov    -0x270(%rbp),%rdi
lea    0x8b3(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x270(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x270(%rbp),%rsi
call   10e0 <removeFile@plt>
mov    -0x274(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x274(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0x848(%rip),%rsi
call   10f0 <strtok@plt>
mov    %rax,-0x270(%rbp)
jmp    1793 <runShell+0x5b3>
jmp    1810 <runShell+0x630>
jmp    1810 <runShell+0x630>
jmp    1815 <runShell+0x635>
jmp    181a <runShell+0x63a>
jmp    181f <runShell+0x63f>
jmp    1824 <runShell+0x644>
jmp    1829 <runShell+0x649>
jmp    182e <runShell+0x64e>
jmp    1833 <runShell+0x653>
jmp    1226 <runShell+0x46>
add    $0x280,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<runShell>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x238,%rsp
movaps 0xdf8(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movl   $0x2f6d65,0x20(%rsp)
movb   $0x0,0x30(%rsp)
lea    0x30(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    $0x14,%edx
call   10a0 <strncat@plt>
lea    0x42(%rsp),%rsi
lea    0xdda(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%edx
lea    0x130(%rsp),%rbx
mov    %rbx,%rdi
mov    $0xff,%esi
call   10c0 <fgets@plt>
lea    0xdb2(%rip),%rsi
mov    %rbx,%rdi
mov    $0xa,%edx
call   1050 <strncmp@plt>
test   %rax,%rax
je     15ec <runShell+0x3fc>
lea    0x130(%rsp),%rbx
lea    0xd89(%rip),%r12
lea    0xd86(%rip),%r13
lea    0xda4(%rip),%r15
jmp    12e5 <runShell+0xf5>
nopl   0x0(%rax,%rax,1)
xor    %eax,%eax
call   10d0 <testRam@plt>
mov    %r12,%rdi
lea    0x42(%rsp),%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x2d2b(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    $0xff,%esi
call   10c0 <fgets@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0xa,%edx
call   1050 <strncmp@plt>
test   %rax,%rax
je     15ec <runShell+0x3fc>
mov    %rbx,%rdi
lea    0xd34(%rip),%rsi
mov    $0x8,%edx
call   1050 <strncmp@plt>
test   %rax,%rax
je     12a0 <runShell+0xb0>
mov    %rbx,%rdi
lea    0xd24(%rip),%rsi
call   1110 <startsWithString@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     1360 <runShell+0x170>
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
xor    %edi,%edi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
mov    %rax,%rdi
lea    0xd08(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,%rbp
lea    0x30(%rsp),%rdi
mov    %rax,%rsi
call   1080 <createDirectory@plt>
test   %rax,%rax
jne    13c0 <runShell+0x1d0>
jmp    12a7 <runShell+0xb7>
xchg   %ax,%ax
lea    0xccc(%rip),%rsi
call   1110 <startsWithString@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     13d2 <runShell+0x1e2>
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
xor    %edi,%edi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
mov    %rax,%rdi
lea    0xca5(%rip),%rsi
call   1100 <strtok@plt>
mov    %rax,%rbp
lea    0x30(%rsp),%rdi
mov    %rax,%rsi
call   10b0 <createFile@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
lea    0x30(%rsp),%rdi
mov    %rbp,%rsi
call   10e0 <writeToListFile@plt>
jmp    12a7 <runShell+0xb7>
lea    0xc62(%rip),%rsi
call   1110 <startsWithString@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     147f <runShell+0x28f>
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
xor    %edi,%edi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
mov    %rax,%r14
mov    %rax,%rdi
lea    0xc5a(%rip),%rsi
mov    $0x2,%edx
call   1050 <strncmp@plt>
test   %rax,%rax
je     15b4 <runShell+0x3c4>
mov    %r14,%rdi
lea    0xc0f(%rip),%rsi
call   1100 <strtok@plt>
lea    0x30(%rsp),%rbp
mov    %rbp,%rdi
mov    %rax,%rsi
mov    $0x80,%edx
call   10a0 <strncat@plt>
movb   $0x2f,0xf(%rsp)
mov    %rbp,%rdi
lea    0xf(%rsp),%rsi
mov    $0x1,%edx
call   10a0 <strncat@plt>
lea    0xbcf(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
jmp    12a7 <runShell+0xb7>
lea    0xbc3(%rip),%rsi
mov    $0x3,%edx
call   1050 <strncmp@plt>
test   %rax,%rax
je     14cd <runShell+0x2dd>
mov    %rbx,%rdi
call   1070 <strlen@plt>
and    $0xfffffffffffffffe,%rax
cmp    $0x2,%rax
jne    14cd <runShell+0x2dd>
lea    0xba9(%rip),%rdi
call   1060 <puts@plt>
cmpb   $0x0,0x30(%rsp)
je     12a7 <runShell+0xb7>
lea    0x30(%rsp),%rdi
call   1040 <readListFile@plt>
jmp    12a7 <runShell+0xb7>
mov    %rbx,%rdi
lea    0xb75(%rip),%rsi
call   1110 <startsWithString@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     1544 <runShell+0x354>
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
xor    %edi,%edi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
mov    %rax,%rdi
lea    0xb35(%rip),%rsi
call   1100 <strtok@plt>
lea    0x30(%rsp),%rdi
mov    %rax,%rsi
call   1030 <removeDirectory@plt>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xor    %edi,%edi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
jne    1530 <runShell+0x340>
jmp    12a7 <runShell+0xb7>
lea    0xb08(%rip),%rsi
call   1110 <startsWithString@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
xor    %edi,%edi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
je     12a7 <runShell+0xb7>
mov    %rax,%rdi
lea    0xabd(%rip),%rsi
call   1100 <strtok@plt>
lea    0x30(%rsp),%rdi
mov    %rax,%rsi
call   10f0 <removeFile@plt>
nopl   0x0(%rax)
xor    %edi,%edi
mov    %r15,%rsi
call   1100 <strtok@plt>
test   %rax,%rax
jne    15a0 <runShell+0x3b0>
jmp    12a7 <runShell+0xb7>
lea    0x30(%rsp),%rdi
call   1070 <strlen@plt>
cmp    $0x14,%eax
jl     12a7 <runShell+0xb7>
add    $0xffffffff,%eax
nopw   0x0(%rax,%rax,1)
add    $0xffffffff,%eax
cmpb   $0x2f,0x30(%rsp,%rax,1)
je     12a7 <runShell+0xb7>
movb   $0x0,0x30(%rsp,%rax,1)
test   %eax,%eax
jg     15d0 <runShell+0x3e0>
jmp    12a7 <runShell+0xb7>
add    $0x238,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.runShell.rootOfFileSystem = [20 x i8] c".VirtualFileSystem/\00"
@.str = [4 x i8] c"%s>\00"
@stdin = global i32 0
@.str.1 = [11 x i8] c"Exit Shell\00"
@.str.2 = [9 x i8] c"Test RAM\00"
@.str.3 = [7 x i8] c"mkdir \00"
@.str.4 = [2 x i8] c" \00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [8 x i8] c"mkfile \00"
@.str.7 = [4 x i8] c"cd \00"
@.str.8 = [3 x i8] c"..\00"
@__const.runShell.tmp = [1 x i8] c"/"
@.str.9 = [10 x i8] c"Debug %s\0A\00"
@.str.10 = [3 x i8] c"ls\00"
@.str.11 = [34 x i8] c"Displaying directory contents...\0A\00"
@.str.12 = [7 x i8] c"rmdir \00"
@.str.13 = [4 x i8] c"rm \00"
define void @runShell() {
%1 = alloca [20 x i8]
%2 = alloca [255 x i8]
%3 = alloca [255 x i8]
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca [1 x i8]
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i8*
%16 = alloca i32
%17 = bitcast [20 x i8]* %1 to i8*
%18 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
store i8 0, i8* %18
%19 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%20 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%21 = call i32 @strncat(i8* %19, i8* %20, i32 20)
br label %22
22: ; preds = %0, %181, %241
%23 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%24 = getelementptr inbounds i8, i8* %23, i64 18
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%27 = load i32, i32* @stdin
%28 = call i32 @fgets(i8* %26, i32 255, i32 %27)
%29 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%30 = call i64 @strncmp(i8* %29, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 10)
%31 = icmp eq i64 %30, 0
br i1 %31, label %32, label %33
32: ; preds = %22
br label %242
33: ; preds = %22
%34 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%35 = call i64 @strncmp(i8* %34, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 8)
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i32 (...) @testRam()
br label %240
39: ; preds = %33
%40 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%41 = call i64 @startsWithString(i8* %40, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %69
43: ; preds = %39
%44 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%45 = call i8* @strtok(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %45, i8** %4
store i32 0, i32* %5
br label %46
46: ; preds = %64, %43
%47 = load i8*, i8** %4
%48 = icmp ne i8* %47, null
br i1 %48, label %49, label %68
49: ; preds = %46
%50 = load i32, i32* %5
%51 = icmp eq i32 %50, 1
br i1 %51, label %52, label %64
52: ; preds = %49
%53 = load i8*, i8** %4
%54 = call i8* @strtok(i8* %53, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %54, i8** %4
%55 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%56 = load i8*, i8** %4
%57 = call i64 @createDirectory(i8* %55, i8* %56)
%58 = icmp ne i64 %57, 0
br i1 %58, label %59, label %63
59: ; preds = %52
%60 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%61 = load i8*, i8** %4
%62 = call i32 @writeToListFile(i8* %60, i8* %61)
br label %63
63: ; preds = %59, %52
br label %68
64: ; preds = %49
%65 = load i32, i32* %5
%66 = add nsw i32 %65, 1
store i32 %66, i32* %5
%67 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %67, i8** %4
br label %46
68: ; preds = %63, %46
br label %239
69: ; preds = %39
%70 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%71 = call i64 @startsWithString(i8* %70, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %99
73: ; preds = %69
%74 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%75 = call i8* @strtok(i8* %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %75, i8** %6
store i32 0, i32* %7
br label %76
76: ; preds = %94, %73
%77 = load i8*, i8** %6
%78 = icmp ne i8* %77, null
br i1 %78, label %79, label %98
79: ; preds = %76
%80 = load i32, i32* %7
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %94
82: ; preds = %79
%83 = load i8*, i8** %6
%84 = call i8* @strtok(i8* %83, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %84, i8** %6
%85 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%86 = load i8*, i8** %6
%87 = call i64 @createFile(i8* %85, i8* %86)
%88 = icmp ne i64 %87, 0
br i1 %88, label %89, label %93
89: ; preds = %82
%90 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%91 = load i8*, i8** %6
%92 = call i32 @writeToListFile(i8* %90, i8* %91)
br label %93
93: ; preds = %89, %82
br label %98
94: ; preds = %79
%95 = load i32, i32* %7
%96 = add nsw i32 %95, 1
store i32 %96, i32* %7
%97 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %97, i8** %6
br label %76
98: ; preds = %93, %76
br label %238
99: ; preds = %69
%100 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%101 = call i64 @startsWithString(i8* %100, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %164
103: ; preds = %99
%104 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%105 = call i8* @strtok(i8* %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %105, i8** %8
store i32 0, i32* %9
br label %106
106: ; preds = %159, %103
%107 = load i8*, i8** %8
%108 = icmp ne i8* %107, null
br i1 %108, label %109, label %163
109: ; preds = %106
%110 = load i32, i32* %9
%111 = icmp eq i32 %110, 1
br i1 %111, label %112, label %159
112: ; preds = %109
%113 = load i8*, i8** %8
%114 = call i64 @strncmp(i8* %113, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %146
116: ; preds = %112
%117 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%118 = call i64 @strlen(i8* %117)
%119 = trunc i64 %118 to i32
store i32 %119, i32* %10
%120 = load i32, i32* %10
%121 = icmp sgt i32 %120, 19
br i1 %121, label %122, label %145
122: ; preds = %116
%123 = load i32, i32* %10
%124 = sub nsw i32 %123, 2
store i32 %124, i32* %11
br label %125
125: ; preds = %141, %122
%126 = load i32, i32* %11
%127 = icmp sge i32 %126, 0
br i1 %127, label %128, label %144
128: ; preds = %125
%129 = load i32, i32* %11
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 %130
%132 = load i8, i8* %131
%133 = sext i8 %132 to i32
%134 = icmp ne i32 %133, 47
br i1 %134, label %135, label %139
135: ; preds = %128
%136 = load i32, i32* %11
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 %137
store i8 0, i8* %138
br label %140
139: ; preds = %128
br label %144
140: ; preds = %135
br label %141
141: ; preds = %140
%142 = load i32, i32* %11
%143 = add nsw i32 %142, -1
store i32 %143, i32* %11
br label %125
144: ; preds = %139, %125
br label %145
145: ; preds = %144, %116
br label %158
146: ; preds = %112
%147 = load i8*, i8** %8
%148 = call i8* @strtok(i8* %147, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %148, i8** %8
%149 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%150 = load i8*, i8** %8
%151 = call i32 @strncat(i8* %149, i8* %150, i32 128)
%152 = bitcast [1 x i8]* %12 to i8*
%153 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%154 = getelementptr inbounds [1 x i8], [1 x i8]* %12, i64 0, i64 0
%155 = call i32 @strncat(i8* %153, i8* %154, i32 1)
%156 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8* %156)
br label %158
158: ; preds = %146, %145
br label %163
159: ; preds = %109
%160 = load i32, i32* %9
%161 = add nsw i32 %160, 1
store i32 %161, i32* %9
%162 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %162, i8** %8
br label %106
163: ; preds = %158, %106
br label %237
164: ; preds = %99
%165 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%166 = call i64 @strncmp(i8* %165, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 3)
%167 = icmp ne i64 %166, 0
br i1 %167, label %168, label %185
168: ; preds = %164
%169 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%170 = call i64 @strlen(i8* %169)
%171 = icmp eq i64 %170, 2
br i1 %171, label %176, label %172
172: ; preds = %168
%173 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%174 = call i64 @strlen(i8* %173)
%175 = icmp eq i64 %174, 3
br i1 %175, label %176, label %185
176: ; preds = %172, %168
%177 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.11, i64 0, i64 0))
%178 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%179 = call i64 @strlen(i8* %178)
%180 = icmp eq i64 %179, 0
br i1 %180, label %181, label %182
181: ; preds = %176
br label %22
182: ; preds = %176
%183 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%184 = call i32 @readListFile(i8* %183)
br label %236
185: ; preds = %172, %164
%186 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%187 = call i64 @startsWithString(i8* %186, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%188 = icmp ne i64 %187, 0
br i1 %188, label %189, label %209
189: ; preds = %185
%190 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%191 = call i8* @strtok(i8* %190, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %191, i8** %13
store i32 0, i32* %14
br label %192
192: ; preds = %204, %189
%193 = load i8*, i8** %13
%194 = icmp ne i8* %193, null
br i1 %194, label %195, label %208
195: ; preds = %192
%196 = load i32, i32* %14
%197 = icmp eq i32 %196, 1
br i1 %197, label %198, label %204
198: ; preds = %195
%199 = load i8*, i8** %13
%200 = call i8* @strtok(i8* %199, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %200, i8** %13
%201 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%202 = load i8*, i8** %13
%203 = call i32 @removeDirectory(i8* %201, i8* %202)
br label %204
204: ; preds = %198, %195
%205 = load i32, i32* %14
%206 = add nsw i32 %205, 1
store i32 %206, i32* %14
%207 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %207, i8** %13
br label %192
208: ; preds = %192
br label %235
209: ; preds = %185
%210 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%211 = call i64 @startsWithString(i8* %210, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%212 = icmp ne i64 %211, 0
br i1 %212, label %213, label %233
213: ; preds = %209
%214 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%215 = call i8* @strtok(i8* %214, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %215, i8** %15
store i32 0, i32* %16
br label %216
216: ; preds = %228, %213
%217 = load i8*, i8** %15
%218 = icmp ne i8* %217, null
br i1 %218, label %219, label %232
219: ; preds = %216
%220 = load i32, i32* %16
%221 = icmp eq i32 %220, 1
br i1 %221, label %222, label %228
222: ; preds = %219
%223 = load i8*, i8** %15
%224 = call i8* @strtok(i8* %223, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %224, i8** %15
%225 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
%226 = load i8*, i8** %15
%227 = call i32 @removeFile(i8* %225, i8* %226)
br label %228
228: ; preds = %222, %219
%229 = load i32, i32* %16
%230 = add nsw i32 %229, 1
store i32 %230, i32* %16
%231 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
store i8* %231, i8** %15
br label %216
232: ; preds = %216
br label %234
233: ; preds = %209
br label %234
234: ; preds = %233, %232
br label %235
235: ; preds = %234, %208
br label %236
236: ; preds = %235, %182
br label %237
237: ; preds = %236, %163
br label %238
238: ; preds = %237, %98
br label %239
239: ; preds = %238, %68
br label %240
240: ; preds = %239, %37
br label %241
241: ; preds = %240
br label %22
242: ; preds = %32
ret void
}

LLVM IR (-O2):
@__const.runShell.rootOfFileSystem = [20 x i8] c".VirtualFileSystem/\00"
@.str = [4 x i8] c"%s>\00"
@stdin = global i32 0
@.str.1 = [11 x i8] c"Exit Shell\00"
@.str.2 = [9 x i8] c"Test RAM\00"
@.str.3 = [7 x i8] c"mkdir \00"
@.str.4 = [2 x i8] c" \00"
@.str.5 = [2 x i8] c"\0A\00"
@.str.6 = [8 x i8] c"mkfile \00"
@.str.7 = [4 x i8] c"cd \00"
@.str.8 = [3 x i8] c"..\00"
@.str.9 = [10 x i8] c"Debug %s\0A\00"
@.str.10 = [3 x i8] c"ls\00"
@.str.12 = [7 x i8] c"rmdir \00"
@.str.13 = [4 x i8] c"rm \00"
@str = [33 x i8] c"Displaying directory contents...\00"
define void @runShell() {
%1 = alloca [20 x i8]
%2 = alloca [255 x i8]
%3 = alloca [255 x i8]
%4 = alloca [1 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %1, i64 0, i64 0
%6 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 0
store i8 0, i8* %6
%7 = call i32 @strncat(i8* %6, i8* %5, i32 20)
%8 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 18
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %8)
%10 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
%11 = load i32, i32* @stdin
%12 = call i32 @fgets(i8* %10, i32 255, i32 %11)
%13 = call i64 @strncmp(i8* %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 10)
%14 = icmp eq i64 %13, 0
br i1 %14, label %137, label %15
15: ; preds = %0
%16 = getelementptr inbounds [1 x i8], [1 x i8]* %4, i64 0, i64 0
br label %17
17: ; preds = %15, %131
%18 = call i64 @strncmp(i8* %10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 8)
%19 = icmp eq i64 %18, 0
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (...) @testRam()
br label %131
22: ; preds = %17
%23 = call i64 @startsWithString(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %37, label %25
25: ; preds = %22
%26 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%27 = icmp eq i8* %26, null
br i1 %27, label %131, label %28
28: ; preds = %25
%29 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%30 = icmp eq i8* %29, null
br i1 %30, label %131, label %31
31: ; preds = %28
%32 = call i8* @strtok(i8* %29, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%33 = call i64 @createDirectory(i8* %6, i8* %32)
%34 = icmp eq i64 %33, 0
br i1 %34, label %131, label %35
35: ; preds = %31
%36 = call i32 @writeToListFile(i8* %6, i8* %32)
br label %131
37: ; preds = %22
%38 = call i64 @startsWithString(i8* %10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %52, label %40
40: ; preds = %37
%41 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%42 = icmp eq i8* %41, null
br i1 %42, label %131, label %43
43: ; preds = %40
%44 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%45 = icmp eq i8* %44, null
br i1 %45, label %131, label %46
46: ; preds = %43
%47 = call i8* @strtok(i8* %44, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%48 = call i64 @createFile(i8* %6, i8* %47)
%49 = icmp eq i64 %48, 0
br i1 %49, label %131, label %50
50: ; preds = %46
%51 = call i32 @writeToListFile(i8* %6, i8* %47)
br label %131
52: ; preds = %37
%53 = call i64 @startsWithString(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %84, label %55
55: ; preds = %52
%56 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%57 = icmp eq i8* %56, null
br i1 %57, label %131, label %58
58: ; preds = %55
%59 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%60 = icmp eq i8* %59, null
br i1 %60, label %131, label %61
61: ; preds = %58
%62 = call i64 @strncmp(i8* %59, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i32 2)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %79
64: ; preds = %61
%65 = call i64 @strlen(i8* %6)
%66 = trunc i64 %65 to i32
%67 = icmp sgt i32 %66, 19
br i1 %67, label %68, label %131
68: ; preds = %64
%69 = add nsw i32 %66, -2
br label %70
70: ; preds = %68, %76
%71 = phi i32 [ %77, %76 ], [ %69, %68 ]
%72 = zext i32 %71 to i64
%73 = getelementptr inbounds [255 x i8], [255 x i8]* %2, i64 0, i64 %72
%74 = load i8, i8* %73
%75 = icmp eq i8 %74, 47
br i1 %75, label %131, label %76
76: ; preds = %70
store i8 0, i8* %73
%77 = add nsw i32 %71, -1
%78 = icmp sgt i32 %71, 0
br i1 %78, label %70, label %131
79: ; preds = %61
%80 = call i8* @strtok(i8* %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%81 = call i32 @strncat(i8* %6, i8* %80, i32 128)
store i8 47, i8* %16
%82 = call i32 @strncat(i8* %6, i8* %16, i32 1)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.9, i64 0, i64 0), i8* %6)
br label %131
84: ; preds = %52
%85 = call i64 @strncmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i32 3)
%86 = icmp eq i64 %85, 0
br i1 %86, label %97, label %87
87: ; preds = %84
%88 = call i64 @strlen(i8* %10)
%89 = and i64 %88, -2
%90 = icmp eq i64 %89, 2
br i1 %90, label %91, label %97
91: ; preds = %87
%92 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str, i64 0, i64 0))
%93 = load i8, i8* %6
%94 = icmp eq i8 %93, 0
br i1 %94, label %131, label %95
95: ; preds = %91
%96 = call i32 @readListFile(i8* %6)
br label %131
97: ; preds = %87, %84
%98 = call i64 @startsWithString(i8* %10, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0))
%99 = icmp eq i64 %98, 0
br i1 %99, label %114, label %100
100: ; preds = %97
%101 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%102 = icmp eq i8* %101, null
br i1 %102, label %131, label %103
103: ; preds = %100
%104 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%105 = icmp eq i8* %104, null
br i1 %105, label %131, label %106
106: ; preds = %103
%107 = call i8* @strtok(i8* %104, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%108 = call i32 @removeDirectory(i8* %6, i8* %107)
%109 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%110 = icmp eq i8* %109, null
br i1 %110, label %131, label %111
111: ; preds = %106, %111
%112 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%113 = icmp eq i8* %112, null
br i1 %113, label %131, label %111
114: ; preds = %97
%115 = call i64 @startsWithString(i8* %10, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%116 = icmp eq i64 %115, 0
br i1 %116, label %131, label %117
117: ; preds = %114
%118 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%119 = icmp eq i8* %118, null
br i1 %119, label %131, label %120
120: ; preds = %117
%121 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%122 = icmp eq i8* %121, null
br i1 %122, label %131, label %123
123: ; preds = %120
%124 = call i8* @strtok(i8* %121, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%125 = call i32 @removeFile(i8* %6, i8* %124)
%126 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%127 = icmp eq i8* %126, null
br i1 %127, label %131, label %128
128: ; preds = %123, %128
%129 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%130 = icmp eq i8* %129, null
br i1 %130, label %131, label %128
131: ; preds = %76, %70, %111, %128, %28, %43, %58, %103, %106, %120, %123, %25, %40, %55, %100, %117, %114, %95, %20, %31, %35, %46, %50, %64, %79, %91
%132 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %8)
%133 = load i32, i32* @stdin
%134 = call i32 @fgets(i8* %10, i32 255, i32 %133)
%135 = call i64 @strncmp(i8* %10, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 10)
%136 = icmp eq i64 %135, 0
br i1 %136, label %137, label %17
137: ; preds = %131, %0
ret void
}