#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*/ close(int);
int /*<<< orphan*/ dup2(int, int);
int /*<<< orphan*/ execve(char *, char **, char **);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
scalar_t__ fork();
int /*<<< orphan*/ pipe(int *);
char *strrchr(char *, char);
int /*<<< orphan*/ *strstr(char *, char *);
int /*<<< orphan*/ waitpid(scalar_t__, int *, int /*<<< orphan*/);
void for_3pipe(char *ip1, char *ip2, char *ip3, char *ip4, char *envp[]) {
  int status;
  char *myargv1[10];
  if (strstr(ip1, " ") != NULL) {
    char *a1 = {""}, *a2 = {""};
    char *tmp = strrchr(ip1, ' ');
    if (tmp != NULL) {
      *tmp = '\0';
      a1 = tmp + 1;
    }
    a2 = ip1;
    myargv1[0] = a2;
    myargv1[1] = a1;
    myargv1[2] = NULL;
  } else {
    myargv1[0] = ip1;
    myargv1[1] = NULL;
  }
  char *myargv2[10];
  if (strstr(ip2, " ") != NULL) {
    char *a3 = {""}, *a4 = {""};
    char *tmp = strrchr(ip2, ' ');
    if (tmp != NULL) {
      *tmp = '\0';
      a3 = tmp + 1;
    }
    a4 = ip2;
    myargv2[0] = a4;
    myargv2[1] = a3;
    myargv2[2] = NULL;
  } else {
    myargv2[0] = ip2;
    myargv2[1] = NULL;
  }
  char *myargv3[10];
  if (strstr(ip3, " ") != NULL) {
    char *a5 = {""}, *a6 = {""};
    char *tmp = strrchr(ip3, ' ');
    if (tmp != NULL) {
      *tmp = '\0';
      a5 = tmp + 1;
    }
    a6 = ip3;
    myargv3[0] = a6;
    myargv3[1] = a5;
    myargv3[2] = NULL;
  } else {
    myargv3[0] = ip3;
    myargv3[1] = NULL;
  }
  char *myargv4[10];
  if (strstr(ip4, " ") != NULL) {
    char *a7 = {""}, *a8 = {""};
    char *tmp = strrchr(ip4, ' ');
    if (tmp != NULL) {
      *tmp = '\0';
      a7 = tmp + 1;
    }
    a8 = ip4;
    myargv4[0] = a8;
    myargv4[1] = a7;
    myargv4[2] = NULL;
  } else {
    myargv4[0] = ip4;
    myargv4[1] = NULL;
  }
  pid_t pid1, pid2, pid3 = 0, pid4 = 0, pid5 = 0;
  pid1 = fork();
  if (pid1 == 0) {
    int pipes[6];
    int j = 0;
    pipe(pipes);
    pipe(pipes + 2);
    pipe(pipes + 4);
    pid2 = fork();
    if (pid2 == 0) {
      dup2(pipes[1], 1);
      for (j = 0; j <= 5; j++)
        close(pipes[j]);
      execve(myargv1[0], myargv1, envp);
    } else {
      pid3 = fork();
      if (pid3 == 0) {
        dup2(pipes[0], 0);
        dup2(pipes[3], 1);
        for (j = 0; j <= 5; j++)
          close(pipes[j]);
        execve(myargv2[0], myargv2, envp);
      } else {
        pid4 = fork();
        if (pid4 == 0) {
          dup2(pipes[2], 0);
          dup2(pipes[5], 1);
          for (j = 0; j <= 5; j++)
            close(pipes[j]);
          execve(myargv3[0], myargv3, envp);
        } else {
          pid5 = fork();
          if (pid5 == 0) {
            dup2(pipes[4], 0);
            for (j = 0; j <= 5; j++)
              close(pipes[j]);
            execve(myargv4[0], myargv4, envp);
          }
        }
      }
    }
    for (j = 0; j <= 5; j++)
      close(pipes[j]);
    waitpid(pid2, &status, 0);
    waitpid(pid3, &status, 0);
    waitpid(pid4, &status, 0);
    waitpid(pid5, &status, 0);
    exit(0);
  } else {
    waitpid(pid1, &status, 0);
    return;
  }
}


x86 assembly (clang, -O0):
<for_3pipe>:
push   %rbp
mov    %rsp,%rbp
sub    $0x240,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xe46(%rip),%rsi
call   10b0 <strstr@plt>
cmp    $0x0,%rax
je     1252 <for_3pipe+0xc2>
lea    0xe31(%rip),%rax
mov    %rax,-0x88(%rbp)
lea    0xe23(%rip),%rax
mov    %rax,-0x90(%rbp)
mov    -0x8(%rbp),%rdi
mov    $0x20,%esi
call   1040 <strrchr@plt>
mov    %rax,-0x98(%rbp)
cmpq   $0x0,-0x98(%rbp)
je     1224 <for_3pipe+0x94>
mov    -0x98(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x98(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x88(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x90(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x88(%rbp),%rax
mov    %rax,-0x78(%rbp)
movq   $0x0,-0x70(%rbp)
jmp    1262 <for_3pipe+0xd2>
mov    -0x8(%rbp),%rax
mov    %rax,-0x80(%rbp)
movq   $0x0,-0x78(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xd93(%rip),%rsi
call   10b0 <strstr@plt>
cmp    $0x0,%rax
je     130e <for_3pipe+0x17e>
lea    0xd7e(%rip),%rax
mov    %rax,-0xf8(%rbp)
lea    0xd70(%rip),%rax
mov    %rax,-0x100(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x20,%esi
call   1040 <strrchr@plt>
mov    %rax,-0x108(%rbp)
cmpq   $0x0,-0x108(%rbp)
je     12d7 <for_3pipe+0x147>
mov    -0x108(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x108(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xf8(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x100(%rbp)
mov    -0x100(%rbp),%rax
mov    %rax,-0xf0(%rbp)
mov    -0xf8(%rbp),%rax
mov    %rax,-0xe8(%rbp)
movq   $0x0,-0xe0(%rbp)
jmp    1324 <for_3pipe+0x194>
mov    -0x10(%rbp),%rax
mov    %rax,-0xf0(%rbp)
movq   $0x0,-0xe8(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xcd1(%rip),%rsi
call   10b0 <strstr@plt>
cmp    $0x0,%rax
je     13d0 <for_3pipe+0x240>
lea    0xcbc(%rip),%rax
mov    %rax,-0x168(%rbp)
lea    0xcae(%rip),%rax
mov    %rax,-0x170(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x20,%esi
call   1040 <strrchr@plt>
mov    %rax,-0x178(%rbp)
cmpq   $0x0,-0x178(%rbp)
je     1399 <for_3pipe+0x209>
mov    -0x178(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x178(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x168(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x170(%rbp)
mov    -0x170(%rbp),%rax
mov    %rax,-0x160(%rbp)
mov    -0x168(%rbp),%rax
mov    %rax,-0x158(%rbp)
movq   $0x0,-0x150(%rbp)
jmp    13e6 <for_3pipe+0x256>
mov    -0x18(%rbp),%rax
mov    %rax,-0x160(%rbp)
movq   $0x0,-0x158(%rbp)
mov    -0x20(%rbp),%rdi
lea    0xc0f(%rip),%rsi
call   10b0 <strstr@plt>
cmp    $0x0,%rax
je     1492 <for_3pipe+0x302>
lea    0xbfa(%rip),%rax
mov    %rax,-0x1d8(%rbp)
lea    0xbec(%rip),%rax
mov    %rax,-0x1e0(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x20,%esi
call   1040 <strrchr@plt>
mov    %rax,-0x1e8(%rbp)
cmpq   $0x0,-0x1e8(%rbp)
je     145b <for_3pipe+0x2cb>
mov    -0x1e8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x1e8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x1d8(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x1e0(%rbp)
mov    -0x1e0(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
mov    -0x1d8(%rbp),%rax
mov    %rax,-0x1c8(%rbp)
movq   $0x0,-0x1c0(%rbp)
jmp    14a8 <for_3pipe+0x318>
mov    -0x20(%rbp),%rax
mov    %rax,-0x1d0(%rbp)
movq   $0x0,-0x1c8(%rbp)
movq   $0x0,-0x200(%rbp)
movq   $0x0,-0x208(%rbp)
movq   $0x0,-0x210(%rbp)
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x1f0(%rbp)
cmpq   $0x0,-0x1f0(%rbp)
jne    17db <for_3pipe+0x64b>
movl   $0x0,-0x234(%rbp)
lea    -0x230(%rbp),%rdi
call   1060 <pipe@plt>
lea    -0x230(%rbp),%rdi
add    $0x8,%rdi
call   1060 <pipe@plt>
lea    -0x230(%rbp),%rdi
add    $0x10,%rdi
call   1060 <pipe@plt>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x1f8(%rbp)
cmpq   $0x0,-0x1f8(%rbp)
jne    159b <for_3pipe+0x40b>
mov    -0x22c(%rbp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
movl   $0x0,-0x234(%rbp)
cmpl   $0x5,-0x234(%rbp)
jg     1585 <for_3pipe+0x3f5>
movslq -0x234(%rbp),%rax
mov    -0x230(%rbp,%rax,4),%edi
call   1050 <close@plt>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    1551 <for_3pipe+0x3c1>
mov    -0x80(%rbp),%rdi
lea    -0x80(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1070 <execve@plt>
jmp    174e <for_3pipe+0x5be>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x200(%rbp)
cmpq   $0x0,-0x200(%rbp)
jne    162e <for_3pipe+0x49e>
mov    -0x230(%rbp),%edi
xor    %esi,%esi
call   1030 <dup2@plt>
mov    -0x224(%rbp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
movl   $0x0,-0x234(%rbp)
cmpl   $0x5,-0x234(%rbp)
jg     1612 <for_3pipe+0x482>
movslq -0x234(%rbp),%rax
mov    -0x230(%rbp,%rax,4),%edi
call   1050 <close@plt>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    15de <for_3pipe+0x44e>
mov    -0xf0(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1070 <execve@plt>
jmp    1749 <for_3pipe+0x5b9>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x208(%rbp)
cmpq   $0x0,-0x208(%rbp)
jne    16c1 <for_3pipe+0x531>
mov    -0x228(%rbp),%edi
xor    %esi,%esi
call   1030 <dup2@plt>
mov    -0x21c(%rbp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
movl   $0x0,-0x234(%rbp)
cmpl   $0x5,-0x234(%rbp)
jg     16a5 <for_3pipe+0x515>
movslq -0x234(%rbp),%rax
mov    -0x230(%rbp,%rax,4),%edi
call   1050 <close@plt>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    1671 <for_3pipe+0x4e1>
mov    -0x160(%rbp),%rdi
lea    -0x160(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1070 <execve@plt>
jmp    1744 <for_3pipe+0x5b4>
mov    $0x0,%al
call   10a0 <fork@plt>
mov    %rax,-0x210(%rbp)
cmpq   $0x0,-0x210(%rbp)
jne    173f <for_3pipe+0x5af>
mov    -0x220(%rbp),%edi
xor    %esi,%esi
call   1030 <dup2@plt>
movl   $0x0,-0x234(%rbp)
cmpl   $0x5,-0x234(%rbp)
jg     1728 <for_3pipe+0x598>
movslq -0x234(%rbp),%rax
mov    -0x230(%rbp,%rax,4),%edi
call   1050 <close@plt>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    16f4 <for_3pipe+0x564>
mov    -0x1d0(%rbp),%rdi
lea    -0x1d0(%rbp),%rsi
mov    -0x28(%rbp),%rdx
call   1070 <execve@plt>
jmp    1744 <for_3pipe+0x5b4>
jmp    1749 <for_3pipe+0x5b9>
jmp    174e <for_3pipe+0x5be>
movl   $0x0,-0x234(%rbp)
cmpl   $0x5,-0x234(%rbp)
jg     178c <for_3pipe+0x5fc>
movslq -0x234(%rbp),%rax
mov    -0x230(%rbp,%rax,4),%edi
call   1050 <close@plt>
mov    -0x234(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x234(%rbp)
jmp    1758 <for_3pipe+0x5c8>
mov    -0x1f8(%rbp),%rdi
lea    -0x2c(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
mov    -0x200(%rbp),%rdi
lea    -0x2c(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
mov    -0x208(%rbp),%rdi
lea    -0x2c(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
mov    -0x210(%rbp),%rdi
lea    -0x2c(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
xor    %edi,%edi
call   1090 <exit@plt>
mov    -0x1f0(%rbp),%rdi
lea    -0x2c(%rbp),%rsi
xor    %edx,%edx
call   1080 <waitpid@plt>
add    $0x240,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<for_3pipe>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x178,%rsp
mov    %r8,%r14
mov    %rcx,%r15
mov    %rdx,%r12
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    $0x20,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     11da <for_3pipe+0x4a>
mov    %rbx,%rdi
mov    $0x20,%esi
call   1050 <strrchr@plt>
test   %rax,%rax
je     11f0 <for_3pipe+0x60>
movb   $0x0,(%rax)
add    $0x1,%rax
jmp    11f7 <for_3pipe+0x67>
mov    %rbx,0xd0(%rsp)
movq   $0x0,0xd8(%rsp)
jmp    1213 <for_3pipe+0x83>
lea    0xe09(%rip),%rax
mov    %rbx,0xd0(%rsp)
mov    %rax,0xd8(%rsp)
movq   $0x0,0xe0(%rsp)
mov    %rbp,%rdi
mov    $0x20,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     1240 <for_3pipe+0xb0>
mov    %rbp,%rdi
mov    $0x20,%esi
call   1050 <strrchr@plt>
test   %rax,%rax
je     1256 <for_3pipe+0xc6>
movb   $0x0,(%rax)
add    $0x1,%rax
jmp    125d <for_3pipe+0xcd>
mov    %rbp,0x80(%rsp)
movq   $0x0,0x88(%rsp)
jmp    1279 <for_3pipe+0xe9>
lea    0xda3(%rip),%rax
mov    %rbp,0x80(%rsp)
mov    %rax,0x88(%rsp)
movq   $0x0,0x90(%rsp)
mov    %r12,%rdi
mov    $0x20,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     12a6 <for_3pipe+0x116>
mov    %r12,%rdi
mov    $0x20,%esi
call   1050 <strrchr@plt>
test   %rax,%rax
je     12b6 <for_3pipe+0x126>
movb   $0x0,(%rax)
add    $0x1,%rax
jmp    12bd <for_3pipe+0x12d>
mov    %r12,0x30(%rsp)
movq   $0x0,0x38(%rsp)
jmp    12d0 <for_3pipe+0x140>
lea    0xd43(%rip),%rax
mov    %r12,0x30(%rsp)
mov    %rax,0x38(%rsp)
movq   $0x0,0x40(%rsp)
mov    %r15,%rdi
mov    $0x20,%esi
call   1040 <strchr@plt>
test   %rax,%rax
je     12fd <for_3pipe+0x16d>
mov    %r15,%rdi
mov    $0x20,%esi
call   1050 <strrchr@plt>
test   %rax,%rax
je     1313 <for_3pipe+0x183>
movb   $0x0,(%rax)
add    $0x1,%rax
jmp    131a <for_3pipe+0x18a>
mov    %r15,0x120(%rsp)
movq   $0x0,0x128(%rsp)
jmp    1336 <for_3pipe+0x1a6>
lea    0xce6(%rip),%rax
mov    %r15,0x120(%rsp)
mov    %rax,0x128(%rsp)
movq   $0x0,0x130(%rsp)
xor    %eax,%eax
call   10b0 <fork@plt>
test   %rax,%rax
je     1363 <for_3pipe+0x1d3>
lea    0x24(%rsp),%rsi
mov    %rax,%rdi
xor    %edx,%edx
call   1090 <waitpid@plt>
add    $0x178,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %rsp,%rdi
call   1070 <pipe@plt>
lea    0x8(%rsp),%rdi
call   1070 <pipe@plt>
lea    0x10(%rsp),%rdi
call   1070 <pipe@plt>
xor    %eax,%eax
call   10b0 <fork@plt>
mov    %rax,0x28(%rsp)
test   %rax,%rax
jne    13ee <for_3pipe+0x25e>
mov    0x4(%rsp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
mov    (%rsp),%edi
call   1060 <close@plt>
mov    0x4(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
mov    0x10(%rsp),%edi
call   1060 <close@plt>
mov    0x14(%rsp),%edi
call   1060 <close@plt>
lea    0xd0(%rsp),%rsi
xor    %r12d,%r12d
mov    0xd0(%rsp),%r15
xor    %r13d,%r13d
jmp    1529 <for_3pipe+0x399>
xor    %eax,%eax
call   10b0 <fork@plt>
test   %rax,%rax
jne    1462 <for_3pipe+0x2d2>
mov    (%rsp),%edi
xor    %r12d,%r12d
xor    %esi,%esi
call   1030 <dup2@plt>
mov    0xc(%rsp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
mov    (%rsp),%edi
call   1060 <close@plt>
mov    0x4(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
mov    0x10(%rsp),%edi
call   1060 <close@plt>
mov    0x14(%rsp),%edi
call   1060 <close@plt>
lea    0x80(%rsp),%rsi
mov    0x80(%rsp),%r15
xor    %r13d,%r13d
jmp    1529 <for_3pipe+0x399>
mov    %rax,%r12
xor    %eax,%eax
call   10b0 <fork@plt>
test   %rax,%rax
jne    14ce <for_3pipe+0x33e>
mov    0x8(%rsp),%edi
xor    %r13d,%r13d
xor    %esi,%esi
call   1030 <dup2@plt>
mov    0x14(%rsp),%edi
mov    $0x1,%esi
call   1030 <dup2@plt>
mov    (%rsp),%edi
call   1060 <close@plt>
mov    0x4(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
mov    0x10(%rsp),%edi
call   1060 <close@plt>
mov    0x14(%rsp),%edi
call   1060 <close@plt>
lea    0x30(%rsp),%rsi
mov    0x30(%rsp),%r15
jmp    1529 <for_3pipe+0x399>
mov    %rax,%r13
xor    %eax,%eax
call   10b0 <fork@plt>
test   %rax,%rax
jne    15ad <for_3pipe+0x41d>
mov    0x10(%rsp),%edi
xor    %esi,%esi
call   1030 <dup2@plt>
mov    (%rsp),%edi
call   1060 <close@plt>
mov    0x4(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
mov    0x10(%rsp),%edi
call   1060 <close@plt>
mov    0x14(%rsp),%edi
call   1060 <close@plt>
lea    0x120(%rsp),%rsi
mov    %r15,%rdi
mov    %r14,%rdx
call   1080 <execve@plt>
xor    %ebp,%ebp
mov    (%rsp),%edi
call   1060 <close@plt>
mov    0x4(%rsp),%edi
call   1060 <close@plt>
mov    0x8(%rsp),%edi
call   1060 <close@plt>
mov    0xc(%rsp),%edi
call   1060 <close@plt>
mov    0x10(%rsp),%edi
call   1060 <close@plt>
mov    0x14(%rsp),%edi
call   1060 <close@plt>
lea    0x24(%rsp),%rbx
mov    0x28(%rsp),%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
mov    %r13,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1090 <waitpid@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    %rax,%rbp
jmp    1536 <for_3pipe+0x3a6>

LLVM IR (-O0):
@.str = [2 x i8] c" \00"
@.str.1 = [1 x i8] zeroinitializer
define void @for_3pipe(i8* %0, i8* %1, i8* %2, i8* %3, i8** %4) {
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8**
%11 = alloca i32
%12 = alloca [10 x i8*]
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca [10 x i8*]
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i8*
%20 = alloca [10 x i8*]
%21 = alloca i8*
%22 = alloca i8*
%23 = alloca i8*
%24 = alloca [10 x i8*]
%25 = alloca i8*
%26 = alloca i8*
%27 = alloca i8*
%28 = alloca i64
%29 = alloca i64
%30 = alloca i64
%31 = alloca i64
%32 = alloca i64
%33 = alloca [6 x i32]
%34 = alloca i32
store i8* %0, i8** %6
store i8* %1, i8** %7
store i8* %2, i8** %8
store i8* %3, i8** %9
store i8** %4, i8*** %10
%35 = load i8*, i8** %6
%36 = call i32* @strstr(i8* %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%37 = icmp ne i32* %36, null
br i1 %37, label %38, label %54
38: ; preds = %5
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %13
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %14
%39 = load i8*, i8** %6
%40 = call i8* @strrchr(i8* %39, i8 signext 32)
store i8* %40, i8** %15
%41 = load i8*, i8** %15
%42 = icmp ne i8* %41, null
br i1 %42, label %43, label %47
43: ; preds = %38
%44 = load i8*, i8** %15
store i8 0, i8* %44
%45 = load i8*, i8** %15
%46 = getelementptr inbounds i8, i8* %45, i64 1
store i8* %46, i8** %13
br label %47
47: ; preds = %43, %38
%48 = load i8*, i8** %6
store i8* %48, i8** %14
%49 = load i8*, i8** %14
%50 = getelementptr inbounds [10 x i8*], [10 x i8*]* %12, i64 0, i64 0
store i8* %49, i8** %50
%51 = load i8*, i8** %13
%52 = getelementptr inbounds [10 x i8*], [10 x i8*]* %12, i64 0, i64 1
store i8* %51, i8** %52
%53 = getelementptr inbounds [10 x i8*], [10 x i8*]* %12, i64 0, i64 2
store i8* null, i8** %53
br label %58
54: ; preds = %5
%55 = load i8*, i8** %6
%56 = getelementptr inbounds [10 x i8*], [10 x i8*]* %12, i64 0, i64 0
store i8* %55, i8** %56
%57 = getelementptr inbounds [10 x i8*], [10 x i8*]* %12, i64 0, i64 1
store i8* null, i8** %57
br label %58
58: ; preds = %54, %47
%59 = load i8*, i8** %7
%60 = call i32* @strstr(i8* %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%61 = icmp ne i32* %60, null
br i1 %61, label %62, label %78
62: ; preds = %58
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %17
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %18
%63 = load i8*, i8** %7
%64 = call i8* @strrchr(i8* %63, i8 signext 32)
store i8* %64, i8** %19
%65 = load i8*, i8** %19
%66 = icmp ne i8* %65, null
br i1 %66, label %67, label %71
67: ; preds = %62
%68 = load i8*, i8** %19
store i8 0, i8* %68
%69 = load i8*, i8** %19
%70 = getelementptr inbounds i8, i8* %69, i64 1
store i8* %70, i8** %17
br label %71
71: ; preds = %67, %62
%72 = load i8*, i8** %7
store i8* %72, i8** %18
%73 = load i8*, i8** %18
%74 = getelementptr inbounds [10 x i8*], [10 x i8*]* %16, i64 0, i64 0
store i8* %73, i8** %74
%75 = load i8*, i8** %17
%76 = getelementptr inbounds [10 x i8*], [10 x i8*]* %16, i64 0, i64 1
store i8* %75, i8** %76
%77 = getelementptr inbounds [10 x i8*], [10 x i8*]* %16, i64 0, i64 2
store i8* null, i8** %77
br label %82
78: ; preds = %58
%79 = load i8*, i8** %7
%80 = getelementptr inbounds [10 x i8*], [10 x i8*]* %16, i64 0, i64 0
store i8* %79, i8** %80
%81 = getelementptr inbounds [10 x i8*], [10 x i8*]* %16, i64 0, i64 1
store i8* null, i8** %81
br label %82
82: ; preds = %78, %71
%83 = load i8*, i8** %8
%84 = call i32* @strstr(i8* %83, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%85 = icmp ne i32* %84, null
br i1 %85, label %86, label %102
86: ; preds = %82
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %21
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %22
%87 = load i8*, i8** %8
%88 = call i8* @strrchr(i8* %87, i8 signext 32)
store i8* %88, i8** %23
%89 = load i8*, i8** %23
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %95
91: ; preds = %86
%92 = load i8*, i8** %23
store i8 0, i8* %92
%93 = load i8*, i8** %23
%94 = getelementptr inbounds i8, i8* %93, i64 1
store i8* %94, i8** %21
br label %95
95: ; preds = %91, %86
%96 = load i8*, i8** %8
store i8* %96, i8** %22
%97 = load i8*, i8** %22
%98 = getelementptr inbounds [10 x i8*], [10 x i8*]* %20, i64 0, i64 0
store i8* %97, i8** %98
%99 = load i8*, i8** %21
%100 = getelementptr inbounds [10 x i8*], [10 x i8*]* %20, i64 0, i64 1
store i8* %99, i8** %100
%101 = getelementptr inbounds [10 x i8*], [10 x i8*]* %20, i64 0, i64 2
store i8* null, i8** %101
br label %106
102: ; preds = %82
%103 = load i8*, i8** %8
%104 = getelementptr inbounds [10 x i8*], [10 x i8*]* %20, i64 0, i64 0
store i8* %103, i8** %104
%105 = getelementptr inbounds [10 x i8*], [10 x i8*]* %20, i64 0, i64 1
store i8* null, i8** %105
br label %106
106: ; preds = %102, %95
%107 = load i8*, i8** %9
%108 = call i32* @strstr(i8* %107, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%109 = icmp ne i32* %108, null
br i1 %109, label %110, label %126
110: ; preds = %106
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %25
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %26
%111 = load i8*, i8** %9
%112 = call i8* @strrchr(i8* %111, i8 signext 32)
store i8* %112, i8** %27
%113 = load i8*, i8** %27
%114 = icmp ne i8* %113, null
br i1 %114, label %115, label %119
115: ; preds = %110
%116 = load i8*, i8** %27
store i8 0, i8* %116
%117 = load i8*, i8** %27
%118 = getelementptr inbounds i8, i8* %117, i64 1
store i8* %118, i8** %25
br label %119
119: ; preds = %115, %110
%120 = load i8*, i8** %9
store i8* %120, i8** %26
%121 = load i8*, i8** %26
%122 = getelementptr inbounds [10 x i8*], [10 x i8*]* %24, i64 0, i64 0
store i8* %121, i8** %122
%123 = load i8*, i8** %25
%124 = getelementptr inbounds [10 x i8*], [10 x i8*]* %24, i64 0, i64 1
store i8* %123, i8** %124
%125 = getelementptr inbounds [10 x i8*], [10 x i8*]* %24, i64 0, i64 2
store i8* null, i8** %125
br label %130
126: ; preds = %106
%127 = load i8*, i8** %9
%128 = getelementptr inbounds [10 x i8*], [10 x i8*]* %24, i64 0, i64 0
store i8* %127, i8** %128
%129 = getelementptr inbounds [10 x i8*], [10 x i8*]* %24, i64 0, i64 1
store i8* null, i8** %129
br label %130
130: ; preds = %126, %119
store i64 0, i64* %30
store i64 0, i64* %31
store i64 0, i64* %32
%131 = call i64 (...) @fork()
store i64 %131, i64* %28
%132 = load i64, i64* %28
%133 = icmp eq i64 %132, 0
br i1 %133, label %134, label %278
134: ; preds = %130
store i32 0, i32* %34
%135 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 0
%136 = call i32 @pipe(i32* %135)
%137 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 0
%138 = getelementptr inbounds i32, i32* %137, i64 2
%139 = call i32 @pipe(i32* %138)
%140 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 0
%141 = getelementptr inbounds i32, i32* %140, i64 4
%142 = call i32 @pipe(i32* %141)
%143 = call i64 (...) @fork()
store i64 %143, i64* %29
%144 = load i64, i64* %29
%145 = icmp eq i64 %144, 0
br i1 %145, label %146, label %168
146: ; preds = %134
%147 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 1
%148 = load i32, i32* %147
%149 = call i32 @dup2(i32 %148, i32 1)
store i32 0, i32* %34
br label %150
150: ; preds = %159, %146
%151 = load i32, i32* %34
%152 = icmp sle i32 %151, 5
br i1 %152, label %153, label %162
153: ; preds = %150
%154 = load i32, i32* %34
%155 = sext i32 %154 to i64
%156 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 %155
%157 = load i32, i32* %156
%158 = call i32 @close(i32 %157)
br label %159
159: ; preds = %153
%160 = load i32, i32* %34
%161 = add nsw i32 %160, 1
store i32 %161, i32* %34
br label %150
162: ; preds = %150
%163 = getelementptr inbounds [10 x i8*], [10 x i8*]* %12, i64 0, i64 0
%164 = load i8*, i8** %163
%165 = getelementptr inbounds [10 x i8*], [10 x i8*]* %12, i64 0, i64 0
%166 = load i8**, i8*** %10
%167 = call i32 @execve(i8* %164, i8** %165, i8** %166)
br label %255
168: ; preds = %134
%169 = call i64 (...) @fork()
store i64 %169, i64* %30
%170 = load i64, i64* %30
%171 = icmp eq i64 %170, 0
br i1 %171, label %172, label %197
172: ; preds = %168
%173 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 0
%174 = load i32, i32* %173
%175 = call i32 @dup2(i32 %174, i32 0)
%176 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 3
%177 = load i32, i32* %176
%178 = call i32 @dup2(i32 %177, i32 1)
store i32 0, i32* %34
br label %179
179: ; preds = %188, %172
%180 = load i32, i32* %34
%181 = icmp sle i32 %180, 5
br i1 %181, label %182, label %191
182: ; preds = %179
%183 = load i32, i32* %34
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 %184
%186 = load i32, i32* %185
%187 = call i32 @close(i32 %186)
br label %188
188: ; preds = %182
%189 = load i32, i32* %34
%190 = add nsw i32 %189, 1
store i32 %190, i32* %34
br label %179
191: ; preds = %179
%192 = getelementptr inbounds [10 x i8*], [10 x i8*]* %16, i64 0, i64 0
%193 = load i8*, i8** %192
%194 = getelementptr inbounds [10 x i8*], [10 x i8*]* %16, i64 0, i64 0
%195 = load i8**, i8*** %10
%196 = call i32 @execve(i8* %193, i8** %194, i8** %195)
br label %254
197: ; preds = %168
%198 = call i64 (...) @fork()
store i64 %198, i64* %31
%199 = load i64, i64* %31
%200 = icmp eq i64 %199, 0
br i1 %200, label %201, label %226
201: ; preds = %197
%202 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 2
%203 = load i32, i32* %202
%204 = call i32 @dup2(i32 %203, i32 0)
%205 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 5
%206 = load i32, i32* %205
%207 = call i32 @dup2(i32 %206, i32 1)
store i32 0, i32* %34
br label %208
208: ; preds = %217, %201
%209 = load i32, i32* %34
%210 = icmp sle i32 %209, 5
br i1 %210, label %211, label %220
211: ; preds = %208
%212 = load i32, i32* %34
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 %213
%215 = load i32, i32* %214
%216 = call i32 @close(i32 %215)
br label %217
217: ; preds = %211
%218 = load i32, i32* %34
%219 = add nsw i32 %218, 1
store i32 %219, i32* %34
br label %208
220: ; preds = %208
%221 = getelementptr inbounds [10 x i8*], [10 x i8*]* %20, i64 0, i64 0
%222 = load i8*, i8** %221
%223 = getelementptr inbounds [10 x i8*], [10 x i8*]* %20, i64 0, i64 0
%224 = load i8**, i8*** %10
%225 = call i32 @execve(i8* %222, i8** %223, i8** %224)
br label %253
226: ; preds = %197
%227 = call i64 (...) @fork()
store i64 %227, i64* %32
%228 = load i64, i64* %32
%229 = icmp eq i64 %228, 0
br i1 %229, label %230, label %252
230: ; preds = %226
%231 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 4
%232 = load i32, i32* %231
%233 = call i32 @dup2(i32 %232, i32 0)
store i32 0, i32* %34
br label %234
234: ; preds = %243, %230
%235 = load i32, i32* %34
%236 = icmp sle i32 %235, 5
br i1 %236, label %237, label %246
237: ; preds = %234
%238 = load i32, i32* %34
%239 = sext i32 %238 to i64
%240 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 %239
%241 = load i32, i32* %240
%242 = call i32 @close(i32 %241)
br label %243
243: ; preds = %237
%244 = load i32, i32* %34
%245 = add nsw i32 %244, 1
store i32 %245, i32* %34
br label %234
246: ; preds = %234
%247 = getelementptr inbounds [10 x i8*], [10 x i8*]* %24, i64 0, i64 0
%248 = load i8*, i8** %247
%249 = getelementptr inbounds [10 x i8*], [10 x i8*]* %24, i64 0, i64 0
%250 = load i8**, i8*** %10
%251 = call i32 @execve(i8* %248, i8** %249, i8** %250)
br label %252
252: ; preds = %246, %226
br label %253
253: ; preds = %252, %220
br label %254
254: ; preds = %253, %191
br label %255
255: ; preds = %254, %162
store i32 0, i32* %34
br label %256
256: ; preds = %265, %255
%257 = load i32, i32* %34
%258 = icmp sle i32 %257, 5
br i1 %258, label %259, label %268
259: ; preds = %256
%260 = load i32, i32* %34
%261 = sext i32 %260 to i64
%262 = getelementptr inbounds [6 x i32], [6 x i32]* %33, i64 0, i64 %261
%263 = load i32, i32* %262
%264 = call i32 @close(i32 %263)
br label %265
265: ; preds = %259
%266 = load i32, i32* %34
%267 = add nsw i32 %266, 1
store i32 %267, i32* %34
br label %256
268: ; preds = %256
%269 = load i64, i64* %29
%270 = call i32 @waitpid(i64 %269, i32* %11, i32 0)
%271 = load i64, i64* %30
%272 = call i32 @waitpid(i64 %271, i32* %11, i32 0)
%273 = load i64, i64* %31
%274 = call i32 @waitpid(i64 %273, i32* %11, i32 0)
%275 = load i64, i64* %32
%276 = call i32 @waitpid(i64 %275, i32* %11, i32 0)
%277 = call i32 @exit(i32 0)
unreachable
278: ; preds = %130
%279 = load i64, i64* %28
%280 = call i32 @waitpid(i64 %279, i32* %11, i32 0)
ret void
}

LLVM IR (-O2):
@.str.1 = [1 x i8] zeroinitializer
define void @for_3pipe(i8* %0, i8* %1, i8* %2, i8* %3, i8** %4) {
%6 = alloca i32
%7 = alloca [10 x i8*]
%8 = alloca [10 x i8*]
%9 = alloca [10 x i8*]
%10 = alloca [10 x i8*]
%11 = alloca [6 x i32]
%12 = bitcast i32* %6 to i8*
%13 = bitcast [10 x i8*]* %7 to i8*
%14 = tail call i8* @strchr(i8* dereferenceable(1) %0, i32 32)
%15 = icmp eq i8* %14, null
br i1 %15, label %26, label %16
16: ; preds = %5
%17 = tail call i8* @strrchr(i8* dereferenceable(1) %0, i8 signext 32)
%18 = icmp eq i8* %17, null
br i1 %18, label %21, label %19
19: ; preds = %16
store i8 0, i8* %17
%20 = getelementptr inbounds i8, i8* %17, i64 1
br label %21
21: ; preds = %19, %16
%22 = phi i8* [ %20, %19 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %16 ]
%23 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 0
store i8* %0, i8** %23
%24 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 1
store i8* %22, i8** %24
%25 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 2
store i8* null, i8** %25
br label %29
26: ; preds = %5
%27 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 0
store i8* %0, i8** %27
%28 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 1
store i8* null, i8** %28
br label %29
29: ; preds = %26, %21
%30 = bitcast [10 x i8*]* %8 to i8*
%31 = tail call i8* @strchr(i8* dereferenceable(1) %1, i32 32)
%32 = icmp eq i8* %31, null
br i1 %32, label %43, label %33
33: ; preds = %29
%34 = tail call i8* @strrchr(i8* dereferenceable(1) %1, i8 signext 32)
%35 = icmp eq i8* %34, null
br i1 %35, label %38, label %36
36: ; preds = %33
store i8 0, i8* %34
%37 = getelementptr inbounds i8, i8* %34, i64 1
br label %38
38: ; preds = %36, %33
%39 = phi i8* [ %37, %36 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %33 ]
%40 = getelementptr inbounds [10 x i8*], [10 x i8*]* %8, i64 0, i64 0
store i8* %1, i8** %40
%41 = getelementptr inbounds [10 x i8*], [10 x i8*]* %8, i64 0, i64 1
store i8* %39, i8** %41
%42 = getelementptr inbounds [10 x i8*], [10 x i8*]* %8, i64 0, i64 2
store i8* null, i8** %42
br label %46
43: ; preds = %29
%44 = getelementptr inbounds [10 x i8*], [10 x i8*]* %8, i64 0, i64 0
store i8* %1, i8** %44
%45 = getelementptr inbounds [10 x i8*], [10 x i8*]* %8, i64 0, i64 1
store i8* null, i8** %45
br label %46
46: ; preds = %43, %38
%47 = bitcast [10 x i8*]* %9 to i8*
%48 = tail call i8* @strchr(i8* dereferenceable(1) %2, i32 32)
%49 = icmp eq i8* %48, null
br i1 %49, label %60, label %50
50: ; preds = %46
%51 = tail call i8* @strrchr(i8* dereferenceable(1) %2, i8 signext 32)
%52 = icmp eq i8* %51, null
br i1 %52, label %55, label %53
53: ; preds = %50
store i8 0, i8* %51
%54 = getelementptr inbounds i8, i8* %51, i64 1
br label %55
55: ; preds = %53, %50
%56 = phi i8* [ %54, %53 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %50 ]
%57 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 0
store i8* %2, i8** %57
%58 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 1
store i8* %56, i8** %58
%59 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 2
store i8* null, i8** %59
br label %63
60: ; preds = %46
%61 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 0
store i8* %2, i8** %61
%62 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 1
store i8* null, i8** %62
br label %63
63: ; preds = %60, %55
%64 = bitcast [10 x i8*]* %10 to i8*
%65 = tail call i8* @strchr(i8* dereferenceable(1) %3, i32 32)
%66 = icmp eq i8* %65, null
br i1 %66, label %77, label %67
67: ; preds = %63
%68 = tail call i8* @strrchr(i8* dereferenceable(1) %3, i8 signext 32)
%69 = icmp eq i8* %68, null
br i1 %69, label %72, label %70
70: ; preds = %67
store i8 0, i8* %68
%71 = getelementptr inbounds i8, i8* %68, i64 1
br label %72
72: ; preds = %70, %67
%73 = phi i8* [ %71, %70 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %67 ]
%74 = getelementptr inbounds [10 x i8*], [10 x i8*]* %10, i64 0, i64 0
store i8* %3, i8** %74
%75 = getelementptr inbounds [10 x i8*], [10 x i8*]* %10, i64 0, i64 1
store i8* %73, i8** %75
%76 = getelementptr inbounds [10 x i8*], [10 x i8*]* %10, i64 0, i64 2
store i8* null, i8** %76
br label %80
77: ; preds = %63
%78 = getelementptr inbounds [10 x i8*], [10 x i8*]* %10, i64 0, i64 0
store i8* %3, i8** %78
%79 = getelementptr inbounds [10 x i8*], [10 x i8*]* %10, i64 0, i64 1
store i8* null, i8** %79
br label %80
80: ; preds = %77, %72
%81 = tail call i64 (...) @fork()
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %215
83: ; preds = %80
%84 = bitcast [6 x i32]* %11 to i8*
%85 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 0
%86 = call i32 @pipe(i32* %85)
%87 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 2
%88 = call i32 @pipe(i32* %87)
%89 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 4
%90 = call i32 @pipe(i32* %89)
%91 = call i64 (...) @fork()
%92 = icmp eq i64 %91, 0
br i1 %92, label %93, label %113
93: ; preds = %83
%94 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 1
%95 = load i32, i32* %94
%96 = call i32 @dup2(i32 %95, i32 1)
%97 = load i32, i32* %85
%98 = call i32 @close(i32 %97)
%99 = load i32, i32* %94
%100 = call i32 @close(i32 %99)
%101 = load i32, i32* %87
%102 = call i32 @close(i32 %101)
%103 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 3
%104 = load i32, i32* %103
%105 = call i32 @close(i32 %104)
%106 = load i32, i32* %89
%107 = call i32 @close(i32 %106)
%108 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 5
%109 = load i32, i32* %108
%110 = call i32 @close(i32 %109)
%111 = getelementptr inbounds [10 x i8*], [10 x i8*]* %7, i64 0, i64 0
%112 = load i8*, i8** %111
br label %185
113: ; preds = %83
%114 = call i64 (...) @fork()
%115 = icmp eq i64 %114, 0
br i1 %115, label %116, label %138
116: ; preds = %113
%117 = load i32, i32* %85
%118 = call i32 @dup2(i32 %117, i32 0)
%119 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 3
%120 = load i32, i32* %119
%121 = call i32 @dup2(i32 %120, i32 1)
%122 = load i32, i32* %85
%123 = call i32 @close(i32 %122)
%124 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 1
%125 = load i32, i32* %124
%126 = call i32 @close(i32 %125)
%127 = load i32, i32* %87
%128 = call i32 @close(i32 %127)
%129 = load i32, i32* %119
%130 = call i32 @close(i32 %129)
%131 = load i32, i32* %89
%132 = call i32 @close(i32 %131)
%133 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 5
%134 = load i32, i32* %133
%135 = call i32 @close(i32 %134)
%136 = getelementptr inbounds [10 x i8*], [10 x i8*]* %8, i64 0, i64 0
%137 = load i8*, i8** %136
br label %185
138: ; preds = %113
%139 = call i64 (...) @fork()
%140 = icmp eq i64 %139, 0
br i1 %140, label %141, label %163
141: ; preds = %138
%142 = load i32, i32* %87
%143 = call i32 @dup2(i32 %142, i32 0)
%144 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 5
%145 = load i32, i32* %144
%146 = call i32 @dup2(i32 %145, i32 1)
%147 = load i32, i32* %85
%148 = call i32 @close(i32 %147)
%149 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 1
%150 = load i32, i32* %149
%151 = call i32 @close(i32 %150)
%152 = load i32, i32* %87
%153 = call i32 @close(i32 %152)
%154 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 3
%155 = load i32, i32* %154
%156 = call i32 @close(i32 %155)
%157 = load i32, i32* %89
%158 = call i32 @close(i32 %157)
%159 = load i32, i32* %144
%160 = call i32 @close(i32 %159)
%161 = getelementptr inbounds [10 x i8*], [10 x i8*]* %9, i64 0, i64 0
%162 = load i8*, i8** %161
br label %185
163: ; preds = %138
%164 = call i64 (...) @fork()
%165 = icmp eq i64 %164, 0
br i1 %165, label %166, label %191
166: ; preds = %163
%167 = load i32, i32* %89
%168 = call i32 @dup2(i32 %167, i32 0)
%169 = load i32, i32* %85
%170 = call i32 @close(i32 %169)
%171 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 1
%172 = load i32, i32* %171
%173 = call i32 @close(i32 %172)
%174 = load i32, i32* %87
%175 = call i32 @close(i32 %174)
%176 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 3
%177 = load i32, i32* %176
%178 = call i32 @close(i32 %177)
%179 = load i32, i32* %89
%180 = call i32 @close(i32 %179)
%181 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 5
%182 = load i32, i32* %181
%183 = call i32 @close(i32 %182)
%184 = getelementptr inbounds [10 x i8*], [10 x i8*]* %10, i64 0, i64 0
br label %185
185: ; preds = %93, %141, %166, %116
%186 = phi i8** [ %136, %116 ], [ %184, %166 ], [ %161, %141 ], [ %111, %93 ]
%187 = phi i8* [ %137, %116 ], [ %3, %166 ], [ %162, %141 ], [ %112, %93 ]
%188 = phi i64 [ 0, %116 ], [ %114, %166 ], [ %114, %141 ], [ 0, %93 ]
%189 = phi i64 [ 0, %116 ], [ %139, %166 ], [ 0, %141 ], [ 0, %93 ]
%190 = call i32 @execve(i8* %187, i8** %186, i8** %4)
br label %191
191: ; preds = %185, %163
%192 = phi i64 [ %114, %163 ], [ %188, %185 ]
%193 = phi i64 [ %139, %163 ], [ %189, %185 ]
%194 = phi i64 [ %164, %163 ], [ 0, %185 ]
%195 = load i32, i32* %85
%196 = call i32 @close(i32 %195)
%197 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 1
%198 = load i32, i32* %197
%199 = call i32 @close(i32 %198)
%200 = load i32, i32* %87
%201 = call i32 @close(i32 %200)
%202 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 3
%203 = load i32, i32* %202
%204 = call i32 @close(i32 %203)
%205 = load i32, i32* %89
%206 = call i32 @close(i32 %205)
%207 = getelementptr inbounds [6 x i32], [6 x i32]* %11, i64 0, i64 5
%208 = load i32, i32* %207
%209 = call i32 @close(i32 %208)
%210 = call i32 @waitpid(i64 %91, i32* %6, i32 0)
%211 = call i32 @waitpid(i64 %192, i32* %6, i32 0)
%212 = call i32 @waitpid(i64 %193, i32* %6, i32 0)
%213 = call i32 @waitpid(i64 %194, i32* %6, i32 0)
%214 = call i32 @exit(i32 0)
unreachable
215: ; preds = %80
%216 = call i32 @waitpid(i64 %81, i32* %6, i32 0)
ret void
}