#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 scalar_t__ pid_t;

/* Variables and functions */
int O_CREAT;
int O_TRUNC;
int O_WRONLY;
int cd_cmd(char **, char *);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ execv(char *, char **);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ exit_logout(char **);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
char *get_output_name(char **, int);
int /*<<< orphan*/ getcwd(char *, int);
int /*<<< orphan*/ inti_curses();
int open(char *, int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ printw(char *);
int /*<<< orphan*/ readline(char *, int);
int /*<<< orphan*/ refresh();
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
char *strtok(char *, char *);
int /*<<< orphan*/ wait(int /*<<< orphan*/);
int main(void) {
  char argstr[16][32];
  char *argv[16];
  char *token;
  char buffer[32];
  char delimiter[] = " |\n\t";
  int idx;
  pid_t PID;
  int fdw;
  int ret;
  char pwd_buffer[50];
  char *fname_ptr = NULL;
  inti_curses();
  getcwd(pwd_buffer, 50);
  while (1) {
    printw("# ");
    readline(buffer, 32);
    idx = 0;
    token = strtok(buffer, delimiter);
    while (token != NULL) {
      strcpy(&(argstr[idx][0]), token);
      argv[idx] = argstr[idx];
      idx++;
      token = strtok(NULL, delimiter);
    }
    argv[idx] = NULL;
    fname_ptr = get_output_name(argv, idx);
    exit_logout(argv);
    ret = cd_cmd(argv, pwd_buffer);
    if (ret) {
      if ((PID = fork()) == 0) {
        if (fname_ptr != NULL) {
          close(1);
          fdw = open(fname_ptr, O_CREAT | O_TRUNC | O_WRONLY, 0644);
          if (fdw < 0) {
            fprintf(stderr, "Could not write to file %s\n", fname_ptr);
            exit(-1);
          }
        }
        strcpy(buffer, "/bin/");
        strcat(buffer, argv[0]);
        execv(buffer, &argv[0]);
        strcpy(buffer, "/usr/bin/");
        strcat(buffer, argv[0]);
        execv(buffer, &argv[0]);
        printf("%s: command not found\n", argv[0]);
        exit(0);
      } else if (PID < 0) {
        printf("fork failed\n");
        exit(-1);
      } else
        wait(0);
    }
    refresh();
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x330,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xdb8(%rip),%eax
mov    %eax,-0x2c5(%rbp)
mov    0xdb0(%rip),%al
mov    %al,-0x2c1(%rbp)
movq   $0x0,-0x328(%rbp)
mov    $0x0,%al
call   1120 <inti_curses@plt>
lea    -0x320(%rbp),%rdi
mov    $0x32,%esi
call   1050 <getcwd@plt>
lea    0xd81(%rip),%rdi
call   1090 <printw@plt>
lea    -0x2c0(%rbp),%rdi
mov    $0x20,%esi
call   1060 <readline@plt>
movl   $0x0,-0x2cc(%rbp)
lea    -0x2c0(%rbp),%rdi
lea    -0x2c5(%rbp),%rsi
call   10e0 <strtok@plt>
mov    %rax,-0x298(%rbp)
cmpq   $0x0,-0x298(%rbp)
je     133c <main+0x10c>
movslq -0x2cc(%rbp),%rax
lea    -0x210(%rbp),%rdi
shl    $0x5,%rax
add    %rax,%rdi
mov    -0x298(%rbp),%rsi
call   1030 <strcpy@plt>
movslq -0x2cc(%rbp),%rax
lea    -0x210(%rbp),%rcx
shl    $0x5,%rax
add    %rax,%rcx
movslq -0x2cc(%rbp),%rax
mov    %rcx,-0x290(%rbp,%rax,8)
ff
mov    -0x2cc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2cc(%rbp)
lea    -0x2c5(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%edi
call   10e0 <strtok@plt>
mov    %rax,-0x298(%rbp)
jmp    12be <main+0x8e>
movslq -0x2cc(%rbp),%rax
movq   $0x0,-0x290(%rbp,%rax,8)
lea    -0x290(%rbp),%rdi
mov    -0x2cc(%rbp),%esi
call   1100 <get_output_name@plt>
mov    %rax,-0x328(%rbp)
lea    -0x290(%rbp),%rdi
call   10a0 <exit_logout@plt>
lea    -0x290(%rbp),%rdi
lea    -0x320(%rbp),%rsi
call   10c0 <cd_cmd@plt>
mov    %eax,-0x2e0(%rbp)
cmpl   $0x0,-0x2e0(%rbp)
je     14f9 <main+0x2c9>
mov    $0x0,%al
call   1150 <fork@plt>
mov    %rax,-0x2d8(%rbp)
cmp    $0x0,%rax
jne    14c2 <main+0x292>
cmpq   $0x0,-0x328(%rbp)
je     1434 <main+0x204>
mov    $0x1,%edi
call   1070 <close@plt>
mov    -0x328(%rbp),%rdi
mov    0x2c20(%rip),%rax
mov    (%rax),%esi
mov    0x2c0f(%rip),%rax
or     (%rax),%esi
mov    0x2bd6(%rip),%rax
or     (%rax),%esi
mov    $0x1a4,%edx
call   10d0 <open@plt>
mov    %eax,-0x2dc(%rbp)
cmpl   $0x0,-0x2dc(%rbp)
jge    142f <main+0x1ff>
mov    0x2bc0(%rip),%rax
mov    (%rax),%edi
mov    -0x328(%rbp),%rdx
lea    0xbe8(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0xffffffff,%edi
call   1110 <exit@plt>
jmp    1434 <main+0x204>
lea    -0x2c0(%rbp),%rdi
lea    0xbe6(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x2c0(%rbp),%rdi
mov    -0x290(%rbp),%rsi
call   10f0 <strcat@plt>
lea    -0x2c0(%rbp),%rdi
lea    -0x290(%rbp),%rsi
call   1140 <execv@plt>
lea    -0x2c0(%rbp),%rdi
lea    0xba9(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x2c0(%rbp),%rdi
mov    -0x290(%rbp),%rsi
call   10f0 <strcat@plt>
lea    -0x2c0(%rbp),%rdi
lea    -0x290(%rbp),%rsi
call   1140 <execv@plt>
mov    -0x290(%rbp),%rsi
lea    0xb7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %edi,%edi
call   1110 <exit@plt>
cmpq   $0x0,-0x2d8(%rbp)
jge    14e8 <main+0x2b8>
lea    0xb6e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   1110 <exit@plt>
xor    %edi,%edi
call   1130 <wait@plt>
jmp    14f4 <main+0x2c4>
jmp    14f9 <main+0x2c9>
mov    $0x0,%al
call   10b0 <refresh@plt>
jmp    127d <main+0x4d>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2f8,%rsp
movb   $0x0,0xc(%rsp)
movl   $0x90a7c20,0x8(%rsp)
09
xor    %eax,%eax
call   1130 <inti_curses@plt>
lea    0xb0(%rsp),%rdi
mov    $0x32,%esi
call   1060 <getcwd@plt>
lea    0xd87(%rip),%r15
lea    0x10(%rsp),%r12
lea    0x8(%rsp),%rbx
lea    0x30(%rsp),%r13
jmp    1297 <main+0x57>
nop
xor    %eax,%eax
call   10c0 <refresh@plt>
mov    %r15,%rdi
call   10a0 <printw@plt>
mov    %r12,%rdi
mov    $0x20,%esi
call   1070 <readline@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   10f0 <strtok@plt>
mov    $0x0,%ebp
test   %rax,%rax
je     12f7 <main+0xb7>
lea    0xf0(%rsp),%r14
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
mov    %rax,%rsi
call   1030 <strcpy@plt>
mov    %r14,0x30(%rsp,%rbp,8)
add    $0x1,%rbp
xor    %edi,%edi
mov    %rbx,%rsi
call   10f0 <strtok@plt>
add    $0x20,%r14
test   %rax,%rax
jne    12d0 <main+0x90>
mov    %ebp,%eax
movq   $0x0,0x30(%rsp,%rax,8)
mov    %r13,%rdi
mov    %ebp,%esi
call   1110 <get_output_name@plt>
mov    %rax,%rbp
mov    %r13,%rdi
call   10b0 <exit_logout@plt>
mov    %r13,%rdi
lea    0xb0(%rsp),%rsi
call   10d0 <cd_cmd@plt>
test   %eax,%eax
je     1290 <main+0x50>
xor    %eax,%eax
call   1160 <fork@plt>
test   %rax,%rax
je     1349 <main+0x109>
js     13a6 <main+0x166>
xor    %edi,%edi
call   1140 <wait@plt>
jmp    1290 <main+0x50>
test   %rbp,%rbp
je     13bc <main+0x17c>
mov    $0x1,%edi
call   1080 <close@plt>
mov    0x2c99(%rip),%rax
mov    0x2c8a(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2c4f(%rip),%rax
or     (%rax),%esi
mov    %rbp,%rdi
mov    $0x1a4,%edx
call   10e0 <open@plt>
test   %eax,%eax
jns    13bc <main+0x17c>
mov    0x2c45(%rip),%rax
mov    (%rax),%edi
lea    0xc74(%rip),%rsi
mov    %rbp,%rdx
call   1090 <fprintf@plt>
mov    $0xffffffff,%edi
call   1120 <exit@plt>
lea    0xc98(%rip),%rdi
call   1040 <puts@plt>
mov    $0xffffffff,%edi
call   1120 <exit@plt>
lea    0xc65(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1100 <strcat@plt>
lea    0x30(%rsp),%rbp
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1150 <execv@plt>
lea    0xc30(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
mov    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1100 <strcat@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1150 <execv@plt>
mov    0x30(%rsp),%rsi
lea    0xc0e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   1120 <exit@plt>

LLVM IR (-O0):
@__const.main.delimiter = [5 x i8] c" |\0A\09\00"
@.str = [3 x i8] c"# \00"
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@O_WRONLY = global i32 0
@stderr = global i32 0
@.str.1 = [28 x i8] c"Could not write to file %s\0A\00"
@.str.2 = [6 x i8] c"/bin/\00"
@.str.3 = [10 x i8] c"/usr/bin/\00"
@.str.4 = [23 x i8] c"%s: command not found\0A\00"
@.str.5 = [13 x i8] c"fork failed\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [16 x [32 x i8]]
%3 = alloca [16 x i8*]
%4 = alloca i8*
%5 = alloca [32 x i8]
%6 = alloca [5 x i8]
%7 = alloca i32
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
%11 = alloca [50 x i8]
%12 = alloca i8*
store i32 0, i32* %1
%13 = bitcast [5 x i8]* %6 to i8*
store i8* null, i8** %12
%14 = call i32 (...) @inti_curses()
%15 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%16 = call i32 @getcwd(i8* %15, i32 50)
br label %17
17: ; preds = %0, %115
%18 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%19 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%20 = call i32 @readline(i8* %19, i32 32)
store i32 0, i32* %7
%21 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%22 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%23 = call i8* @strtok(i8* %21, i8* %22)
store i8* %23, i8** %4
br label %24
24: ; preds = %27, %17
%25 = load i8*, i8** %4
%26 = icmp ne i8* %25, null
br i1 %26, label %27, label %45
27: ; preds = %24
%28 = load i32, i32* %7
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds [16 x [32 x i8]], [16 x [32 x i8]]* %2, i64 0, i64 %29
%31 = getelementptr inbounds [32 x i8], [32 x i8]* %30, i64 0, i64 0
%32 = load i8*, i8** %4
%33 = call i32 @strcpy(i8* %31, i8* %32)
%34 = load i32, i32* %7
%35 = sext i32 %34 to i64
%36 = getelementptr inbounds [16 x [32 x i8]], [16 x [32 x i8]]* %2, i64 0, i64 %35
%37 = getelementptr inbounds [32 x i8], [32 x i8]* %36, i64 0, i64 0
%38 = load i32, i32* %7
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %39
store i8* %37, i8** %40
%41 = load i32, i32* %7
%42 = add nsw i32 %41, 1
store i32 %42, i32* %7
%43 = getelementptr inbounds [5 x i8], [5 x i8]* %6, i64 0, i64 0
%44 = call i8* @strtok(i8* null, i8* %43)
store i8* %44, i8** %4
br label %24
45: ; preds = %24
%46 = load i32, i32* %7
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %47
store i8* null, i8** %48
%49 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%50 = load i32, i32* %7
%51 = call i8* @get_output_name(i8** %49, i32 %50)
store i8* %51, i8** %12
%52 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%53 = call i32 @exit_logout(i8** %52)
%54 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%55 = getelementptr inbounds [50 x i8], [50 x i8]* %11, i64 0, i64 0
%56 = call i32 @cd_cmd(i8** %54, i8* %55)
store i32 %56, i32* %10
%57 = load i32, i32* %10
%58 = icmp ne i32 %57, 0
br i1 %58, label %59, label %115
59: ; preds = %45
%60 = call i64 (...) @fork()
store i64 %60, i64* %8
%61 = icmp eq i64 %60, 0
br i1 %61, label %62, label %105
62: ; preds = %59
%63 = load i8*, i8** %12
%64 = icmp ne i8* %63, null
br i1 %64, label %65, label %82
65: ; preds = %62
%66 = call i32 @close(i32 1)
%67 = load i8*, i8** %12
%68 = load i32, i32* @O_CREAT
%69 = load i32, i32* @O_TRUNC
%70 = or i32 %68, %69
%71 = load i32, i32* @O_WRONLY
%72 = or i32 %70, %71
%73 = call i32 @open(i8* %67, i32 %72, i32 420)
store i32 %73, i32* %9
%74 = load i32, i32* %9
%75 = icmp slt i32 %74, 0
br i1 %75, label %76, label %81
76: ; preds = %65
%77 = load i32, i32* @stderr
%78 = load i8*, i8** %12
%79 = call i32 @fprintf(i32 %77, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %78)
%80 = call i32 @exit(i32 -1)
unreachable
81: ; preds = %65
br label %82
82: ; preds = %81, %62
%83 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%84 = call i32 @strcpy(i8* %83, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%85 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%86 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%87 = load i8*, i8** %86
%88 = call i32 @strcat(i8* %85, i8* %87)
%89 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%90 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%91 = call i32 @execv(i8* %89, i8** %90)
%92 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%93 = call i32 @strcpy(i8* %92, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%94 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%95 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%96 = load i8*, i8** %95
%97 = call i32 @strcat(i8* %94, i8* %96)
%98 = getelementptr inbounds [32 x i8], [32 x i8]* %5, i64 0, i64 0
%99 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%100 = call i32 @execv(i8* %98, i8** %99)
%101 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
%102 = load i8*, i8** %101
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %102)
%104 = call i32 @exit(i32 0)
unreachable
105: ; preds = %59
%106 = load i64, i64* %8
%107 = icmp slt i64 %106, 0
br i1 %107, label %108, label %111
108: ; preds = %105
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%110 = call i32 @exit(i32 -1)
unreachable
111: ; preds = %105
%112 = call i32 @wait(i32 0)
br label %113
113: ; preds = %111
br label %114
114: ; preds = %113
br label %115
115: ; preds = %114, %45
%116 = call i32 (...) @refresh()
br label %17
}

LLVM IR (-O2):
@__const.main.delimiter = [5 x i8] c" |\0A\09\00"
@.str = [3 x i8] c"# \00"
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@O_WRONLY = global i32 0
@stderr = global i32 0
@.str.1 = [28 x i8] c"Could not write to file %s\0A\00"
@.str.2 = [6 x i8] c"/bin/\00"
@.str.3 = [10 x i8] c"/usr/bin/\00"
@.str.4 = [23 x i8] c"%s: command not found\0A\00"
@str = [12 x i8] c"fork failed\00"
define i32 @main() {
%1 = alloca [16 x [32 x i8]]
%2 = alloca [16 x i8*]
%3 = alloca [32 x i8]
%4 = alloca [5 x i8]
%5 = alloca [50 x i8]
%6 = getelementptr inbounds [16 x [32 x i8]], [16 x [32 x i8]]* %1, i64 0, i64 0, i64 0
%7 = bitcast [16 x i8*]* %2 to i8*
%8 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%9 = getelementptr inbounds [5 x i8], [5 x i8]* %4, i64 0, i64 0
%10 = getelementptr inbounds [50 x i8], [50 x i8]* %5, i64 0, i64 0
%11 = tail call i32 (...) @inti_curses()
%12 = call i32 @getcwd(i8* %10, i32 50)
%13 = getelementptr inbounds [16 x i8*], [16 x i8*]* %2, i64 0, i64 0
br label %14
14: ; preds = %75, %0
%15 = call i32 @printw(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @readline(i8* %8, i32 32)
%17 = call i8* @strtok(i8* %8, i8* %9)
%18 = icmp eq i8* %17, null
br i1 %18, label %30, label %19
19: ; preds = %14, %19
%20 = phi i64 [ %25, %19 ], [ 0, %14 ]
%21 = phi i8* [ %26, %19 ], [ %17, %14 ]
%22 = getelementptr inbounds [16 x [32 x i8]], [16 x [32 x i8]]* %1, i64 0, i64 %20, i64 0
%23 = call i32 @strcpy(i8* %22, i8* %21)
%24 = getelementptr inbounds [16 x i8*], [16 x i8*]* %2, i64 0, i64 %20
store i8* %22, i8** %24
%25 = add nuw i64 %20, 1
%26 = call i8* @strtok(i8* null, i8* %9)
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %19
28: ; preds = %19
%29 = trunc i64 %25 to i32
br label %30
30: ; preds = %28, %14
%31 = phi i32 [ 0, %14 ], [ %29, %28 ]
%32 = zext i32 %31 to i64
%33 = getelementptr inbounds [16 x i8*], [16 x i8*]* %2, i64 0, i64 %32
store i8* null, i8** %33
%34 = call i8* @get_output_name(i8** %13, i32 %31)
%35 = call i32 @exit_logout(i8** %13)
%36 = call i32 @cd_cmd(i8** %13, i8* %10)
%37 = icmp eq i32 %36, 0
br i1 %37, label %75, label %38
38: ; preds = %30
%39 = call i64 (...) @fork()
%40 = icmp eq i64 %39, 0
br i1 %40, label %41, label %68
41: ; preds = %38
%42 = icmp eq i8* %34, null
br i1 %42, label %56, label %43
43: ; preds = %41
%44 = call i32 @close(i32 1)
%45 = load i32, i32* @O_CREAT
%46 = load i32, i32* @O_TRUNC
%47 = or i32 %46, %45
%48 = load i32, i32* @O_WRONLY
%49 = or i32 %47, %48
%50 = call i32 @open(i8* %34, i32 %49, i32 420)
%51 = icmp slt i32 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %43
%53 = load i32, i32* @stderr
%54 = call i32 @fprintf(i32 %53, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.1, i64 0, i64 0), i8* %34)
%55 = call i32 @exit(i32 -1)
unreachable
56: ; preds = %43, %41
%57 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%58 = load i8*, i8** %13
%59 = call i32 @strcat(i8* %8, i8* %58)
%60 = call i32 @execv(i8* %8, i8** %13)
%61 = call i32 @strcpy(i8* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%62 = load i8*, i8** %13
%63 = call i32 @strcat(i8* %8, i8* %62)
%64 = call i32 @execv(i8* %8, i8** %13)
%65 = load i8*, i8** %13
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %65)
%67 = call i32 @exit(i32 0)
unreachable
68: ; preds = %38
%69 = icmp slt i64 %39, 0
br i1 %69, label %70, label %73
70: ; preds = %68
%71 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
%72 = call i32 @exit(i32 -1)
unreachable
73: ; preds = %68
%74 = call i32 @wait(i32 0)
br label %75
75: ; preds = %73, %30
%76 = call i32 (...) @refresh()
br label %14
}