#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 cd(int, char **);
int dirs(int, char **);
int echo(int, char **);
int exec(int, char **);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int exitc(int, char **);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int help(int, char **);
int popd(int, char **);
int pushd(int, char **);
int pwd(int, char **);
int run(int, char **);
int runpipe(int, char **);
int setpipe(int, char **);
int /*<<< orphan*/ stderr;
scalar_t__ strcmp(char *, char *);
int run_cmd(int argc, char **argv) {
  if (strcmp(argv[0], "echo") == 0) {
    return echo(argc, argv);
  } else if (strcmp(argv[0], "cd") == 0 || strcmp(argv[0], "chdir") == 0) {
    return cd(argc, argv);
  } else if (strcmp(argv[0], "exit") == 0) {
    fprintf(stderr, "exit\n");
    exit(0);
    return 0;
  } else if (strcmp(argv[0], "exec") == 0) {
    return exec(argc, argv);
  } else if (strcmp(argv[0], "pushd") == 0) {
    return pushd(argc, argv);
  } else if (strcmp(argv[0], "popd") == 0) {
    return popd(argc, argv);
  } else if (strcmp(argv[0], "dirs") == 0) {
    return dirs(argc, argv);
  } else if (strcmp(argv[0], "help") == 0) {
    return help(argc, argv);
  } else if (strcmp(argv[0], "exitc") == 0) {
    return exitc(argc, argv);
  } else if (strcmp(argv[0], "pwd") == 0) {
    return pwd(argc, argv);
  } else if (strcmp(argv[0], "setpipe") == 0) {
    return setpipe(argc, argv);
  } else if (strcmp(argv[0], "runpipe") == 0) {
    return runpipe(argc, argv);
  } else {
    return run(argc, argv);
  }
}


x86 assembly (clang, -O0):
<run_cmd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xdf3(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1230 <run_cmd+0x40>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <echo@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xdc7(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
je     126a <run_cmd+0x7a>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xdad(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    127e <run_cmd+0x8e>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1040 <cd@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd82(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    12b7 <run_cmd+0xc7>
mov    0x2d3e(%rip),%rax
mov    (%rax),%edi
lea    0xd68(%rip),%rsi
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd54(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    12e8 <run_cmd+0xf8>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1100 <exec@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xd28(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1319 <run_cmd+0x129>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1070 <pushd@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcfd(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    134a <run_cmd+0x15a>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1090 <popd@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xcd1(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    137b <run_cmd+0x18b>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1110 <dirs@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xca5(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13ac <run_cmd+0x1bc>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10e0 <help@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc79(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    13dd <run_cmd+0x1ed>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10d0 <exitc@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc4e(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    140e <run_cmd+0x21e>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1080 <pwd@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc21(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    143f <run_cmd+0x24f>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   10c0 <setpipe@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xbf8(%rip),%rsi
call   10a0 <strcmp@plt>
cmp    $0x0,%rax
jne    1470 <run_cmd+0x280>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1060 <runpipe@plt>
mov    %eax,-0x4(%rbp)
jmp    147f <run_cmd+0x28f>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <run@plt>
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<run_cmd>:
push   %rbp
push   %rbx
push   %rax
mov    %rsi,%rbx
mov    %edi,%ebp
mov    (%rsi),%rdi
lea    0xdfe(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1350 <run_cmd+0x160>
mov    (%rbx),%rdi
lea    0xdeb(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1340 <run_cmd+0x150>
mov    (%rbx),%rdi
lea    0xdd6(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1340 <run_cmd+0x150>
mov    (%rbx),%rdi
lea    0xdc4(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13e7 <run_cmd+0x1f7>
mov    (%rbx),%rdi
lea    0xdb7(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1360 <run_cmd+0x170>
mov    (%rbx),%rdi
lea    0xda4(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1370 <run_cmd+0x180>
mov    (%rbx),%rdi
lea    0xd92(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1380 <run_cmd+0x190>
mov    (%rbx),%rdi
lea    0xd7f(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     1390 <run_cmd+0x1a0>
mov    (%rbx),%rdi
lea    0xd6c(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13a0 <run_cmd+0x1b0>
mov    (%rbx),%rdi
lea    0xd59(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13b0 <run_cmd+0x1c0>
mov    (%rbx),%rdi
lea    0xd47(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13c0 <run_cmd+0x1d0>
mov    (%rbx),%rdi
lea    0xd33(%rip),%rsi
call   10a0 <strcmp@plt>
test   %rax,%rax
je     13d0 <run_cmd+0x1e0>
mov    (%rbx),%rdi
lea    0xd23(%rip),%rsi
call   10a0 <strcmp@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
test   %rax,%rax
je     13e0 <run_cmd+0x1f0>
pop    %rbx
pop    %rbp
jmp    1050 <run@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <cd@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1030 <echo@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1100 <exec@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1070 <pushd@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1090 <popd@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1110 <dirs@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10e0 <help@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10d0 <exitc@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1080 <pwd@plt>
mov    %ebp,%edi
mov    %rbx,%rsi
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    10c0 <setpipe@plt>
pop    %rbx
pop    %rbp
jmp    1060 <runpipe@plt>
mov    0x2bf2(%rip),%rax
mov    (%rax),%edi
lea    0xc1c(%rip),%rsi
call   10b0 <fprintf@plt>
xor    %edi,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"echo\00"
@.str.1 = [3 x i8] c"cd\00"
@.str.2 = [6 x i8] c"chdir\00"
@.str.3 = [5 x i8] c"exit\00"
@stderr = global i32 0
@.str.4 = [6 x i8] c"exit\0A\00"
@.str.5 = [5 x i8] c"exec\00"
@.str.6 = [6 x i8] c"pushd\00"
@.str.7 = [5 x i8] c"popd\00"
@.str.8 = [5 x i8] c"dirs\00"
@.str.9 = [5 x i8] c"help\00"
@.str.10 = [6 x i8] c"exitc\00"
@.str.11 = [4 x i8] c"pwd\00"
@.str.12 = [8 x i8] c"setpipe\00"
@.str.13 = [8 x i8] c"runpipe\00"
define i32 @run_cmd(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i8**, i8*** %5
%7 = getelementptr inbounds i8*, i8** %6, i64 0
%8 = load i8*, i8** %7
%9 = call i64 @strcmp(i8* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %15
11: ; preds = %2
%12 = load i32, i32* %4
%13 = load i8**, i8*** %5
%14 = call i32 @echo(i32 %12, i8** %13)
store i32 %14, i32* %3
br label %135
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %27, label %21
21: ; preds = %15
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 0
%24 = load i8*, i8** %23
%25 = call i64 @strcmp(i8* %24, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %31
27: ; preds = %21, %15
%28 = load i32, i32* %4
%29 = load i8**, i8*** %5
%30 = call i32 @cd(i32 %28, i8** %29)
store i32 %30, i32* %3
br label %135
31: ; preds = %21
%32 = load i8**, i8*** %5
%33 = getelementptr inbounds i8*, i8** %32, i64 0
%34 = load i8*, i8** %33
%35 = call i64 @strcmp(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %41
37: ; preds = %31
%38 = load i32, i32* @stderr
%39 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%40 = call i32 @exit(i32 0)
unreachable
41: ; preds = %31
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 0
%44 = load i8*, i8** %43
%45 = call i64 @strcmp(i8* %44, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%46 = icmp eq i64 %45, 0
br i1 %46, label %47, label %51
47: ; preds = %41
%48 = load i32, i32* %4
%49 = load i8**, i8*** %5
%50 = call i32 @exec(i32 %48, i8** %49)
store i32 %50, i32* %3
br label %135
51: ; preds = %41
%52 = load i8**, i8*** %5
%53 = getelementptr inbounds i8*, i8** %52, i64 0
%54 = load i8*, i8** %53
%55 = call i64 @strcmp(i8* %54, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %61
57: ; preds = %51
%58 = load i32, i32* %4
%59 = load i8**, i8*** %5
%60 = call i32 @pushd(i32 %58, i8** %59)
store i32 %60, i32* %3
br label %135
61: ; preds = %51
%62 = load i8**, i8*** %5
%63 = getelementptr inbounds i8*, i8** %62, i64 0
%64 = load i8*, i8** %63
%65 = call i64 @strcmp(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %61
%68 = load i32, i32* %4
%69 = load i8**, i8*** %5
%70 = call i32 @popd(i32 %68, i8** %69)
store i32 %70, i32* %3
br label %135
71: ; preds = %61
%72 = load i8**, i8*** %5
%73 = getelementptr inbounds i8*, i8** %72, i64 0
%74 = load i8*, i8** %73
%75 = call i64 @strcmp(i8* %74, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%76 = icmp eq i64 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %71
%78 = load i32, i32* %4
%79 = load i8**, i8*** %5
%80 = call i32 @dirs(i32 %78, i8** %79)
store i32 %80, i32* %3
br label %135
81: ; preds = %71
%82 = load i8**, i8*** %5
%83 = getelementptr inbounds i8*, i8** %82, i64 0
%84 = load i8*, i8** %83
%85 = call i64 @strcmp(i8* %84, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%86 = icmp eq i64 %85, 0
br i1 %86, label %87, label %91
87: ; preds = %81
%88 = load i32, i32* %4
%89 = load i8**, i8*** %5
%90 = call i32 @help(i32 %88, i8** %89)
store i32 %90, i32* %3
br label %135
91: ; preds = %81
%92 = load i8**, i8*** %5
%93 = getelementptr inbounds i8*, i8** %92, i64 0
%94 = load i8*, i8** %93
%95 = call i64 @strcmp(i8* %94, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%96 = icmp eq i64 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %91
%98 = load i32, i32* %4
%99 = load i8**, i8*** %5
%100 = call i32 @exitc(i32 %98, i8** %99)
store i32 %100, i32* %3
br label %135
101: ; preds = %91
%102 = load i8**, i8*** %5
%103 = getelementptr inbounds i8*, i8** %102, i64 0
%104 = load i8*, i8** %103
%105 = call i64 @strcmp(i8* %104, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%106 = icmp eq i64 %105, 0
br i1 %106, label %107, label %111
107: ; preds = %101
%108 = load i32, i32* %4
%109 = load i8**, i8*** %5
%110 = call i32 @pwd(i32 %108, i8** %109)
store i32 %110, i32* %3
br label %135
111: ; preds = %101
%112 = load i8**, i8*** %5
%113 = getelementptr inbounds i8*, i8** %112, i64 0
%114 = load i8*, i8** %113
%115 = call i64 @strcmp(i8* %114, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%116 = icmp eq i64 %115, 0
br i1 %116, label %117, label %121
117: ; preds = %111
%118 = load i32, i32* %4
%119 = load i8**, i8*** %5
%120 = call i32 @setpipe(i32 %118, i8** %119)
store i32 %120, i32* %3
br label %135
121: ; preds = %111
%122 = load i8**, i8*** %5
%123 = getelementptr inbounds i8*, i8** %122, i64 0
%124 = load i8*, i8** %123
%125 = call i64 @strcmp(i8* %124, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%126 = icmp eq i64 %125, 0
br i1 %126, label %127, label %131
127: ; preds = %121
%128 = load i32, i32* %4
%129 = load i8**, i8*** %5
%130 = call i32 @runpipe(i32 %128, i8** %129)
store i32 %130, i32* %3
br label %135
131: ; preds = %121
%132 = load i32, i32* %4
%133 = load i8**, i8*** %5
%134 = call i32 @run(i32 %132, i8** %133)
store i32 %134, i32* %3
br label %135
135: ; preds = %131, %127, %117, %107, %97, %87, %77, %67, %57, %47, %27, %11
%136 = load i32, i32* %3
ret i32 %136
}

LLVM IR (-O2):
@.str = [5 x i8] c"echo\00"
@.str.1 = [3 x i8] c"cd\00"
@.str.2 = [6 x i8] c"chdir\00"
@.str.3 = [5 x i8] c"exit\00"
@stderr = global i32 0
@.str.4 = [6 x i8] c"exit\0A\00"
@.str.5 = [5 x i8] c"exec\00"
@.str.6 = [6 x i8] c"pushd\00"
@.str.7 = [5 x i8] c"popd\00"
@.str.8 = [5 x i8] c"dirs\00"
@.str.9 = [5 x i8] c"help\00"
@.str.10 = [6 x i8] c"exitc\00"
@.str.11 = [4 x i8] c"pwd\00"
@.str.12 = [8 x i8] c"setpipe\00"
@.str.13 = [8 x i8] c"runpipe\00"
define i32 @run_cmd(i32 %0, i8** %1) {
%3 = load i8*, i8** %1
%4 = tail call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @echo(i32 %0, i8** %1)
br label %82
8: ; preds = %2
%9 = load i8*, i8** %1
%10 = tail call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %8
%13 = load i8*, i8** %1
%14 = tail call i64 @strcmp(i8* %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12, %8
%17 = tail call i32 @cd(i32 %0, i8** %1)
br label %82
18: ; preds = %12
%19 = load i8*, i8** %1
%20 = tail call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %26
22: ; preds = %18
%23 = load i32, i32* @stderr
%24 = tail call i32 @fprintf(i32 %23, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%25 = tail call i32 @exit(i32 0)
unreachable
26: ; preds = %18
%27 = load i8*, i8** %1
%28 = tail call i64 @strcmp(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %32
30: ; preds = %26
%31 = tail call i32 @exec(i32 %0, i8** %1)
br label %82
32: ; preds = %26
%33 = load i8*, i8** %1
%34 = tail call i64 @strcmp(i8* %33, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%35 = icmp eq i64 %34, 0
br i1 %35, label %36, label %38
36: ; preds = %32
%37 = tail call i32 @pushd(i32 %0, i8** %1)
br label %82
38: ; preds = %32
%39 = load i8*, i8** %1
%40 = tail call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = tail call i32 @popd(i32 %0, i8** %1)
br label %82
44: ; preds = %38
%45 = load i8*, i8** %1
%46 = tail call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %44
%49 = tail call i32 @dirs(i32 %0, i8** %1)
br label %82
50: ; preds = %44
%51 = load i8*, i8** %1
%52 = tail call i64 @strcmp(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%53 = icmp eq i64 %52, 0
br i1 %53, label %54, label %56
54: ; preds = %50
%55 = tail call i32 @help(i32 %0, i8** %1)
br label %82
56: ; preds = %50
%57 = load i8*, i8** %1
%58 = tail call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %62
60: ; preds = %56
%61 = tail call i32 @exitc(i32 %0, i8** %1)
br label %82
62: ; preds = %56
%63 = load i8*, i8** %1
%64 = tail call i64 @strcmp(i8* %63, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%65 = icmp eq i64 %64, 0
br i1 %65, label %66, label %68
66: ; preds = %62
%67 = tail call i32 @pwd(i32 %0, i8** %1)
br label %82
68: ; preds = %62
%69 = load i8*, i8** %1
%70 = tail call i64 @strcmp(i8* %69, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %74
72: ; preds = %68
%73 = tail call i32 @setpipe(i32 %0, i8** %1)
br label %82
74: ; preds = %68
%75 = load i8*, i8** %1
%76 = tail call i64 @strcmp(i8* %75, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%77 = icmp eq i64 %76, 0
br i1 %77, label %78, label %80
78: ; preds = %74
%79 = tail call i32 @runpipe(i32 %0, i8** %1)
br label %82
80: ; preds = %74
%81 = tail call i32 @run(i32 %0, i8** %1)
br label %82
82: ; preds = %80, %78, %72, %66, %60, %54, %48, %42, %36, %30, %16, %6
%83 = phi i32 [ %7, %6 ], [ %17, %16 ], [ %31, %30 ], [ %37, %36 ], [ %43, %42 ], [ %49, %48 ], [ %55, %54 ], [ %61, %60 ], [ %67, %66 ], [ %73, %72 ], [ %79, %78 ], [ %81, %80 ]
ret i32 %83
}