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

/* Forward declarations */

/* Type definitions */
typedef int pid_t;

/* Variables and functions */
int WEXITSTATUS(int);
int WIFEXITED(int);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ die(char *);
int dup(int);
int execlp(char *, char *, char *, char const *, ...);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int pipe(int *);
int /*<<< orphan*/ stderr;
int wait(int *);
int main(int argc, char *argv[]) {
  int fds[2];
  pid_t child;
  const char *path = "/";
  if (argc > 1) {
    path = argv[1];
  }
  if (pipe(fds) == -1) {
    die("pipe()");
  }
  child = fork();
  if (child == -1) {
    die("fork()");
  } else if (child == 0) {
    close(1);
    close(fds[0]);
    fprintf(stderr, "INFO: [child] child == %d\n", child);
    if (dup(fds[1]) == -1) {
      die("dup()");
    }
    fprintf(stderr, "INFO: [child] ls is going to exec\n");
    if (execlp("ls", "ls", "-la", path, NULL) == -1) {
      die("execlp()");
    }
  } else {
    close(0);
    close(fds[1]);
    fprintf(stderr, "INFO: [parent] child == %d\n", child);
    fprintf(stderr, "INFO: [parent] I am going to wait\n");
    int status = 0;
    if (wait(&status) != child) {
      die("wait()");
    }
    fprintf(stderr, "INFO: [parent] wait complete\n");
    fprintf(stderr, "INFO: [parent] Exited: %d - Status: %d\n",
            WIFEXITED(status), WEXITSTATUS(status));
    if (dup(fds[0]) == -1) {
      die("dup()");
    }
    if (execlp("wc", "wc", "-l", NULL) == -1) {
      die("execlp()");
    }
    exit(0);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xe33(%rip),%rax
mov    %rax,-0x28(%rbp)
cmpl   $0x1,-0x8(%rbp)
jle    11e7 <main+0x37>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x28(%rbp)
lea    -0x18(%rbp),%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
jne    1205 <main+0x55>
lea    0xe02(%rip),%rdi
call   1080 <die@plt>
mov    $0x0,%al
call   10d0 <fork@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    122a <main+0x7a>
lea    0xde9(%rip),%rdi
call   1080 <die@plt>
jmp    13da <main+0x22a>
cmpl   $0x0,-0x1c(%rbp)
jne    12cf <main+0x11f>
mov    $0x1,%edi
call   1040 <close@plt>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
mov    0x2d93(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xdb7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x14(%rbp),%edi
call   1030 <dup@plt>
cmp    $0xffffffff,%eax
jne    127d <main+0xcd>
lea    0xdb3(%rip),%rdi
call   1080 <die@plt>
mov    0x2d5c(%rip),%rax
mov    (%rax),%edi
lea    0xda4(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%rcx
lea    0xdb5(%rip),%rsi
lea    0xdb1(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
mov    %rsi,%rdi
mov    $0x0,%al
call   10b0 <execlp@plt>
cmp    $0xffffffff,%eax
jne    12ca <main+0x11a>
lea    0xd96(%rip),%rdi
call   1080 <die@plt>
jmp    13d5 <main+0x225>
xor    %edi,%edi
call   1040 <close@plt>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
mov    0x2cfb(%rip),%rax
mov    (%rax),%edi
mov    -0x1c(%rbp),%edx
lea    0xd73(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2ce1(%rip),%rax
mov    (%rax),%edi
lea    0xd78(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
call   10c0 <wait@plt>
cmp    -0x1c(%rbp),%eax
je     1334 <main+0x184>
lea    0xd74(%rip),%rdi
call   1080 <die@plt>
mov    0x2ca5(%rip),%rax
mov    (%rax),%edi
lea    0xd66(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2c8e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x34(%rbp)
mov    -0x2c(%rbp),%edi
call   1090 <WIFEXITED@plt>
mov    %eax,-0x30(%rbp)
mov    -0x2c(%rbp),%edi
call   1070 <WEXITSTATUS@plt>
mov    -0x34(%rbp),%edi
mov    -0x30(%rbp),%edx
mov    %eax,%ecx
lea    0xd4f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%edi
call   1030 <dup@plt>
cmp    $0xffffffff,%eax
jne    139d <main+0x1ed>
lea    0xc93(%rip),%rdi
call   1080 <die@plt>
lea    0xd4c(%rip),%rsi
lea    0xd48(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
mov    %rsi,%rdi
mov    $0x0,%al
call   10b0 <execlp@plt>
cmp    $0xffffffff,%eax
jne    13ce <main+0x21e>
lea    0xc92(%rip),%rdi
call   1080 <die@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
jmp    13da <main+0x22a>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
cmp    $0x2,%edi
jl     11c1 <main+0x11>
mov    0x8(%rsi),%rbx
jmp    11c8 <main+0x18>
lea    0xe38(%rip),%rbx
lea    0x10(%rsp),%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
jne    11e3 <main+0x33>
lea    0xe24(%rip),%rdi
call   1080 <die@plt>
xor    %eax,%eax
call   10d0 <fork@plt>
cmp    $0xffffffff,%eax
je     1281 <main+0xd1>
mov    %eax,%ebp
test   %eax,%eax
jne    1296 <main+0xe6>
mov    $0x1,%edi
call   1040 <close@plt>
mov    0x10(%rsp),%edi
call   1040 <close@plt>
mov    0x2dc9(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xdef(%rip),%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x14(%rsp),%edi
call   1030 <dup@plt>
cmp    $0xffffffff,%eax
jne    1244 <main+0x94>
lea    0xdec(%rip),%rdi
call   1080 <die@plt>
mov    0x0(%rbp),%edi
lea    0xde3(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xdf8(%rip),%rdi
lea    0xdf4(%rip),%rdx
mov    %rdi,%rsi
mov    %rbx,%rcx
xor    %r8d,%r8d
xor    %eax,%eax
call   10b0 <execlp@plt>
cmp    $0xffffffff,%eax
jne    128d <main+0xdd>
lea    0xddc(%rip),%rdi
jmp    1288 <main+0xd8>
lea    0xd81(%rip),%rdi
call   1080 <die@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret
xor    %edi,%edi
call   1040 <close@plt>
mov    0x14(%rsp),%edi
call   1040 <close@plt>
mov    0x2d33(%rip),%rbx
mov    (%rbx),%edi
lea    0xdae(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xdb8(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
movl   $0x0,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   10c0 <wait@plt>
cmp    %ebp,%eax
je     12f1 <main+0x141>
lea    0xdb7(%rip),%rdi
call   1080 <die@plt>
mov    (%rbx),%edi
lea    0xdb0(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%ebx
mov    0xc(%rsp),%edi
call   1090 <WIFEXITED@plt>
mov    %eax,%ebp
mov    0xc(%rsp),%edi
call   1070 <WEXITSTATUS@plt>
lea    0xdaa(%rip),%rsi
mov    %ebx,%edi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x10(%rsp),%edi
call   1030 <dup@plt>
cmp    $0xffffffff,%eax
jne    1345 <main+0x195>
lea    0xceb(%rip),%rdi
call   1080 <die@plt>
lea    0xda4(%rip),%rdi
lea    0xda0(%rip),%rdx
mov    %rdi,%rsi
xor    %ecx,%ecx
xor    %eax,%eax
call   10b0 <execlp@plt>
cmp    $0xffffffff,%eax
jne    1370 <main+0x1c0>
lea    0xcf0(%rip),%rdi
call   1080 <die@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"/\00"
@.str.1 = [7 x i8] c"pipe()\00"
@.str.2 = [7 x i8] c"fork()\00"
@stderr = global i32 0
@.str.3 = [27 x i8] c"INFO: [child] child == %d\0A\00"
@.str.4 = [6 x i8] c"dup()\00"
@.str.5 = [35 x i8] c"INFO: [child] ls is going to exec\0A\00"
@.str.6 = [3 x i8] c"ls\00"
@.str.7 = [4 x i8] c"-la\00"
@.str.8 = [9 x i8] c"execlp()\00"
@.str.9 = [28 x i8] c"INFO: [parent] child == %d\0A\00"
@.str.10 = [35 x i8] c"INFO: [parent] I am going to wait\0A\00"
@.str.11 = [7 x i8] c"wait()\00"
@.str.12 = [30 x i8] c"INFO: [parent] wait complete\0A\00"
@.str.13 = [40 x i8] c"INFO: [parent] Exited: %d - Status: %d\0A\00"
@.str.14 = [3 x i8] c"wc\00"
@.str.15 = [3 x i8] c"-l\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [2 x i32]
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), i8** %8
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 1
br i1 %11, label %12, label %16
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
store i8* %15, i8** %8
br label %16
16: ; preds = %12, %2
%17 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%18 = call i32 @pipe(i32* %17)
%19 = icmp eq i32 %18, -1
br i1 %19, label %20, label %22
20: ; preds = %16
%21 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %22
22: ; preds = %20, %16
%23 = call i32 (...) @fork()
store i32 %23, i32* %7
%24 = load i32, i32* %7
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %28
26: ; preds = %22
%27 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %92
28: ; preds = %22
%29 = load i32, i32* %7
%30 = icmp eq i32 %29, 0
br i1 %30, label %31, label %54
31: ; preds = %28
%32 = call i32 @close(i32 1)
%33 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%34 = load i32, i32* %33
%35 = call i32 @close(i32 %34)
%36 = load i32, i32* @stderr
%37 = load i32, i32* %7
%38 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 %37)
%39 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%40 = load i32, i32* %39
%41 = call i32 @dup(i32 %40)
%42 = icmp eq i32 %41, -1
br i1 %42, label %43, label %45
43: ; preds = %31
%44 = call i32 @die(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %45
45: ; preds = %43, %31
%46 = load i32, i32* @stderr
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%48 = load i8*, i8** %8
%49 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %48, i8* null)
%50 = icmp eq i32 %49, -1
br i1 %50, label %51, label %53
51: ; preds = %45
%52 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %53
53: ; preds = %51, %45
br label %91
54: ; preds = %28
%55 = call i32 @close(i32 0)
%56 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 1
%57 = load i32, i32* %56
%58 = call i32 @close(i32 %57)
%59 = load i32, i32* @stderr
%60 = load i32, i32* %7
%61 = call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %60)
%62 = load i32, i32* @stderr
%63 = call i32 (i32, i8*, ...) @fprintf(i32 %62, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %9
%64 = call i32 @wait(i32* %9)
%65 = load i32, i32* %7
%66 = icmp ne i32 %64, %65
br i1 %66, label %67, label %69
67: ; preds = %54
%68 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %69
69: ; preds = %67, %54
%70 = load i32, i32* @stderr
%71 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%72 = load i32, i32* @stderr
%73 = load i32, i32* %9
%74 = call i32 @WIFEXITED(i32 %73)
%75 = load i32, i32* %9
%76 = call i32 @WEXITSTATUS(i32 %75)
%77 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0), i32 %74, i32 %76)
%78 = getelementptr inbounds [2 x i32], [2 x i32]* %6, i64 0, i64 0
%79 = load i32, i32* %78
%80 = call i32 @dup(i32 %79)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %84
82: ; preds = %69
%83 = call i32 @die(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %84
84: ; preds = %82, %69
%85 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* null)
%86 = icmp eq i32 %85, -1
br i1 %86, label %87, label %89
87: ; preds = %84
%88 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %89
89: ; preds = %87, %84
%90 = call i32 @exit(i32 0)
unreachable
91: ; preds = %53
br label %92
92: ; preds = %91, %26
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"/\00"
@.str.1 = [7 x i8] c"pipe()\00"
@.str.2 = [7 x i8] c"fork()\00"
@stderr = global i32 0
@.str.3 = [27 x i8] c"INFO: [child] child == %d\0A\00"
@.str.4 = [6 x i8] c"dup()\00"
@.str.5 = [35 x i8] c"INFO: [child] ls is going to exec\0A\00"
@.str.6 = [3 x i8] c"ls\00"
@.str.7 = [4 x i8] c"-la\00"
@.str.8 = [9 x i8] c"execlp()\00"
@.str.9 = [28 x i8] c"INFO: [parent] child == %d\0A\00"
@.str.10 = [35 x i8] c"INFO: [parent] I am going to wait\0A\00"
@.str.11 = [7 x i8] c"wait()\00"
@.str.12 = [30 x i8] c"INFO: [parent] wait complete\0A\00"
@.str.13 = [40 x i8] c"INFO: [parent] Exited: %d - Status: %d\0A\00"
@.str.14 = [3 x i8] c"wc\00"
@.str.15 = [3 x i8] c"-l\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [2 x i32]
%4 = alloca i32
%5 = bitcast [2 x i32]* %3 to i8*
%6 = icmp sgt i32 %0, 1
br i1 %6, label %7, label %10
7: ; preds = %2
%8 = getelementptr inbounds i8*, i8** %1, i64 1
%9 = load i8*, i8** %8
br label %10
10: ; preds = %7, %2
%11 = phi i8* [ %9, %7 ], [ getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0), %2 ]
%12 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%13 = call i32 @pipe(i32* %12)
%14 = icmp eq i32 %13, -1
br i1 %14, label %15, label %17
15: ; preds = %10
%16 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %17
17: ; preds = %15, %10
%18 = call i32 (...) @fork()
switch i32 %18, label %36 [
i32 -1, label %71
i32 0, label %19
]
19: ; preds = %17
%20 = call i32 @close(i32 1)
%21 = load i32, i32* %12
%22 = call i32 @close(i32 %21)
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i32 0)
%25 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%26 = load i32, i32* %25
%27 = call i32 @dup(i32 %26)
%28 = icmp eq i32 %27, -1
br i1 %28, label %29, label %31
29: ; preds = %19
%30 = call i32 @die(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %31
31: ; preds = %29, %19
%32 = load i32, i32* @stderr
%33 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0))
%34 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %11, i8* null)
%35 = icmp eq i32 %34, -1
br i1 %35, label %71, label %74
36: ; preds = %17
%37 = call i32 @close(i32 0)
%38 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%39 = load i32, i32* %38
%40 = call i32 @close(i32 %39)
%41 = load i32, i32* @stderr
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.9, i64 0, i64 0), i32 %18)
%43 = load i32, i32* @stderr
%44 = call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.10, i64 0, i64 0))
%45 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%46 = call i32 @wait(i32* %4)
%47 = icmp eq i32 %46, %18
br i1 %47, label %50, label %48
48: ; preds = %36
%49 = call i32 @die(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.11, i64 0, i64 0))
br label %50
50: ; preds = %48, %36
%51 = load i32, i32* @stderr
%52 = call i32 (i32, i8*, ...) @fprintf(i32 %51, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.12, i64 0, i64 0))
%53 = load i32, i32* @stderr
%54 = load i32, i32* %4
%55 = call i32 @WIFEXITED(i32 %54)
%56 = load i32, i32* %4
%57 = call i32 @WEXITSTATUS(i32 %56)
%58 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.13, i64 0, i64 0), i32 %55, i32 %57)
%59 = load i32, i32* %12
%60 = call i32 @dup(i32 %59)
%61 = icmp eq i32 %60, -1
br i1 %61, label %62, label %64
62: ; preds = %50
%63 = call i32 @die(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
br label %64
64: ; preds = %62, %50
%65 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* null)
%66 = icmp eq i32 %65, -1
br i1 %66, label %67, label %69
67: ; preds = %64
%68 = call i32 @die(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
br label %69
69: ; preds = %67, %64
%70 = call i32 @exit(i32 0)
unreachable
71: ; preds = %31, %17
%72 = phi i8* [ getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), %17 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), %31 ]
%73 = call i32 @die(i8* %72)
br label %74
74: ; preds = %71, %31
ret i32 0
}