#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 /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ add_filter(int /*<<< orphan*/ *, char *, char *, char *);
short atoi(char *);
int /*<<< orphan*/ complete_js(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int feof(int /*<<< orphan*/ *);
int ferror(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ isalpha(char);
scalar_t__ isdigit(int);
int /*<<< orphan*/ isupper(int);
int /*<<< orphan*/ kortaf(char *);
int /*<<< orphan*/ memmove(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ remove(char *);
int /*<<< orphan*/ rename(char *, char *);
int /*<<< orphan*/ sprintf(char *, char *, char *);
char *strchr(char *, char);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int /*<<< orphan*/ strrchr(char *, char);
int /*<<< orphan*/ ungetc(int, int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  if (argc < 3) {
    puts("\nOnvoldoende parameters!\nEerste parameter: in te lezen "
         "bestandsnaam.\nTweede parameter: aan te vullen js-script.");
    printf("argc = %d\n", argc);
    switch (argc) {
    case 1:
      printf("argv[0] = %s\n", argv[0]);
      break;
    case 2:
      printf("argv[0] = %s\nargv[1] = %s\n", argv[0], argv[1]);
      break;
    }
    return 0;
  }
  printf("\nDe te lezen teksten worden van\n \'%s\'\ngefilterd, hervormt naar "
         "de verkorte vorm en in een regel verwerkt naar\n \'%s\'.\n\n",
         argv[1], argv[2]);
  FILE *in, *js;
  in = fopen(argv[1], "r");
  int x = strlen(argv[2]);
  char fjs[x + 2], orig[x + 1];
  sprintf(fjs, "%s_", argv[2]);
  strcpy(orig, argv[2]);
  js = fopen(fjs, "w");
  fputs("//De volgende regels zijn toegevoegd door het zelfgemaakt programma "
        "\'filter leesteksten\'.\n",
        js);
  char boeknaam[25], hoofdstuk[4], verzen[8];
  short int i, j;
  while (x = fgetc(in), x != EOF) {
    while ((x != EOF) && (x != 'l') && (x != 'L'))
      x = fgetc(in);
    if ((fgetc(in) != 'e') || (fgetc(in) != 'e') || (fgetc(in) != 's') ||
        (fgetc(in) != ' '))
      goto loopend;
    if (x = fgetc(in), !isdigit(x) && !isupper(x)) {
      printf("Vreemd! Vond \'%c\' (= %d) (EOF=%d,ERROR=%d) achter \"Lees \".\n",
             x, x, feof(in), ferror(in));
      goto loopend;
    }
    ungetc(x, in);
    for (i = 0; x = fgetc(in), x != '.'; ++i) {
      boeknaam[i] = x;
      if ((x == ' ') && (i != 1))
        break;
    }
    boeknaam[i] = '\0';
    kortaf(boeknaam);
    for (i = 0; x = fgetc(in), x != '.'; ++i) {
      hoofdstuk[i] = x;
      if (x == ':')
        break;
    }
    hoofdstuk[i] = '\0';
    if (x == '.') {
      printf("%s %s\n", boeknaam, hoofdstuk);
      add_filter(js, boeknaam, hoofdstuk, NULL);
    } else {
      for (i = 0; x = fgetc(in), (x != '.') && (x != ')'); ++i) {
        verzen[i] = x;
        if (!isdigit(x)) {
          switch (x) {
          case ',':
            if (i == 0) {
              if (x = fgetc(in), x != ' ')
                ungetc(x, in);
              i = -1;
              break;
            }
            for (++i; x = fgetc(in), (x == ' ') || isdigit(x); ++i)
              verzen[i] = x;
            verzen[i] = '\0';
            j = atoi(verzen);
            if (strchr(verzen, ' ') != NULL)
              j = atoi(strchr(verzen, ' ') + 1) - j;
            else
              j = atoi(strchr(verzen, ',') + 1) - j;
            if (j == 1) {
              printf("%s %s:%s\n", boeknaam, hoofdstuk, verzen);
              add_filter(js, boeknaam, hoofdstuk, verzen);
            } else {
              if (strchr(verzen, ' ') != NULL)
                memmove(strchr(verzen, ' '), strchr(verzen, ' ') + 1,
                        strlen(strchr(verzen, ' ') + 1) + 1);
              *strchr(verzen, ',') = '\0';
              printf("%s %s:%s\n%s %s:%s\n", boeknaam, hoofdstuk, verzen,
                     boeknaam, hoofdstuk, strrchr(verzen, '\0') + 1);
              add_filter(js, boeknaam, hoofdstuk, verzen);
              add_filter(js, boeknaam, hoofdstuk, strrchr(verzen, '\0') + 1);
            }
            i = -1;
            ungetc(x, in);
            break;
          case '-':
            for (++i; x = fgetc(in), isdigit(x); ++i)
              verzen[i] = x;
            verzen[i] = '\0';
            printf("%s %s:%s\n", boeknaam, hoofdstuk, verzen);
            add_filter(js, boeknaam, hoofdstuk, verzen);
            i = -1;
            ungetc(x, in);
            break;
          case ';':
            verzen[i] = '\0';
            printf("%s %s:%s\n", boeknaam, hoofdstuk, verzen);
            add_filter(js, boeknaam, hoofdstuk, verzen);
            if (x = fgetc(in), x != ' ')
              ungetc(x, in);
            verzen[0] = fgetc(in);
            verzen[1] = fgetc(in);
            if ((verzen[1] == ' ') || (isalpha(verzen[1]))) {
              boeknaam[0] = verzen[0];
              boeknaam[1] = verzen[1];
              for (j = 2; x = fgetc(in), x != '.'; ++j) {
                boeknaam[j] = x;
                if (x == ' ')
                  break;
              }
              boeknaam[j] = '\0';
              for (j = 0; x = fgetc(in), x != '.'; ++j) {
                hoofdstuk[j] = x;
                if (x == ':')
                  break;
              }
              hoofdstuk[j] = '\0';
              if (x == '.') {
                printf("%s %s\n", boeknaam, hoofdstuk);
                add_filter(js, boeknaam, hoofdstuk, NULL);
              }
            } else {
              hoofdstuk[0] = verzen[0];
              if (verzen[1] == ':')
                hoofdstuk[1] = '\0';
              else {
                hoofdstuk[1] = verzen[1];
                for (j = 2; x = fgetc(in), x != ':'; ++j)
                  hoofdstuk[j] = x;
                hoofdstuk[j] = '\0';
              }
            }
            i = -1;
            break;
          default:
            verzen[i] = '\0';
            printf("Vreemd! Vond dit teken (\'%c\') bij het doorzoeken van de "
                   "verzen van deze referentie:\n %s %s:%s\nDeze referentie "
                   "wordt genegeerd.\n",
                   x, boeknaam, hoofdstuk, verzen);
            i = -1;
            break;
          }
        }
      }
      if (i != 0) {
        verzen[i] = '\0';
        printf("%s %s:%s\n", boeknaam, hoofdstuk, verzen);
        add_filter(js, boeknaam, hoofdstuk, verzen);
      }
    }
  loopend:;
  }
  fclose(in);
  complete_js(js, orig);
  fclose(js);
  remove(orig);
  rename(fjs, orig);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    1328 <main+0xa8>
lea    0xd56(%rip),%rdi
call   1060 <puts@plt>
mov    -0x8(%rbp),%esi
lea    0xdb7(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    -0x8(%rbp),%eax
mov    %eax,-0x74(%rbp)
sub    $0x1,%eax
je     12e5 <main+0x65>
jmp    12d4 <main+0x54>
mov    -0x74(%rbp),%eax
sub    $0x2,%eax
je     12ff <main+0x7f>
jmp    131c <main+0x9c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
lea    0xd88(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
jmp    131c <main+0x9c>
mov    -0x10(%rbp),%rax
mov    (%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1dc6 <main+0xb46>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
mov    0x10(%rax),%rdx
lea    0xd69(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdca(%rip),%rsi
call   1170 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10a0 <strlen@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
add    $0x2,%eax
mov    %rsp,%rcx
mov    %rcx,-0x30(%rbp)
mov    %rax,%rcx
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
mov    %rsp,%rdi
sub    %rcx,%rdi
mov    %rdi,-0x80(%rbp)
mov    %rdi,%rsp
mov    %rax,-0x38(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %rax,%rdx
add    $0xf,%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x88(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdx
lea    0xd56(%rip),%rsi
call   11a0 <sprintf@plt>
mov    -0x88(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rsi
call   1050 <strcpy@plt>
mov    -0x80(%rbp),%rdi
lea    0xd36(%rip),%rsi
call   1170 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rsi
lea    0xd24(%rip),%rdi
call   10e0 <fputs@plt>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    0x2bcb(%rip),%rcx
cmp    (%rcx),%eax
je     1d7a <main+0xafa>
jmp    142a <main+0x1aa>
mov    -0x24(%rbp),%ecx
xor    %eax,%eax
mov    0x2bb2(%rip),%rdx
cmp    (%rdx),%ecx
mov    %al,-0x89(%rbp)
je     1463 <main+0x1e3>
xor    %eax,%eax
cmpl   $0x6c,-0x24(%rbp)
mov    %al,-0x89(%rbp)
je     1463 <main+0x1e3>
cmpl   $0x4c,-0x24(%rbp)
setne  %al
mov    %al,-0x89(%rbp)
mov    -0x89(%rbp),%al
test   $0x1,%al
jne    1476 <main+0x1f6>
jmp    148a <main+0x20a>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
jmp    142a <main+0x1aa>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
cmp    $0x65,%eax
jne    14de <main+0x25e>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
cmp    $0x65,%eax
jne    14de <main+0x25e>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
cmp    $0x73,%eax
jne    14de <main+0x25e>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
cmp    $0x20,%eax
je     14e3 <main+0x263>
jmp    1d75 <main+0xaf5>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
call   1040 <isdigit@plt>
mov    %rax,%rcx
xor    %eax,%eax
cmp    $0x0,%rcx
mov    %al,-0x8a(%rbp)
jne    1525 <main+0x2a5>
mov    -0x24(%rbp),%edi
call   1150 <isupper@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
mov    %al,-0x8a(%rbp)
mov    -0x8a(%rbp),%al
test   $0x1,%al
jne    1538 <main+0x2b8>
jmp    158a <main+0x30a>
mov    -0x24(%rbp),%eax
mov    %eax,-0x98(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x94(%rbp)
mov    -0x18(%rbp),%rdi
call   1120 <feof@plt>
mov    %eax,-0x90(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <ferror@plt>
mov    -0x98(%rbp),%esi
mov    -0x94(%rbp),%edx
mov    -0x90(%rbp),%ecx
mov    %eax,%r8d
lea    0xc00(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
jmp    1d75 <main+0xaf5>
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1130 <ungetc@plt>
movw   $0x0,-0x6e(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x2e,-0x24(%rbp)
je     15f5 <main+0x375>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x6e(%rbp),%rax
mov    %cl,-0x60(%rbp,%rax,1)
cmpl   $0x20,-0x24(%rbp)
jne    15df <main+0x35f>
movswl -0x6e(%rbp),%eax
cmp    $0x1,%eax
je     15df <main+0x35f>
jmp    15f5 <main+0x375>
jmp    15e4 <main+0x364>
mov    -0x6e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6e(%rbp)
jmp    159c <main+0x31c>
movswq -0x6e(%rbp),%rax
movb   $0x0,-0x60(%rbp,%rax,1)
lea    -0x60(%rbp),%rdi
call   1080 <kortaf@plt>
movw   $0x0,-0x6e(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x2e,-0x24(%rbp)
je     165a <main+0x3da>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x6e(%rbp),%rax
mov    %cl,-0x64(%rbp,%rax,1)
cmpl   $0x3a,-0x24(%rbp)
jne    1644 <main+0x3c4>
jmp    165a <main+0x3da>
jmp    1649 <main+0x3c9>
mov    -0x6e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6e(%rbp)
jmp    160e <main+0x38e>
movswq -0x6e(%rbp),%rax
movb   $0x0,-0x64(%rbp,%rax,1)
cmpl   $0x2e,-0x24(%rbp)
jne    169e <main+0x41e>
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    0xb3d(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1100 <add_filter@plt>
jmp    1d70 <main+0xaf0>
movw   $0x0,-0x6e(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
xor    %eax,%eax
cmpl   $0x2e,-0x24(%rbp)
mov    %al,-0x99(%rbp)
je     16d2 <main+0x452>
cmpl   $0x29,-0x24(%rbp)
setne  %al
mov    %al,-0x99(%rbp)
mov    -0x99(%rbp),%al
test   $0x1,%al
jne    16e5 <main+0x465>
jmp    1d25 <main+0xaa5>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x6e(%rbp),%rax
mov    %cl,-0x6c(%rbp,%rax,1)
mov    -0x24(%rbp),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
jne    1d0f <main+0xa8f>
mov    -0x24(%rbp),%eax
mov    %eax,-0xa0(%rbp)
sub    $0x2c,%eax
je     1744 <main+0x4c4>
jmp    171c <main+0x49c>
mov    -0xa0(%rbp),%eax
sub    $0x2d,%eax
je     1a34 <main+0x7b4>
jmp    1730 <main+0x4b0>
mov    -0xa0(%rbp),%eax
sub    $0x3b,%eax
je     1ad0 <main+0x850>
jmp    1cdd <main+0xa5d>
movswl -0x6e(%rbp),%eax
cmp    $0x0,%eax
jne    1781 <main+0x501>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x20,-0x24(%rbp)
je     1776 <main+0x4f6>
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1130 <ungetc@plt>
movw   $0xffff,-0x6e(%rbp)
jmp    1d0a <main+0xa8a>
mov    -0x6e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6e(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
mov    $0x1,%al
cmpl   $0x20,-0x24(%rbp)
mov    %al,-0xa1(%rbp)
je     17c3 <main+0x543>
mov    -0x24(%rbp),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0xa1(%rbp)
mov    -0xa1(%rbp),%al
test   $0x1,%al
jne    17d6 <main+0x556>
jmp    17f5 <main+0x575>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x6e(%rbp),%rax
mov    %cl,-0x6c(%rbp,%rax,1)
mov    -0x6e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6e(%rbp)
jmp    178d <main+0x50d>
movswq -0x6e(%rbp),%rax
movb   $0x0,-0x6c(%rbp,%rax,1)
lea    -0x6c(%rbp),%rdi
call   1190 <atoi@plt>
mov    %ax,-0x70(%rbp)
lea    -0x6c(%rbp),%rdi
mov    $0x20,%esi
call   10b0 <strchr@plt>
cmp    $0x0,%rax
je     184e <main+0x5ce>
lea    -0x6c(%rbp),%rdi
mov    $0x20,%esi
call   10b0 <strchr@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1190 <atoi@plt>
cwtl
movswl -0x70(%rbp),%ecx
sub    %ecx,%eax
mov    %ax,-0x70(%rbp)
jmp    1873 <main+0x5f3>
lea    -0x6c(%rbp),%rdi
mov    $0x2c,%esi
call   10b0 <strchr@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   1190 <atoi@plt>
cwtl
movswl -0x70(%rbp),%ecx
sub    %ecx,%eax
mov    %ax,-0x70(%rbp)
movswl -0x70(%rbp),%eax
cmp    $0x1,%eax
jne    18b4 <main+0x634>
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
lea    0x937(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
call   1100 <add_filter@plt>
jmp    1a1d <main+0x79d>
lea    -0x6c(%rbp),%rdi
mov    $0x20,%esi
call   10b0 <strchr@plt>
cmp    $0x0,%rax
je     192a <main+0x6aa>
lea    -0x6c(%rbp),%rdi
mov    $0x20,%esi
call   10b0 <strchr@plt>
mov    %rax,-0xb0(%rbp)
lea    -0x6c(%rbp),%rdi
mov    $0x20,%esi
call   10b0 <strchr@plt>
add    $0x1,%rax
mov    %eax,-0xa8(%rbp)
lea    -0x6c(%rbp),%rdi
mov    $0x20,%esi
call   10b0 <strchr@plt>
mov    %rax,%rdi
add    $0x1,%rdi
call   10a0 <strlen@plt>
mov    -0xb0(%rbp),%rdi
mov    -0xa8(%rbp),%esi
mov    %eax,%edx
add    $0x1,%edx
call   1160 <memmove@plt>
lea    -0x6c(%rbp),%rdi
mov    $0x2c,%esi
call   10b0 <strchr@plt>
movb   $0x0,(%rax)
lea    -0x60(%rbp),%rax
mov    %rax,-0xf0(%rbp)
lea    -0x64(%rbp),%rax
mov    %rax,-0xe8(%rbp)
lea    -0x6c(%rbp),%rax
mov    %rax,-0xe0(%rbp)
lea    -0x60(%rbp),%rax
mov    %rax,-0xd8(%rbp)
lea    -0x64(%rbp),%rax
mov    %rax,-0xd0(%rbp)
lea    -0x6c(%rbp),%rdi
xor    %esi,%esi
call   10d0 <strrchr@plt>
mov    -0xf0(%rbp),%rsi
mov    -0xe8(%rbp),%rdx
mov    -0xe0(%rbp),%rcx
mov    -0xd8(%rbp),%r8
mov    -0xd0(%rbp),%r9
add    $0x1,%eax
lea    0x817(%rip),%rdi
sub    $0x10,%rsp
mov    %eax,(%rsp)
mov    $0x0,%al
call   10c0 <printf@plt>
add    $0x10,%rsp
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
call   1100 <add_filter@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0xc8(%rbp)
lea    -0x60(%rbp),%rax
mov    %rax,-0xc0(%rbp)
lea    -0x64(%rbp),%rax
mov    %rax,-0xb8(%rbp)
lea    -0x6c(%rbp),%rdi
xor    %esi,%esi
call   10d0 <strrchr@plt>
mov    -0xc8(%rbp),%rdi
mov    -0xc0(%rbp),%rsi
mov    -0xb8(%rbp),%rdx
add    $0x1,%eax
movslq %eax,%rcx
call   1100 <add_filter@plt>
movw   $0xffff,-0x6e(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1130 <ungetc@plt>
jmp    1d0a <main+0xa8a>
mov    -0x6e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6e(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%edi
call   1040 <isdigit@plt>
cmp    $0x0,%rax
je     1a80 <main+0x800>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x6e(%rbp),%rax
mov    %cl,-0x6c(%rbp,%rax,1)
mov    -0x6e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6e(%rbp)
jmp    1a40 <main+0x7c0>
movswq -0x6e(%rbp),%rax
movb   $0x0,-0x6c(%rbp,%rax,1)
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
lea    0x72d(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
call   1100 <add_filter@plt>
movw   $0xffff,-0x6e(%rbp)
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1130 <ungetc@plt>
jmp    1d0a <main+0xa8a>
movswq -0x6e(%rbp),%rax
movb   $0x0,-0x6c(%rbp,%rax,1)
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
lea    0x6dd(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
call   1100 <add_filter@plt>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x20,-0x24(%rbp)
je     1b2e <main+0x8ae>
mov    -0x24(%rbp),%edi
mov    -0x18(%rbp),%rsi
call   1130 <ungetc@plt>
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
mov    %al,-0x6c(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
mov    %al,-0x6b(%rbp)
movsbl -0x6b(%rbp),%eax
cmp    $0x20,%eax
je     1b65 <main+0x8e5>
movsbl -0x6b(%rbp),%edi
call   1140 <isalpha@plt>
cmp    $0x0,%eax
je     1c63 <main+0x9e3>
mov    -0x6c(%rbp),%al
mov    %al,-0x60(%rbp)
mov    -0x6b(%rbp),%al
mov    %al,-0x5f(%rbp)
movw   $0x2,-0x70(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x2e,-0x24(%rbp)
je     1bc3 <main+0x943>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x70(%rbp),%rax
mov    %cl,-0x60(%rbp,%rax,1)
cmpl   $0x20,-0x24(%rbp)
jne    1bad <main+0x92d>
jmp    1bc3 <main+0x943>
jmp    1bb2 <main+0x932>
mov    -0x70(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x70(%rbp)
jmp    1b77 <main+0x8f7>
movswq -0x70(%rbp),%rax
movb   $0x0,-0x60(%rbp,%rax,1)
movw   $0x0,-0x70(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x2e,-0x24(%rbp)
je     1c1f <main+0x99f>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x70(%rbp),%rax
mov    %cl,-0x64(%rbp,%rax,1)
cmpl   $0x3a,-0x24(%rbp)
jne    1c09 <main+0x989>
jmp    1c1f <main+0x99f>
jmp    1c0e <main+0x98e>
mov    -0x70(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x70(%rbp)
jmp    1bd3 <main+0x953>
movswq -0x70(%rbp),%rax
movb   $0x0,-0x64(%rbp,%rax,1)
cmpl   $0x2e,-0x24(%rbp)
jne    1c5e <main+0x9de>
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    0x578(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1100 <add_filter@plt>
jmp    1cd2 <main+0xa52>
mov    -0x6c(%rbp),%al
mov    %al,-0x64(%rbp)
movsbl -0x6b(%rbp),%eax
cmp    $0x3a,%eax
jne    1c7f <main+0x9ff>
movb   $0x0,-0x63(%rbp)
jmp    1ccd <main+0xa4d>
mov    -0x6b(%rbp),%al
mov    %al,-0x63(%rbp)
movw   $0x2,-0x70(%rbp)
mov    -0x18(%rbp),%rdi
call   10f0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x3a,-0x24(%rbp)
je     1cc3 <main+0xa43>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movswq -0x70(%rbp),%rax
mov    %cl,-0x64(%rbp,%rax,1)
mov    -0x70(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x70(%rbp)
jmp    1c8b <main+0xa0b>
movswq -0x70(%rbp),%rax
movb   $0x0,-0x64(%rbp,%rax,1)
jmp    1cd2 <main+0xa52>
movw   $0xffff,-0x6e(%rbp)
jmp    1d0a <main+0xa8a>
movswq -0x6e(%rbp),%rax
movb   $0x0,-0x6c(%rbp,%rax,1)
mov    -0x24(%rbp),%esi
lea    -0x60(%rbp),%rdx
lea    -0x64(%rbp),%rcx
lea    -0x6c(%rbp),%r8
lea    0x4d7(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
movw   $0xffff,-0x6e(%rbp)
jmp    1d0f <main+0xa8f>
jmp    1d14 <main+0xa94>
mov    -0x6e(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6e(%rbp)
jmp    16a4 <main+0x424>
movswl -0x6e(%rbp),%eax
cmp    $0x0,%eax
je     1d6b <main+0xaeb>
movswq -0x6e(%rbp),%rax
movb   $0x0,-0x6c(%rbp,%rax,1)
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
lea    0x47b(%rip),%rdi
mov    $0x0,%al
call   10c0 <printf@plt>
mov    -0x20(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x64(%rbp),%rdx
lea    -0x6c(%rbp),%rcx
call   1100 <add_filter@plt>
jmp    1d70 <main+0xaf0>
jmp    1d75 <main+0xaf5>
jmp    1404 <main+0x184>
mov    -0x18(%rbp),%rdi
call   1090 <fclose@plt>
mov    -0x88(%rbp),%rsi
mov    -0x20(%rbp),%rdi
call   1110 <complete_js@plt>
mov    -0x20(%rbp),%rdi
call   1090 <fclose@plt>
mov    -0x88(%rbp),%rdi
call   1030 <remove@plt>
mov    -0x80(%rbp),%rdi
mov    -0x88(%rbp),%rsi
call   1180 <rename@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %rsi,%r12
cmp    $0x2,%edi
jg     12e0 <main+0x60>
mov    %edi,%ebx
lea    0xd5e(%rip),%rdi
call   1060 <puts@plt>
lea    0xdc2(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   10c0 <printf@plt>
cmp    $0x2,%ebx
je     13aa <main+0x12a>
cmp    $0x1,%ebx
jne    19ff <main+0x77f>
mov    (%r12),%rsi
lea    0xda7(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
jmp    19ff <main+0x77f>
mov    0x8(%r12),%rsi
mov    0x10(%r12),%rdx
lea    0xdb3(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
mov    0x8(%r12),%rdi
lea    0xe17(%rip),%rsi
call   1160 <fopen@plt>
mov    %rax,%r14
mov    0x10(%r12),%rdi
call   10a0 <strlen@plt>
mov    %rsp,%r13
lea    0x2(%rax),%ecx
mov    %rsp,%r15
add    $0xf,%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r15
mov    %r15,%rsp
add    $0x1,%eax
mov    %rsp,%rbx
add    $0xf,%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
mov    0x10(%r12),%rdx
lea    0xdd0(%rip),%rsi
mov    %r15,%rdi
call   1190 <sprintf@plt>
mov    0x10(%r12),%rsi
mov    %rbx,-0x70(%rbp)
mov    %rbx,%rdi
call   1050 <strcpy@plt>
lea    0xdb4(%rip),%rsi
mov    %r15,-0x78(%rbp)
mov    %r15,%rdi
call   1160 <fopen@plt>
lea    0xda3(%rip),%rdi
mov    $0x5a,%esi
mov    $0x1,%edx
mov    %rax,-0x40(%rbp)
mov    %rax,%rcx
call   11a0 <fwrite@plt>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
movsbl %al,%eax
mov    0x2c40(%rip),%r15
jmp    140b <main+0x18b>
mov    (%r12),%rsi
mov    0x8(%r12),%rdx
lea    0xccf(%rip),%rdi
xor    %eax,%eax
call   10c0 <printf@plt>
jmp    19ff <main+0x77f>
mov    %r14,%rdi
call   1110 <feof@plt>
mov    %eax,%r12d
mov    %r14,%rdi
call   1070 <ferror@plt>
lea    0xd9e(%rip),%rdi
mov    %ebx,%esi
mov    %ebx,%edx
mov    %r12d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   10c0 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   10e0 <fgetc@plt>
movsbl %al,%eax
mov    (%r15),%ecx
cmp    %eax,%ecx
je     19c5 <main+0x745>
mov    %eax,%edx
and    $0xffffffdf,%edx
cmp    $0x4c,%edx
je     144a <main+0x1ca>
cmp    %ecx,%eax
je     144a <main+0x1ca>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r14,%rdi
call   10e0 <fgetc@plt>
movsbl %al,%eax
mov    %eax,%ecx
and    $0xffffffdf,%ecx
cmp    $0x4c,%ecx
je     144a <main+0x1ca>
cmp    %eax,(%r15)
jne    1430 <main+0x1b0>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x65,%al
jne    1400 <main+0x180>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x65,%al
jne    1400 <main+0x180>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x73,%al
jne    1400 <main+0x180>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x20,%al
jne    1400 <main+0x180>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
movsbl %al,%ebx
mov    %ebx,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
jne    14a0 <main+0x220>
mov    %ebx,%edi
call   1140 <isupper@plt>
test   %eax,%eax
je     13c6 <main+0x146>
mov    %ebx,%edi
mov    %r14,%rsi
call   1120 <ungetc@plt>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
xor    %ebx,%ebx
jmp    14cb <main+0x24b>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%ebx
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x2e,%al
je     14e1 <main+0x261>
movswq %bx,%rcx
mov    %al,-0x60(%rbp,%rcx,1)
cmp    $0x20,%al
jne    14c0 <main+0x240>
cmp    $0x1,%bx
je     14c0 <main+0x240>
movswq %bx,%rax
movb   $0x0,-0x60(%rbp,%rax,1)
lea    -0x60(%rbp),%rdi
call   1080 <kortaf@plt>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
xor    %ebx,%ebx
cmp    $0x2e,%al
je     152b <main+0x2ab>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movswq %bx,%rbx
mov    %al,-0x2c(%rbp,%rbx,1)
cmp    $0x3a,%al
je     1566 <main+0x2e6>
add    $0x1,%ebx
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x2e,%al
jne    1510 <main+0x290>
movswq %bx,%rax
movb   $0x0,-0x2c(%rbp,%rax,1)
lea    0xc7f(%rip),%rdi
lea    -0x60(%rbp),%rbx
mov    %rbx,%rsi
lea    -0x2c(%rbp),%r12
mov    %r12,%rdx
xor    %eax,%eax
call   10c0 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
xor    %ecx,%ecx
call   10f0 <add_filter@plt>
jmp    1400 <main+0x180>
mov    %r13,-0x68(%rbp)
movb   $0x0,-0x2c(%rbp,%rbx,1)
xor    %r12d,%r12d
jmp    159f <main+0x31f>
movb   $0x0,-0x34(%rbp,%r13,1)
lea    0xc53(%rip),%rdi
mov    %ebx,%esi
lea    -0x60(%rbp),%rdx
lea    -0x2c(%rbp),%rcx
lea    -0x34(%rbp),%r8
xor    %eax,%eax
call   10c0 <printf@plt>
mov    $0xffff,%r12w
add    $0x1,%r12d
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x29,%al
je     1975 <main+0x6f5>
cmp    $0x2e,%al
je     1975 <main+0x6f5>
movsbl %al,%ebx
movswq %r12w,%r13
mov    %al,-0x34(%rbp,%r13,1)
mov    %ebx,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
jne    159b <main+0x31b>
cmp    $0x2c,%ebx
je     161d <main+0x39d>
cmp    $0x3b,%ebx
je     16bf <main+0x43f>
cmp    $0x2d,%ebx
jne    1574 <main+0x2f4>
add    $0x1,%r12d
cs nopw 0x0(%rax,%rax,1)
mov    %r14,%rdi
call   10e0 <fgetc@plt>
mov    %eax,%ebx
movsbl %al,%r13d
mov    %r13d,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
je     17fa <main+0x57a>
movswq %r12w,%rax
mov    %bl,-0x34(%rbp,%rax,1)
add    $0x1,%r12d
jmp    15f0 <main+0x370>
test   %r12w,%r12w
je     1846 <main+0x5c6>
add    $0x1,%r12d
jmp    163c <main+0x3bc>
nopl   (%rax)
movswq %r12w,%rax
mov    %bl,-0x34(%rbp,%rax,1)
add    $0x1,%r12d
mov    %r14,%rdi
call   10e0 <fgetc@plt>
mov    %eax,%ebx
cmp    $0x20,%al
je     1630 <main+0x3b0>
movsbl %bl,%r13d
mov    %r13d,%edi
call   1040 <isdigit@plt>
test   %rax,%rax
jne    1630 <main+0x3b0>
movswq %r12w,%rax
movb   $0x0,-0x34(%rbp,%rax,1)
lea    -0x34(%rbp),%rbx
mov    %rbx,%rdi
call   1180 <atoi@plt>
mov    %eax,-0x44(%rbp)
mov    %rbx,%rdi
mov    $0x20,%esi
call   10b0 <strchr@plt>
test   %rax,%rax
je     186f <main+0x5ef>
mov    %rax,%r12
lea    0x1(%rax),%rbx
mov    %rbx,%rdi
call   1180 <atoi@plt>
sub    -0x44(%rbp),%eax
cmp    $0x1,%ax
je     1803 <main+0x583>
mov    %rbx,%rdi
call   10a0 <strlen@plt>
lea    0x1(%rax),%edx
mov    %r12,%rdi
mov    %ebx,%esi
call   1150 <memmove@plt>
jmp    1892 <main+0x612>
movb   $0x0,-0x34(%rbp,%r13,1)
lea    0xafe(%rip),%rdi
lea    -0x60(%rbp),%r13
mov    %r13,%rsi
lea    -0x2c(%rbp),%r12
mov    %r12,%rdx
lea    -0x34(%rbp),%rbx
mov    %rbx,%rcx
xor    %eax,%eax
call   10c0 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    %r13,%rsi
mov    %r12,%rdx
mov    %rbx,%rcx
call   10f0 <add_filter@plt>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x20,%al
je     1711 <main+0x491>
movsbl %al,%edi
mov    %r14,%rsi
call   1120 <ungetc@plt>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
mov    %al,-0x34(%rbp)
mov    %r14,%rdi
call   10e0 <fgetc@plt>
mov    %al,-0x33(%rbp)
mov    $0x20,%cl
cmp    $0x20,%al
je     1740 <main+0x4c0>
movsbl %al,%edi
call   1130 <isalpha@plt>
test   %eax,%eax
je     1922 <main+0x6a2>
mov    -0x33(%rbp),%cl
mov    -0x34(%rbp),%al
mov    %al,-0x60(%rbp)
mov    %cl,-0x5f(%rbp)
mov    %r14,%rdi
call   10e0 <fgetc@plt>
mov    $0x2,%bx
cmp    $0x2e,%al
je     177b <main+0x4fb>
mov    $0x2,%bx
nopl   (%rax)
movswq %bx,%rcx
mov    %al,-0x60(%rbp,%rcx,1)
cmp    $0x20,%al
je     177b <main+0x4fb>
add    $0x1,%ebx
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x2e,%al
jne    1760 <main+0x4e0>
movswq %bx,%rax
movb   $0x0,-0x60(%rbp,%rax,1)
mov    %r14,%rdi
call   10e0 <fgetc@plt>
xor    %ebx,%ebx
cmp    $0x2e,%al
je     17bf <main+0x53f>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movswq %bx,%rbx
mov    %al,-0x2c(%rbp,%rbx,1)
cmp    $0x3a,%al
je     1918 <main+0x698>
add    $0x1,%ebx
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x2e,%al
jne    17a0 <main+0x520>
movswq %bx,%rax
movb   $0x0,-0x2c(%rbp,%rax,1)
lea    0x9eb(%rip),%rdi
lea    -0x60(%rbp),%rbx
mov    %rbx,%rsi
lea    -0x2c(%rbp),%r12
mov    %r12,%rdx
xor    %eax,%eax
call   10c0 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
xor    %ecx,%ecx
call   10f0 <add_filter@plt>
jmp    1596 <main+0x316>
movswq %r12w,%rax
movb   $0x0,-0x34(%rbp,%rax,1)
lea    0x9c0(%rip),%rdi
lea    -0x60(%rbp),%rbx
mov    %rbx,%rsi
lea    -0x2c(%rbp),%r12
mov    %r12,%rdx
lea    -0x34(%rbp),%rcx
xor    %eax,%eax
call   10c0 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    %rbx,%rsi
mov    %r12,%rdx
lea    -0x34(%rbp),%rcx
call   10f0 <add_filter@plt>
mov    %r13d,%edi
mov    %r14,%rsi
call   1120 <ungetc@plt>
jmp    1596 <main+0x316>
mov    %r14,%rdi
call   10e0 <fgetc@plt>
mov    $0xffff,%r12w
cmp    $0x20,%al
je     159b <main+0x31b>
movsbl %al,%edi
mov    %r14,%rsi
call   1120 <ungetc@plt>
add    $0x1,%r12d
jmp    159f <main+0x31f>
mov    %rbx,%rdi
mov    $0x2c,%esi
call   10b0 <strchr@plt>
lea    0x1(%rax),%rdi
call   1180 <atoi@plt>
sub    -0x44(%rbp),%eax
cmp    $0x1,%ax
je     1803 <main+0x583>
lea    -0x34(%rbp),%rbx
mov    %rbx,%rdi
mov    $0x2c,%esi
call   10b0 <strchr@plt>
movb   $0x0,(%rax)
mov    %rbx,%rdi
xor    %esi,%esi
call   10d0 <strrchr@plt>
mov    %eax,%ebx
add    $0x1,%ebx
sub    $0x8,%rsp
lea    0x901(%rip),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
lea    -0x34(%rbp),%r12
mov    %r12,%rcx
mov    %rsi,%r8
mov    %rdx,%r9
xor    %eax,%eax
push   %rbx
call   10c0 <printf@plt>
add    $0x10,%rsp
mov    -0x40(%rbp),%rbx
mov    %rbx,%rdi
lea    -0x60(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
mov    %r12,%rcx
call   10f0 <add_filter@plt>
mov    %r12,%rdi
xor    %esi,%esi
call   10d0 <strrchr@plt>
add    $0x1,%eax
movslq %eax,%rcx
mov    %rbx,%rdi
lea    -0x60(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
jmp    1831 <main+0x5b1>
movb   $0x0,-0x2c(%rbp,%rbx,1)
jmp    1596 <main+0x316>
mov    -0x34(%rbp),%cl
mov    -0x33(%rbp),%al
mov    %cl,-0x2c(%rbp)
cmp    $0x3a,%al
jne    1938 <main+0x6b8>
movb   $0x0,-0x2b(%rbp)
jmp    1596 <main+0x316>
mov    %al,-0x2b(%rbp)
mov    %r14,%rdi
call   10e0 <fgetc@plt>
mov    $0x2,%bx
cmp    $0x3a,%al
je     1967 <main+0x6e7>
mov    $0x2,%bx
nop
movswq %bx,%rcx
mov    %al,-0x2c(%rbp,%rcx,1)
add    $0x1,%ebx
mov    %r14,%rdi
call   10e0 <fgetc@plt>
cmp    $0x3a,%al
jne    1950 <main+0x6d0>
movswq %bx,%rax
movb   $0x0,-0x2c(%rbp,%rax,1)
jmp    1596 <main+0x316>
test   %r12w,%r12w
mov    -0x68(%rbp),%r13
je     1400 <main+0x180>
movswq %r12w,%rax
movb   $0x0,-0x34(%rbp,%rax,1)
lea    0x837(%rip),%rdi
lea    -0x60(%rbp),%rsi
lea    -0x2c(%rbp),%r12
mov    %r12,%rdx
mov    %r13,%rbx
lea    -0x34(%rbp),%r13
mov    %r13,%rcx
xor    %eax,%eax
call   10c0 <printf@plt>
mov    -0x40(%rbp),%rdi
lea    -0x60(%rbp),%rsi
mov    %r12,%rdx
mov    %r13,%rcx
mov    %rbx,%r13
jmp    155c <main+0x2dc>
mov    %r14,%rdi
call   1090 <fclose@plt>
mov    -0x40(%rbp),%r14
mov    %r14,%rdi
mov    -0x70(%rbp),%rbx
mov    %rbx,%rsi
call   1100 <complete_js@plt>
mov    %r14,%rdi
call   1090 <fclose@plt>
mov    %rbx,%rdi
call   1030 <remove@plt>
mov    -0x78(%rbp),%rdi
mov    %rbx,%rsi
call   1170 <rename@plt>
mov    %r13,%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [112 x i8] c"\0AOnvoldoende parameters!\0AEerste parameter: in te lezen bestandsnaam.\0ATweede parameter: aan te vullen js-script.\00"
@.str.1 = [11 x i8] c"argc = %d\0A\00"
@.str.2 = [14 x i8] c"argv[0] = %s\0A\00"
@.str.3 = [27 x i8] c"argv[0] = %s\0Aargv[1] = %s\0A\00"
@.str.4 = [119 x i8] c"\0ADe te lezen teksten worden van\0A '%s'\0Agefilterd, hervormt naar de verkorte vorm en in een regel verwerkt naar\0A '%s'.\0A\0A\00"
@.str.5 = [2 x i8] c"r\00"
@.str.6 = [4 x i8] c"%s_\00"
@.str.7 = [2 x i8] c"w\00"
@.str.8 = [91 x i8] c"//De volgende regels zijn toegevoegd door het zelfgemaakt programma 'filter leesteksten'.\0A\00"
@EOF = global i32 0
@.str.9 = [60 x i8] c"Vreemd! Vond '%c' (= %d) (EOF=%d,ERROR=%d) achter \22Lees \22.\0A\00"
@.str.10 = [7 x i8] c"%s %s\0A\00"
@.str.11 = [10 x i8] c"%s %s:%s\0A\00"
@.str.12 = [19 x i8] c"%s %s:%s\0A%s %s:%s\0A\00"
@.str.13 = [128 x i8] c"Vreemd! Vond dit teken ('%c') bij het doorzoeken van de verzen van deze referentie:\0A %s %s:%s\0ADeze referentie wordt genegeerd.\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 i32
%9 = alloca i8*
%10 = alloca i64
%11 = alloca i64
%12 = alloca [25 x i8]
%13 = alloca [4 x i8]
%14 = alloca [8 x i8]
%15 = alloca i16
%16 = alloca i16
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = load i32, i32* %4
%18 = icmp slt i32 %17, 3
br i1 %18, label %19, label %38
19: ; preds = %2
%20 = call i32 @puts(i8* getelementptr inbounds ([112 x i8], [112 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* %4
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %21)
%23 = load i32, i32* %4
switch i32 %23, label %37 [
i32 1, label %24
i32 2, label %29
]
24: ; preds = %19
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 0
%27 = load i8*, i8** %26
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %27)
br label %37
29: ; preds = %19
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 0
%32 = load i8*, i8** %31
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %32, i8* %35)
br label %37
37: ; preds = %19, %29, %24
store i32 0, i32* %3
br label %575
38: ; preds = %2
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 2
%44 = load i8*, i8** %43
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([119 x i8], [119 x i8]* @.str.4, i64 0, i64 0), i8* %41, i8* %44)
%46 = load i8**, i8*** %5
%47 = getelementptr inbounds i8*, i8** %46, i64 1
%48 = load i8*, i8** %47
%49 = call i32* @fopen(i8* %48, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %49, i32** %6
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 2
%52 = load i8*, i8** %51
%53 = call i32 @strlen(i8* %52)
store i32 %53, i32* %8
%54 = load i32, i32* %8
%55 = add nsw i32 %54, 2
%56 = zext i32 %55 to i64
%57 = call i8* @llvm.stacksave()
store i8* %57, i8** %9
%58 = alloca i8, i64 %56
store i64 %56, i64* %10
%59 = load i32, i32* %8
%60 = add nsw i32 %59, 1
%61 = zext i32 %60 to i64
%62 = alloca i8, i64 %61
store i64 %61, i64* %11
%63 = load i8**, i8*** %5
%64 = getelementptr inbounds i8*, i8** %63, i64 2
%65 = load i8*, i8** %64
%66 = call i32 @sprintf(i8* %58, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %65)
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 2
%69 = load i8*, i8** %68
%70 = call i32 @strcpy(i8* %62, i8* %69)
%71 = call i32* @fopen(i8* %58, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
store i32* %71, i32** %7
%72 = load i32*, i32** %7
%73 = call i32 @fputs(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.8, i64 0, i64 0), i32* %72)
br label %74
74: ; preds = %564, %38
%75 = load i32*, i32** %6
%76 = call signext i8 @fgetc(i32* %75)
%77 = sext i8 %76 to i32
store i32 %77, i32* %8
%78 = load i32, i32* %8
%79 = load i32, i32* @EOF
%80 = icmp ne i32 %78, %79
br i1 %80, label %81, label %565
81: ; preds = %74
br label %82
82: ; preds = %94, %81
%83 = load i32, i32* %8
%84 = load i32, i32* @EOF
%85 = icmp ne i32 %83, %84
br i1 %85, label %86, label %92
86: ; preds = %82
%87 = load i32, i32* %8
%88 = icmp ne i32 %87, 108
br i1 %88, label %89, label %92
89: ; preds = %86
%90 = load i32, i32* %8
%91 = icmp ne i32 %90, 76
br label %92
92: ; preds = %89, %86, %82
%93 = phi i1 [ false, %86 ], [ false, %82 ], [ %91, %89 ]
br i1 %93, label %94, label %98
94: ; preds = %92
%95 = load i32*, i32** %6
%96 = call signext i8 @fgetc(i32* %95)
%97 = sext i8 %96 to i32
store i32 %97, i32* %8
br label %82
98: ; preds = %92
%99 = load i32*, i32** %6
%100 = call signext i8 @fgetc(i32* %99)
%101 = sext i8 %100 to i32
%102 = icmp ne i32 %101, 101
br i1 %102, label %118, label %103
103: ; preds = %98
%104 = load i32*, i32** %6
%105 = call signext i8 @fgetc(i32* %104)
%106 = sext i8 %105 to i32
%107 = icmp ne i32 %106, 101
br i1 %107, label %118, label %108
108: ; preds = %103
%109 = load i32*, i32** %6
%110 = call signext i8 @fgetc(i32* %109)
%111 = sext i8 %110 to i32
%112 = icmp ne i32 %111, 115
br i1 %112, label %118, label %113
113: ; preds = %108
%114 = load i32*, i32** %6
%115 = call signext i8 @fgetc(i32* %114)
%116 = sext i8 %115 to i32
%117 = icmp ne i32 %116, 32
br i1 %117, label %118, label %119
118: ; preds = %113, %108, %103, %98
br label %564
119: ; preds = %113
%120 = load i32*, i32** %6
%121 = call signext i8 @fgetc(i32* %120)
%122 = sext i8 %121 to i32
store i32 %122, i32* %8
%123 = load i32, i32* %8
%124 = call i64 @isdigit(i32 %123)
%125 = icmp ne i64 %124, 0
br i1 %125, label %131, label %126
126: ; preds = %119
%127 = load i32, i32* %8
%128 = call i32 @isupper(i32 %127)
%129 = icmp ne i32 %128, 0
%130 = xor i1 %129, true
br label %131
131: ; preds = %126, %119
%132 = phi i1 [ false, %119 ], [ %130, %126 ]
br i1 %132, label %133, label %141
133: ; preds = %131
%134 = load i32, i32* %8
%135 = load i32, i32* %8
%136 = load i32*, i32** %6
%137 = call i32 @feof(i32* %136)
%138 = load i32*, i32** %6
%139 = call i32 @ferror(i32* %138)
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), i32 %134, i32 %135, i32 %137, i32 %139)
br label %564
141: ; preds = %131
%142 = load i32, i32* %8
%143 = load i32*, i32** %6
%144 = call i32 @ungetc(i32 %142, i32* %143)
store i16 0, i16* %15
br label %145
145: ; preds = %165, %141
%146 = load i32*, i32** %6
%147 = call signext i8 @fgetc(i32* %146)
%148 = sext i8 %147 to i32
store i32 %148, i32* %8
%149 = load i32, i32* %8
%150 = icmp ne i32 %149, 46
br i1 %150, label %151, label %168
151: ; preds = %145
%152 = load i32, i32* %8
%153 = trunc i32 %152 to i8
%154 = load i16, i16* %15
%155 = sext i16 %154 to i64
%156 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 %155
store i8 %153, i8* %156
%157 = load i32, i32* %8
%158 = icmp eq i32 %157, 32
br i1 %158, label %159, label %164
159: ; preds = %151
%160 = load i16, i16* %15
%161 = sext i16 %160 to i32
%162 = icmp ne i32 %161, 1
br i1 %162, label %163, label %164
163: ; preds = %159
br label %168
164: ; preds = %159, %151
br label %165
165: ; preds = %164
%166 = load i16, i16* %15
%167 = add i16 %166, 1
store i16 %167, i16* %15
br label %145
168: ; preds = %163, %145
%169 = load i16, i16* %15
%170 = sext i16 %169 to i64
%171 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 %170
store i8 0, i8* %171
%172 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%173 = call i32 @kortaf(i8* %172)
store i16 0, i16* %15
br label %174
174: ; preds = %190, %168
%175 = load i32*, i32** %6
%176 = call signext i8 @fgetc(i32* %175)
%177 = sext i8 %176 to i32
store i32 %177, i32* %8
%178 = load i32, i32* %8
%179 = icmp ne i32 %178, 46
br i1 %179, label %180, label %193
180: ; preds = %174
%181 = load i32, i32* %8
%182 = trunc i32 %181 to i8
%183 = load i16, i16* %15
%184 = sext i16 %183 to i64
%185 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 %184
store i8 %182, i8* %185
%186 = load i32, i32* %8
%187 = icmp eq i32 %186, 58
br i1 %187, label %188, label %189
188: ; preds = %180
br label %193
189: ; preds = %180
br label %190
190: ; preds = %189
%191 = load i16, i16* %15
%192 = add i16 %191, 1
store i16 %192, i16* %15
br label %174
193: ; preds = %188, %174
%194 = load i16, i16* %15
%195 = sext i16 %194 to i64
%196 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 %195
store i8 0, i8* %196
%197 = load i32, i32* %8
%198 = icmp eq i32 %197, 46
br i1 %198, label %199, label %207
199: ; preds = %193
%200 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%201 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %200, i8* %201)
%203 = load i32*, i32** %7
%204 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%205 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%206 = call i32 @add_filter(i32* %203, i8* %204, i8* %205, i8* null)
br label %563
207: ; preds = %193
store i16 0, i16* %15
br label %208
208: ; preds = %542, %207
%209 = load i32*, i32** %6
%210 = call signext i8 @fgetc(i32* %209)
%211 = sext i8 %210 to i32
store i32 %211, i32* %8
%212 = load i32, i32* %8
%213 = icmp ne i32 %212, 46
br i1 %213, label %214, label %217
214: ; preds = %208
%215 = load i32, i32* %8
%216 = icmp ne i32 %215, 41
br label %217
217: ; preds = %214, %208
%218 = phi i1 [ false, %208 ], [ %216, %214 ]
br i1 %218, label %219, label %545
219: ; preds = %217
%220 = load i32, i32* %8
%221 = trunc i32 %220 to i8
%222 = load i16, i16* %15
%223 = sext i16 %222 to i64
%224 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %223
store i8 %221, i8* %224
%225 = load i32, i32* %8
%226 = call i64 @isdigit(i32 %225)
%227 = icmp ne i64 %226, 0
br i1 %227, label %541, label %228
228: ; preds = %219
%229 = load i32, i32* %8
switch i32 %229, label %531 [
i32 44, label %230
i32 45, label %359
i32 59, label %394
]
230: ; preds = %228
%231 = load i16, i16* %15
%232 = sext i16 %231 to i32
%233 = icmp eq i32 %232, 0
br i1 %233, label %234, label %245
234: ; preds = %230
%235 = load i32*, i32** %6
%236 = call signext i8 @fgetc(i32* %235)
%237 = sext i8 %236 to i32
store i32 %237, i32* %8
%238 = load i32, i32* %8
%239 = icmp ne i32 %238, 32
br i1 %239, label %240, label %244
240: ; preds = %234
%241 = load i32, i32* %8
%242 = load i32*, i32** %6
%243 = call i32 @ungetc(i32 %241, i32* %242)
br label %244
244: ; preds = %240, %234
store i16 -1, i16* %15
br label %540
245: ; preds = %230
%246 = load i16, i16* %15
%247 = add i16 %246, 1
store i16 %247, i16* %15
br label %248
248: ; preds = %266, %245
%249 = load i32*, i32** %6
%250 = call signext i8 @fgetc(i32* %249)
%251 = sext i8 %250 to i32
store i32 %251, i32* %8
%252 = load i32, i32* %8
%253 = icmp eq i32 %252, 32
br i1 %253, label %258, label %254
254: ; preds = %248
%255 = load i32, i32* %8
%256 = call i64 @isdigit(i32 %255)
%257 = icmp ne i64 %256, 0
br label %258
258: ; preds = %254, %248
%259 = phi i1 [ true, %248 ], [ %257, %254 ]
br i1 %259, label %260, label %269
260: ; preds = %258
%261 = load i32, i32* %8
%262 = trunc i32 %261 to i8
%263 = load i16, i16* %15
%264 = sext i16 %263 to i64
%265 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %264
store i8 %262, i8* %265
br label %266
266: ; preds = %260
%267 = load i16, i16* %15
%268 = add i16 %267, 1
store i16 %268, i16* %15
br label %248
269: ; preds = %258
%270 = load i16, i16* %15
%271 = sext i16 %270 to i64
%272 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %271
store i8 0, i8* %272
%273 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%274 = call signext i16 @atoi(i8* %273)
store i16 %274, i16* %16
%275 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%276 = call i8* @strchr(i8* %275, i8 signext 32)
%277 = icmp ne i8* %276, null
br i1 %277, label %278, label %288
278: ; preds = %269
%279 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%280 = call i8* @strchr(i8* %279, i8 signext 32)
%281 = getelementptr inbounds i8, i8* %280, i64 1
%282 = call signext i16 @atoi(i8* %281)
%283 = sext i16 %282 to i32
%284 = load i16, i16* %16
%285 = sext i16 %284 to i32
%286 = sub nsw i32 %283, %285
%287 = trunc i32 %286 to i16
store i16 %287, i16* %16
br label %298
288: ; preds = %269
%289 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%290 = call i8* @strchr(i8* %289, i8 signext 44)
%291 = getelementptr inbounds i8, i8* %290, i64 1
%292 = call signext i16 @atoi(i8* %291)
%293 = sext i16 %292 to i32
%294 = load i16, i16* %16
%295 = sext i16 %294 to i32
%296 = sub nsw i32 %293, %295
%297 = trunc i32 %296 to i16
store i16 %297, i16* %16
br label %298
298: ; preds = %288, %278
%299 = load i16, i16* %16
%300 = sext i16 %299 to i32
%301 = icmp eq i32 %300, 1
br i1 %301, label %302, label %312
302: ; preds = %298
%303 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%304 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%305 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%306 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %303, i8* %304, i8* %305)
%307 = load i32*, i32** %7
%308 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%309 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%310 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%311 = call i32 @add_filter(i32* %307, i8* %308, i8* %309, i8* %310)
br label %355
312: ; preds = %298
%313 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%314 = call i8* @strchr(i8* %313, i8 signext 32)
%315 = icmp ne i8* %314, null
br i1 %315, label %316, label %329
316: ; preds = %312
%317 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%318 = call i8* @strchr(i8* %317, i8 signext 32)
%319 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%320 = call i8* @strchr(i8* %319, i8 signext 32)
%321 = getelementptr inbounds i8, i8* %320, i64 1
%322 = ptrtoint i8* %321 to i32
%323 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%324 = call i8* @strchr(i8* %323, i8 signext 32)
%325 = getelementptr inbounds i8, i8* %324, i64 1
%326 = call i32 @strlen(i8* %325)
%327 = add nsw i32 %326, 1
%328 = call i32 @memmove(i8* %318, i32 %322, i32 %327)
br label %329
329: ; preds = %316, %312
%330 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%331 = call i8* @strchr(i8* %330, i8 signext 44)
store i8 0, i8* %331
%332 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%333 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%334 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%335 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%336 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%337 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%338 = call i32 @strrchr(i8* %337, i8 signext 0)
%339 = add nsw i32 %338, 1
%340 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %332, i8* %333, i8* %334, i8* %335, i8* %336, i32 %339)
%341 = load i32*, i32** %7
%342 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%343 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%344 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%345 = call i32 @add_filter(i32* %341, i8* %342, i8* %343, i8* %344)
%346 = load i32*, i32** %7
%347 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%348 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%349 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%350 = call i32 @strrchr(i8* %349, i8 signext 0)
%351 = add nsw i32 %350, 1
%352 = sext i32 %351 to i64
%353 = inttoptr i64 %352 to i8*
%354 = call i32 @add_filter(i32* %346, i8* %347, i8* %348, i8* %353)
br label %355
355: ; preds = %329, %302
store i16 -1, i16* %15
%356 = load i32, i32* %8
%357 = load i32*, i32** %6
%358 = call i32 @ungetc(i32 %356, i32* %357)
br label %540
359: ; preds = %228
%360 = load i16, i16* %15
%361 = add i16 %360, 1
store i16 %361, i16* %15
br label %362
362: ; preds = %375, %359
%363 = load i32*, i32** %6
%364 = call signext i8 @fgetc(i32* %363)
%365 = sext i8 %364 to i32
store i32 %365, i32* %8
%366 = load i32, i32* %8
%367 = call i64 @isdigit(i32 %366)
%368 = icmp ne i64 %367, 0
br i1 %368, label %369, label %378
369: ; preds = %362
%370 = load i32, i32* %8
%371 = trunc i32 %370 to i8
%372 = load i16, i16* %15
%373 = sext i16 %372 to i64
%374 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %373
store i8 %371, i8* %374
br label %375
375: ; preds = %369
%376 = load i16, i16* %15
%377 = add i16 %376, 1
store i16 %377, i16* %15
br label %362
378: ; preds = %362
%379 = load i16, i16* %15
%380 = sext i16 %379 to i64
%381 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %380
store i8 0, i8* %381
%382 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%383 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%384 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%385 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %382, i8* %383, i8* %384)
%386 = load i32*, i32** %7
%387 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%388 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%389 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%390 = call i32 @add_filter(i32* %386, i8* %387, i8* %388, i8* %389)
store i16 -1, i16* %15
%391 = load i32, i32* %8
%392 = load i32*, i32** %6
%393 = call i32 @ungetc(i32 %391, i32* %392)
br label %540
394: ; preds = %228
%395 = load i16, i16* %15
%396 = sext i16 %395 to i64
%397 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %396
store i8 0, i8* %397
%398 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%399 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%400 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%401 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %398, i8* %399, i8* %400)
%402 = load i32*, i32** %7
%403 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%404 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%405 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%406 = call i32 @add_filter(i32* %402, i8* %403, i8* %404, i8* %405)
%407 = load i32*, i32** %6
%408 = call signext i8 @fgetc(i32* %407)
%409 = sext i8 %408 to i32
store i32 %409, i32* %8
%410 = load i32, i32* %8
%411 = icmp ne i32 %410, 32
br i1 %411, label %412, label %416
412: ; preds = %394
%413 = load i32, i32* %8
%414 = load i32*, i32** %6
%415 = call i32 @ungetc(i32 %413, i32* %414)
br label %416
416: ; preds = %412, %394
%417 = load i32*, i32** %6
%418 = call signext i8 @fgetc(i32* %417)
%419 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
store i8 %418, i8* %419
%420 = load i32*, i32** %6
%421 = call signext i8 @fgetc(i32* %420)
%422 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 1
store i8 %421, i8* %422
%423 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 1
%424 = load i8, i8* %423
%425 = sext i8 %424 to i32
%426 = icmp eq i32 %425, 32
br i1 %426, label %432, label %427
427: ; preds = %416
%428 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 1
%429 = load i8, i8* %428
%430 = call i32 @isalpha(i8 signext %429)
%431 = icmp ne i32 %430, 0
br i1 %431, label %432, label %496
432: ; preds = %427, %416
%433 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%434 = load i8, i8* %433
%435 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
store i8 %434, i8* %435
%436 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 1
%437 = load i8, i8* %436
%438 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 1
store i8 %437, i8* %438
store i16 2, i16* %16
br label %439
439: ; preds = %455, %432
%440 = load i32*, i32** %6
%441 = call signext i8 @fgetc(i32* %440)
%442 = sext i8 %441 to i32
store i32 %442, i32* %8
%443 = load i32, i32* %8
%444 = icmp ne i32 %443, 46
br i1 %444, label %445, label %458
445: ; preds = %439
%446 = load i32, i32* %8
%447 = trunc i32 %446 to i8
%448 = load i16, i16* %16
%449 = sext i16 %448 to i64
%450 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 %449
store i8 %447, i8* %450
%451 = load i32, i32* %8
%452 = icmp eq i32 %451, 32
br i1 %452, label %453, label %454
453: ; preds = %445
br label %458
454: ; preds = %445
br label %455
455: ; preds = %454
%456 = load i16, i16* %16
%457 = add i16 %456, 1
store i16 %457, i16* %16
br label %439
458: ; preds = %453, %439
%459 = load i16, i16* %16
%460 = sext i16 %459 to i64
%461 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 %460
store i8 0, i8* %461
store i16 0, i16* %16
br label %462
462: ; preds = %478, %458
%463 = load i32*, i32** %6
%464 = call signext i8 @fgetc(i32* %463)
%465 = sext i8 %464 to i32
store i32 %465, i32* %8
%466 = load i32, i32* %8
%467 = icmp ne i32 %466, 46
br i1 %467, label %468, label %481
468: ; preds = %462
%469 = load i32, i32* %8
%470 = trunc i32 %469 to i8
%471 = load i16, i16* %16
%472 = sext i16 %471 to i64
%473 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 %472
store i8 %470, i8* %473
%474 = load i32, i32* %8
%475 = icmp eq i32 %474, 58
br i1 %475, label %476, label %477
476: ; preds = %468
br label %481
477: ; preds = %468
br label %478
478: ; preds = %477
%479 = load i16, i16* %16
%480 = add i16 %479, 1
store i16 %480, i16* %16
br label %462
481: ; preds = %476, %462
%482 = load i16, i16* %16
%483 = sext i16 %482 to i64
%484 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 %483
store i8 0, i8* %484
%485 = load i32, i32* %8
%486 = icmp eq i32 %485, 46
br i1 %486, label %487, label %495
487: ; preds = %481
%488 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%489 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%490 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %488, i8* %489)
%491 = load i32*, i32** %7
%492 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%493 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%494 = call i32 @add_filter(i32* %491, i8* %492, i8* %493, i8* null)
br label %495
495: ; preds = %487, %481
br label %530
496: ; preds = %427
%497 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%498 = load i8, i8* %497
%499 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
store i8 %498, i8* %499
%500 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 1
%501 = load i8, i8* %500
%502 = sext i8 %501 to i32
%503 = icmp eq i32 %502, 58
br i1 %503, label %504, label %506
504: ; preds = %496
%505 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 1
store i8 0, i8* %505
br label %529
506: ; preds = %496
%507 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 1
%508 = load i8, i8* %507
%509 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 1
store i8 %508, i8* %509
store i16 2, i16* %16
br label %510
510: ; preds = %522, %506
%511 = load i32*, i32** %6
%512 = call signext i8 @fgetc(i32* %511)
%513 = sext i8 %512 to i32
store i32 %513, i32* %8
%514 = load i32, i32* %8
%515 = icmp ne i32 %514, 58
br i1 %515, label %516, label %525
516: ; preds = %510
%517 = load i32, i32* %8
%518 = trunc i32 %517 to i8
%519 = load i16, i16* %16
%520 = sext i16 %519 to i64
%521 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 %520
store i8 %518, i8* %521
br label %522
522: ; preds = %516
%523 = load i16, i16* %16
%524 = add i16 %523, 1
store i16 %524, i16* %16
br label %510
525: ; preds = %510
%526 = load i16, i16* %16
%527 = sext i16 %526 to i64
%528 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 %527
store i8 0, i8* %528
br label %529
529: ; preds = %525, %504
br label %530
530: ; preds = %529, %495
store i16 -1, i16* %15
br label %540
531: ; preds = %228
%532 = load i16, i16* %15
%533 = sext i16 %532 to i64
%534 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %533
store i8 0, i8* %534
%535 = load i32, i32* %8
%536 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%537 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%538 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%539 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([128 x i8], [128 x i8]* @.str.13, i64 0, i64 0), i32 %535, i8* %536, i8* %537, i8* %538)
store i16 -1, i16* %15
br label %540
540: ; preds = %531, %530, %378, %355, %244
br label %541
541: ; preds = %540, %219
br label %542
542: ; preds = %541
%543 = load i16, i16* %15
%544 = add i16 %543, 1
store i16 %544, i16* %15
br label %208
545: ; preds = %217
%546 = load i16, i16* %15
%547 = sext i16 %546 to i32
%548 = icmp ne i32 %547, 0
br i1 %548, label %549, label %562
549: ; preds = %545
%550 = load i16, i16* %15
%551 = sext i16 %550 to i64
%552 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 %551
store i8 0, i8* %552
%553 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%554 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%555 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%556 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %553, i8* %554, i8* %555)
%557 = load i32*, i32** %7
%558 = getelementptr inbounds [25 x i8], [25 x i8]* %12, i64 0, i64 0
%559 = getelementptr inbounds [4 x i8], [4 x i8]* %13, i64 0, i64 0
%560 = getelementptr inbounds [8 x i8], [8 x i8]* %14, i64 0, i64 0
%561 = call i32 @add_filter(i32* %557, i8* %558, i8* %559, i8* %560)
br label %562
562: ; preds = %549, %545
br label %563
563: ; preds = %562, %199
br label %564
564: ; preds = %563, %133, %118
br label %74
565: ; preds = %74
%566 = load i32*, i32** %6
%567 = call i32 @fclose(i32* %566)
%568 = load i32*, i32** %7
%569 = call i32 @complete_js(i32* %568, i8* %62)
%570 = load i32*, i32** %7
%571 = call i32 @fclose(i32* %570)
%572 = call i32 @remove(i8* %62)
%573 = call i32 @rename(i8* %58, i8* %62)
store i32 0, i32* %3
%574 = load i8*, i8** %9
br label %575
575: ; preds = %565, %37
%576 = load i32, i32* %3
ret i32 %576
}

LLVM IR (-O2):
@.str = [112 x i8] c"\0AOnvoldoende parameters!\0AEerste parameter: in te lezen bestandsnaam.\0ATweede parameter: aan te vullen js-script.\00"
@.str.1 = [11 x i8] c"argc = %d\0A\00"
@.str.2 = [14 x i8] c"argv[0] = %s\0A\00"
@.str.3 = [27 x i8] c"argv[0] = %s\0Aargv[1] = %s\0A\00"
@.str.4 = [119 x i8] c"\0ADe te lezen teksten worden van\0A '%s'\0Agefilterd, hervormt naar de verkorte vorm en in een regel verwerkt naar\0A '%s'.\0A\0A\00"
@.str.5 = [2 x i8] c"r\00"
@.str.6 = [4 x i8] c"%s_\00"
@.str.7 = [2 x i8] c"w\00"
@.str.8 = [91 x i8] c"//De volgende regels zijn toegevoegd door het zelfgemaakt programma 'filter leesteksten'.\0A\00"
@EOF = global i32 0
@.str.9 = [60 x i8] c"Vreemd! Vond '%c' (= %d) (EOF=%d,ERROR=%d) achter \22Lees \22.\0A\00"
@.str.10 = [7 x i8] c"%s %s\0A\00"
@.str.11 = [10 x i8] c"%s %s:%s\0A\00"
@.str.12 = [19 x i8] c"%s %s:%s\0A%s %s:%s\0A\00"
@.str.13 = [128 x i8] c"Vreemd! Vond dit teken ('%c') bij het doorzoeken van de verzen van deze referentie:\0A %s %s:%s\0ADeze referentie wordt genegeerd.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [25 x i8]
%4 = alloca [4 x i8]
%5 = alloca [8 x i8]
%6 = icmp slt i32 %0, 3
br i1 %6, label %7, label %18
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([112 x i8], [112 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), i32 %0)
switch i32 %0, label %324 [
i32 1, label %10
i32 2, label %13
]
10: ; preds = %7
%11 = load i8*, i8** %1
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %11)
br label %324
13: ; preds = %7
%14 = load i8*, i8** %1
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0), i8* %14, i8* %16)
br label %324
18: ; preds = %2
%19 = getelementptr inbounds i8*, i8** %1, i64 1
%20 = load i8*, i8** %19
%21 = getelementptr inbounds i8*, i8** %1, i64 2
%22 = load i8*, i8** %21
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([119 x i8], [119 x i8]* @.str.4, i64 0, i64 0), i8* %20, i8* %22)
%24 = load i8*, i8** %19
%25 = tail call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%26 = load i8*, i8** %21
%27 = tail call i32 @strlen(i8* %26)
%28 = add nsw i32 %27, 2
%29 = zext i32 %28 to i64
%30 = tail call i8* @llvm.stacksave()
%31 = alloca i8, i64 %29
%32 = add nsw i32 %27, 1
%33 = zext i32 %32 to i64
%34 = alloca i8, i64 %33
%35 = load i8*, i8** %21
%36 = call i32 @sprintf(i8* %31, i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* %35)
%37 = load i8*, i8** %21
%38 = call i32 @strcpy(i8* %34, i8* %37)
%39 = call i32* @fopen(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
%40 = call i64 @fwrite(i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.8, i64 0, i64 0), i64 90, i64 1, i32* %39)
%41 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 0
%42 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 0
%43 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 0
%44 = call signext i8 @fgetc(i32* %25)
%45 = sext i8 %44 to i32
%46 = load i32, i32* @EOF
%47 = icmp eq i32 %46, %45
br i1 %47, label %318, label %48
48: ; preds = %18
%49 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 1
%50 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 1
%51 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 1
br label %52
52: ; preds = %48, %313
%53 = phi i32 [ %46, %48 ], [ %316, %313 ]
%54 = phi i32 [ %45, %48 ], [ %315, %313 ]
%55 = icmp ne i32 %54, %53
%56 = and i32 %54, -33
%57 = icmp ne i32 %56, 76
%58 = and i1 %57, %55
br i1 %58, label %59, label %67
59: ; preds = %52, %59
%60 = call signext i8 @fgetc(i32* %25)
%61 = sext i8 %60 to i32
%62 = load i32, i32* @EOF
%63 = icmp ne i32 %62, %61
%64 = and i32 %61, -33
%65 = icmp ne i32 %64, 76
%66 = and i1 %65, %63
br i1 %66, label %59, label %67
67: ; preds = %59, %52
%68 = call signext i8 @fgetc(i32* %25)
%69 = icmp eq i8 %68, 101
br i1 %69, label %70, label %313
70: ; preds = %67
%71 = call signext i8 @fgetc(i32* %25)
%72 = icmp eq i8 %71, 101
br i1 %72, label %73, label %313
73: ; preds = %70
%74 = call signext i8 @fgetc(i32* %25)
%75 = icmp eq i8 %74, 115
br i1 %75, label %76, label %313
76: ; preds = %73
%77 = call signext i8 @fgetc(i32* %25)
%78 = icmp eq i8 %77, 32
br i1 %78, label %79, label %313
79: ; preds = %76
%80 = call signext i8 @fgetc(i32* %25)
%81 = sext i8 %80 to i32
%82 = call i64 @isdigit(i32 %81)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %91
84: ; preds = %79
%85 = call i32 @isupper(i32 %81)
%86 = icmp eq i32 %85, 0
br i1 %86, label %87, label %91
87: ; preds = %84
%88 = call i32 @feof(i32* %25)
%89 = call i32 @ferror(i32* %25)
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), i32 %81, i32 %81, i32 %88, i32 %89)
br label %313
91: ; preds = %79, %84
%92 = call i32 @ungetc(i32 %81, i32* %25)
%93 = call signext i8 @fgetc(i32* %25)
%94 = icmp eq i8 %93, 46
br i1 %94, label %107, label %95
95: ; preds = %91, %103
%96 = phi i8 [ %105, %103 ], [ %93, %91 ]
%97 = phi i16 [ %104, %103 ], [ 0, %91 ]
%98 = sext i16 %97 to i64
%99 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %98
store i8 %96, i8* %99
%100 = icmp eq i8 %96, 32
%101 = icmp ne i16 %97, 1
%102 = select i1 %100, i1 %101, i1 false
br i1 %102, label %107, label %103
103: ; preds = %95
%104 = add i16 %97, 1
%105 = call signext i8 @fgetc(i32* %25)
%106 = icmp eq i8 %105, 46
br i1 %106, label %107, label %95
107: ; preds = %103, %95, %91
%108 = phi i16 [ 0, %91 ], [ %97, %95 ], [ %104, %103 ]
%109 = sext i16 %108 to i64
%110 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %109
store i8 0, i8* %110
%111 = call i32 @kortaf(i8* %41)
%112 = call signext i8 @fgetc(i32* %25)
%113 = icmp eq i8 %112, 46
br i1 %113, label %126, label %114
114: ; preds = %107, %120
%115 = phi i8 [ %122, %120 ], [ %112, %107 ]
%116 = phi i16 [ %121, %120 ], [ 0, %107 ]
%117 = sext i16 %116 to i64
%118 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %117
store i8 %115, i8* %118
%119 = icmp eq i8 %115, 58
br i1 %119, label %124, label %120
120: ; preds = %114
%121 = add i16 %116, 1
%122 = call signext i8 @fgetc(i32* %25)
%123 = icmp eq i8 %122, 46
br i1 %123, label %126, label %114
124: ; preds = %114
%125 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %117
store i8 0, i8* %125
br label %132
126: ; preds = %120, %107
%127 = phi i16 [ 0, %107 ], [ %121, %120 ]
%128 = sext i16 %127 to i64
%129 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %128
store i8 0, i8* %129
%130 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %41, i8* %42)
%131 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* null)
br label %313
132: ; preds = %124, %303
%133 = phi i16 [ %305, %303 ], [ 0, %124 ]
%134 = call signext i8 @fgetc(i32* %25)
%135 = sext i8 %134 to i32
switch i8 %134, label %136 [
i8 46, label %306
i8 41, label %306
]
136: ; preds = %132
%137 = sext i16 %133 to i64
%138 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %137
store i8 %134, i8* %138
%139 = call i64 @isdigit(i32 %135)
%140 = icmp eq i64 %139, 0
br i1 %140, label %141, label %303
141: ; preds = %136
switch i32 %135, label %301 [
i32 44, label %148
i32 45, label %142
i32 59, label %225
]
142: ; preds = %141
%143 = add i16 %133, 1
%144 = call signext i8 @fgetc(i32* %25)
%145 = sext i8 %144 to i32
%146 = call i64 @isdigit(i32 %145)
%147 = icmp eq i64 %146, 0
br i1 %147, label %217, label %207
148: ; preds = %141
%149 = icmp eq i16 %133, 0
br i1 %149, label %150, label %156
150: ; preds = %148
%151 = call signext i8 @fgetc(i32* %25)
%152 = icmp eq i8 %151, 32
br i1 %152, label %303, label %153
153: ; preds = %150
%154 = sext i8 %151 to i32
%155 = call i32 @ungetc(i32 %154, i32* %25)
br label %303
156: ; preds = %148, %165
%157 = phi i16 [ %158, %165 ], [ %133, %148 ]
%158 = add i16 %157, 1
%159 = call signext i8 @fgetc(i32* %25)
%160 = sext i8 %159 to i32
%161 = icmp eq i8 %159, 32
br i1 %161, label %165, label %162
162: ; preds = %156
%163 = call i64 @isdigit(i32 %160)
%164 = icmp eq i64 %163, 0
br i1 %164, label %168, label %165
165: ; preds = %156, %162
%166 = sext i16 %158 to i64
%167 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %166
store i8 %159, i8* %167
br label %156
168: ; preds = %162
%169 = sext i16 %158 to i64
%170 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %169
store i8 0, i8* %170
%171 = call signext i16 @atoi(i8* %43)
%172 = call i8* @strchr(i8* %43, i8 signext 32)
%173 = icmp eq i8* %172, null
br i1 %173, label %174, label %180
174: ; preds = %168
%175 = call i8* @strchr(i8* %43, i8 signext 44)
%176 = getelementptr inbounds i8, i8* %175, i64 1
%177 = call signext i16 @atoi(i8* %176)
%178 = sub i16 %177, %171
%179 = icmp eq i16 %178, 1
br i1 %179, label %185, label %194
180: ; preds = %168
%181 = getelementptr inbounds i8, i8* %172, i64 1
%182 = call signext i16 @atoi(i8* %181)
%183 = sub i16 %182, %171
%184 = icmp eq i16 %183, 1
br i1 %184, label %185, label %188
185: ; preds = %180, %174
%186 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %41, i8* %42, i8* %43)
%187 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* %43)
br label %205
188: ; preds = %180
%189 = ptrtoint i8* %181 to i64
%190 = trunc i64 %189 to i32
%191 = call i32 @strlen(i8* %181)
%192 = add nsw i32 %191, 1
%193 = call i32 @memmove(i8* %172, i32 %190, i32 %192)
br label %194
194: ; preds = %174, %188
%195 = call i8* @strchr(i8* %43, i8 signext 44)
store i8 0, i8* %195
%196 = call i32 @strrchr(i8* %43, i8 signext 0)
%197 = add nsw i32 %196, 1
%198 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %41, i8* %42, i8* %43, i8* %41, i8* %42, i32 %197)
%199 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* %43)
%200 = call i32 @strrchr(i8* %43, i8 signext 0)
%201 = add nsw i32 %200, 1
%202 = sext i32 %201 to i64
%203 = inttoptr i64 %202 to i8*
%204 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* %203)
br label %205
205: ; preds = %194, %185
%206 = call i32 @ungetc(i32 %160, i32* %25)
br label %303
207: ; preds = %142, %207
%208 = phi i8 [ %213, %207 ], [ %144, %142 ]
%209 = phi i16 [ %212, %207 ], [ %143, %142 ]
%210 = sext i16 %209 to i64
%211 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %210
store i8 %208, i8* %211
%212 = add i16 %209, 1
%213 = call signext i8 @fgetc(i32* %25)
%214 = sext i8 %213 to i32
%215 = call i64 @isdigit(i32 %214)
%216 = icmp eq i64 %215, 0
br i1 %216, label %217, label %207
217: ; preds = %207, %142
%218 = phi i16 [ %143, %142 ], [ %212, %207 ]
%219 = phi i32 [ %145, %142 ], [ %214, %207 ]
%220 = sext i16 %218 to i64
%221 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %220
store i8 0, i8* %221
%222 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %41, i8* %42, i8* %43)
%223 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* %43)
%224 = call i32 @ungetc(i32 %219, i32* %25)
br label %303
225: ; preds = %141
store i8 0, i8* %138
%226 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %41, i8* %42, i8* %43)
%227 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* %43)
%228 = call signext i8 @fgetc(i32* %25)
%229 = icmp eq i8 %228, 32
br i1 %229, label %233, label %230
230: ; preds = %225
%231 = sext i8 %228 to i32
%232 = call i32 @ungetc(i32 %231, i32* %25)
br label %233
233: ; preds = %230, %225
%234 = call signext i8 @fgetc(i32* %25)
store i8 %234, i8* %43
%235 = call signext i8 @fgetc(i32* %25)
store i8 %235, i8* %49
%236 = icmp eq i8 %235, 32
br i1 %236, label %242, label %237
237: ; preds = %233
%238 = call i32 @isalpha(i8 signext %235)
%239 = icmp eq i32 %238, 0
br i1 %239, label %281, label %240
240: ; preds = %237
%241 = load i8, i8* %49
br label %242
242: ; preds = %240, %233
%243 = phi i8 [ %241, %240 ], [ 32, %233 ]
%244 = load i8, i8* %43
store i8 %244, i8* %41
store i8 %243, i8* %51
%245 = call signext i8 @fgetc(i32* %25)
%246 = icmp eq i8 %245, 46
br i1 %246, label %257, label %247
247: ; preds = %242, %253
%248 = phi i8 [ %255, %253 ], [ %245, %242 ]
%249 = phi i16 [ %254, %253 ], [ 2, %242 ]
%250 = sext i16 %249 to i64
%251 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %250
store i8 %248, i8* %251
%252 = icmp eq i8 %248, 32
br i1 %252, label %257, label %253
253: ; preds = %247
%254 = add i16 %249, 1
%255 = call signext i8 @fgetc(i32* %25)
%256 = icmp eq i8 %255, 46
br i1 %256, label %257, label %247
257: ; preds = %253, %247, %242
%258 = phi i16 [ 2, %242 ], [ %249, %247 ], [ %254, %253 ]
%259 = sext i16 %258 to i64
%260 = getelementptr inbounds [25 x i8], [25 x i8]* %3, i64 0, i64 %259
store i8 0, i8* %260
%261 = call signext i8 @fgetc(i32* %25)
%262 = icmp eq i8 %261, 46
br i1 %262, label %275, label %263
263: ; preds = %257, %269
%264 = phi i8 [ %271, %269 ], [ %261, %257 ]
%265 = phi i16 [ %270, %269 ], [ 0, %257 ]
%266 = sext i16 %265 to i64
%267 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %266
store i8 %264, i8* %267
%268 = icmp eq i8 %264, 58
br i1 %268, label %273, label %269
269: ; preds = %263
%270 = add i16 %265, 1
%271 = call signext i8 @fgetc(i32* %25)
%272 = icmp eq i8 %271, 46
br i1 %272, label %275, label %263
273: ; preds = %263
%274 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %266
store i8 0, i8* %274
br label %303
275: ; preds = %269, %257
%276 = phi i16 [ 0, %257 ], [ %270, %269 ]
%277 = sext i16 %276 to i64
%278 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %277
store i8 0, i8* %278
%279 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.10, i64 0, i64 0), i8* %41, i8* %42)
%280 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* null)
br label %303
281: ; preds = %237
%282 = load i8, i8* %43
store i8 %282, i8* %42
%283 = load i8, i8* %49
%284 = icmp eq i8 %283, 58
br i1 %284, label %285, label %286
285: ; preds = %281
store i8 0, i8* %50
br label %303
286: ; preds = %281
store i8 %283, i8* %50
%287 = call signext i8 @fgetc(i32* %25)
%288 = icmp eq i8 %287, 58
br i1 %288, label %297, label %289
289: ; preds = %286, %289
%290 = phi i8 [ %295, %289 ], [ %287, %286 ]
%291 = phi i16 [ %294, %289 ], [ 2, %286 ]
%292 = sext i16 %291 to i64
%293 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %292
store i8 %290, i8* %293
%294 = add i16 %291, 1
%295 = call signext i8 @fgetc(i32* %25)
%296 = icmp eq i8 %295, 58
br i1 %296, label %297, label %289
297: ; preds = %289, %286
%298 = phi i16 [ 2, %286 ], [ %294, %289 ]
%299 = sext i16 %298 to i64
%300 = getelementptr inbounds [4 x i8], [4 x i8]* %4, i64 0, i64 %299
store i8 0, i8* %300
br label %303
301: ; preds = %141
store i8 0, i8* %138
%302 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([128 x i8], [128 x i8]* @.str.13, i64 0, i64 0), i32 %135, i8* %41, i8* %42, i8* %43)
br label %303
303: ; preds = %273, %275, %297, %285, %150, %153, %136, %301, %217, %205
%304 = phi i16 [ %133, %136 ], [ -1, %301 ], [ -1, %217 ], [ -1, %205 ], [ -1, %153 ], [ -1, %150 ], [ -1, %285 ], [ -1, %297 ], [ -1, %273 ], [ -1, %275 ]
%305 = add i16 %304, 1
br label %132
306: ; preds = %132, %132
%307 = icmp eq i16 %133, 0
br i1 %307, label %313, label %308
308: ; preds = %306
%309 = sext i16 %133 to i64
%310 = getelementptr inbounds [8 x i8], [8 x i8]* %5, i64 0, i64 %309
store i8 0, i8* %310
%311 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i8* %41, i8* %42, i8* %43)
%312 = call i32 @add_filter(i32* %39, i8* %41, i8* %42, i8* %43)
br label %313
313: ; preds = %126, %308, %306, %67, %70, %73, %76, %87
%314 = call signext i8 @fgetc(i32* %25)
%315 = sext i8 %314 to i32
%316 = load i32, i32* @EOF
%317 = icmp eq i32 %316, %315
br i1 %317, label %318, label %52
318: ; preds = %313, %18
%319 = call i32 @fclose(i32* %25)
%320 = call i32 @complete_js(i32* %39, i8* %34)
%321 = call i32 @fclose(i32* %39)
%322 = call i32 @remove(i8* %34)
%323 = call i32 @rename(i8* %31, i8* %34)
br label %324
324: ; preds = %10, %13, %7, %318
ret i32 0
}