#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 close(int);
int dup(int);
int execlp(char *, char *, int /*<<< orphan*/ *);
int execvp(char *, char **);
int /*<<< orphan*/ exit(int);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int, char *);
char *getenv(char *);
int /*<<< orphan*/ perror(int /*<<< orphan*/ *);
int pipe(int *);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  char *options[16];
  char *val = NULL;
  int opt = 0;
  pid_t childpid;
  int pfds[2];
  options[opt++] = "spamc";
  if ((val = getenv("SPAMDSOCK")) != NULL) {
    options[opt++] = "-U";
    options[opt++] = val;
  }
  if ((val = getenv("SPAMDHOST")) != NULL) {
    options[opt++] = "-d";
    options[opt++] = val;
  }
  if ((val = getenv("SPAMDPORT")) != NULL) {
    options[opt++] = "-p";
    options[opt++] = val;
  }
  if ((val = getenv("SPAMDSSL")) != NULL) {
    options[opt++] = "-S";
  }
  if ((val = getenv("SPAMDLIMIT")) != NULL) {
    options[opt++] = "-s";
    options[opt++] = val;
  }
  if ((val = getenv("SPAMDUSER")) != NULL) {
    options[opt++] = "-u";
    options[opt++] = val;
  }
  options[opt] = NULL;
  do {
    if ((pipe(pfds)) == -1) {
      fprintf(stderr, "%s:%d: '%s' failed: ",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/Distrotech/Mail-SpamAssassin/refs/"
              "heads/master/spamc/qmail-spamc.c",
              86, "pipe(pfds)");
      perror(NULL);
      exit(81);
    }
  } while (0);
  do {
    if ((childpid = fork()) == -1) {
      fprintf(stderr, "%s:%d: '%s' failed: ",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/Distrotech/Mail-SpamAssassin/refs/"
              "heads/master/spamc/qmail-spamc.c",
              87, "childpid = fork()");
      perror(NULL);
      exit(81);
    }
  } while (0);
  if (childpid == 0) {
    do {
      if ((close(1)) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                89, "close(1)");
        perror(NULL);
        exit(81);
      }
    } while (0);
    do {
      if ((dup(pfds[1])) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                90, "dup(pfds[1])");
        perror(NULL);
        exit(81);
      }
    } while (0);
    do {
      if ((close(pfds[0])) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                91, "close(pfds[0])");
        perror(NULL);
        exit(81);
      }
    } while (0);
    do {
      if ((execvp("spamc", options)) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                92, "execvp(\"spamc\", options)");
        perror(NULL);
        exit(81);
      }
    } while (0);
  } else {
    do {
      if ((close(0)) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                95, "close(0)");
        perror(NULL);
        exit(81);
      }
    } while (0);
    do {
      if ((dup(pfds[0])) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                96, "dup(pfds[0])");
        perror(NULL);
        exit(81);
      }
    } while (0);
    do {
      if ((close(pfds[1])) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                97, "close(pfds[1])");
        perror(NULL);
        exit(81);
      }
    } while (0);
    do {
      if ((execlp("qmail-queue", "qmail-queue", NULL)) == -1) {
        fprintf(stderr, "%s:%d: '%s' failed: ",
                "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                "outputs/2022-01-22/02-19-57/repos/Distrotech/"
                "Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c",
                98, "execlp(\"qmail-queue\", \"qmail-queue\", NULL)");
        perror(NULL);
        exit(81);
      }
    } while (0);
  }
  return 81;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x98(%rbp)
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
cltq
lea    0xe18(%rip),%rcx
mov    %rcx,-0x90(%rbp,%rax,8)
ff
lea    0xe0f(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
je     1251 <main+0xb1>
mov    -0x9c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
cltq
lea    0xde9(%rip),%rcx
mov    %rcx,-0x90(%rbp,%rax,8)
ff
mov    -0x98(%rbp),%rcx
mov    -0x9c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x9c(%rbp)
cltq
mov    %rcx,-0x90(%rbp,%rax,8)
ff
lea    0xdbb(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
je     12b2 <main+0x112>
mov    -0x9c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
cltq
lea    0xd95(%rip),%rcx
mov    %rcx,-0x90(%rbp,%rax,8)
ff
mov    -0x98(%rbp),%rcx
mov    -0x9c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x9c(%rbp)
cltq
mov    %rcx,-0x90(%rbp,%rax,8)
ff
lea    0xd67(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
je     1313 <main+0x173>
mov    -0x9c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
cltq
lea    0xd41(%rip),%rcx
mov    %rcx,-0x90(%rbp,%rax,8)
ff
mov    -0x98(%rbp),%rcx
mov    -0x9c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x9c(%rbp)
cltq
mov    %rcx,-0x90(%rbp,%rax,8)
ff
lea    0xd13(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
je     1352 <main+0x1b2>
mov    -0x9c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
cltq
lea    0xcec(%rip),%rcx
mov    %rcx,-0x90(%rbp,%rax,8)
ff
lea    0xce0(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
je     13b3 <main+0x213>
mov    -0x9c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
cltq
lea    0xcbb(%rip),%rcx
mov    %rcx,-0x90(%rbp,%rax,8)
ff
mov    -0x98(%rbp),%rcx
mov    -0x9c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x9c(%rbp)
cltq
mov    %rcx,-0x90(%rbp,%rax,8)
ff
lea    0xc8d(%rip),%rdi
call   1030 <getenv@plt>
mov    %rax,-0x98(%rbp)
cmp    $0x0,%rax
je     1414 <main+0x274>
mov    -0x9c(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x9c(%rbp)
cltq
lea    0xc67(%rip),%rcx
mov    %rcx,-0x90(%rbp,%rax,8)
ff
mov    -0x98(%rbp),%rcx
mov    -0x9c(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x9c(%rbp)
cltq
mov    %rcx,-0x90(%rbp,%rax,8)
ff
movslq -0x9c(%rbp),%rax
movq   $0x0,-0x90(%rbp,%rax,8)
lea    -0xa8(%rbp),%rdi
call   1060 <pipe@plt>
cmp    $0xffffffff,%eax
jne    1477 <main+0x2d7>
mov    0x2b9d(%rip),%rax
mov    (%rax),%edi
lea    0xc08(%rip),%rsi
lea    0xc16(%rip),%rdx
mov    $0x56,%ecx
lea    0xca7(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    147c <main+0x2dc>
jmp    1481 <main+0x2e1>
mov    $0x0,%al
call   10c0 <fork@plt>
mov    %eax,-0xa0(%rbp)
cmp    $0xffffffff,%eax
jne    14d2 <main+0x332>
mov    0x2b42(%rip),%rax
mov    (%rax),%edi
lea    0xbad(%rip),%rsi
lea    0xbbb(%rip),%rdx
mov    $0x57,%ecx
lea    0xc57(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    14d7 <main+0x337>
cmpl   $0x0,-0xa0(%rbp)
jne    1654 <main+0x4b4>
jmp    14e9 <main+0x349>
mov    $0x1,%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
jne    1537 <main+0x397>
mov    0x2add(%rip),%rax
mov    (%rax),%edi
lea    0xb48(%rip),%rsi
lea    0xb56(%rip),%rdx
mov    $0x59,%ecx
lea    0xc04(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    153c <main+0x39c>
jmp    1541 <main+0x3a1>
mov    -0xa4(%rbp),%edi
call   1040 <dup@plt>
cmp    $0xffffffff,%eax
jne    1590 <main+0x3f0>
mov    0x2a84(%rip),%rax
mov    (%rax),%edi
lea    0xaef(%rip),%rsi
lea    0xafd(%rip),%rdx
mov    $0x5a,%ecx
lea    0xbb4(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    1595 <main+0x3f5>
jmp    159a <main+0x3fa>
mov    -0xa8(%rbp),%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
jne    15e9 <main+0x449>
mov    0x2a2b(%rip),%rax
mov    (%rax),%edi
lea    0xa96(%rip),%rsi
lea    0xaa4(%rip),%rdx
mov    $0x5b,%ecx
lea    0xb68(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    15ee <main+0x44e>
jmp    15f3 <main+0x453>
lea    -0x90(%rbp),%rsi
lea    0x9ff(%rip),%rdi
call   1090 <execvp@plt>
cmp    $0xffffffff,%eax
jne    164a <main+0x4aa>
mov    0x29ca(%rip),%rax
mov    (%rax),%edi
lea    0xa35(%rip),%rsi
lea    0xa43(%rip),%rdx
mov    $0x5c,%ecx
lea    0xb16(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    164f <main+0x4af>
jmp    17c1 <main+0x621>
jmp    1659 <main+0x4b9>
xor    %edi,%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
jne    16a4 <main+0x504>
mov    0x2970(%rip),%rax
mov    (%rax),%edi
lea    0x9db(%rip),%rsi
lea    0x9e9(%rip),%rdx
mov    $0x5f,%ecx
lea    0xad5(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    16a9 <main+0x509>
jmp    16ae <main+0x50e>
mov    -0xa8(%rbp),%edi
call   1040 <dup@plt>
cmp    $0xffffffff,%eax
jne    16fd <main+0x55d>
mov    0x2917(%rip),%rax
mov    (%rax),%edi
lea    0x982(%rip),%rsi
lea    0x990(%rip),%rdx
mov    $0x60,%ecx
lea    0xa85(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    1702 <main+0x562>
jmp    1707 <main+0x567>
mov    -0xa4(%rbp),%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
jne    1756 <main+0x5b6>
mov    0x28be(%rip),%rax
mov    (%rax),%edi
lea    0x929(%rip),%rsi
lea    0x937(%rip),%rdx
mov    $0x61,%ecx
lea    0xa39(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    175b <main+0x5bb>
jmp    1760 <main+0x5c0>
lea    0xa1f(%rip),%rsi
xor    %eax,%eax
mov    %eax,%edx
mov    %rsi,%rdi
call   10b0 <execlp@plt>
cmp    $0xffffffff,%eax
jne    17b7 <main+0x617>
mov    0x285d(%rip),%rax
mov    (%rax),%edi
lea    0x8c8(%rip),%rsi
lea    0x8d6(%rip),%rdx
mov    $0x62,%ecx
lea    0x9f3(%rip),%r8
call   1070 <fprintf@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>
jmp    17bc <main+0x61c>
jmp    17c1 <main+0x621>
mov    $0x51,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x90,%rsp
lea    0xe51(%rip),%rax
mov    %rax,0x10(%rsp)
lea    0xe4b(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     11dd <main+0x3d>
lea    0xe44(%rip),%rcx
mov    %rcx,0x18(%rsp)
mov    %rax,0x20(%rsp)
mov    $0x3,%ebx
jmp    11e2 <main+0x42>
mov    $0x1,%ebx
lea    0xe2a(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1209 <main+0x69>
mov    %ebx,%ecx
lea    0xe21(%rip),%rdx
mov    %rdx,0x10(%rsp,%rcx,8)
add    $0x2,%ebx
mov    %rax,0x18(%rsp,%rcx,8)
lea    0xe10(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1230 <main+0x90>
mov    %ebx,%ecx
lea    0xe07(%rip),%rdx
mov    %rdx,0x10(%rsp,%rcx,8)
add    $0x2,%ebx
mov    %rax,0x18(%rsp,%rcx,8)
lea    0xdf6(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1252 <main+0xb2>
mov    %ebx,%eax
add    $0x1,%ebx
lea    0xde9(%rip),%rcx
mov    %rcx,0x10(%rsp,%rax,8)
lea    0xde0(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     1279 <main+0xd9>
mov    %ebx,%ecx
lea    0xdd8(%rip),%rdx
mov    %rdx,0x10(%rsp,%rcx,8)
add    $0x2,%ebx
mov    %rax,0x18(%rsp,%rcx,8)
lea    0xdc7(%rip),%rdi
call   1030 <getenv@plt>
test   %rax,%rax
je     12a0 <main+0x100>
mov    %ebx,%ecx
lea    0xdbe(%rip),%rdx
mov    %rdx,0x10(%rsp,%rcx,8)
add    $0x2,%ebx
mov    %rax,0x18(%rsp,%rcx,8)
mov    %ebx,%eax
movq   $0x0,0x10(%rsp,%rax,8)
lea    0x8(%rsp),%rdi
call   1060 <pipe@plt>
cmp    $0xffffffff,%eax
je     13a3 <main+0x203>
xor    %eax,%eax
call   10c0 <fork@plt>
test   %eax,%eax
je     1344 <main+0x1a4>
cmp    $0xffffffff,%eax
je     13cb <main+0x22b>
xor    %edi,%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
je     13f3 <main+0x253>
mov    0x8(%rsp),%edi
call   1040 <dup@plt>
cmp    $0xffffffff,%eax
je     141b <main+0x27b>
mov    0xc(%rsp),%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
je     1443 <main+0x2a3>
lea    0xe79(%rip),%rdi
mov    %rdi,%rsi
xor    %edx,%edx
call   10b0 <execlp@plt>
cmp    $0xffffffff,%eax
jne    1395 <main+0x1f5>
mov    0x2cbd(%rip),%rax
mov    (%rax),%edi
lea    0xd28(%rip),%rsi
lea    0xd36(%rip),%rdx
lea    0xe58(%rip),%r8
mov    $0x62,%ecx
jmp    14fd <main+0x35d>
mov    $0x1,%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
je     146b <main+0x2cb>
mov    0xc(%rsp),%edi
call   1040 <dup@plt>
cmp    $0xffffffff,%eax
je     1490 <main+0x2f0>
mov    0x8(%rsp),%edi
call   1050 <close@plt>
cmp    $0xffffffff,%eax
je     14b5 <main+0x315>
lea    0xc7e(%rip),%rdi
lea    0x10(%rsp),%rsi
call   1090 <execvp@plt>
cmp    $0xffffffff,%eax
je     14da <main+0x33a>
mov    $0x51,%eax
add    $0x90,%rsp
pop    %rbx
ret
mov    0x2c36(%rip),%rax
mov    (%rax),%edi
lea    0xca1(%rip),%rsi
lea    0xcaf(%rip),%rdx
lea    0xd45(%rip),%r8
mov    $0x56,%ecx
jmp    14fd <main+0x35d>
mov    0x2c0e(%rip),%rax
mov    (%rax),%edi
lea    0xc79(%rip),%rsi
lea    0xc87(%rip),%rdx
lea    0xd28(%rip),%r8
mov    $0x57,%ecx
jmp    14fd <main+0x35d>
mov    0x2be6(%rip),%rax
mov    (%rax),%edi
lea    0xc51(%rip),%rsi
lea    0xc5f(%rip),%rdx
lea    0xd50(%rip),%r8
mov    $0x5f,%ecx
jmp    14fd <main+0x35d>
mov    0x2bbe(%rip),%rax
mov    (%rax),%edi
lea    0xc29(%rip),%rsi
lea    0xc37(%rip),%rdx
lea    0xd31(%rip),%r8
mov    $0x60,%ecx
jmp    14fd <main+0x35d>
mov    0x2b96(%rip),%rax
mov    (%rax),%edi
lea    0xc01(%rip),%rsi
lea    0xc0f(%rip),%rdx
lea    0xd16(%rip),%r8
mov    $0x61,%ecx
jmp    14fd <main+0x35d>
mov    0x2b6e(%rip),%rax
mov    (%rax),%edi
lea    0xbd9(%rip),%rsi
lea    0xbe7(%rip),%rdx
lea    0xc9a(%rip),%r8
mov    $0x59,%ecx
jmp    14fd <main+0x35d>
mov    0x2b49(%rip),%rax
mov    (%rax),%edi
lea    0xbb4(%rip),%rsi
lea    0xbc2(%rip),%rdx
lea    0xc7e(%rip),%r8
mov    $0x5a,%ecx
jmp    14fd <main+0x35d>
mov    0x2b24(%rip),%rax
mov    (%rax),%edi
lea    0xb8f(%rip),%rsi
lea    0xb9d(%rip),%rdx
lea    0xc66(%rip),%r8
mov    $0x5b,%ecx
jmp    14fd <main+0x35d>
mov    0x2aff(%rip),%rax
mov    (%rax),%edi
lea    0xb6a(%rip),%rsi
lea    0xb78(%rip),%rdx
lea    0xc50(%rip),%r8
mov    $0x5c,%ecx
call   1070 <fprintf@plt>
xor    %edi,%edi
call   1080 <perror@plt>
mov    $0x51,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"spamc\00"
@.str.1 = [10 x i8] c"SPAMDSOCK\00"
@.str.2 = [3 x i8] c"-U\00"
@.str.3 = [10 x i8] c"SPAMDHOST\00"
@.str.4 = [3 x i8] c"-d\00"
@.str.5 = [10 x i8] c"SPAMDPORT\00"
@.str.6 = [3 x i8] c"-p\00"
@.str.7 = [9 x i8] c"SPAMDSSL\00"
@.str.8 = [3 x i8] c"-S\00"
@.str.9 = [11 x i8] c"SPAMDLIMIT\00"
@.str.10 = [3 x i8] c"-s\00"
@.str.11 = [10 x i8] c"SPAMDUSER\00"
@.str.12 = [3 x i8] c"-u\00"
@stderr = global i32 0
@.str.13 = [21 x i8] c"%s:%d: '%s' failed: \00"
@.str.14 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c\00"
@.str.15 = [11 x i8] c"pipe(pfds)\00"
@.str.16 = [18 x i8] c"childpid = fork()\00"
@.str.17 = [9 x i8] c"close(1)\00"
@.str.18 = [13 x i8] c"dup(pfds[1])\00"
@.str.19 = [15 x i8] c"close(pfds[0])\00"
@.str.20 = [25 x i8] c"execvp(\22spamc\22, options)\00"
@.str.21 = [9 x i8] c"close(0)\00"
@.str.22 = [13 x i8] c"dup(pfds[0])\00"
@.str.23 = [15 x i8] c"close(pfds[1])\00"
@.str.24 = [12 x i8] c"qmail-queue\00"
@.str.25 = [43 x i8] c"execlp(\22qmail-queue\22, \22qmail-queue\22, NULL)\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [16 x i8*]
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca [2 x i32]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %7
store i32 0, i32* %8
%11 = load i32, i32* %8
%12 = add nsw i32 %11, 1
store i32 %12, i32* %8
%13 = sext i32 %11 to i64
%14 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %13
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %14
%15 = call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store i8* %15, i8** %7
%16 = icmp ne i8* %15, null
br i1 %16, label %17, label %27
17: ; preds = %2
%18 = load i32, i32* %8
%19 = add nsw i32 %18, 1
store i32 %19, i32* %8
%20 = sext i32 %18 to i64
%21 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %20
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %21
%22 = load i8*, i8** %7
%23 = load i32, i32* %8
%24 = add nsw i32 %23, 1
store i32 %24, i32* %8
%25 = sext i32 %23 to i64
%26 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %25
store i8* %22, i8** %26
br label %27
27: ; preds = %17, %2
%28 = call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
store i8* %28, i8** %7
%29 = icmp ne i8* %28, null
br i1 %29, label %30, label %40
30: ; preds = %27
%31 = load i32, i32* %8
%32 = add nsw i32 %31, 1
store i32 %32, i32* %8
%33 = sext i32 %31 to i64
%34 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %33
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8** %34
%35 = load i8*, i8** %7
%36 = load i32, i32* %8
%37 = add nsw i32 %36, 1
store i32 %37, i32* %8
%38 = sext i32 %36 to i64
%39 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %38
store i8* %35, i8** %39
br label %40
40: ; preds = %30, %27
%41 = call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
store i8* %41, i8** %7
%42 = icmp ne i8* %41, null
br i1 %42, label %43, label %53
43: ; preds = %40
%44 = load i32, i32* %8
%45 = add nsw i32 %44, 1
store i32 %45, i32* %8
%46 = sext i32 %44 to i64
%47 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %46
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8** %47
%48 = load i8*, i8** %7
%49 = load i32, i32* %8
%50 = add nsw i32 %49, 1
store i32 %50, i32* %8
%51 = sext i32 %49 to i64
%52 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %51
store i8* %48, i8** %52
br label %53
53: ; preds = %43, %40
%54 = call i8* @getenv(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
store i8* %54, i8** %7
%55 = icmp ne i8* %54, null
br i1 %55, label %56, label %61
56: ; preds = %53
%57 = load i32, i32* %8
%58 = add nsw i32 %57, 1
store i32 %58, i32* %8
%59 = sext i32 %57 to i64
%60 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %59
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8** %60
br label %61
61: ; preds = %56, %53
%62 = call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
store i8* %62, i8** %7
%63 = icmp ne i8* %62, null
br i1 %63, label %64, label %74
64: ; preds = %61
%65 = load i32, i32* %8
%66 = add nsw i32 %65, 1
store i32 %66, i32* %8
%67 = sext i32 %65 to i64
%68 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %67
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %68
%69 = load i8*, i8** %7
%70 = load i32, i32* %8
%71 = add nsw i32 %70, 1
store i32 %71, i32* %8
%72 = sext i32 %70 to i64
%73 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %72
store i8* %69, i8** %73
br label %74
74: ; preds = %64, %61
%75 = call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
store i8* %75, i8** %7
%76 = icmp ne i8* %75, null
br i1 %76, label %77, label %87
77: ; preds = %74
%78 = load i32, i32* %8
%79 = add nsw i32 %78, 1
store i32 %79, i32* %8
%80 = sext i32 %78 to i64
%81 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %80
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8** %81
%82 = load i8*, i8** %7
%83 = load i32, i32* %8
%84 = add nsw i32 %83, 1
store i32 %84, i32* %8
%85 = sext i32 %83 to i64
%86 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %85
store i8* %82, i8** %86
br label %87
87: ; preds = %77, %74
%88 = load i32, i32* %8
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 %89
store i8* null, i8** %90
br label %91
91: ; preds = %87
%92 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%93 = call i32 @pipe(i32* %92)
%94 = icmp eq i32 %93, -1
br i1 %94, label %95, label %100
95: ; preds = %91
%96 = load i32, i32* @stderr
%97 = call i32 @fprintf(i32 %96, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 86, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0))
%98 = call i32 @perror(i32* null)
%99 = call i32 @exit(i32 81)
unreachable
100: ; preds = %91
br label %101
101: ; preds = %100
br label %102
102: ; preds = %101
%103 = call i32 (...) @fork()
store i32 %103, i32* %9
%104 = icmp eq i32 %103, -1
br i1 %104, label %105, label %110
105: ; preds = %102
%106 = load i32, i32* @stderr
%107 = call i32 @fprintf(i32 %106, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 87, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%108 = call i32 @perror(i32* null)
%109 = call i32 @exit(i32 81)
unreachable
110: ; preds = %102
br label %111
111: ; preds = %110
%112 = load i32, i32* %9
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %160
114: ; preds = %111
br label %115
115: ; preds = %114
%116 = call i32 @close(i32 1)
%117 = icmp eq i32 %116, -1
br i1 %117, label %118, label %123
118: ; preds = %115
%119 = load i32, i32* @stderr
%120 = call i32 @fprintf(i32 %119, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 89, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%121 = call i32 @perror(i32* null)
%122 = call i32 @exit(i32 81)
unreachable
123: ; preds = %115
br label %124
124: ; preds = %123
br label %125
125: ; preds = %124
%126 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%127 = load i32, i32* %126
%128 = call i32 @dup(i32 %127)
%129 = icmp eq i32 %128, -1
br i1 %129, label %130, label %135
130: ; preds = %125
%131 = load i32, i32* @stderr
%132 = call i32 @fprintf(i32 %131, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 90, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
%133 = call i32 @perror(i32* null)
%134 = call i32 @exit(i32 81)
unreachable
135: ; preds = %125
br label %136
136: ; preds = %135
br label %137
137: ; preds = %136
%138 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%139 = load i32, i32* %138
%140 = call i32 @close(i32 %139)
%141 = icmp eq i32 %140, -1
br i1 %141, label %142, label %147
142: ; preds = %137
%143 = load i32, i32* @stderr
%144 = call i32 @fprintf(i32 %143, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 91, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0))
%145 = call i32 @perror(i32* null)
%146 = call i32 @exit(i32 81)
unreachable
147: ; preds = %137
br label %148
148: ; preds = %147
br label %149
149: ; preds = %148
%150 = getelementptr inbounds [16 x i8*], [16 x i8*]* %6, i64 0, i64 0
%151 = call i32 @execvp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %150)
%152 = icmp eq i32 %151, -1
br i1 %152, label %153, label %158
153: ; preds = %149
%154 = load i32, i32* @stderr
%155 = call i32 @fprintf(i32 %154, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 92, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0))
%156 = call i32 @perror(i32* null)
%157 = call i32 @exit(i32 81)
unreachable
158: ; preds = %149
br label %159
159: ; preds = %158
br label %205
160: ; preds = %111
br label %161
161: ; preds = %160
%162 = call i32 @close(i32 0)
%163 = icmp eq i32 %162, -1
br i1 %163, label %164, label %169
164: ; preds = %161
%165 = load i32, i32* @stderr
%166 = call i32 @fprintf(i32 %165, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 95, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
%167 = call i32 @perror(i32* null)
%168 = call i32 @exit(i32 81)
unreachable
169: ; preds = %161
br label %170
170: ; preds = %169
br label %171
171: ; preds = %170
%172 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
%173 = load i32, i32* %172
%174 = call i32 @dup(i32 %173)
%175 = icmp eq i32 %174, -1
br i1 %175, label %176, label %181
176: ; preds = %171
%177 = load i32, i32* @stderr
%178 = call i32 @fprintf(i32 %177, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 96, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0))
%179 = call i32 @perror(i32* null)
%180 = call i32 @exit(i32 81)
unreachable
181: ; preds = %171
br label %182
182: ; preds = %181
br label %183
183: ; preds = %182
%184 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
%185 = load i32, i32* %184
%186 = call i32 @close(i32 %185)
%187 = icmp eq i32 %186, -1
br i1 %187, label %188, label %193
188: ; preds = %183
%189 = load i32, i32* @stderr
%190 = call i32 @fprintf(i32 %189, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0))
%191 = call i32 @perror(i32* null)
%192 = call i32 @exit(i32 81)
unreachable
193: ; preds = %183
br label %194
194: ; preds = %193
br label %195
195: ; preds = %194
%196 = call i32 @execlp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i64 0, i64 0), i32* null)
%197 = icmp eq i32 %196, -1
br i1 %197, label %198, label %203
198: ; preds = %195
%199 = load i32, i32* @stderr
%200 = call i32 @fprintf(i32 %199, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 98, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.25, i64 0, i64 0))
%201 = call i32 @perror(i32* null)
%202 = call i32 @exit(i32 81)
unreachable
203: ; preds = %195
br label %204
204: ; preds = %203
br label %205
205: ; preds = %204, %159
ret i32 81
}

LLVM IR (-O2):
@.str = [6 x i8] c"spamc\00"
@.str.1 = [10 x i8] c"SPAMDSOCK\00"
@.str.2 = [3 x i8] c"-U\00"
@.str.3 = [10 x i8] c"SPAMDHOST\00"
@.str.4 = [3 x i8] c"-d\00"
@.str.5 = [10 x i8] c"SPAMDPORT\00"
@.str.6 = [3 x i8] c"-p\00"
@.str.7 = [9 x i8] c"SPAMDSSL\00"
@.str.8 = [3 x i8] c"-S\00"
@.str.9 = [11 x i8] c"SPAMDLIMIT\00"
@.str.10 = [3 x i8] c"-s\00"
@.str.11 = [10 x i8] c"SPAMDUSER\00"
@.str.12 = [3 x i8] c"-u\00"
@stderr = global i32 0
@.str.13 = [21 x i8] c"%s:%d: '%s' failed: \00"
@.str.14 = [157 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/Distrotech/Mail-SpamAssassin/refs/heads/master/spamc/qmail-spamc.c\00"
@.str.15 = [11 x i8] c"pipe(pfds)\00"
@.str.16 = [18 x i8] c"childpid = fork()\00"
@.str.17 = [9 x i8] c"close(1)\00"
@.str.18 = [13 x i8] c"dup(pfds[1])\00"
@.str.19 = [15 x i8] c"close(pfds[0])\00"
@.str.20 = [25 x i8] c"execvp(\22spamc\22, options)\00"
@.str.21 = [9 x i8] c"close(0)\00"
@.str.22 = [13 x i8] c"dup(pfds[0])\00"
@.str.23 = [15 x i8] c"close(pfds[1])\00"
@.str.24 = [12 x i8] c"qmail-queue\00"
@.str.25 = [43 x i8] c"execlp(\22qmail-queue\22, \22qmail-queue\22, NULL)\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [16 x i8*]
%4 = alloca [2 x i32]
%5 = bitcast [16 x i8*]* %3 to i8*
%6 = bitcast [2 x i32]* %4 to i8*
%7 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 0
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %7
%8 = tail call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i8* %8, null
br i1 %9, label %13, label %10
10: ; preds = %2
%11 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 1
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8** %11
%12 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 2
store i8* %8, i8** %12
br label %13
13: ; preds = %10, %2
%14 = phi i32 [ 3, %10 ], [ 1, %2 ]
%15 = tail call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i8* %15, null
br i1 %16, label %24, label %17
17: ; preds = %13
%18 = add nuw nsw i32 %14, 1
%19 = zext i32 %14 to i64
%20 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %19
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8** %20
%21 = add nuw nsw i32 %14, 2
%22 = zext i32 %18 to i64
%23 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %22
store i8* %15, i8** %23
br label %24
24: ; preds = %17, %13
%25 = phi i32 [ %21, %17 ], [ %14, %13 ]
%26 = tail call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
%27 = icmp eq i8* %26, null
br i1 %27, label %35, label %28
28: ; preds = %24
%29 = add nuw nsw i32 %25, 1
%30 = zext i32 %25 to i64
%31 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %30
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8** %31
%32 = add nuw nsw i32 %25, 2
%33 = zext i32 %29 to i64
%34 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %33
store i8* %26, i8** %34
br label %35
35: ; preds = %28, %24
%36 = phi i32 [ %32, %28 ], [ %25, %24 ]
%37 = tail call i8* @getenv(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
%38 = icmp eq i8* %37, null
br i1 %38, label %43, label %39
39: ; preds = %35
%40 = add nuw nsw i32 %36, 1
%41 = zext i32 %36 to i64
%42 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %41
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8** %42
br label %43
43: ; preds = %39, %35
%44 = phi i32 [ %40, %39 ], [ %36, %35 ]
%45 = tail call i8* @getenv(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%46 = icmp eq i8* %45, null
br i1 %46, label %54, label %47
47: ; preds = %43
%48 = add nuw nsw i32 %44, 1
%49 = zext i32 %44 to i64
%50 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %49
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %50
%51 = add nuw nsw i32 %44, 2
%52 = zext i32 %48 to i64
%53 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %52
store i8* %45, i8** %53
br label %54
54: ; preds = %47, %43
%55 = phi i32 [ %51, %47 ], [ %44, %43 ]
%56 = tail call i8* @getenv(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%57 = icmp eq i8* %56, null
br i1 %57, label %65, label %58
58: ; preds = %54
%59 = add nuw nsw i32 %55, 1
%60 = zext i32 %55 to i64
%61 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %60
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8** %61
%62 = add nuw nsw i32 %55, 2
%63 = zext i32 %59 to i64
%64 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %63
store i8* %56, i8** %64
br label %65
65: ; preds = %58, %54
%66 = phi i32 [ %62, %58 ], [ %55, %54 ]
%67 = zext i32 %66 to i64
%68 = getelementptr inbounds [16 x i8*], [16 x i8*]* %3, i64 0, i64 %67
store i8* null, i8** %68
%69 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 0
%70 = call i32 @pipe(i32* %69)
%71 = icmp eq i32 %70, -1
br i1 %71, label %72, label %77
72: ; preds = %65
%73 = load i32, i32* @stderr
%74 = call i32 @fprintf(i32 %73, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 86, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0))
%75 = call i32 @perror(i32* null)
%76 = call i32 @exit(i32 81)
unreachable
77: ; preds = %65
%78 = call i32 (...) @fork()
switch i32 %78, label %119 [
i32 -1, label %79
i32 0, label %84
]
79: ; preds = %77
%80 = load i32, i32* @stderr
%81 = call i32 @fprintf(i32 %80, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 87, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.16, i64 0, i64 0))
%82 = call i32 @perror(i32* null)
%83 = call i32 @exit(i32 81)
unreachable
84: ; preds = %77
%85 = call i32 @close(i32 1)
%86 = icmp eq i32 %85, -1
br i1 %86, label %87, label %92
87: ; preds = %84
%88 = load i32, i32* @stderr
%89 = call i32 @fprintf(i32 %88, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 89, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.17, i64 0, i64 0))
%90 = call i32 @perror(i32* null)
%91 = call i32 @exit(i32 81)
unreachable
92: ; preds = %84
%93 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%94 = load i32, i32* %93
%95 = call i32 @dup(i32 %94)
%96 = icmp eq i32 %95, -1
br i1 %96, label %97, label %102
97: ; preds = %92
%98 = load i32, i32* @stderr
%99 = call i32 @fprintf(i32 %98, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 90, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.18, i64 0, i64 0))
%100 = call i32 @perror(i32* null)
%101 = call i32 @exit(i32 81)
unreachable
102: ; preds = %92
%103 = load i32, i32* %69
%104 = call i32 @close(i32 %103)
%105 = icmp eq i32 %104, -1
br i1 %105, label %106, label %111
106: ; preds = %102
%107 = load i32, i32* @stderr
%108 = call i32 @fprintf(i32 %107, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 91, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.19, i64 0, i64 0))
%109 = call i32 @perror(i32* null)
%110 = call i32 @exit(i32 81)
unreachable
111: ; preds = %102
%112 = call i32 @execvp(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i8** %7)
%113 = icmp eq i32 %112, -1
br i1 %113, label %114, label %154
114: ; preds = %111
%115 = load i32, i32* @stderr
%116 = call i32 @fprintf(i32 %115, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 92, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.20, i64 0, i64 0))
%117 = call i32 @perror(i32* null)
%118 = call i32 @exit(i32 81)
unreachable
119: ; preds = %77
%120 = call i32 @close(i32 0)
%121 = icmp eq i32 %120, -1
br i1 %121, label %122, label %127
122: ; preds = %119
%123 = load i32, i32* @stderr
%124 = call i32 @fprintf(i32 %123, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 95, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.21, i64 0, i64 0))
%125 = call i32 @perror(i32* null)
%126 = call i32 @exit(i32 81)
unreachable
127: ; preds = %119
%128 = load i32, i32* %69
%129 = call i32 @dup(i32 %128)
%130 = icmp eq i32 %129, -1
br i1 %130, label %131, label %136
131: ; preds = %127
%132 = load i32, i32* @stderr
%133 = call i32 @fprintf(i32 %132, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 96, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.22, i64 0, i64 0))
%134 = call i32 @perror(i32* null)
%135 = call i32 @exit(i32 81)
unreachable
136: ; preds = %127
%137 = getelementptr inbounds [2 x i32], [2 x i32]* %4, i64 0, i64 1
%138 = load i32, i32* %137
%139 = call i32 @close(i32 %138)
%140 = icmp eq i32 %139, -1
br i1 %140, label %141, label %146
141: ; preds = %136
%142 = load i32, i32* @stderr
%143 = call i32 @fprintf(i32 %142, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 97, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.23, i64 0, i64 0))
%144 = call i32 @perror(i32* null)
%145 = call i32 @exit(i32 81)
unreachable
146: ; preds = %136
%147 = call i32 @execlp(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.24, i64 0, i64 0), i32* null)
%148 = icmp eq i32 %147, -1
br i1 %148, label %149, label %154
149: ; preds = %146
%150 = load i32, i32* @stderr
%151 = call i32 @fprintf(i32 %150, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([157 x i8], [157 x i8]* @.str.14, i64 0, i64 0), i32 98, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.25, i64 0, i64 0))
%152 = call i32 @perror(i32* null)
%153 = call i32 @exit(i32 81)
unreachable
154: ; preds = %146, %111
ret i32 81
}