#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 add(char *, char *, char *);
int /*<<< orphan*/ atol(char *);
int /*<<< orphan*/ check_arg_cnt(int, char **);
int create_arch(char *, int /*<<< orphan*/, int /*<<< orphan*/);
int defrag(char *);
int del(char *, int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/);
int /*<<< orphan*/ free_bytes(char *);
int get(char *, int /*<<< orphan*/, char *);
int list(char *);
int /*<<< orphan*/ printcmds();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
scalar_t__ strcmp(char *, char *);
int /*<<< orphan*/ used(char *);
int main(int argc, char *argv[]) {
  printf("VFS #%04d\n\n", 0001);
  int ret = 0;
  if (argc > 2) {
    check_arg_cnt(argc, argv);
    if (strcmp(argv[2], "create") == 0)
      ret = create_arch(argv[1], atol(argv[3]), atol(argv[4]));
    else if (strcmp(argv[2], "add") == 0)
      ret = add(argv[1], argv[3], argv[4]);
    else if (strcmp(argv[2], "get") == 0)
      ret = get(argv[1], atol(argv[3]), argv[4]);
    else if (strcmp(argv[2], "del") == 0)
      ret = del(argv[1], atol(argv[3]));
    else if (strcmp(argv[2], "defrag") == 0)
      ret = defrag(argv[1]);
    else if (strcmp(argv[2], "free") == 0)
      printf("Space left: %lu Bytes\n", free_bytes(argv[1]));
    else if (strcmp(argv[2], "list") == 0)
      ret = list(argv[1]);
    else if (strcmp(argv[2], "used") == 0)
      printf("Space used: %lu Bytes\n", used(argv[1]));
    else {
      printf("Unknown operation.\n\n");
      printcmds();
      ret = 66;
    }
  } else {
    printf("At least 2 arguments expected!\n\n");
    printcmds();
    ret = 66;
  }
  fclose(stdin);
  fclose(stdout);
  fclose(stderr);
  return ret;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe03(%rip),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x8(%rbp)
jle    148c <main+0x2ac>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10c0 <check_arg_cnt@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xdd7(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1283 <main+0xa3>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10d0 <atol@plt>
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   10d0 <atol@plt>
mov    -0x20(%rbp),%rdi
mov    -0x18(%rbp),%esi
mov    %eax,%edx
call   10f0 <create_arch@plt>
mov    %eax,-0x14(%rbp)
jmp    1487 <main+0x2a7>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd81(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    12c6 <main+0xe6>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdx
call   1030 <add@plt>
mov    %eax,-0x14(%rbp)
jmp    1482 <main+0x2a2>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xd42(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1318 <main+0x138>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10d0 <atol@plt>
mov    -0x28(%rbp),%rdi
mov    %eax,%esi
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdx
call   10b0 <get@plt>
mov    %eax,-0x14(%rbp)
jmp    147d <main+0x29d>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcf4(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1362 <main+0x182>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   10d0 <atol@plt>
mov    -0x30(%rbp),%rdi
mov    %eax,%esi
call   10e0 <del@plt>
mov    %eax,-0x14(%rbp)
jmp    1478 <main+0x298>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xcae(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1395 <main+0x1b5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <defrag@plt>
mov    %eax,-0x14(%rbp)
jmp    1473 <main+0x293>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc82(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    13d5 <main+0x1f5>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1100 <free_bytes@plt>
mov    %eax,%esi
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    146e <main+0x28e>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc5e(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1408 <main+0x228>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1090 <list@plt>
mov    %eax,-0x14(%rbp)
jmp    1469 <main+0x289>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xc30(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%rax
jne    1448 <main+0x268>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <used@plt>
mov    %eax,%esi
lea    0xc10(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1464 <main+0x284>
lea    0xc14(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <printcmds@plt>
movl   $0x42,-0x14(%rbp)
jmp    1469 <main+0x289>
jmp    146e <main+0x28e>
jmp    1473 <main+0x293>
jmp    1478 <main+0x298>
jmp    147d <main+0x29d>
jmp    1482 <main+0x2a2>
jmp    1487 <main+0x2a7>
jmp    14a8 <main+0x2c8>
lea    0xbe5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <printcmds@plt>
movl   $0x42,-0x14(%rbp)
mov    0x2b39(%rip),%rax
mov    (%rax),%edi
call   1040 <fclose@plt>
mov    0x2b13(%rip),%rax
mov    (%rax),%edi
call   1040 <fclose@plt>
mov    0x2b0d(%rip),%rax
mov    (%rax),%edi
call   1040 <fclose@plt>
mov    -0x14(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %edi,%ebp
lea    0xe00(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1060 <printf@plt>
cmp    $0x3,%ebp
jl     12f0 <main+0x100>
mov    %ebp,%edi
mov    %rbx,%rsi
call   10d0 <check_arg_cnt@plt>
mov    0x10(%rbx),%rdi
lea    0xde2(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     130d <main+0x11d>
mov    0x10(%rbx),%rdi
lea    0xdd0(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1338 <main+0x148>
mov    0x10(%rbx),%rdi
lea    0xdbb(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1350 <main+0x160>
mov    0x10(%rbx),%rdi
lea    0xda6(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     136f <main+0x17f>
mov    0x10(%rbx),%rdi
lea    0xd91(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     138a <main+0x19a>
mov    0x10(%rbx),%rdi
lea    0xd7f(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     1397 <main+0x1a7>
mov    0x10(%rbx),%rdi
lea    0xd82(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13a9 <main+0x1b9>
mov    0x10(%rbx),%rdi
lea    0xd6e(%rip),%rsi
call   1090 <strcmp@plt>
test   %rax,%rax
je     13b6 <main+0x1c6>
lea    0xd95(%rip),%rdi
jmp    12f7 <main+0x107>
lea    0xd6c(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   10b0 <printcmds@plt>
mov    $0x42,%ebx
jmp    13d1 <main+0x1e1>
mov    0x8(%rbx),%r14
mov    0x18(%rbx),%rdi
call   10e0 <atol@plt>
mov    %eax,%ebp
mov    0x20(%rbx),%rdi
call   10e0 <atol@plt>
mov    %r14,%rdi
mov    %ebp,%esi
mov    %eax,%edx
call   1100 <create_arch@plt>
mov    %eax,%ebx
jmp    13d1 <main+0x1e1>
mov    0x8(%rbx),%rdi
mov    0x18(%rbx),%rsi
mov    0x20(%rbx),%rdx
call   1030 <add@plt>
mov    %eax,%ebx
jmp    13d1 <main+0x1e1>
mov    0x8(%rbx),%rbp
mov    0x18(%rbx),%rdi
call   10e0 <atol@plt>
mov    0x20(%rbx),%rdx
mov    %rbp,%rdi
mov    %eax,%esi
call   10c0 <get@plt>
mov    %eax,%ebx
jmp    13d1 <main+0x1e1>
mov    0x8(%rbx),%rbp
mov    0x18(%rbx),%rdi
call   10e0 <atol@plt>
mov    %rbp,%rdi
mov    %eax,%esi
call   10f0 <del@plt>
mov    %eax,%ebx
jmp    13d1 <main+0x1e1>
mov    0x8(%rbx),%rdi
call   1080 <defrag@plt>
mov    %eax,%ebx
jmp    13d1 <main+0x1e1>
mov    0x8(%rbx),%rdi
call   1110 <free_bytes@plt>
lea    0xc84(%rip),%rdi
jmp    13c6 <main+0x1d6>
mov    0x8(%rbx),%rdi
call   10a0 <list@plt>
mov    %eax,%ebx
jmp    13d1 <main+0x1e1>
mov    0x8(%rbx),%rdi
call   1070 <used@plt>
lea    0xc86(%rip),%rdi
xor    %ebx,%ebx
mov    %eax,%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    0x2c10(%rip),%rax
mov    (%rax),%edi
call   1050 <fclose@plt>
mov    0x2bea(%rip),%rax
mov    (%rax),%edi
call   1050 <fclose@plt>
mov    0x2be4(%rip),%rax
mov    (%rax),%edi
call   1050 <fclose@plt>
mov    %ebx,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@.str = [12 x i8] c"VFS #%04d\0A\0A\00"
@.str.1 = [7 x i8] c"create\00"
@.str.2 = [4 x i8] c"add\00"
@.str.3 = [4 x i8] c"get\00"
@.str.4 = [4 x i8] c"del\00"
@.str.5 = [7 x i8] c"defrag\00"
@.str.6 = [5 x i8] c"free\00"
@.str.7 = [23 x i8] c"Space left: %lu Bytes\0A\00"
@.str.8 = [5 x i8] c"list\00"
@.str.9 = [5 x i8] c"used\00"
@.str.10 = [23 x i8] c"Space used: %lu Bytes\0A\00"
@.str.11 = [21 x i8] c"Unknown operation.\0A\0A\00"
@.str.12 = [33 x i8] c"At least 2 arguments expected!\0A\0A\00"
@stdin = global i32 0
@stdout = global i32 0
@stderr = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 1)
store i32 0, i32* %6
%8 = load i32, i32* %4
%9 = icmp sgt i32 %8, 2
br i1 %9, label %10, label %139
10: ; preds = %2
%11 = load i32, i32* %4
%12 = load i8**, i8*** %5
%13 = call i32 @check_arg_cnt(i32 %11, i8** %12)
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 2
%16 = load i8*, i8** %15
%17 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %32
19: ; preds = %10
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 3
%25 = load i8*, i8** %24
%26 = call i32 @atol(i8* %25)
%27 = load i8**, i8*** %5
%28 = getelementptr inbounds i8*, i8** %27, i64 4
%29 = load i8*, i8** %28
%30 = call i32 @atol(i8* %29)
%31 = call i32 @create_arch(i8* %22, i32 %26, i32 %30)
store i32 %31, i32* %6
br label %138
32: ; preds = %10
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 2
%35 = load i8*, i8** %34
%36 = call i64 @strcmp(i8* %35, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %49
38: ; preds = %32
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 3
%44 = load i8*, i8** %43
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 4
%47 = load i8*, i8** %46
%48 = call i32 @add(i8* %41, i8* %44, i8* %47)
store i32 %48, i32* %6
br label %137
49: ; preds = %32
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 2
%52 = load i8*, i8** %51
%53 = call i64 @strcmp(i8* %52, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %67
55: ; preds = %49
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i64 1
%58 = load i8*, i8** %57
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 3
%61 = load i8*, i8** %60
%62 = call i32 @atol(i8* %61)
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 4
%65 = load i8*, i8** %64
%66 = call i32 @get(i8* %58, i32 %62, i8* %65)
store i32 %66, i32* %6
br label %136
67: ; preds = %49
%68 = load i8**, i8*** %5
%69 = getelementptr inbounds i8*, i8** %68, i64 2
%70 = load i8*, i8** %69
%71 = call i64 @strcmp(i8* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%72 = icmp eq i64 %71, 0
br i1 %72, label %73, label %82
73: ; preds = %67
%74 = load i8**, i8*** %5
%75 = getelementptr inbounds i8*, i8** %74, i64 1
%76 = load i8*, i8** %75
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 3
%79 = load i8*, i8** %78
%80 = call i32 @atol(i8* %79)
%81 = call i32 @del(i8* %76, i32 %80)
store i32 %81, i32* %6
br label %135
82: ; preds = %67
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 2
%85 = load i8*, i8** %84
%86 = call i64 @strcmp(i8* %85, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%87 = icmp eq i64 %86, 0
br i1 %87, label %88, label %93
88: ; preds = %82
%89 = load i8**, i8*** %5
%90 = getelementptr inbounds i8*, i8** %89, i64 1
%91 = load i8*, i8** %90
%92 = call i32 @defrag(i8* %91)
store i32 %92, i32* %6
br label %134
93: ; preds = %82
%94 = load i8**, i8*** %5
%95 = getelementptr inbounds i8*, i8** %94, i64 2
%96 = load i8*, i8** %95
%97 = call i64 @strcmp(i8* %96, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %105
99: ; preds = %93
%100 = load i8**, i8*** %5
%101 = getelementptr inbounds i8*, i8** %100, i64 1
%102 = load i8*, i8** %101
%103 = call i32 @free_bytes(i8* %102)
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %103)
br label %133
105: ; preds = %93
%106 = load i8**, i8*** %5
%107 = getelementptr inbounds i8*, i8** %106, i64 2
%108 = load i8*, i8** %107
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %116
111: ; preds = %105
%112 = load i8**, i8*** %5
%113 = getelementptr inbounds i8*, i8** %112, i64 1
%114 = load i8*, i8** %113
%115 = call i32 @list(i8* %114)
store i32 %115, i32* %6
br label %132
116: ; preds = %105
%117 = load i8**, i8*** %5
%118 = getelementptr inbounds i8*, i8** %117, i64 2
%119 = load i8*, i8** %118
%120 = call i64 @strcmp(i8* %119, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%121 = icmp eq i64 %120, 0
br i1 %121, label %122, label %128
122: ; preds = %116
%123 = load i8**, i8*** %5
%124 = getelementptr inbounds i8*, i8** %123, i64 1
%125 = load i8*, i8** %124
%126 = call i32 @used(i8* %125)
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 %126)
br label %131
128: ; preds = %116
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0))
%130 = call i32 (...) @printcmds()
store i32 66, i32* %6
br label %131
131: ; preds = %128, %122
br label %132
132: ; preds = %131, %111
br label %133
133: ; preds = %132, %99
br label %134
134: ; preds = %133, %88
br label %135
135: ; preds = %134, %73
br label %136
136: ; preds = %135, %55
br label %137
137: ; preds = %136, %38
br label %138
138: ; preds = %137, %19
br label %142
139: ; preds = %2
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.12, i64 0, i64 0))
%141 = call i32 (...) @printcmds()
store i32 66, i32* %6
br label %142
142: ; preds = %139, %138
%143 = load i32, i32* @stdin
%144 = call i32 @fclose(i32 %143)
%145 = load i32, i32* @stdout
%146 = call i32 @fclose(i32 %145)
%147 = load i32, i32* @stderr
%148 = call i32 @fclose(i32 %147)
%149 = load i32, i32* %6
ret i32 %149
}

LLVM IR (-O2):
@.str = [12 x i8] c"VFS #%04d\0A\0A\00"
@.str.1 = [7 x i8] c"create\00"
@.str.2 = [4 x i8] c"add\00"
@.str.3 = [4 x i8] c"get\00"
@.str.4 = [4 x i8] c"del\00"
@.str.5 = [7 x i8] c"defrag\00"
@.str.6 = [5 x i8] c"free\00"
@.str.7 = [23 x i8] c"Space left: %lu Bytes\0A\00"
@.str.8 = [5 x i8] c"list\00"
@.str.9 = [5 x i8] c"used\00"
@.str.10 = [23 x i8] c"Space used: %lu Bytes\0A\00"
@stdin = global i32 0
@stdout = global i32 0
@stderr = global i32 0
@str = [32 x i8] c"At least 2 arguments expected!\0A\00"
@str.13 = [20 x i8] c"Unknown operation.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = icmp sgt i32 %0, 2
br i1 %4, label %5, label %94
5: ; preds = %2
%6 = tail call i32 @check_arg_cnt(i32 %0, i8** %1)
%7 = getelementptr inbounds i8*, i8** %1, i64 2
%8 = load i8*, i8** %7
%9 = tail call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %21
11: ; preds = %5
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = getelementptr inbounds i8*, i8** %1, i64 3
%15 = load i8*, i8** %14
%16 = tail call i32 @atol(i8* %15)
%17 = getelementptr inbounds i8*, i8** %1, i64 4
%18 = load i8*, i8** %17
%19 = tail call i32 @atol(i8* %18)
%20 = tail call i32 @create_arch(i8* %13, i32 %16, i32 %19)
br label %97
21: ; preds = %5
%22 = load i8*, i8** %7
%23 = tail call i64 @strcmp(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %33
25: ; preds = %21
%26 = getelementptr inbounds i8*, i8** %1, i64 1
%27 = load i8*, i8** %26
%28 = getelementptr inbounds i8*, i8** %1, i64 3
%29 = load i8*, i8** %28
%30 = getelementptr inbounds i8*, i8** %1, i64 4
%31 = load i8*, i8** %30
%32 = tail call i32 @add(i8* %27, i8* %29, i8* %31)
br label %97
33: ; preds = %21
%34 = load i8*, i8** %7
%35 = tail call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %46
37: ; preds = %33
%38 = getelementptr inbounds i8*, i8** %1, i64 1
%39 = load i8*, i8** %38
%40 = getelementptr inbounds i8*, i8** %1, i64 3
%41 = load i8*, i8** %40
%42 = tail call i32 @atol(i8* %41)
%43 = getelementptr inbounds i8*, i8** %1, i64 4
%44 = load i8*, i8** %43
%45 = tail call i32 @get(i8* %39, i32 %42, i8* %44)
br label %97
46: ; preds = %33
%47 = load i8*, i8** %7
%48 = tail call i64 @strcmp(i8* %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%49 = icmp eq i64 %48, 0
br i1 %49, label %50, label %57
50: ; preds = %46
%51 = getelementptr inbounds i8*, i8** %1, i64 1
%52 = load i8*, i8** %51
%53 = getelementptr inbounds i8*, i8** %1, i64 3
%54 = load i8*, i8** %53
%55 = tail call i32 @atol(i8* %54)
%56 = tail call i32 @del(i8* %52, i32 %55)
br label %97
57: ; preds = %46
%58 = load i8*, i8** %7
%59 = tail call i64 @strcmp(i8* %58, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %65
61: ; preds = %57
%62 = getelementptr inbounds i8*, i8** %1, i64 1
%63 = load i8*, i8** %62
%64 = tail call i32 @defrag(i8* %63)
br label %97
65: ; preds = %57
%66 = load i8*, i8** %7
%67 = tail call i64 @strcmp(i8* %66, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%68 = icmp eq i64 %67, 0
br i1 %68, label %69, label %74
69: ; preds = %65
%70 = getelementptr inbounds i8*, i8** %1, i64 1
%71 = load i8*, i8** %70
%72 = tail call i32 @free_bytes(i8* %71)
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 %72)
br label %97
74: ; preds = %65
%75 = load i8*, i8** %7
%76 = tail call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %82
78: ; preds = %74
%79 = getelementptr inbounds i8*, i8** %1, i64 1
%80 = load i8*, i8** %79
%81 = tail call i32 @list(i8* %80)
br label %97
82: ; preds = %74
%83 = load i8*, i8** %7
%84 = tail call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %91
86: ; preds = %82
%87 = getelementptr inbounds i8*, i8** %1, i64 1
%88 = load i8*, i8** %87
%89 = tail call i32 @used(i8* %88)
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), i32 %89)
br label %97
91: ; preds = %82
%92 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.13, i64 0, i64 0))
%93 = tail call i32 (...) @printcmds()
br label %97
94: ; preds = %2
%95 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%96 = tail call i32 (...) @printcmds()
br label %97
97: ; preds = %11, %37, %61, %78, %91, %86, %69, %50, %25, %94
%98 = phi i32 [ %20, %11 ], [ %32, %25 ], [ %45, %37 ], [ %56, %50 ], [ %64, %61 ], [ 0, %69 ], [ %81, %78 ], [ 0, %86 ], [ 66, %91 ], [ 66, %94 ]
%99 = load i32, i32* @stdin
%100 = tail call i32 @fclose(i32 %99)
%101 = load i32, i32* @stdout
%102 = tail call i32 @fclose(i32 %101)
%103 = load i32, i32* @stderr
%104 = tail call i32 @fclose(i32 %103)
ret i32 %98
}