#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 /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int fgeti(int /*<<< orphan*/ *);
int fgetshi(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fwrite(int *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[], char *env[]) {
  if (argc < 3) {
    printf("Need two file paths to decompress.\n");
    exit(1);
  }
  FILE *f = fopen(argv[1], "r+");
  FILE *g = fopen(argv[2], "r+");
  if (f == NULL) {
    printf("Cannot open file (IN).\n");
    exit(2);
  }
  if (g == NULL) {
    printf("Cannot open file (OUT).\n");
    exit(3);
  }
  int nbNoeud = fgetshi(f);
  int ind[nbNoeud];
  int fg[nbNoeud];
  int fd[nbNoeud];
  int parent[nbNoeud];
  for (int i = 0; i < nbNoeud; i++) {
    ind[i] = fgetshi(f);
    fg[i] = fgetshi(f);
    fd[i] = fgetshi(f);
    parent[i] = fgetshi(f);
  }
  int indRacine = ind[nbNoeud - 1];
  int nbChar = fgeti(f);
  char c = fgetc(f);
  int indNoeud = indRacine, masque, i, tot = nbChar, percent1 = 0, percent2 = 0;
  while (nbChar != 0) {
    masque = 8;
    while ((masque != 0) && (nbChar != 0)) {
      for (int j = 0; j < nbNoeud; j++)
        if (ind[j] == indNoeud)
          i = j;
      if ((c & (1 << (masque - 1))) == (1 << (masque - 1)))
        indNoeud = fd[i];
      else
        indNoeud = fg[i];
      for (int j = 0; j < nbNoeud; j++)
        if (ind[j] == indNoeud)
          i = j;
      if ((fg[i] == -1) && (fd[i] == -1)) {
        fwrite(&indNoeud, sizeof(char), 1, g);
        nbChar--;
        percent2 = 100 - nbChar * 100 / tot;
        if ((percent2 != percent1) && (percent2 % 10 == 0)) {
          printf("0 [");
          for (int j = 0; j < percent2 / 10; j++)
            printf("-");
          printf("] %i%\n", percent2);
          percent1 = percent2;
        }
        indNoeud = indRacine;
      }
      masque--;
    }
    c = fgetc(f);
  }
  fclose(f);
  fclose(g);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11bf <main+0x3f>
lea    0xe52(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe56(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe3e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1212 <main+0x92>
lea    0xe26(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x2,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x28(%rbp)
jne    1235 <main+0xb5>
lea    0xe1b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x3,%edi
call   1090 <exit@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fgetshi@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0x38(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xb0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x48(%rbp)
mov    -0x2c(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xa0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x50(%rbp)
mov    -0x2c(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x98(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1359 <main+0x1d9>
mov    -0x20(%rbp),%rdi
call   1040 <fgetshi@plt>
mov    %eax,%edx
mov    -0xb0(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rdi
call   1040 <fgetshi@plt>
mov    %eax,%edx
mov    -0xa8(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rdi
call   1040 <fgetshi@plt>
mov    %eax,%edx
mov    -0xa0(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x20(%rbp),%rdi
call   1040 <fgetshi@plt>
mov    %eax,%edx
mov    -0x98(%rbp),%rax
movslq -0x5c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    12db <main+0x15b>
mov    -0xb0(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x60(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <fgeti@plt>
mov    %eax,-0x64(%rbp)
mov    -0x20(%rbp),%rdi
call   1070 <fgetc@plt>
mov    %al,-0x65(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x78(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x0,-0x80(%rbp)
cmpl   $0x0,-0x64(%rbp)
je     15f9 <main+0x479>
movl   $0x8,-0x70(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x70(%rbp)
mov    %al,-0xb1(%rbp)
je     13d1 <main+0x251>
cmpl   $0x0,-0x64(%rbp)
setne  %al
mov    %al,-0xb1(%rbp)
mov    -0xb1(%rbp),%al
test   $0x1,%al
jne    13e4 <main+0x264>
jmp    15e8 <main+0x468>
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1439 <main+0x2b9>
mov    -0xb0(%rbp),%rax
movslq -0x84(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x6c(%rbp),%eax
jne    1420 <main+0x2a0>
mov    -0x84(%rbp),%eax
mov    %eax,-0x74(%rbp)
jmp    1425 <main+0x2a5>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    13ee <main+0x26e>
movsbl -0x65(%rbp),%eax
mov    -0x70(%rbp),%ecx
sub    $0x1,%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
mov    -0x70(%rbp),%ecx
sub    $0x1,%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
cmp    %ecx,%eax
jne    147b <main+0x2fb>
mov    -0xa0(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x6c(%rbp)
jmp    148c <main+0x30c>
mov    -0xa8(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x6c(%rbp)
movl   $0x0,-0x88(%rbp)
mov    -0x88(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    14e1 <main+0x361>
mov    -0xb0(%rbp),%rax
movslq -0x88(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x6c(%rbp),%eax
jne    14c8 <main+0x348>
mov    -0x88(%rbp),%eax
mov    %eax,-0x74(%rbp)
jmp    14cd <main+0x34d>
mov    -0x88(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x88(%rbp)
jmp    1496 <main+0x316>
mov    -0xa8(%rbp),%rax
movslq -0x74(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    15da <main+0x45a>
mov    -0xa0(%rbp),%rax
movslq -0x74(%rbp),%rcx
cmpl   $0xffffffff,(%rax,%rcx,4)
jne    15da <main+0x45a>
mov    -0x28(%rbp),%rcx
lea    -0x6c(%rbp),%rdi
mov    $0x1,%edx
mov    %edx,%esi
call   10a0 <fwrite@plt>
mov    -0x64(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x64(%rbp)
imul   $0x64,-0x64(%rbp),%eax
cltd
idivl  -0x78(%rbp)
mov    %eax,%ecx
mov    $0x64,%eax
sub    %ecx,%eax
mov    %eax,-0x80(%rbp)
mov    -0x80(%rbp),%eax
cmp    -0x7c(%rbp),%eax
je     15d4 <main+0x454>
mov    -0x80(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    15d4 <main+0x454>
lea    0xaf5(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
mov    %eax,-0xb8(%rbp)
mov    -0x80(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,%ecx
mov    -0xb8(%rbp),%eax
cmp    %ecx,%eax
jge    15bd <main+0x43d>
lea    0xaba(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
jmp    1574 <main+0x3f4>
mov    -0x80(%rbp),%esi
lea    0xa97(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x80(%rbp),%eax
mov    %eax,-0x7c(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x70(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x70(%rbp)
jmp    13b2 <main+0x232>
mov    -0x20(%rbp),%rdi
call   1070 <fgetc@plt>
mov    %al,-0x65(%rbp)
jmp    13a1 <main+0x221>
mov    -0x20(%rbp),%rdi
call   1050 <fclose@plt>
mov    -0x28(%rbp),%rdi
call   1050 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x38(%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
cmp    $0x2,%edi
jle    15ae <main+0x40e>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xe38(%rip),%r14
mov    %r14,%rsi
call   10b0 <fopen@plt>
mov    %rax,%r12
mov    0x10(%rbx),%rdi
mov    %r14,%rsi
call   10b0 <fopen@plt>
test   %r12,%r12
je     15c4 <main+0x424>
test   %rax,%rax
je     15da <main+0x43a>
mov    %rax,-0x78(%rbp)
mov    %r12,%rdi
call   1060 <fgetshi@plt>
mov    %eax,%edx
mov    %rsp,%r15
lea    0xf(,%rdx,4),%rcx
and    $0xfffffffffffffff0,%rcx
sub    %rcx,%r15
mov    %r15,%rsp
mov    %rsp,%r14
sub    %rcx,%r14
mov    %r14,%rsp
mov    %rsp,%r13
sub    %rcx,%r13
mov    %r13,%rsp
test   %eax,%eax
mov    %rdx,-0x48(%rbp)
jle    126a <main+0xca>
xor    %ebx,%ebx
mov    %r12,%rdi
call   1060 <fgetshi@plt>
mov    %eax,(%r15,%rbx,4)
mov    %r12,%rdi
call   1060 <fgetshi@plt>
mov    %eax,(%r14,%rbx,4)
mov    %r12,%rdi
call   1060 <fgetshi@plt>
mov    %eax,0x0(%r13,%rbx,4)
mov    %r12,%rdi
call   1060 <fgetshi@plt>
mov    -0x48(%rbp),%rdx
add    $0x1,%rbx
cmp    %rbx,%rdx
jne    1230 <main+0x90>
mov    %r13,-0x58(%rbp)
mov    %r14,-0x60(%rbp)
movslq %edx,%rax
mov    -0x4(%r15,%rax,4),%eax
mov    %eax,-0x30(%rbp)
mov    %r12,%rdi
call   1040 <fgeti@plt>
mov    %eax,%ebx
mov    %r12,-0x70(%rbp)
mov    %r12,%rdi
call   1090 <fgetc@plt>
mov    -0x48(%rbp),%r10
mov    %ebx,-0x4c(%rbp)
test   %ebx,%ebx
je     158b <main+0x3eb>
mov    -0x30(%rbp),%r13d
mov    %r13d,%r12d
shr    $0x8,%r12d
lea    -0x1(%r10),%rcx
mov    %rcx,-0x80(%rbp)
mov    %r10d,%ecx
and    $0x3,%ecx
mov    %r10d,%r14d
and    $0xfffffffc,%r14d
xor    %edi,%edi
mov    -0x4c(%rbp),%esi
mov    %r12d,-0x38(%rbp)
mov    %rcx,-0x68(%rbp)
jmp    1301 <main+0x161>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %eax,-0x3c(%rbp)
mov    -0x70(%rbp),%rdi
mov    %esi,-0x2c(%rbp)
call   1090 <fgetc@plt>
mov    -0x3c(%rbp),%edi
mov    -0x2c(%rbp),%esi
mov    -0x48(%rbp),%r10
test   %esi,%esi
je     158b <main+0x3eb>
movsbl %al,%r11d
mov    $0x8,%edx
mov    %edi,-0x2c(%rbp)
mov    -0x60(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    %r11d,-0x34(%rbp)
nopl   0x0(%rax)
test   %r10d,%r10d
jle    1350 <main+0x1b0>
shl    $0x8,%r12d
movzbl %r13b,%eax
or     %r12d,%eax
cmpq   $0x3,-0x80(%rbp)
jae    1360 <main+0x1c0>
mov    %edx,%edi
xor    %ecx,%ecx
cmpq   $0x0,-0x68(%rbp)
jne    13af <main+0x20f>
jmp    13d1 <main+0x231>
nopw   0x0(%rax,%rax,1)
mov    %edx,%edi
jmp    13d1 <main+0x231>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %edx,%edi
mov    %esi,%r12d
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
cmp    %eax,(%r15,%rcx,4)
cmove  %ecx,%ebx
cmp    %eax,0x4(%r15,%rcx,4)
lea    0x1(%rcx),%edx
cmovne %ebx,%edx
lea    0x2(%rcx),%esi
cmp    %eax,0x8(%r15,%rcx,4)
cmovne %edx,%esi
lea    0x3(%rcx),%ebx
cmp    %eax,0xc(%r15,%rcx,4)
cmovne %esi,%ebx
add    $0x4,%rcx
cmp    %r14,%rcx
jne    1370 <main+0x1d0>
mov    %r12d,%esi
mov    -0x34(%rbp),%r11d
cmpq   $0x0,-0x68(%rbp)
je     13d1 <main+0x231>
mov    -0x68(%rbp),%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    %eax,(%r15,%rcx,4)
cmove  %ecx,%ebx
add    $0x1,%rcx
add    $0xffffffffffffffff,%rdx
jne    13c0 <main+0x220>
mov    %edi,%edx
add    $0xffffffff,%edx
bt     %edx,%r11d
mov    %r8,%rcx
cmovb  %r9,%rcx
movslq %ebx,%rax
mov    (%rcx,%rax,4),%r13d
mov    %r13d,%r12d
shr    $0x8,%r12d
test   %r10d,%r10d
jle    1474 <main+0x2d4>
cmpq   $0x3,-0x80(%rbp)
jae    1410 <main+0x270>
xor    %eax,%eax
test   $0x3,%r10b
jne    1459 <main+0x2b9>
jmp    1471 <main+0x2d1>
nopl   0x0(%rax)
mov    %edx,%edi
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    %r13d,(%r15,%rax,4)
cmove  %eax,%ebx
cmp    %r13d,0x4(%r15,%rax,4)
lea    0x1(%rax),%ecx
cmovne %ebx,%ecx
lea    0x2(%rax),%edx
cmp    %r13d,0x8(%r15,%rax,4)
cmovne %ecx,%edx
lea    0x3(%rax),%ebx
cmp    %r13d,0xc(%r15,%rax,4)
cmovne %edx,%ebx
add    $0x4,%rax
cmp    %r14,%rax
jne    1420 <main+0x280>
mov    %edi,%edx
test   $0x3,%r10b
je     1471 <main+0x2d1>
mov    -0x68(%rbp),%rcx
nopl   (%rax)
cmp    %r13d,(%r15,%rax,4)
cmove  %eax,%ebx
add    $0x1,%rax
add    $0xffffffffffffffff,%rcx
jne    1460 <main+0x2c0>
movslq %ebx,%rax
cmpl   $0xffffffff,(%r8,%rax,4)
jne    1482 <main+0x2e2>
cmpl   $0xffffffff,(%r9,%rax,4)
je     149d <main+0x2fd>
mov    -0x2c(%rbp),%eax
test   %edx,%edx
je     12e0 <main+0x140>
mov    %eax,-0x2c(%rbp)
test   %esi,%esi
jne    1320 <main+0x180>
jmp    12e0 <main+0x140>
mov    %edx,-0x40(%rbp)
movsbl %r13b,%edi
mov    %esi,%r12d
mov    -0x78(%rbp),%rsi
call   10a0 <fputc@plt>
mov    %r12d,%esi
add    $0xffffffff,%esi
imul   $0x64,%esi,%eax
cltd
idivl  -0x4c(%rbp)
mov    $0x64,%r13d
sub    %eax,%r13d
mov    -0x2c(%rbp),%edx
cmp    %edx,%r13d
je     1561 <main+0x3c1>
movslq %r13d,%rdi
imul   $0x66666667,%rdi,%r12
mov    %r12,%rcx
shr    $0x3f,%rcx
sar    $0x22,%r12
add    %ecx,%r12d
lea    (%r12,%r12,1),%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %ecx,%edi
jne    1561 <main+0x3c1>
mov    %r13d,-0x3c(%rbp)
mov    %esi,-0x2c(%rbp)
mov    %eax,%r13d
lea    0xafd(%rip),%rdi
xor    %eax,%eax
call   1080 <printf@plt>
cmp    $0x5a,%r13d
jg     1530 <main+0x390>
cmp    $0x2,%r12d
mov    $0x1,%eax
cmovl  %eax,%r12d
mov    $0x2d,%edi
call   1030 <putchar@plt>
add    $0xffffffff,%r12d
jne    1520 <main+0x380>
lea    0xad0(%rip),%rdi
mov    -0x3c(%rbp),%r12d
mov    %r12d,%esi
xor    %eax,%eax
call   1080 <printf@plt>
mov    %r12d,%eax
mov    -0x38(%rbp),%r12d
mov    -0x30(%rbp),%r13d
mov    -0x48(%rbp),%r10
mov    -0x60(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    -0x2c(%rbp),%esi
jmp    1577 <main+0x3d7>
mov    -0x38(%rbp),%r12d
mov    -0x30(%rbp),%r13d
mov    %edx,%eax
mov    -0x48(%rbp),%r10
mov    -0x60(%rbp),%r8
mov    -0x58(%rbp),%r9
mov    -0x34(%rbp),%r11d
mov    -0x40(%rbp),%edx
test   %edx,%edx
jne    148d <main+0x2ed>
jmp    12e0 <main+0x140>
mov    -0x70(%rbp),%rdi
call   1070 <fclose@plt>
mov    -0x78(%rbp),%rdi
call   1070 <fclose@plt>
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xa88(%rip),%rdi
call   1050 <puts@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>
lea    0xa5b(%rip),%rdi
call   1050 <puts@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
lea    0xa2d(%rip),%rdi
call   1050 <puts@plt>
mov    $0x3,%edi
call   10c0 <exit@plt>

LLVM IR (-O0):
@.str = [36 x i8] c"Need two file paths to decompress.\0A\00"
@.str.1 = [3 x i8] c"r+\00"
@.str.2 = [24 x i8] c"Cannot open file (IN).\0A\00"
@.str.3 = [25 x i8] c"Cannot open file (OUT).\0A\00"
@.str.4 = [4 x i8] c"0 [\00"
@.str.5 = [2 x i8] c"-\00"
@.str.6 = [7 x i8] c"] %i%\0A\00"
define i32 @main(i32 %0, i8** %1, i8** %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8**
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca i64
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i8
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i32
%24 = alloca i32
%25 = alloca i32
%26 = alloca i32
%27 = alloca i32
%28 = alloca i32
store i32 0, i32* %4
store i32 %0, i32* %5
store i8** %1, i8*** %6
store i8** %2, i8*** %7
%29 = load i32, i32* %5
%30 = icmp slt i32 %29, 3
br i1 %30, label %31, label %34
31: ; preds = %3
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
%33 = call i32 @exit(i32 1)
unreachable
34: ; preds = %3
%35 = load i8**, i8*** %6
%36 = getelementptr inbounds i8*, i8** %35, i64 1
%37 = load i8*, i8** %36
%38 = call i32* @fopen(i8* %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %38, i32** %8
%39 = load i8**, i8*** %6
%40 = getelementptr inbounds i8*, i8** %39, i64 2
%41 = load i8*, i8** %40
%42 = call i32* @fopen(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %42, i32** %9
%43 = load i32*, i32** %8
%44 = icmp eq i32* %43, null
br i1 %44, label %45, label %48
45: ; preds = %34
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%47 = call i32 @exit(i32 2)
unreachable
48: ; preds = %34
%49 = load i32*, i32** %9
%50 = icmp eq i32* %49, null
br i1 %50, label %51, label %54
51: ; preds = %48
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0))
%53 = call i32 @exit(i32 3)
unreachable
54: ; preds = %48
%55 = load i32*, i32** %8
%56 = call i32 @fgetshi(i32* %55)
store i32 %56, i32* %10
%57 = load i32, i32* %10
%58 = zext i32 %57 to i64
%59 = call i8* @llvm.stacksave()
store i8* %59, i8** %11
%60 = alloca i32, i64 %58
store i64 %58, i64* %12
%61 = load i32, i32* %10
%62 = zext i32 %61 to i64
%63 = alloca i32, i64 %62
store i64 %62, i64* %13
%64 = load i32, i32* %10
%65 = zext i32 %64 to i64
%66 = alloca i32, i64 %65
store i64 %65, i64* %14
%67 = load i32, i32* %10
%68 = zext i32 %67 to i64
%69 = alloca i32, i64 %68
store i64 %68, i64* %15
store i32 0, i32* %16
br label %70
70: ; preds = %95, %54
%71 = load i32, i32* %16
%72 = load i32, i32* %10
%73 = icmp slt i32 %71, %72
br i1 %73, label %74, label %98
74: ; preds = %70
%75 = load i32*, i32** %8
%76 = call i32 @fgetshi(i32* %75)
%77 = load i32, i32* %16
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds i32, i32* %60, i64 %78
store i32 %76, i32* %79
%80 = load i32*, i32** %8
%81 = call i32 @fgetshi(i32* %80)
%82 = load i32, i32* %16
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds i32, i32* %63, i64 %83
store i32 %81, i32* %84
%85 = load i32*, i32** %8
%86 = call i32 @fgetshi(i32* %85)
%87 = load i32, i32* %16
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, i32* %66, i64 %88
store i32 %86, i32* %89
%90 = load i32*, i32** %8
%91 = call i32 @fgetshi(i32* %90)
%92 = load i32, i32* %16
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds i32, i32* %69, i64 %93
store i32 %91, i32* %94
br label %95
95: ; preds = %74
%96 = load i32, i32* %16
%97 = add nsw i32 %96, 1
store i32 %97, i32* %16
br label %70
98: ; preds = %70
%99 = load i32, i32* %10
%100 = sub nsw i32 %99, 1
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds i32, i32* %60, i64 %101
%103 = load i32, i32* %102
store i32 %103, i32* %17
%104 = load i32*, i32** %8
%105 = call i32 @fgeti(i32* %104)
store i32 %105, i32* %18
%106 = load i32*, i32** %8
%107 = call signext i8 @fgetc(i32* %106)
store i8 %107, i8* %19
%108 = load i32, i32* %17
store i32 %108, i32* %20
%109 = load i32, i32* %18
store i32 %109, i32* %23
store i32 0, i32* %24
store i32 0, i32* %25
br label %110
110: ; preds = %229, %98
%111 = load i32, i32* %18
%112 = icmp ne i32 %111, 0
br i1 %112, label %113, label %232
113: ; preds = %110
store i32 8, i32* %21
br label %114
114: ; preds = %226, %113
%115 = load i32, i32* %21
%116 = icmp ne i32 %115, 0
br i1 %116, label %117, label %120
117: ; preds = %114
%118 = load i32, i32* %18
%119 = icmp ne i32 %118, 0
br label %120
120: ; preds = %117, %114
%121 = phi i1 [ false, %114 ], [ %119, %117 ]
br i1 %121, label %122, label %229
122: ; preds = %120
store i32 0, i32* %26
br label %123
123: ; preds = %137, %122
%124 = load i32, i32* %26
%125 = load i32, i32* %10
%126 = icmp slt i32 %124, %125
br i1 %126, label %127, label %140
127: ; preds = %123
%128 = load i32, i32* %26
%129 = sext i32 %128 to i64
%130 = getelementptr inbounds i32, i32* %60, i64 %129
%131 = load i32, i32* %130
%132 = load i32, i32* %20
%133 = icmp eq i32 %131, %132
br i1 %133, label %134, label %136
134: ; preds = %127
%135 = load i32, i32* %26
store i32 %135, i32* %22
br label %136
136: ; preds = %134, %127
br label %137
137: ; preds = %136
%138 = load i32, i32* %26
%139 = add nsw i32 %138, 1
store i32 %139, i32* %26
br label %123
140: ; preds = %123
%141 = load i8, i8* %19
%142 = sext i8 %141 to i32
%143 = load i32, i32* %21
%144 = sub nsw i32 %143, 1
%145 = shl i32 1, %144
%146 = and i32 %142, %145
%147 = load i32, i32* %21
%148 = sub nsw i32 %147, 1
%149 = shl i32 1, %148
%150 = icmp eq i32 %146, %149
br i1 %150, label %151, label %156
151: ; preds = %140
%152 = load i32, i32* %22
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds i32, i32* %66, i64 %153
%155 = load i32, i32* %154
store i32 %155, i32* %20
br label %161
156: ; preds = %140
%157 = load i32, i32* %22
%158 = sext i32 %157 to i64
%159 = getelementptr inbounds i32, i32* %63, i64 %158
%160 = load i32, i32* %159
store i32 %160, i32* %20
br label %161
161: ; preds = %156, %151
store i32 0, i32* %27
br label %162
162: ; preds = %176, %161
%163 = load i32, i32* %27
%164 = load i32, i32* %10
%165 = icmp slt i32 %163, %164
br i1 %165, label %166, label %179
166: ; preds = %162
%167 = load i32, i32* %27
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds i32, i32* %60, i64 %168
%170 = load i32, i32* %169
%171 = load i32, i32* %20
%172 = icmp eq i32 %170, %171
br i1 %172, label %173, label %175
173: ; preds = %166
%174 = load i32, i32* %27
store i32 %174, i32* %22
br label %175
175: ; preds = %173, %166
br label %176
176: ; preds = %175
%177 = load i32, i32* %27
%178 = add nsw i32 %177, 1
store i32 %178, i32* %27
br label %162
179: ; preds = %162
%180 = load i32, i32* %22
%181 = sext i32 %180 to i64
%182 = getelementptr inbounds i32, i32* %63, i64 %181
%183 = load i32, i32* %182
%184 = icmp eq i32 %183, -1
br i1 %184, label %185, label %226
185: ; preds = %179
%186 = load i32, i32* %22
%187 = sext i32 %186 to i64
%188 = getelementptr inbounds i32, i32* %66, i64 %187
%189 = load i32, i32* %188
%190 = icmp eq i32 %189, -1
br i1 %190, label %191, label %226
191: ; preds = %185
%192 = load i32*, i32** %9
%193 = call i32 @fwrite(i32* %20, i32 1, i32 1, i32* %192)
%194 = load i32, i32* %18
%195 = add nsw i32 %194, -1
store i32 %195, i32* %18
%196 = load i32, i32* %18
%197 = mul nsw i32 %196, 100
%198 = load i32, i32* %23
%199 = sdiv i32 %197, %198
%200 = sub nsw i32 100, %199
store i32 %200, i32* %25
%201 = load i32, i32* %25
%202 = load i32, i32* %24
%203 = icmp ne i32 %201, %202
br i1 %203, label %204, label %224
204: ; preds = %191
%205 = load i32, i32* %25
%206 = srem i32 %205, 10
%207 = icmp eq i32 %206, 0
br i1 %207, label %208, label %224
208: ; preds = %204
%209 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %28
br label %210
210: ; preds = %217, %208
%211 = load i32, i32* %28
%212 = load i32, i32* %25
%213 = sdiv i32 %212, 10
%214 = icmp slt i32 %211, %213
br i1 %214, label %215, label %220
215: ; preds = %210
%216 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %217
217: ; preds = %215
%218 = load i32, i32* %28
%219 = add nsw i32 %218, 1
store i32 %219, i32* %28
br label %210
220: ; preds = %210
%221 = load i32, i32* %25
%222 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %221)
%223 = load i32, i32* %25
store i32 %223, i32* %24
br label %224
224: ; preds = %220, %204, %191
%225 = load i32, i32* %17
store i32 %225, i32* %20
br label %226
226: ; preds = %224, %185, %179
%227 = load i32, i32* %21
%228 = add nsw i32 %227, -1
store i32 %228, i32* %21
br label %114
229: ; preds = %120
%230 = load i32*, i32** %8
%231 = call signext i8 @fgetc(i32* %230)
store i8 %231, i8* %19
br label %110
232: ; preds = %110
%233 = load i32*, i32** %8
%234 = call i32 @fclose(i32* %233)
%235 = load i32*, i32** %9
%236 = call i32 @fclose(i32* %235)
store i32 0, i32* %4
%237 = load i8*, i8** %11
%238 = load i32, i32* %4
ret i32 %238
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"r+\00"
@.str.4 = [4 x i8] c"0 [\00"
@.str.6 = [7 x i8] c"] %i%\0A\00"
@str = [24 x i8] c"Cannot open file (OUT).\00"
@str.7 = [23 x i8] c"Cannot open file (IN).\00"
@str.8 = [35 x i8] c"Need two file paths to decompress.\00"
define i32 @main(i32 %0, i8** nocapture %1, i8** nocapture readnone %2) {
%4 = icmp slt i32 %0, 3
br i1 %4, label %5, label %8
5: ; preds = %3
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @str.8, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %3
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32* @fopen(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds i8*, i8** %1, i64 2
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32* %11, null
br i1 %15, label %16, label %19
16: ; preds = %8
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.7, i64 0, i64 0))
%18 = tail call i32 @exit(i32 2)
unreachable
19: ; preds = %8
%20 = icmp eq i32* %14, null
br i1 %20, label %21, label %24
21: ; preds = %19
%22 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str, i64 0, i64 0))
%23 = tail call i32 @exit(i32 3)
unreachable
24: ; preds = %19
%25 = tail call i32 @fgetshi(i32* %11)
%26 = zext i32 %25 to i64
%27 = alloca i32, i64 %26
%28 = alloca i32, i64 %26
%29 = alloca i32, i64 %26
%30 = icmp sgt i32 %25, 0
br i1 %30, label %52, label %31
31: ; preds = %52, %24
%32 = add nsw i32 %25, -1
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds i32, i32* %27, i64 %33
%35 = load i32, i32* %34
%36 = tail call i32 @fgeti(i32* %11)
%37 = tail call signext i8 @fgetc(i32* %11)
%38 = trunc i32 %35 to i8
%39 = lshr i32 %35, 8
%40 = trunc i32 %39 to i24
%41 = icmp eq i32 %36, 0
br i1 %41, label %238, label %42
42: ; preds = %31
%43 = add nsw i64 %26, -1
%44 = and i64 %26, 3
%45 = icmp ult i64 %43, 3
%46 = and i64 %26, 4294967292
%47 = icmp eq i64 %44, 0
%48 = and i64 %26, 3
%49 = icmp ult i64 %43, 3
%50 = and i64 %26, 4294967292
%51 = icmp eq i64 %48, 0
br label %63
52: ; preds = %24, %52
%53 = phi i64 [ %61, %52 ], [ 0, %24 ]
%54 = tail call i32 @fgetshi(i32* %11)
%55 = getelementptr inbounds i32, i32* %27, i64 %53
store i32 %54, i32* %55
%56 = tail call i32 @fgetshi(i32* %11)
%57 = getelementptr inbounds i32, i32* %28, i64 %53
store i32 %56, i32* %57
%58 = tail call i32 @fgetshi(i32* %11)
%59 = getelementptr inbounds i32, i32* %29, i64 %53
store i32 %58, i32* %59
%60 = tail call i32 @fgetshi(i32* %11)
%61 = add nuw nsw i64 %53, 1
%62 = icmp eq i64 %61, %26
br i1 %62, label %31, label %52
63: ; preds = %42, %235
%64 = phi i32 [ %231, %235 ], [ 0, %42 ]
%65 = phi i32 [ %164, %235 ], [ undef, %42 ]
%66 = phi i8 [ %236, %235 ], [ %37, %42 ]
%67 = phi i32 [ %230, %235 ], [ %36, %42 ]
%68 = phi i8 [ %229, %235 ], [ %38, %42 ]
%69 = phi i24 [ %228, %235 ], [ %40, %42 ]
%70 = sext i8 %66 to i32
br label %71
71: ; preds = %63, %227
%72 = phi i32 [ %64, %63 ], [ %231, %227 ]
%73 = phi i32 [ %65, %63 ], [ %164, %227 ]
%74 = phi i32 [ 8, %63 ], [ %101, %227 ]
%75 = phi i32 [ %67, %63 ], [ %230, %227 ]
%76 = phi i8 [ %68, %63 ], [ %229, %227 ]
%77 = phi i24 [ %69, %63 ], [ %228, %227 ]
br i1 %30, label %78, label %99
78: ; preds = %71
%79 = zext i24 %77 to i32
%80 = shl nuw i32 %79, 8
%81 = zext i8 %76 to i32
%82 = or i32 %80, %81
br i1 %45, label %83, label %113
83: ; preds = %113, %78
%84 = phi i32 [ undef, %78 ], [ %139, %113 ]
%85 = phi i64 [ 0, %78 ], [ %140, %113 ]
%86 = phi i32 [ %73, %78 ], [ %139, %113 ]
br i1 %47, label %99, label %87
87: ; preds = %83, %87
%88 = phi i64 [ %96, %87 ], [ %85, %83 ]
%89 = phi i32 [ %95, %87 ], [ %86, %83 ]
%90 = phi i64 [ %97, %87 ], [ 0, %83 ]
%91 = getelementptr inbounds i32, i32* %27, i64 %88
%92 = load i32, i32* %91
%93 = icmp eq i32 %92, %82
%94 = trunc i64 %88 to i32
%95 = select i1 %93, i32 %94, i32 %89
%96 = add nuw nsw i64 %88, 1
%97 = add i64 %90, 1
%98 = icmp eq i64 %97, %44
br i1 %98, label %99, label %87
99: ; preds = %83, %87, %71
%100 = phi i32 [ %73, %71 ], [ %84, %83 ], [ %95, %87 ]
%101 = add nsw i32 %74, -1
%102 = shl nuw i32 1, %101
%103 = and i32 %102, %70
%104 = icmp eq i32 %103, %102
%105 = sext i32 %100 to i64
%106 = select i1 %104, i32* %29, i32* %28
%107 = getelementptr inbounds i32, i32* %106, i64 %105
%108 = load i32, i32* %107
%109 = trunc i32 %108 to i8
%110 = lshr i32 %108, 8
%111 = trunc i32 %110 to i24
br i1 %30, label %112, label %162
112: ; preds = %99
br i1 %49, label %143, label %168
113: ; preds = %78, %113
%114 = phi i64 [ %140, %113 ], [ 0, %78 ]
%115 = phi i32 [ %139, %113 ], [ %73, %78 ]
%116 = phi i64 [ %141, %113 ], [ 0, %78 ]
%117 = getelementptr inbounds i32, i32* %27, i64 %114
%118 = load i32, i32* %117
%119 = icmp eq i32 %118, %82
%120 = trunc i64 %114 to i32
%121 = select i1 %119, i32 %120, i32 %115
%122 = or i64 %114, 1
%123 = getelementptr inbounds i32, i32* %27, i64 %122
%124 = load i32, i32* %123
%125 = icmp eq i32 %124, %82
%126 = trunc i64 %122 to i32
%127 = select i1 %125, i32 %126, i32 %121
%128 = or i64 %114, 2
%129 = getelementptr inbounds i32, i32* %27, i64 %128
%130 = load i32, i32* %129
%131 = icmp eq i32 %130, %82
%132 = trunc i64 %128 to i32
%133 = select i1 %131, i32 %132, i32 %127
%134 = or i64 %114, 3
%135 = getelementptr inbounds i32, i32* %27, i64 %134
%136 = load i32, i32* %135
%137 = icmp eq i32 %136, %82
%138 = trunc i64 %134 to i32
%139 = select i1 %137, i32 %138, i32 %133
%140 = add nuw nsw i64 %114, 4
%141 = add i64 %116, 4
%142 = icmp eq i64 %141, %46
br i1 %142, label %83, label %113
143: ; preds = %168, %112
%144 = phi i32 [ undef, %112 ], [ %194, %168 ]
%145 = phi i64 [ 0, %112 ], [ %195, %168 ]
%146 = phi i32 [ %100, %112 ], [ %194, %168 ]
br i1 %51, label %159, label %147
147: ; preds = %143, %147
%148 = phi i64 [ %156, %147 ], [ %145, %143 ]
%149 = phi i32 [ %155, %147 ], [ %146, %143 ]
%150 = phi i64 [ %157, %147 ], [ 0, %143 ]
%151 = getelementptr inbounds i32, i32* %27, i64 %148
%152 = load i32, i32* %151
%153 = icmp eq i32 %152, %108
%154 = trunc i64 %148 to i32
%155 = select i1 %153, i32 %154, i32 %149
%156 = add nuw nsw i64 %148, 1
%157 = add i64 %150, 1
%158 = icmp eq i64 %157, %48
br i1 %158, label %159, label %147
159: ; preds = %147, %143
%160 = phi i32 [ %144, %143 ], [ %155, %147 ]
%161 = sext i32 %160 to i64
br label %162
162: ; preds = %159, %99
%163 = phi i64 [ %161, %159 ], [ %105, %99 ]
%164 = phi i32 [ %160, %159 ], [ %100, %99 ]
%165 = getelementptr inbounds i32, i32* %28, i64 %163
%166 = load i32, i32* %165
%167 = icmp eq i32 %166, -1
br i1 %167, label %198, label %227
168: ; preds = %112, %168
%169 = phi i64 [ %195, %168 ], [ 0, %112 ]
%170 = phi i32 [ %194, %168 ], [ %100, %112 ]
%171 = phi i64 [ %196, %168 ], [ 0, %112 ]
%172 = getelementptr inbounds i32, i32* %27, i64 %169
%173 = load i32, i32* %172
%174 = icmp eq i32 %173, %108
%175 = trunc i64 %169 to i32
%176 = select i1 %174, i32 %175, i32 %170
%177 = or i64 %169, 1
%178 = getelementptr inbounds i32, i32* %27, i64 %177
%179 = load i32, i32* %178
%180 = icmp eq i32 %179, %108
%181 = trunc i64 %177 to i32
%182 = select i1 %180, i32 %181, i32 %176
%183 = or i64 %169, 2
%184 = getelementptr inbounds i32, i32* %27, i64 %183
%185 = load i32, i32* %184
%186 = icmp eq i32 %185, %108
%187 = trunc i64 %183 to i32
%188 = select i1 %186, i32 %187, i32 %182
%189 = or i64 %169, 3
%190 = getelementptr inbounds i32, i32* %27, i64 %189
%191 = load i32, i32* %190
%192 = icmp eq i32 %191, %108
%193 = trunc i64 %189 to i32
%194 = select i1 %192, i32 %193, i32 %188
%195 = add nuw nsw i64 %169, 4
%196 = add i64 %171, 4
%197 = icmp eq i64 %196, %50
br i1 %197, label %143, label %168
198: ; preds = %162
%199 = getelementptr inbounds i32, i32* %29, i64 %163
%200 = load i32, i32* %199
%201 = icmp eq i32 %200, -1
br i1 %201, label %202, label %227
202: ; preds = %198
%203 = shl i32 %108, 24
%204 = ashr exact i32 %203, 24
%205 = tail call i32 @fputc(i32 %204, i32* %14)
%206 = add nsw i32 %75, -1
%207 = mul nsw i32 %206, 100
%208 = sdiv i32 %207, %36
%209 = sub nsw i32 100, %208
%210 = icmp ne i32 %209, %72
%211 = srem i32 %209, 10
%212 = sdiv i32 %209, 10
%213 = icmp eq i32 %211, 0
%214 = and i1 %210, %213
br i1 %214, label %215, label %227
215: ; preds = %202
%216 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%217 = icmp slt i32 %208, 91
br i1 %217, label %218, label %220
218: ; preds = %215
%219 = call i32 @llvm.smax.i32(i32 %212, i32 1)
br label %222
220: ; preds = %222, %215
%221 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i32 %209)
br label %227
222: ; preds = %218, %222
%223 = phi i32 [ %225, %222 ], [ 0, %218 ]
%224 = tail call i32 @putchar(i32 45)
%225 = add nuw nsw i32 %223, 1
%226 = icmp eq i32 %225, %219
br i1 %226, label %220, label %222
227: ; preds = %202, %220, %198, %162
%228 = phi i24 [ %111, %198 ], [ %111, %162 ], [ %40, %220 ], [ %40, %202 ]
%229 = phi i8 [ %109, %198 ], [ %109, %162 ], [ %38, %220 ], [ %38, %202 ]
%230 = phi i32 [ %75, %198 ], [ %75, %162 ], [ %206, %220 ], [ %206, %202 ]
%231 = phi i32 [ %72, %198 ], [ %72, %162 ], [ %209, %220 ], [ %72, %202 ]
%232 = icmp ne i32 %101, 0
%233 = icmp ne i32 %230, 0
%234 = select i1 %232, i1 %233, i1 false
br i1 %234, label %71, label %235
235: ; preds = %227
%236 = tail call signext i8 @fgetc(i32* %11)
%237 = icmp eq i32 %230, 0
br i1 %237, label %238, label %63
238: ; preds = %235, %31
%239 = tail call i32 @fclose(i32* %11)
%240 = tail call i32 @fclose(i32* %14)
ret i32 0
}