#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__ ssize_t;
typedef int /*<<< orphan*/ buffer;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EXIT_FAILURE;
int /*<<< orphan*/ error(char *);
int /*<<< orphan*/ execl(char *, char *, char *, char *, char const *, ...);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
scalar_t__ fread(char *, int, int, int /*<<< orphan*/);
scalar_t__ fwrite(char *, int, scalar_t__, int /*<<< orphan*/ *);
int /*<<< orphan*/ remove(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdin;
scalar_t__ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ wait(int *);
int main(int argc, char **argv) {
  if (argc == 5 && strcmp(argv[1], "update") == 0 && strlen(argv[2]) < 100 &&
      strlen(argv[3]) < 100 && strlen(argv[4]) < 100) {
    remove("application/config/config.php");
    remove(".htaccess");
    execl("/usr/bin/svn", "svn", "update", "--username", argv[3], "--password",
          argv[4], "--config-dir", argv[2], (const char *)NULL);
    fprintf(stderr,
            "Error al ejecutar svn update desde el ejecutable svnupdate\n");
    return (EXIT_FAILURE);
  } else if (argc == 6 && strcmp(argv[1], "checkout") == 0 &&
             strlen(argv[2]) < 100 && strlen(argv[3]) < 100 &&
             strlen(argv[4]) < 100 && strlen(argv[5]) < 200) {
    int pid = fork();
    if (pid == 0) {
      execl("/usr/bin/find", ".", "-mindepth", "1", "-type", "d", "-exec", "rm",
            "-rf", "{}", "+", (const char *)NULL);
    } else {
      wait((int *)NULL);
      int pid2 = fork();
      if (pid2 == 0) {
        execl("/usr/bin/find", ".", "-type", "f", "!", "-name", "svnupdate*",
              "-exec", "rm", "-f", "{}", "+", (const char *)NULL);
      } else {
        wait((int *)NULL);
        execl("/usr/bin/svn", "svn", "checkout", argv[5], ".", "--username",
              argv[3], "--password", argv[4], "--config-dir", argv[2],
              (const char *)NULL);
      }
    }
    fprintf(
        stderr,
        "Error al ejecutar svn checkout o rm desde el ejecutable svnupdate\n");
    return (EXIT_FAILURE);
  } else if (argc == 3 && strcmp(argv[1], "writefile") == 0) {
    char *filename;
    char buffer[32768];
    if (strcmp(argv[2], "config") == 0) {
      filename = "application/config/config.php";
    } else if (strcmp(argv[2], "htaccess") == 0) {
      filename = ".htaccess";
    } else {
      fprintf(stderr, "Fichero invalido\n");
      return (EXIT_FAILURE);
    }
    ssize_t nbytes;
    FILE *fp = fopen(filename, "w");
    if (fp == 0)
      error("No se pudo abrir el fichero\n");
    while ((nbytes = fread(buffer, sizeof(char), sizeof(buffer), stdin)) > 0)
      if (fwrite(buffer, sizeof(char), nbytes, fp) != nbytes)
        fprintf(stderr, "Error escribiendo fichero\n");
    fclose(fp);
  } else if (argc == 3 && strcmp(argv[1], "chmod") == 0 &&
             strlen(argv[2]) < 100) {
    char *filename;
    if (strcmp(argv[2], "logs") == 0) {
      filename = "application/logs";
    } else if (strcmp(argv[2], "templates_c") == 0) {
      filename = "application/views/templates_c";
    } else {
      fprintf(stderr, "Fichero invalido\n");
      return (EXIT_FAILURE);
    }
    execl("/bin/chmod", "chmod", "770", filename, (const char *)NULL);
    fprintf(stderr, "Error al ejecutar chmod\n");
    return (EXIT_FAILURE);
  } else {
    fprintf(stderr, "Parametros invalidos\n");
    return (EXIT_FAILURE);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x8070,%rsp
movl   $0x0,-0x24(%rbp)
mov    %edi,-0x28(%rbp)
mov    %rsi,-0x30(%rbp)
cmpl   $0x5,-0x28(%rbp)
jne    12ea <main+0x12a>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe07(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12ea <main+0x12a>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0x64,%eax
jge    12ea <main+0x12a>
mov    -0x30(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0x64,%eax
jge    12ea <main+0x12a>
mov    -0x30(%rbp),%rax
mov    0x20(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0x64,%eax
jge    12ea <main+0x12a>
lea    0xdb6(%rip),%rdi
call   1030 <remove@plt>
lea    0xdc8(%rip),%rdi
call   1030 <remove@plt>
mov    -0x30(%rbp),%rax
mov    0x18(%rax),%r8
mov    -0x30(%rbp),%rax
mov    0x20(%rax),%r11
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rax
lea    0xdae(%rip),%rdi
lea    0xdb0(%rip),%rsi
lea    0xd71(%rip),%rdx
lea    0xda6(%rip),%rcx
lea    0xdaa(%rip),%r9
lea    0xdae(%rip),%r10
xor    %ebx,%ebx
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
movq   $0x0,0x18(%rsp)
mov    $0x0,%al
call   10c0 <execl@plt>
mov    0x2d0d(%rip),%rax
mov    (%rax),%edi
lea    0xd8b(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2cf0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1808 <main+0x648>
cmpl   $0x6,-0x28(%rbp)
jne    1553 <main+0x393>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd98(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1553 <main+0x393>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0x64,%eax
jge    1553 <main+0x393>
mov    -0x30(%rbp),%rax
mov    0x18(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0x64,%eax
jge    1553 <main+0x393>
mov    -0x30(%rbp),%rax
mov    0x20(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0x64,%eax
jge    1553 <main+0x393>
mov    -0x30(%rbp),%rax
mov    0x28(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0xc8,%eax
jge    1553 <main+0x393>
mov    $0x0,%al
call   10e0 <fork@plt>
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jne    13fd <main+0x23d>
lea    0xd1d(%rip),%rdi
lea    0xd24(%rip),%rsi
lea    0xd1f(%rip),%rdx
lea    0xd22(%rip),%rcx
lea    0xd1d(%rip),%r8
lea    0xd06(%rip),%r9
lea    0xd15(%rip),%r14
lea    0xd14(%rip),%rbx
lea    0xd10(%rip),%r11
lea    0xd0d(%rip),%r10
lea    0xd09(%rip),%rax
xor    %r15d,%r15d
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
movq   $0x0,0x28(%rsp)
mov    $0x0,%al
call   10c0 <execl@plt>
jmp    152d <main+0x36d>
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <wait@plt>
mov    $0x0,%al
call   10e0 <fork@plt>
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x38(%rbp)
jne    14a3 <main+0x2e3>
lea    0xc83(%rip),%rdi
lea    0xc8a(%rip),%rsi
lea    0xc91(%rip),%rdx
lea    0xcb6(%rip),%rcx
lea    0xc9b(%rip),%r8
lea    0xc96(%rip),%r9
lea    0xc95(%rip),%r15
lea    0xc74(%rip),%r14
lea    0xc73(%rip),%rbx
lea    0xc8b(%rip),%r11
lea    0xc6c(%rip),%r10
lea    0xc68(%rip),%rax
xor    %r12d,%r12d
mov    %r15,(%rsp)
mov    %r14,0x8(%rsp)
mov    %rbx,0x10(%rsp)
mov    %r11,0x18(%rsp)
mov    %r10,0x20(%rsp)
mov    %rax,0x28(%rsp)
movq   $0x0,0x30(%rsp)
mov    $0x0,%al
call   10c0 <execl@plt>
jmp    1528 <main+0x368>
xor    %eax,%eax
mov    %eax,%edi
call   10d0 <wait@plt>
mov    -0x30(%rbp),%rax
mov    0x28(%rax),%rcx
mov    -0x30(%rbp),%rax
mov    0x18(%rax),%r14
mov    -0x30(%rbp),%rax
mov    0x20(%rax),%r11
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rax
lea    0xb5c(%rip),%rdi
lea    0xb5e(%rip),%rsi
lea    0xbba(%rip),%rdx
lea    0xbca(%rip),%r8
lea    0xb4d(%rip),%r9
lea    0xb51(%rip),%rbx
lea    0xb55(%rip),%r10
xor    %r15d,%r15d
mov    %r14,(%rsp)
mov    %rbx,0x8(%rsp)
mov    %r11,0x10(%rsp)
mov    %r10,0x18(%rsp)
mov    %rax,0x20(%rsp)
movq   $0x0,0x28(%rsp)
mov    $0x0,%al
call   10c0 <execl@plt>
jmp    152d <main+0x36d>
mov    0x2aa4(%rip),%rax
mov    (%rax),%edi
lea    0xbb1(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2a87(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1808 <main+0x648>
cmpl   $0x3,-0x28(%rbp)
jne    16bf <main+0x4ff>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xbc5(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    16bf <main+0x4ff>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xbb1(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    15a9 <main+0x3e9>
lea    0xa67(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    1602 <main+0x442>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xa6e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    15d7 <main+0x417>
lea    0xa57(%rip),%rax
mov    %rax,-0x40(%rbp)
jmp    15fd <main+0x43d>
mov    0x29fa(%rip),%rax
mov    (%rax),%edi
lea    0xb5b(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x29dd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1808 <main+0x648>
jmp    1602 <main+0x442>
mov    -0x40(%rbp),%rdi
lea    0xb47(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,-0x8050(%rbp)
cmpq   $0x0,-0x8050(%rbp)
jne    1633 <main+0x473>
lea    0xb28(%rip),%rdi
call   1090 <error@plt>
jmp    1638 <main+0x478>
lea    -0x8040(%rbp),%rdi
mov    0x29a2(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%esi
mov    $0x8000,%edx
call   1040 <fread@plt>
mov    %rax,-0x8048(%rbp)
cmp    $0x0,%rax
jle    16ae <main+0x4ee>
lea    -0x8040(%rbp),%rdi
mov    -0x8048(%rbp),%rdx
mov    -0x8050(%rbp),%rcx
mov    $0x1,%esi
call   10b0 <fwrite@plt>
cmp    -0x8048(%rbp),%rax
je     16a9 <main+0x4e9>
mov    0x293d(%rip),%rax
mov    (%rax),%edi
lea    0xacf(%rip),%rsi
call   1080 <fprintf@plt>
jmp    1638 <main+0x478>
mov    -0x8050(%rbp),%rdi
call   1050 <fclose@plt>
jmp    17fe <main+0x63e>
cmpl   $0x3,-0x28(%rbp)
jne    17d8 <main+0x618>
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xaea(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    17d8 <main+0x618>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rdi
call   1060 <strlen@plt>
cmp    $0x64,%eax
jge    17d8 <main+0x618>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xa8e(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    172e <main+0x56e>
lea    0xa6c(%rip),%rax
mov    %rax,-0x8058(%rbp)
jmp    178a <main+0x5ca>
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xa74(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    175f <main+0x59f>
lea    0xa4c(%rip),%rax
mov    %rax,-0x8058(%rbp)
jmp    1785 <main+0x5c5>
mov    0x2872(%rip),%rax
mov    (%rax),%edi
lea    0x9d3(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2855(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1808 <main+0x648>
jmp    178a <main+0x5ca>
mov    -0x8058(%rbp),%rcx
lea    0xa25(%rip),%rdi
lea    0xa23(%rip),%rsi
lea    0xa22(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
mov    $0x0,%al
call   10c0 <execl@plt>
mov    0x281f(%rip),%rax
mov    (%rax),%edi
lea    0xa0a(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2802(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1808 <main+0x648>
mov    0x27f9(%rip),%rax
mov    (%rax),%edi
lea    0x9fd(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x27dc(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x24(%rbp)
jmp    1808 <main+0x648>
jmp    1803 <main+0x643>
jmp    1808 <main+0x648>
mov    -0x24(%rbp),%eax
add    $0x8070,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x8008,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
je     12ad <main+0xed>
cmp    $0x6,%edi
je     132f <main+0x16f>
cmp    $0x5,%edi
jne    1407 <main+0x247>
mov    0x8(%rbx),%rdi
lea    0xe06(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1407 <main+0x247>
mov    0x10(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0x63,%eax
jg     1407 <main+0x247>
mov    0x18(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0x63,%eax
jg     1407 <main+0x247>
mov    0x20(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0x63,%eax
jg     1407 <main+0x247>
lea    0xdc2(%rip),%rdi
call   1030 <remove@plt>
lea    0xdd4(%rip),%rdi
call   1030 <remove@plt>
mov    0x18(%rbx),%r8
lea    0xdf1(%rip),%rbp
lea    0xdc7(%rip),%rdi
lea    0xdc9(%rip),%rsi
lea    0xd8a(%rip),%rdx
lea    0xdbf(%rip),%rcx
lea    0xdc3(%rip),%r9
xor    %eax,%eax
push   $0x0
push   0x10(%rbx)
push   %rbp
push   0x20(%rbx)
call   10c0 <execl@plt>
add    $0x20,%rsp
mov    0x2d39(%rip),%rax
mov    (%rax),%edi
lea    0xdb7(%rip),%rsi
jmp    1417 <main+0x257>
mov    0x8(%rbx),%rdi
lea    0xe79(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1437 <main+0x277>
mov    0x8(%rbx),%rdi
lea    0xef1(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1407 <main+0x247>
mov    0x10(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0x63,%eax
jg     1407 <main+0x247>
mov    0x10(%rbx),%rdi
lea    0xe9e(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1532 <main+0x372>
mov    0x10(%rbx),%rdi
lea    0xe9c(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     153b <main+0x37b>
lea    0xe18(%rip),%rsi
jmp    1568 <main+0x3a8>
mov    0x8(%rbx),%rdi
lea    0xd61(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1407 <main+0x247>
mov    0x10(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0x63,%eax
jg     1407 <main+0x247>
mov    0x18(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0x63,%eax
jg     1407 <main+0x247>
mov    0x20(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0x63,%eax
jg     1407 <main+0x247>
mov    0x28(%rbx),%rdi
call   1060 <strlen@plt>
cmp    $0xc7,%eax
jg     1407 <main+0x247>
xor    %eax,%eax
call   10e0 <fork@plt>
test   %eax,%eax
je     1576 <main+0x3b6>
xor    %edi,%edi
call   10d0 <wait@plt>
xor    %eax,%eax
call   10e0 <fork@plt>
test   %eax,%eax
je     15da <main+0x41a>
xor    %edi,%edi
call   10d0 <wait@plt>
mov    0x28(%rbx),%rcx
lea    0xc8d(%rip),%rbp
lea    0xc7b(%rip),%r10
lea    0xc5c(%rip),%rdi
lea    0xc5e(%rip),%rsi
lea    0xcba(%rip),%rdx
lea    0xcca(%rip),%r8
lea    0xc4d(%rip),%r9
mov    $0x0,%eax
push   $0x0
push   0x10(%rbx)
push   %rbp
push   0x20(%rbx)
push   %r10
push   0x18(%rbx)
jmp    15cf <main+0x40f>
mov    0x2bca(%rip),%rax
mov    (%rax),%edi
lea    0xdce(%rip),%rsi
call   1080 <fprintf@plt>
mov    0x2bad(%rip),%rax
mov    (%rax),%eax
add    $0x8008,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%rbx),%rdi
lea    0xcf9(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     1473 <main+0x2b3>
mov    0x10(%rbx),%rdi
lea    0xbcf(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
je     147c <main+0x2bc>
mov    0x2b70(%rip),%rax
mov    (%rax),%edi
lea    0xcd1(%rip),%rsi
jmp    1417 <main+0x257>
lea    0xb8d(%rip),%rdi
jmp    1483 <main+0x2c3>
lea    0xba2(%rip),%rdi
lea    0xcca(%rip),%rsi
call   10a0 <fopen@plt>
mov    %rax,%r14
test   %rax,%rax
jne    14a3 <main+0x2e3>
lea    0xcb8(%rip),%rdi
call   1090 <error@plt>
mov    0x2b3e(%rip),%r13
mov    0x0(%r13),%ecx
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x8000,%edx
call   1040 <fread@plt>
test   %rax,%rax
jle    1523 <main+0x363>
mov    %rax,%rbx
mov    %rsp,%r12
mov    0x2b06(%rip),%rbp
lea    0xc9a(%rip),%r15
jmp    14fe <main+0x33e>
nopl   0x0(%rax,%rax,1)
mov    0x0(%r13),%ecx
mov    %r12,%rdi
mov    $0x1,%esi
mov    $0x8000,%edx
call   1040 <fread@plt>
mov    %rax,%rbx
test   %rax,%rax
jle    1523 <main+0x363>
mov    %r12,%rdi
mov    $0x1,%esi
mov    %rbx,%rdx
mov    %r14,%rcx
call   10b0 <fwrite@plt>
cmp    %rbx,%rax
je     14e0 <main+0x320>
mov    0x0(%rbp),%edi
mov    %r15,%rsi
call   1080 <fprintf@plt>
jmp    14e0 <main+0x320>
mov    %r14,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
jmp    1425 <main+0x265>
lea    0xc55(%rip),%rcx
jmp    1542 <main+0x382>
lea    0xc5d(%rip),%rcx
lea    0xc74(%rip),%rdi
lea    0xc72(%rip),%rsi
lea    0xc71(%rip),%rdx
xor    %r8d,%r8d
xor    %eax,%eax
call   10c0 <execl@plt>
lea    0xc64(%rip),%rsi
mov    0x2a69(%rip),%rax
mov    (%rax),%edi
jmp    1417 <main+0x257>
lea    0xb59(%rip),%rbp
lea    0xb4f(%rip),%rbx
lea    0xb44(%rip),%r10
lea    0xb3a(%rip),%r11
lea    0xb2d(%rip),%r14
lea    0xb04(%rip),%rdi
lea    0xb0b(%rip),%rsi
lea    0xb06(%rip),%rdx
lea    0xb09(%rip),%rcx
lea    0xb04(%rip),%r8
lea    0xaed(%rip),%r9
xor    %eax,%eax
push   $0x0
push   %rbp
push   %rbx
push   %r10
push   %r11
push   %r14
call   10c0 <execl@plt>
add    $0x30,%rsp
jmp    1649 <main+0x489>
sub    $0x8,%rsp
lea    0xaf1(%rip),%rbp
lea    0xae7(%rip),%rbx
lea    0xaf8(%rip),%r10
lea    0xad2(%rip),%r11
lea    0xac5(%rip),%r14
lea    0xad8(%rip),%r15
lea    0xa95(%rip),%rdi
lea    0xa9c(%rip),%rsi
lea    0xaa3(%rip),%rdx
lea    0xac8(%rip),%rcx
lea    0xaad(%rip),%r8
lea    0xaa8(%rip),%r9
xor    %eax,%eax
push   $0x0
push   %rbp
push   %rbx
push   %r10
push   %r11
push   %r14
push   %r15
call   10c0 <execl@plt>
add    $0x40,%rsp
mov    0x2988(%rip),%rax
mov    (%rax),%edi
lea    0xa95(%rip),%rsi
jmp    1417 <main+0x257>

LLVM IR (-O0):
@.str = [7 x i8] c"update\00"
@.str.1 = [30 x i8] c"application/config/config.php\00"
@.str.2 = [10 x i8] c".htaccess\00"
@.str.3 = [13 x i8] c"/usr/bin/svn\00"
@.str.4 = [4 x i8] c"svn\00"
@.str.5 = [11 x i8] c"--username\00"
@.str.6 = [11 x i8] c"--password\00"
@.str.7 = [13 x i8] c"--config-dir\00"
@stderr = global i32 0
@.str.8 = [60 x i8] c"Error al ejecutar svn update desde el ejecutable svnupdate\0A\00"
@EXIT_FAILURE = global i32 0
@.str.9 = [9 x i8] c"checkout\00"
@.str.10 = [14 x i8] c"/usr/bin/find\00"
@.str.11 = [2 x i8] c".\00"
@.str.12 = [10 x i8] c"-mindepth\00"
@.str.13 = [2 x i8] c"1\00"
@.str.14 = [6 x i8] c"-type\00"
@.str.15 = [2 x i8] c"d\00"
@.str.16 = [6 x i8] c"-exec\00"
@.str.17 = [3 x i8] c"rm\00"
@.str.18 = [4 x i8] c"-rf\00"
@.str.19 = [3 x i8] c"{}\00"
@.str.20 = [2 x i8] c"+\00"
@.str.21 = [2 x i8] c"f\00"
@.str.22 = [2 x i8] c"!\00"
@.str.23 = [6 x i8] c"-name\00"
@.str.24 = [11 x i8] c"svnupdate*\00"
@.str.25 = [3 x i8] c"-f\00"
@.str.26 = [67 x i8] c"Error al ejecutar svn checkout o rm desde el ejecutable svnupdate\0A\00"
@.str.27 = [10 x i8] c"writefile\00"
@.str.28 = [7 x i8] c"config\00"
@.str.29 = [9 x i8] c"htaccess\00"
@.str.30 = [18 x i8] c"Fichero invalido\0A\00"
@.str.31 = [2 x i8] c"w\00"
@.str.32 = [29 x i8] c"No se pudo abrir el fichero\0A\00"
@stdin = global i32 0
@.str.33 = [27 x i8] c"Error escribiendo fichero\0A\00"
@.str.34 = [6 x i8] c"chmod\00"
@.str.35 = [5 x i8] c"logs\00"
@.str.36 = [17 x i8] c"application/logs\00"
@.str.37 = [12 x i8] c"templates_c\00"
@.str.38 = [30 x i8] c"application/views/templates_c\00"
@.str.39 = [11 x i8] c"/bin/chmod\00"
@.str.40 = [4 x i8] c"770\00"
@.str.41 = [25 x i8] c"Error al ejecutar chmod\0A\00"
@.str.42 = [22 x i8] c"Parametros invalidos\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca [32768 x i8]
%10 = alloca i64
%11 = alloca i32*
%12 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp eq i32 %13, 5
br i1 %14, label %15, label %55
15: ; preds = %2
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i64 @strcmp(i8* %18, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %21, label %55
21: ; preds = %15
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 2
%24 = load i8*, i8** %23
%25 = call i32 @strlen(i8* %24)
%26 = icmp slt i32 %25, 100
br i1 %26, label %27, label %55
27: ; preds = %21
%28 = load i8**, i8*** %5
%29 = getelementptr inbounds i8*, i8** %28, i64 3
%30 = load i8*, i8** %29
%31 = call i32 @strlen(i8* %30)
%32 = icmp slt i32 %31, 100
br i1 %32, label %33, label %55
33: ; preds = %27
%34 = load i8**, i8*** %5
%35 = getelementptr inbounds i8*, i8** %34, i64 4
%36 = load i8*, i8** %35
%37 = call i32 @strlen(i8* %36)
%38 = icmp slt i32 %37, 100
br i1 %38, label %39, label %55
39: ; preds = %33
%40 = call i32 @remove(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%41 = call i32 @remove(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 3
%44 = load i8*, i8** %43
%45 = load i8**, i8*** %5
%46 = getelementptr inbounds i8*, i8** %45, i64 4
%47 = load i8*, i8** %46
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 2
%50 = load i8*, i8** %49
%51 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %47, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* %50, i8* null)
%52 = load i32, i32* @stderr
%53 = call i32 @fprintf(i32 %52, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%54 = load i32, i32* @EXIT_FAILURE
store i32 %54, i32* %3
br label %222
55: ; preds = %33, %27, %21, %15, %2
%56 = load i32, i32* %4
%57 = icmp eq i32 %56, 6
br i1 %57, label %58, label %121
58: ; preds = %55
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 1
%61 = load i8*, i8** %60
%62 = call i64 @strcmp(i8* %61, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %121
64: ; preds = %58
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 2
%67 = load i8*, i8** %66
%68 = call i32 @strlen(i8* %67)
%69 = icmp slt i32 %68, 100
br i1 %69, label %70, label %121
70: ; preds = %64
%71 = load i8**, i8*** %5
%72 = getelementptr inbounds i8*, i8** %71, i64 3
%73 = load i8*, i8** %72
%74 = call i32 @strlen(i8* %73)
%75 = icmp slt i32 %74, 100
br i1 %75, label %76, label %121
76: ; preds = %70
%77 = load i8**, i8*** %5
%78 = getelementptr inbounds i8*, i8** %77, i64 4
%79 = load i8*, i8** %78
%80 = call i32 @strlen(i8* %79)
%81 = icmp slt i32 %80, 100
br i1 %81, label %82, label %121
82: ; preds = %76
%83 = load i8**, i8*** %5
%84 = getelementptr inbounds i8*, i8** %83, i64 5
%85 = load i8*, i8** %84
%86 = call i32 @strlen(i8* %85)
%87 = icmp slt i32 %86, 200
br i1 %87, label %88, label %121
88: ; preds = %82
%89 = call i32 (...) @fork()
store i32 %89, i32* %6
%90 = load i32, i32* %6
%91 = icmp eq i32 %90, 0
br i1 %91, label %92, label %94
92: ; preds = %88
%93 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0), i8* null)
br label %117
94: ; preds = %88
%95 = call i32 @wait(i32* null)
%96 = call i32 (...) @fork()
store i32 %96, i32* %7
%97 = load i32, i32* %7
%98 = icmp eq i32 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %94
%100 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0), i8* null)
br label %116
101: ; preds = %94
%102 = call i32 @wait(i32* null)
%103 = load i8**, i8*** %5
%104 = getelementptr inbounds i8*, i8** %103, i64 5
%105 = load i8*, i8** %104
%106 = load i8**, i8*** %5
%107 = getelementptr inbounds i8*, i8** %106, i64 3
%108 = load i8*, i8** %107
%109 = load i8**, i8*** %5
%110 = getelementptr inbounds i8*, i8** %109, i64 4
%111 = load i8*, i8** %110
%112 = load i8**, i8*** %5
%113 = getelementptr inbounds i8*, i8** %112, i64 2
%114 = load i8*, i8** %113
%115 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %105, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %108, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %111, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* %114, i8* null)
br label %116
116: ; preds = %101, %99
br label %117
117: ; preds = %116, %92
%118 = load i32, i32* @stderr
%119 = call i32 @fprintf(i32 %118, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.26, i64 0, i64 0))
%120 = load i32, i32* @EXIT_FAILURE
store i32 %120, i32* %3
br label %222
121: ; preds = %82, %76, %70, %64, %58, %55
%122 = load i32, i32* %4
%123 = icmp eq i32 %122, 3
br i1 %123, label %124, label %176
124: ; preds = %121
%125 = load i8**, i8*** %5
%126 = getelementptr inbounds i8*, i8** %125, i64 1
%127 = load i8*, i8** %126
%128 = call i64 @strcmp(i8* %127, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0))
%129 = icmp eq i64 %128, 0
br i1 %129, label %130, label %176
130: ; preds = %124
%131 = load i8**, i8*** %5
%132 = getelementptr inbounds i8*, i8** %131, i64 2
%133 = load i8*, i8** %132
%134 = call i64 @strcmp(i8* %133, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%135 = icmp eq i64 %134, 0
br i1 %135, label %136, label %137
136: ; preds = %130
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8** %8
br label %149
137: ; preds = %130
%138 = load i8**, i8*** %5
%139 = getelementptr inbounds i8*, i8** %138, i64 2
%140 = load i8*, i8** %139
%141 = call i64 @strcmp(i8* %140, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0))
%142 = icmp eq i64 %141, 0
br i1 %142, label %143, label %144
143: ; preds = %137
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %8
br label %148
144: ; preds = %137
%145 = load i32, i32* @stderr
%146 = call i32 @fprintf(i32 %145, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.30, i64 0, i64 0))
%147 = load i32, i32* @EXIT_FAILURE
store i32 %147, i32* %3
br label %222
148: ; preds = %143
br label %149
149: ; preds = %148, %136
%150 = load i8*, i8** %8
%151 = call i32* @fopen(i8* %150, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0))
store i32* %151, i32** %11
%152 = load i32*, i32** %11
%153 = icmp eq i32* %152, null
br i1 %153, label %154, label %156
154: ; preds = %149
%155 = call i32 @error(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.32, i64 0, i64 0))
br label %156
156: ; preds = %154, %149
br label %157
157: ; preds = %172, %156
%158 = getelementptr inbounds [32768 x i8], [32768 x i8]* %9, i64 0, i64 0
%159 = load i32, i32* @stdin
%160 = call i64 @fread(i8* %158, i32 1, i32 32768, i32 %159)
store i64 %160, i64* %10
%161 = icmp sgt i64 %160, 0
br i1 %161, label %162, label %173
162: ; preds = %157
%163 = getelementptr inbounds [32768 x i8], [32768 x i8]* %9, i64 0, i64 0
%164 = load i64, i64* %10
%165 = load i32*, i32** %11
%166 = call i64 @fwrite(i8* %163, i32 1, i64 %164, i32* %165)
%167 = load i64, i64* %10
%168 = icmp ne i64 %166, %167
br i1 %168, label %169, label %172
169: ; preds = %162
%170 = load i32, i32* @stderr
%171 = call i32 @fprintf(i32 %170, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.33, i64 0, i64 0))
br label %172
172: ; preds = %169, %162
br label %157
173: ; preds = %157
%174 = load i32*, i32** %11
%175 = call i32 @fclose(i32* %174)
br label %220
176: ; preds = %124, %121
%177 = load i32, i32* %4
%178 = icmp eq i32 %177, 3
br i1 %178, label %179, label %216
179: ; preds = %176
%180 = load i8**, i8*** %5
%181 = getelementptr inbounds i8*, i8** %180, i64 1
%182 = load i8*, i8** %181
%183 = call i64 @strcmp(i8* %182, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0))
%184 = icmp eq i64 %183, 0
br i1 %184, label %185, label %216
185: ; preds = %179
%186 = load i8**, i8*** %5
%187 = getelementptr inbounds i8*, i8** %186, i64 2
%188 = load i8*, i8** %187
%189 = call i32 @strlen(i8* %188)
%190 = icmp slt i32 %189, 100
br i1 %190, label %191, label %216
191: ; preds = %185
%192 = load i8**, i8*** %5
%193 = getelementptr inbounds i8*, i8** %192, i64 2
%194 = load i8*, i8** %193
%195 = call i64 @strcmp(i8* %194, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%196 = icmp eq i64 %195, 0
br i1 %196, label %197, label %198
197: ; preds = %191
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.36, i64 0, i64 0), i8** %12
br label %210
198: ; preds = %191
%199 = load i8**, i8*** %5
%200 = getelementptr inbounds i8*, i8** %199, i64 2
%201 = load i8*, i8** %200
%202 = call i64 @strcmp(i8* %201, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i64 0, i64 0))
%203 = icmp eq i64 %202, 0
br i1 %203, label %204, label %205
204: ; preds = %198
store i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.38, i64 0, i64 0), i8** %12
br label %209
205: ; preds = %198
%206 = load i32, i32* @stderr
%207 = call i32 @fprintf(i32 %206, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.30, i64 0, i64 0))
%208 = load i32, i32* @EXIT_FAILURE
store i32 %208, i32* %3
br label %222
209: ; preds = %204
br label %210
210: ; preds = %209, %197
%211 = load i8*, i8** %12
%212 = call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.39, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.40, i64 0, i64 0), i8* %211, i8* null)
%213 = load i32, i32* @stderr
%214 = call i32 @fprintf(i32 %213, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.41, i64 0, i64 0))
%215 = load i32, i32* @EXIT_FAILURE
store i32 %215, i32* %3
br label %222
216: ; preds = %185, %179, %176
%217 = load i32, i32* @stderr
%218 = call i32 @fprintf(i32 %217, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.42, i64 0, i64 0))
%219 = load i32, i32* @EXIT_FAILURE
store i32 %219, i32* %3
br label %222
220: ; preds = %173
br label %221
221: ; preds = %220
br label %222
222: ; preds = %39, %117, %144, %205, %210, %216, %221
%223 = load i32, i32* %3
ret i32 %223
}

LLVM IR (-O2):
@.str = [7 x i8] c"update\00"
@.str.1 = [30 x i8] c"application/config/config.php\00"
@.str.2 = [10 x i8] c".htaccess\00"
@.str.3 = [13 x i8] c"/usr/bin/svn\00"
@.str.4 = [4 x i8] c"svn\00"
@.str.5 = [11 x i8] c"--username\00"
@.str.6 = [11 x i8] c"--password\00"
@.str.7 = [13 x i8] c"--config-dir\00"
@stderr = global i32 0
@.str.8 = [60 x i8] c"Error al ejecutar svn update desde el ejecutable svnupdate\0A\00"
@EXIT_FAILURE = global i32 0
@.str.9 = [9 x i8] c"checkout\00"
@.str.10 = [14 x i8] c"/usr/bin/find\00"
@.str.11 = [2 x i8] c".\00"
@.str.12 = [10 x i8] c"-mindepth\00"
@.str.13 = [2 x i8] c"1\00"
@.str.14 = [6 x i8] c"-type\00"
@.str.15 = [2 x i8] c"d\00"
@.str.16 = [6 x i8] c"-exec\00"
@.str.17 = [3 x i8] c"rm\00"
@.str.18 = [4 x i8] c"-rf\00"
@.str.19 = [3 x i8] c"{}\00"
@.str.20 = [2 x i8] c"+\00"
@.str.21 = [2 x i8] c"f\00"
@.str.22 = [2 x i8] c"!\00"
@.str.23 = [6 x i8] c"-name\00"
@.str.24 = [11 x i8] c"svnupdate*\00"
@.str.25 = [3 x i8] c"-f\00"
@.str.26 = [67 x i8] c"Error al ejecutar svn checkout o rm desde el ejecutable svnupdate\0A\00"
@.str.27 = [10 x i8] c"writefile\00"
@.str.28 = [7 x i8] c"config\00"
@.str.29 = [9 x i8] c"htaccess\00"
@.str.30 = [18 x i8] c"Fichero invalido\0A\00"
@.str.31 = [2 x i8] c"w\00"
@.str.32 = [29 x i8] c"No se pudo abrir el fichero\0A\00"
@stdin = global i32 0
@.str.33 = [27 x i8] c"Error escribiendo fichero\0A\00"
@.str.34 = [6 x i8] c"chmod\00"
@.str.35 = [5 x i8] c"logs\00"
@.str.36 = [17 x i8] c"application/logs\00"
@.str.37 = [12 x i8] c"templates_c\00"
@.str.38 = [30 x i8] c"application/views/templates_c\00"
@.str.39 = [11 x i8] c"/bin/chmod\00"
@.str.40 = [4 x i8] c"770\00"
@.str.41 = [25 x i8] c"Error al ejecutar chmod\0A\00"
@.str.42 = [22 x i8] c"Parametros invalidos\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [32768 x i8]
switch i32 %0, label %150 [
i32 5, label %4
i32 6, label %34
i32 3, label %81
]
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i64 @strcmp(i8* %6, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
br i1 %8, label %9, label %150
9: ; preds = %4
%10 = getelementptr inbounds i8*, i8** %1, i64 2
%11 = load i8*, i8** %10
%12 = tail call i32 @strlen(i8* %11)
%13 = icmp slt i32 %12, 100
br i1 %13, label %14, label %150
14: ; preds = %9
%15 = getelementptr inbounds i8*, i8** %1, i64 3
%16 = load i8*, i8** %15
%17 = tail call i32 @strlen(i8* %16)
%18 = icmp slt i32 %17, 100
br i1 %18, label %19, label %150
19: ; preds = %14
%20 = getelementptr inbounds i8*, i8** %1, i64 4
%21 = load i8*, i8** %20
%22 = tail call i32 @strlen(i8* %21)
%23 = icmp slt i32 %22, 100
br i1 %23, label %24, label %150
24: ; preds = %19
%25 = tail call i32 @remove(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0))
%26 = tail call i32 @remove(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%27 = load i8*, i8** %15
%28 = load i8*, i8** %20
%29 = load i8*, i8** %10
%30 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %27, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %28, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* %29, i8* null)
%31 = load i32, i32* @stderr
%32 = tail call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.8, i64 0, i64 0))
%33 = load i32, i32* @EXIT_FAILURE
br label %154
34: ; preds = %2
%35 = getelementptr inbounds i8*, i8** %1, i64 1
%36 = load i8*, i8** %35
%37 = tail call i64 @strcmp(i8* %36, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %150
39: ; preds = %34
%40 = getelementptr inbounds i8*, i8** %1, i64 2
%41 = load i8*, i8** %40
%42 = tail call i32 @strlen(i8* %41)
%43 = icmp slt i32 %42, 100
br i1 %43, label %44, label %150
44: ; preds = %39
%45 = getelementptr inbounds i8*, i8** %1, i64 3
%46 = load i8*, i8** %45
%47 = tail call i32 @strlen(i8* %46)
%48 = icmp slt i32 %47, 100
br i1 %48, label %49, label %150
49: ; preds = %44
%50 = getelementptr inbounds i8*, i8** %1, i64 4
%51 = load i8*, i8** %50
%52 = tail call i32 @strlen(i8* %51)
%53 = icmp slt i32 %52, 100
br i1 %53, label %54, label %150
54: ; preds = %49
%55 = getelementptr inbounds i8*, i8** %1, i64 5
%56 = load i8*, i8** %55
%57 = tail call i32 @strlen(i8* %56)
%58 = icmp slt i32 %57, 200
br i1 %58, label %59, label %150
59: ; preds = %54
%60 = tail call i32 (...) @fork()
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %64
62: ; preds = %59
%63 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0), i8* null)
br label %77
64: ; preds = %59
%65 = tail call i32 @wait(i32* null)
%66 = tail call i32 (...) @fork()
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %70
68: ; preds = %64
%69 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.23, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0), i8* null)
br label %77
70: ; preds = %64
%71 = tail call i32 @wait(i32* null)
%72 = load i8*, i8** %55
%73 = load i8*, i8** %45
%74 = load i8*, i8** %50
%75 = load i8*, i8** %40
%76 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %72, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.5, i64 0, i64 0), i8* %73, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0), i8* %74, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0), i8* %75, i8* null)
br label %77
77: ; preds = %68, %70, %62
%78 = load i32, i32* @stderr
%79 = tail call i32 @fprintf(i32 %78, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.26, i64 0, i64 0))
%80 = load i32, i32* @EXIT_FAILURE
br label %154
81: ; preds = %2
%82 = getelementptr inbounds i8*, i8** %1, i64 1
%83 = load i8*, i8** %82
%84 = tail call i64 @strcmp(i8* %83, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.27, i64 0, i64 0))
%85 = icmp eq i64 %84, 0
br i1 %85, label %86, label %125
86: ; preds = %81
%87 = getelementptr inbounds [32768 x i8], [32768 x i8]* %3, i64 0, i64 0
%88 = getelementptr inbounds i8*, i8** %1, i64 2
%89 = load i8*, i8** %88
%90 = tail call i64 @strcmp(i8* %89, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.28, i64 0, i64 0))
%91 = icmp eq i64 %90, 0
br i1 %91, label %100, label %92
92: ; preds = %86
%93 = load i8*, i8** %88
%94 = tail call i64 @strcmp(i8* %93, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.29, i64 0, i64 0))
%95 = icmp eq i64 %94, 0
br i1 %95, label %100, label %96
96: ; preds = %92
%97 = load i32, i32* @stderr
%98 = tail call i32 @fprintf(i32 %97, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.30, i64 0, i64 0))
%99 = load i32, i32* @EXIT_FAILURE
br label %123
100: ; preds = %92, %86
%101 = phi i8* [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), %86 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), %92 ]
%102 = tail call i32* @fopen(i8* %101, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0))
%103 = icmp eq i32* %102, null
br i1 %103, label %104, label %106
104: ; preds = %100
%105 = tail call i32 @error(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.32, i64 0, i64 0))
br label %106
106: ; preds = %104, %100
%107 = load i32, i32* @stdin
%108 = call i64 @fread(i8* %87, i32 1, i32 32768, i32 %107)
%109 = icmp sgt i64 %108, 0
br i1 %109, label %110, label %121
110: ; preds = %106, %117
%111 = phi i64 [ %119, %117 ], [ %108, %106 ]
%112 = call i64 @fwrite(i8* %87, i32 1, i64 %111, i32* %102)
%113 = icmp eq i64 %112, %111
br i1 %113, label %117, label %114
114: ; preds = %110
%115 = load i32, i32* @stderr
%116 = call i32 @fprintf(i32 %115, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.33, i64 0, i64 0))
br label %117
117: ; preds = %114, %110
%118 = load i32, i32* @stdin
%119 = call i64 @fread(i8* %87, i32 1, i32 32768, i32 %118)
%120 = icmp sgt i64 %119, 0
br i1 %120, label %110, label %121
121: ; preds = %117, %106
%122 = call i32 @fclose(i32* %102)
br label %123
123: ; preds = %121, %96
%124 = phi i32 [ 0, %121 ], [ %99, %96 ]
br label %154
125: ; preds = %81
%126 = load i8*, i8** %82
%127 = tail call i64 @strcmp(i8* %126, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0))
%128 = icmp eq i64 %127, 0
br i1 %128, label %129, label %150
129: ; preds = %125
%130 = getelementptr inbounds i8*, i8** %1, i64 2
%131 = load i8*, i8** %130
%132 = tail call i32 @strlen(i8* %131)
%133 = icmp slt i32 %132, 100
br i1 %133, label %134, label %150
134: ; preds = %129
%135 = load i8*, i8** %130
%136 = tail call i64 @strcmp(i8* %135, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.35, i64 0, i64 0))
%137 = icmp eq i64 %136, 0
br i1 %137, label %142, label %138
138: ; preds = %134
%139 = load i8*, i8** %130
%140 = tail call i64 @strcmp(i8* %139, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.37, i64 0, i64 0))
%141 = icmp eq i64 %140, 0
br i1 %141, label %142, label %145
142: ; preds = %138, %134
%143 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.36, i64 0, i64 0), %134 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @.str.38, i64 0, i64 0), %138 ]
%144 = tail call i32 (i8*, i8*, i8*, i8*, i8*, ...) @execl(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.39, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.34, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.40, i64 0, i64 0), i8* %143, i8* null)
br label %145
145: ; preds = %138, %142
%146 = phi i8* [ getelementptr inbounds ([25 x i8], [25 x i8]* @.str.41, i64 0, i64 0), %142 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.30, i64 0, i64 0), %138 ]
%147 = load i32, i32* @stderr
%148 = tail call i32 @fprintf(i32 %147, i8* %146)
%149 = load i32, i32* @EXIT_FAILURE
br label %154
150: ; preds = %2, %34, %39, %44, %49, %54, %19, %14, %9, %4, %129, %125
%151 = load i32, i32* @stderr
%152 = tail call i32 @fprintf(i32 %151, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.42, i64 0, i64 0))
%153 = load i32, i32* @EXIT_FAILURE
br label %154
154: ; preds = %123, %24, %77, %145, %150
%155 = phi i32 [ %33, %24 ], [ %80, %77 ], [ %124, %123 ], [ %149, %145 ], [ %153, %150 ]
ret i32 %155
}