#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 /*<<< orphan*/ STDIN_FILENO;
int /*<<< orphan*/ STDOUT_FILENO;
int close(int);
int dup2(int, int /*<<< orphan*/);
int execlp(char *, char *, char *, char *, ...);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int pipe(int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ wait(int *);
int main() {
  pid_t pid;
  int fd[2];
  int status;
  if (pipe(fd) == -1) {
    fprintf(stderr, "Pipe failed.");
    return 1;
  }
  pid = fork();
  if (pid < 0) {
    fprintf(stderr, "Fork call 1 has failed");
    return 1;
  } else if (pid == 0) {
    if (close(fd[0]) == -1) {
      fprintf(stderr, "close call failed");
      return 1;
    }
    if (dup2(fd[1], STDOUT_FILENO) == -1) {
      fprintf(stderr, "dup2 call failed");
      return 1;
    }
    if (execlp("ls", "ls", "-al", NULL) == -1) {
      fprintf(stderr, "execlp call failed");
      return 1;
    }
    if (close(fd[1]) == -1) {
      fprintf(stderr, "close call failed");
      return 1;
    }
  } else {
    pid = fork();
    if (pid < 0) {
      fprintf(stderr, "Fork call 2 has failed");
      return 1;
    } else if (pid == 0) {
      if (close(fd[1]) == -1) {
        fprintf(stderr, "close call failed");
        return 1;
      }
      if (dup2(fd[0], STDIN_FILENO) == -1) {
        fprintf(stderr, "dup2 call failed");
        return 1;
      }
      if (execlp("sort", "sort", "-n", "-k", "5", NULL) == -1) {
        fprintf(stderr, "execlp call failed");
        return 1;
      }
      if (close(fd[0]) == -1) {
        fprintf(stderr, "close call failed");
        return 1;
      }
    } else {
      wait(&status);
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    -0x18(%rbp),%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
jne    11b2 <main+0x42>
mov    0x2e40(%rip),%rax
mov    (%rax),%edi
lea    0xe5f(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
mov    $0x0,%al
call   1090 <fork@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jge    11e9 <main+0x79>
mov    0x2e09(%rip),%rax
mov    (%rax),%edi
lea    0xe35(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
cmpq   $0x0,-0x10(%rbp)
jne    12de <main+0x16e>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
jne    1226 <main+0xb6>
mov    0x2dcc(%rip),%rax
mov    (%rax),%edi
lea    0xe0f(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
mov    -0x14(%rbp),%edi
mov    0x2dc0(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
jne    1261 <main+0xf1>
mov    0x2d91(%rip),%rax
mov    (%rax),%edi
lea    0xde6(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
lea    0xddf(%rip),%rsi
lea    0xddb(%rip),%rdx
xor    %eax,%eax
mov    %eax,%ecx
mov    %rsi,%rdi
mov    $0x0,%al
call   1070 <execlp@plt>
cmp    $0xffffffff,%eax
jne    12a7 <main+0x137>
mov    0x2d4b(%rip),%rax
mov    (%rax),%edi
lea    0xdb8(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
jne    12d9 <main+0x169>
mov    0x2d19(%rip),%rax
mov    (%rax),%edi
lea    0xd5c(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
jmp    142c <main+0x2bc>
mov    $0x0,%al
call   1090 <fork@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jge    1315 <main+0x1a5>
mov    0x2cdd(%rip),%rax
mov    (%rax),%edi
lea    0xd5d(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
cmpq   $0x0,-0x10(%rbp)
jne    1419 <main+0x2a9>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
jne    1352 <main+0x1e2>
mov    0x2ca0(%rip),%rax
mov    (%rax),%edi
lea    0xce3(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
mov    -0x18(%rbp),%edi
mov    0x2c74(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
jne    138d <main+0x21d>
mov    0x2c65(%rip),%rax
mov    (%rax),%edi
lea    0xcba(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
lea    0xce4(%rip),%rsi
lea    0xce2(%rip),%rdx
lea    0xcde(%rip),%rcx
lea    0xcda(%rip),%r8
xor    %eax,%eax
mov    %eax,%r9d
mov    %rsi,%rdi
mov    $0x0,%al
call   1070 <execlp@plt>
cmp    $0xffffffff,%eax
jne    13e2 <main+0x272>
mov    0x2c10(%rip),%rax
mov    (%rax),%edi
lea    0xc7d(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
jne    1414 <main+0x2a4>
mov    0x2bde(%rip),%rax
mov    (%rax),%edi
lea    0xc21(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1438 <main+0x2c8>
jmp    1422 <main+0x2b2>
lea    -0x1c(%rbp),%rdi
call   1080 <wait@plt>
jmp    1427 <main+0x2b7>
jmp    142c <main+0x2bc>
jmp    1431 <main+0x2c1>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0x4(%rsp),%rdi
call   1050 <pipe@plt>
cmp    $0xffffffff,%eax
je     11b9 <main+0x49>
xor    %eax,%eax
call   1090 <fork@plt>
test   %rax,%rax
js     11ce <main+0x5e>
je     11e3 <main+0x73>
xor    %eax,%eax
call   1090 <fork@plt>
test   %rax,%rax
js     123b <main+0xcb>
je     1250 <main+0xe0>
lea    0xc(%rsp),%rdi
call   1080 <wait@plt>
xor    %ebx,%ebx
jmp    12f1 <main+0x181>
mov    0x2e18(%rip),%rax
mov    (%rax),%edi
lea    0xe37(%rip),%rsi
jmp    12e7 <main+0x177>
mov    0x2e03(%rip),%rax
mov    (%rax),%edi
lea    0xe2f(%rip),%rsi
jmp    12e7 <main+0x177>
mov    0x4(%rsp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
je     12b3 <main+0x143>
mov    0x8(%rsp),%edi
mov    0x2df0(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
je     12c5 <main+0x155>
lea    0xe30(%rip),%rdi
lea    0xe2c(%rip),%rdx
xor    %ebx,%ebx
mov    %rdi,%rsi
xor    %ecx,%ecx
xor    %eax,%eax
call   1070 <execlp@plt>
cmp    $0xffffffff,%eax
je     12d7 <main+0x167>
mov    0x8(%rsp),%edi
jmp    12a9 <main+0x139>
mov    0x2d96(%rip),%rax
mov    (%rax),%edi
lea    0xe16(%rip),%rsi
jmp    12e7 <main+0x177>
mov    0x8(%rsp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
je     12b3 <main+0x143>
mov    0x4(%rsp),%edi
mov    0x2d67(%rip),%rax
mov    (%rax),%esi
call   1030 <dup2@plt>
cmp    $0xffffffff,%eax
je     12c5 <main+0x155>
lea    0xdfc(%rip),%rdi
lea    0xdfa(%rip),%rdx
lea    0xdf6(%rip),%rcx
lea    0xdf2(%rip),%r8
xor    %ebx,%ebx
mov    %rdi,%rsi
xor    %r9d,%r9d
xor    %eax,%eax
call   1070 <execlp@plt>
cmp    $0xffffffff,%eax
je     12d7 <main+0x167>
mov    0x4(%rsp),%edi
call   1040 <close@plt>
cmp    $0xffffffff,%eax
jne    12f1 <main+0x181>
mov    0x2d1e(%rip),%rax
mov    (%rax),%edi
lea    0xd61(%rip),%rsi
jmp    12e7 <main+0x177>
mov    0x2d0c(%rip),%rax
mov    (%rax),%edi
lea    0xd61(%rip),%rsi
jmp    12e7 <main+0x177>
mov    0x2cfa(%rip),%rax
mov    (%rax),%edi
lea    0xd67(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [13 x i8] c"Pipe failed.\00"
@.str.1 = [23 x i8] c"Fork call 1 has failed\00"
@.str.2 = [18 x i8] c"close call failed\00"
@STDOUT_FILENO = global i32 0
@.str.3 = [17 x i8] c"dup2 call failed\00"
@.str.4 = [3 x i8] c"ls\00"
@.str.5 = [4 x i8] c"-al\00"
@.str.6 = [19 x i8] c"execlp call failed\00"
@.str.7 = [23 x i8] c"Fork call 2 has failed\00"
@STDIN_FILENO = global i32 0
@.str.8 = [5 x i8] c"sort\00"
@.str.9 = [3 x i8] c"-n\00"
@.str.10 = [3 x i8] c"-k\00"
@.str.11 = [2 x i8] c"5\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca [2 x i32]
%4 = alloca i32
store i32 0, i32* %1
%5 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%6 = call i32 @pipe(i32* %5)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %1
br label %101
11: ; preds = %0
%12 = call i64 (...) @fork()
store i64 %12, i64* %2
%13 = load i64, i64* %2
%14 = icmp slt i64 %13, 0
br i1 %14, label %15, label %18
15: ; preds = %11
%16 = load i32, i32* @stderr
%17 = call i32 @fprintf(i32 %16, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
store i32 1, i32* %1
br label %101
18: ; preds = %11
%19 = load i64, i64* %2
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %53
21: ; preds = %18
%22 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%23 = load i32, i32* %22
%24 = call i32 @close(i32 %23)
%25 = icmp eq i32 %24, -1
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load i32, i32* @stderr
%28 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %101
29: ; preds = %21
%30 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%31 = load i32, i32* %30
%32 = load i32, i32* @STDOUT_FILENO
%33 = call i32 @dup2(i32 %31, i32 %32)
%34 = icmp eq i32 %33, -1
br i1 %34, label %35, label %38
35: ; preds = %29
%36 = load i32, i32* @stderr
%37 = call i32 @fprintf(i32 %36, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %1
br label %101
38: ; preds = %29
%39 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* null)
%40 = icmp eq i32 %39, -1
br i1 %40, label %41, label %44
41: ; preds = %38
%42 = load i32, i32* @stderr
%43 = call i32 @fprintf(i32 %42, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %1
br label %101
44: ; preds = %38
%45 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%46 = load i32, i32* %45
%47 = call i32 @close(i32 %46)
%48 = icmp eq i32 %47, -1
br i1 %48, label %49, label %52
49: ; preds = %44
%50 = load i32, i32* @stderr
%51 = call i32 @fprintf(i32 %50, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %101
52: ; preds = %44
br label %99
53: ; preds = %18
%54 = call i64 (...) @fork()
store i64 %54, i64* %2
%55 = load i64, i64* %2
%56 = icmp slt i64 %55, 0
br i1 %56, label %57, label %60
57: ; preds = %53
%58 = load i32, i32* @stderr
%59 = call i32 @fprintf(i32 %58, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %1
br label %101
60: ; preds = %53
%61 = load i64, i64* %2
%62 = icmp eq i64 %61, 0
br i1 %62, label %63, label %95
63: ; preds = %60
%64 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 1
%65 = load i32, i32* %64
%66 = call i32 @close(i32 %65)
%67 = icmp eq i32 %66, -1
br i1 %67, label %68, label %71
68: ; preds = %63
%69 = load i32, i32* @stderr
%70 = call i32 @fprintf(i32 %69, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %101
71: ; preds = %63
%72 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%73 = load i32, i32* %72
%74 = load i32, i32* @STDIN_FILENO
%75 = call i32 @dup2(i32 %73, i32 %74)
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %80
77: ; preds = %71
%78 = load i32, i32* @stderr
%79 = call i32 @fprintf(i32 %78, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %1
br label %101
80: ; preds = %71
%81 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* null)
%82 = icmp eq i32 %81, -1
br i1 %82, label %83, label %86
83: ; preds = %80
%84 = load i32, i32* @stderr
%85 = call i32 @fprintf(i32 %84, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
store i32 1, i32* %1
br label %101
86: ; preds = %80
%87 = getelementptr inbounds [2 x i32], [2 x i32]* %3, i64 0, i64 0
%88 = load i32, i32* %87
%89 = call i32 @close(i32 %88)
%90 = icmp eq i32 %89, -1
br i1 %90, label %91, label %94
91: ; preds = %86
%92 = load i32, i32* @stderr
%93 = call i32 @fprintf(i32 %92, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %101
94: ; preds = %86
br label %97
95: ; preds = %60
%96 = call i32 @wait(i32* %4)
br label %97
97: ; preds = %95, %94
br label %98
98: ; preds = %97
br label %99
99: ; preds = %98, %52
br label %100
100: ; preds = %99
store i32 0, i32* %1
br label %101
101: ; preds = %100, %91, %83, %77, %68, %57, %49, %41, %35, %26, %15, %8
%102 = load i32, i32* %1
ret i32 %102
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [13 x i8] c"Pipe failed.\00"
@.str.1 = [23 x i8] c"Fork call 1 has failed\00"
@.str.2 = [18 x i8] c"close call failed\00"
@STDOUT_FILENO = global i32 0
@.str.3 = [17 x i8] c"dup2 call failed\00"
@.str.4 = [3 x i8] c"ls\00"
@.str.5 = [4 x i8] c"-al\00"
@.str.6 = [19 x i8] c"execlp call failed\00"
@.str.7 = [23 x i8] c"Fork call 2 has failed\00"
@STDIN_FILENO = global i32 0
@.str.8 = [5 x i8] c"sort\00"
@.str.9 = [3 x i8] c"-n\00"
@.str.10 = [3 x i8] c"-k\00"
@.str.11 = [2 x i8] c"5\00"
define i32 @main() {
%1 = alloca [2 x i32]
%2 = alloca i32
%3 = bitcast [2 x i32]* %1 to i8*
%4 = bitcast i32* %2 to i8*
%5 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 0
%6 = call i32 @pipe(i32* %5)
%7 = icmp eq i32 %6, -1
br i1 %7, label %8, label %11
8: ; preds = %0
%9 = load i32, i32* @stderr
%10 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
br label %87
11: ; preds = %0
%12 = call i64 (...) @fork()
%13 = icmp slt i64 %12, 0
br i1 %13, label %14, label %17
14: ; preds = %11
%15 = load i32, i32* @stderr
%16 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
br label %87
17: ; preds = %11
%18 = icmp eq i64 %12, 0
br i1 %18, label %19, label %48
19: ; preds = %17
%20 = load i32, i32* %5
%21 = call i32 @close(i32 %20)
%22 = icmp eq i32 %21, -1
br i1 %22, label %23, label %26
23: ; preds = %19
%24 = load i32, i32* @stderr
%25 = call i32 @fprintf(i32 %24, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %87
26: ; preds = %19
%27 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
%28 = load i32, i32* %27
%29 = load i32, i32* @STDOUT_FILENO
%30 = call i32 @dup2(i32 %28, i32 %29)
%31 = icmp eq i32 %30, -1
br i1 %31, label %32, label %35
32: ; preds = %26
%33 = load i32, i32* @stderr
%34 = call i32 @fprintf(i32 %33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %87
35: ; preds = %26
%36 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), i8* null)
%37 = icmp eq i32 %36, -1
br i1 %37, label %38, label %41
38: ; preds = %35
%39 = load i32, i32* @stderr
%40 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %87
41: ; preds = %35
%42 = load i32, i32* %27
%43 = call i32 @close(i32 %42)
%44 = icmp eq i32 %43, -1
br i1 %44, label %45, label %87
45: ; preds = %41
%46 = load i32, i32* @stderr
%47 = call i32 @fprintf(i32 %46, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %87
48: ; preds = %17
%49 = call i64 (...) @fork()
%50 = icmp slt i64 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = load i32, i32* @stderr
%53 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
br label %87
54: ; preds = %48
%55 = icmp eq i64 %49, 0
br i1 %55, label %56, label %85
56: ; preds = %54
%57 = getelementptr inbounds [2 x i32], [2 x i32]* %1, i64 0, i64 1
%58 = load i32, i32* %57
%59 = call i32 @close(i32 %58)
%60 = icmp eq i32 %59, -1
br i1 %60, label %61, label %64
61: ; preds = %56
%62 = load i32, i32* @stderr
%63 = call i32 @fprintf(i32 %62, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %87
64: ; preds = %56
%65 = load i32, i32* %5
%66 = load i32, i32* @STDIN_FILENO
%67 = call i32 @dup2(i32 %65, i32 %66)
%68 = icmp eq i32 %67, -1
br i1 %68, label %69, label %72
69: ; preds = %64
%70 = load i32, i32* @stderr
%71 = call i32 @fprintf(i32 %70, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.3, i64 0, i64 0))
br label %87
72: ; preds = %64
%73 = call i32 (i8*, i8*, i8*, i8*, ...) @execlp(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* null)
%74 = icmp eq i32 %73, -1
br i1 %74, label %75, label %78
75: ; preds = %72
%76 = load i32, i32* @stderr
%77 = call i32 @fprintf(i32 %76, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0))
br label %87
78: ; preds = %72
%79 = load i32, i32* %5
%80 = call i32 @close(i32 %79)
%81 = icmp eq i32 %80, -1
br i1 %81, label %82, label %87
82: ; preds = %78
%83 = load i32, i32* @stderr
%84 = call i32 @fprintf(i32 %83, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0))
br label %87
85: ; preds = %54
%86 = call i32 @wait(i32* %2)
br label %87
87: ; preds = %78, %85, %41, %82, %75, %69, %61, %51, %45, %38, %32, %23, %14, %8
%88 = phi i32 [ 1, %8 ], [ 1, %14 ], [ 1, %23 ], [ 1, %32 ], [ 1, %38 ], [ 1, %45 ], [ 1, %51 ], [ 1, %61 ], [ 1, %69 ], [ 1, %75 ], [ 1, %82 ], [ 0, %41 ], [ 0, %85 ], [ 0, %78 ]
ret i32 %88
}