#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char **argv) {
  char n[100], s[256], u[8];
  int i, j, r[5], v, c;
  FILE *f;
  signed char a, b, d;
  if (argc < 2)
    return -1;
  strcpy(n, argv[1]);
  f = fopen(n, "rt");
  if (f == NULL)
    return -1;
  fscanf(f, "%s\n", s);
  while (!feof(f)) {
    fscanf(f, "%3X:%2X,%2X,%2X,%2X,%2X\n", &i, &r[0], &r[1], &r[2], &r[3],
           &r[4]);
    v = -1;
    a = (i >> 4) & 15;
    b = (i >> 8) & 15;
    switch (i & 7) {
    case 0:
      strcpy(u, "RRC");
      d = (i & 8) | (a >> 1);
      c = a & 1;
      break;
    case 1:
      strcpy(u, "RLC");
      d = ((a & 7) << 1) | ((i & 8) >> 3);
      c = (a & 8) >> 3;
      break;
    case 2:
      strcpy(u, "NAN");
      d = (~(a & b)) & 15;
      c = 1;
      break;
    case 3:
      strcpy(u, "XOR");
      d = a ^ b;
      c = 1;
      break;
    case 4:
    case 5:
    case 6:
    case 7:
      strcpy(u, "ADD");
      d = a + b + ((i & 8) >> 3);
      c = (d & 16) >> 4;
      if (a & 8)
        a |= 0xF0;
      if (b & 8)
        b |= 0xF0;
      d = a + b + ((i & 8) >> 3);
      if ((d < 0 && !(d & 8)) || (d > 0 && (d & 8)))
        v = 1;
      else
        v = 0;
      break;
    }
    for (j = 0; j < 5; j++) {
      if ((d & 15) != (r[j] >> 2) || c != (r[j] & 1) ||
          (v >= 0 && ((r[j] & 2) >> 1) != v)) {
        printf("%s %3.3X[%i] %2.2X a=%i b=%i c=%i -> d=%i (%i) c=%i (%i)", u, i,
               j, r[j], a, b, (i & 8) >> 3, d, r[j] >> 2, c, r[j] & 1);
        if (v >= 0)
          printf(" v=%i (%i)", v, (r[j] & 2) >> 1);
        printf("\n");
      }
    }
  }
  fclose(f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x1f8,%rsp
movl   $0x0,-0x1c(%rbp)
mov    %edi,-0x20(%rbp)
mov    %rsi,-0x28(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    1194 <main+0x34>
movl   $0xffffffff,-0x1c(%rbp)
jmp    1670 <main+0x510>
lea    -0x90(%rbp),%rdi
mov    -0x28(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
lea    -0x90(%rbp),%rdi
lea    0xe6a(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x1d0(%rbp)
cmpq   $0x0,-0x1d0(%rbp)
jne    11dc <main+0x7c>
movl   $0xffffffff,-0x1c(%rbp)
jmp    1670 <main+0x510>
mov    -0x1d0(%rbp),%rdi
lea    -0x190(%rbp),%rdx
lea    0xe32(%rip),%rsi
mov    $0x0,%al
call   1060 <fscanf@plt>
mov    -0x1d0(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1219 <main+0xb9>
jmp    165d <main+0x4fd>
mov    -0x1d0(%rbp),%rdi
lea    -0x1bc(%rbp),%r8
lea    -0x1b8(%rbp),%r9
lea    -0x1b4(%rbp),%rcx
lea    -0x1b0(%rbp),%rdx
mov    %rsp,%rax
mov    %rdx,0x8(%rax)
mov    %rcx,(%rax)
lea    0xdda(%rip),%rsi
xor    %eax,%eax
lea    -0x19c(%rbp),%rdx
lea    -0x1c0(%rbp),%rcx
call   1060 <fscanf@plt>
movl   $0xffffffff,-0x1c4(%rbp)
ff ff ff
mov    -0x19c(%rbp),%al
shr    $0x4,%al
mov    %al,-0x1d1(%rbp)
mov    -0x19b(%rbp),%al
and    $0xf,%al
mov    %al,-0x1d2(%rbp)
mov    -0x19c(%rbp),%eax
and    $0x7,%eax
mov    %rax,-0x1e0(%rbp)
sub    $0x7,%eax
ja     14da <main+0x37a>
mov    -0x1e0(%rbp),%rax
lea    0xd50(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    -0x198(%rbp),%rdi
lea    0xd79(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x19c(%rbp),%eax
and    $0x8,%eax
movsbl -0x1d1(%rbp),%ecx
sar    $0x1,%ecx
or     %ecx,%eax
mov    %al,-0x1d3(%rbp)
movsbl -0x1d1(%rbp),%eax
and    $0x1,%eax
mov    %eax,-0x1c8(%rbp)
jmp    14da <main+0x37a>
lea    -0x198(%rbp),%rdi
lea    0xd3a(%rip),%rsi
call   1030 <strcpy@plt>
movsbl -0x1d1(%rbp),%eax
and    $0x7,%eax
shl    $0x1,%eax
mov    -0x19c(%rbp),%ecx
and    $0x8,%ecx
sar    $0x3,%ecx
or     %ecx,%eax
mov    %al,-0x1d3(%rbp)
movsbl -0x1d1(%rbp),%eax
and    $0x8,%eax
sar    $0x3,%eax
mov    %eax,-0x1c8(%rbp)
jmp    14da <main+0x37a>
lea    -0x198(%rbp),%rdi
lea    0xcf2(%rip),%rsi
call   1030 <strcpy@plt>
movsbl -0x1d1(%rbp),%eax
movsbl -0x1d2(%rbp),%ecx
and    %ecx,%eax
xor    $0xffffffff,%eax
and    $0xf,%eax
mov    %al,-0x1d3(%rbp)
movl   $0x1,-0x1c8(%rbp)
jmp    14da <main+0x37a>
lea    -0x198(%rbp),%rdi
lea    0xcb8(%rip),%rsi
call   1030 <strcpy@plt>
movsbl -0x1d1(%rbp),%eax
movsbl -0x1d2(%rbp),%ecx
xor    %ecx,%eax
mov    %al,-0x1d3(%rbp)
movl   $0x1,-0x1c8(%rbp)
jmp    14da <main+0x37a>
lea    -0x198(%rbp),%rdi
lea    0xc84(%rip),%rsi
call   1030 <strcpy@plt>
movsbl -0x1d1(%rbp),%eax
movsbl -0x1d2(%rbp),%ecx
add    %ecx,%eax
mov    -0x19c(%rbp),%ecx
and    $0x8,%ecx
sar    $0x3,%ecx
add    %ecx,%eax
mov    %al,-0x1d3(%rbp)
movsbl -0x1d3(%rbp),%eax
and    $0x10,%eax
sar    $0x4,%eax
mov    %eax,-0x1c8(%rbp)
movsbl -0x1d1(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     142d <main+0x2cd>
movsbl -0x1d1(%rbp),%eax
or     $0xf0,%eax
mov    %al,-0x1d1(%rbp)
movsbl -0x1d2(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     1452 <main+0x2f2>
movsbl -0x1d2(%rbp),%eax
or     $0xf0,%eax
mov    %al,-0x1d2(%rbp)
movsbl -0x1d1(%rbp),%eax
movsbl -0x1d2(%rbp),%ecx
add    %ecx,%eax
mov    -0x19c(%rbp),%ecx
and    $0x8,%ecx
sar    $0x3,%ecx
add    %ecx,%eax
mov    %al,-0x1d3(%rbp)
movsbl -0x1d3(%rbp),%eax
cmp    $0x0,%eax
jge    1499 <main+0x339>
movsbl -0x1d3(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     14bc <main+0x35c>
movsbl -0x1d3(%rbp),%eax
cmp    $0x0,%eax
jle    14cb <main+0x36b>
movsbl -0x1d3(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     14cb <main+0x36b>
movl   $0x1,-0x1c4(%rbp)
jmp    14d5 <main+0x375>
movl   $0x0,-0x1c4(%rbp)
jmp    14da <main+0x37a>
movl   $0x0,-0x1a0(%rbp)
cmpl   $0x5,-0x1a0(%rbp)
jge    1658 <main+0x4f8>
movsbl -0x1d3(%rbp),%eax
and    $0xf,%eax
movslq -0x1a0(%rbp),%rcx
mov    -0x1c0(%rbp,%rcx,4),%ecx
sar    $0x2,%ecx
cmp    %ecx,%eax
jne    1560 <main+0x400>
mov    -0x1c8(%rbp),%eax
movslq -0x1a0(%rbp),%rcx
mov    -0x1c0(%rbp,%rcx,4),%ecx
and    $0x1,%ecx
cmp    %ecx,%eax
jne    1560 <main+0x400>
cmpl   $0x0,-0x1c4(%rbp)
jl     163f <main+0x4df>
movslq -0x1a0(%rbp),%rax
mov    -0x1c0(%rbp,%rax,4),%eax
and    $0x2,%eax
sar    $0x1,%eax
cmp    -0x1c4(%rbp),%eax
je     163f <main+0x4df>
lea    -0x198(%rbp),%rsi
mov    -0x19c(%rbp),%edx
mov    -0x1a0(%rbp),%ecx
movslq -0x1a0(%rbp),%rax
mov    -0x1c0(%rbp,%rax,4),%r8d
ff
movsbl -0x1d1(%rbp),%r9d
ff
movsbl -0x1d2(%rbp),%r15d
ff
mov    -0x19c(%rbp),%r14d
and    $0x8,%r14d
sar    $0x3,%r14d
movsbl -0x1d3(%rbp),%ebx
movslq -0x1a0(%rbp),%rax
mov    -0x1c0(%rbp,%rax,4),%r11d
ff
sar    $0x2,%r11d
mov    -0x1c8(%rbp),%r10d
movslq -0x1a0(%rbp),%rax
mov    -0x1c0(%rbp,%rax,4),%eax
and    $0x1,%eax
lea    0xa7a(%rip),%rdi
mov    %r15d,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10d,0x20(%rsp)
mov    %eax,0x28(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
cmpl   $0x0,-0x1c4(%rbp)
jl     1631 <main+0x4d1>
mov    -0x1c4(%rbp),%esi
movslq -0x1a0(%rbp),%rax
mov    -0x1c0(%rbp,%rax,4),%edx
and    $0x2,%edx
sar    $0x1,%edx
lea    0xa63(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xa06(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1644 <main+0x4e4>
mov    -0x1a0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a0(%rbp)
jmp    14e4 <main+0x384>
jmp    11f8 <main+0x98>
mov    -0x1d0(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1f8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1b8,%rsp
mov    $0xffffffff,%ebp
cmp    $0x2,%edi
jl     11e2 <main+0x72>
mov    0x8(%rsi),%rsi
lea    0x40(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strcpy@plt>
lea    0xe7d(%rip),%rsi
mov    %rbx,%rdi
call   1090 <fopen@plt>
test   %rax,%rax
je     11e2 <main+0x72>
mov    %rax,%r14
lea    0xe69(%rip),%rsi
lea    0xb0(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   1070 <fscanf@plt>
mov    %r14,%rdi
call   1080 <feof@plt>
test   %eax,%eax
je     11f6 <main+0x86>
mov    %r14,%rdi
call   1050 <fclose@plt>
xor    %ebp,%ebp
mov    %ebp,%eax
add    $0x1b8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r14,0x28(%rsp)
jmp    1216 <main+0xa6>
nopl   (%rax)
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    %r14,%rdi
call   1080 <feof@plt>
test   %eax,%eax
jne    11d8 <main+0x68>
mov    %r14,%rdi
lea    0xe07(%rip),%rsi
lea    0x4(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x14(%rsp),%r8
lea    0x18(%rsp),%r9
xor    %eax,%eax
lea    0x20(%rsp),%rbp
push   %rbp
lea    0x24(%rsp),%rbp
push   %rbp
call   1070 <fscanf@plt>
add    $0x10,%rsp
mov    0x4(%rsp),%eax
mov    %eax,%r15d
shr    $0x4,%r15b
mov    %eax,%ebp
shr    $0x8,%ebp
mov    %ebp,%ebx
and    $0xf,%bl
and    $0x7,%eax
lea    0xd96(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0x8(%rsp),%rdi
lea    0xdd1(%rip),%rsi
call   1040 <strcpy@plt>
movzbl %r15b,%eax
movzbl %bl,%ecx
lea    (%rcx,%rax,1),%edx
mov    0x4(%rsp),%ebp
mov    %ebp,%r13d
shr    $0x3,%r13d
and    $0x1,%r13d
add    %edx,%r13d
shr    $0x4,%r13d
lea    -0x10(%rax),%edx
test   $0x8,%r15b
movzbl %dl,%r15d
cmove  %eax,%r15d
test   $0x8,%cl
sete   %bl
shl    $0x4,%bl
or     %cl,%bl
add    $0xf0,%bl
lea    (%rbx,%r15,1),%eax
shr    $0x3,%bpl
and    $0x1,%bpl
add    %al,%bpl
mov    %ebp,%eax
and    $0x88,%al
movl   $0x1,(%rsp)
mov    $0x1,%r12b
cmp    $0x80,%al
je     1397 <main+0x227>
mov    %ebp,%eax
and    $0x8,%al
shr    $0x3,%al
test   %bpl,%bpl
setg   %cl
and    %al,%cl
movzbl %cl,%eax
mov    %eax,(%rsp)
jmp    1397 <main+0x227>
lea    0x8(%rsp),%rdi
lea    0xd34(%rip),%rsi
call   1040 <strcpy@plt>
mov    0x4(%rsp),%eax
and    $0x8,%eax
movzbl %r15b,%r13d
mov    %r13d,%ebp
shr    %ebp
or     %eax,%ebp
and    $0x1,%r13d
jmp    138d <main+0x21d>
lea    0x8(%rsp),%rdi
lea    0xd0f(%rip),%rsi
call   1040 <strcpy@plt>
movzbl %r15b,%r13d
mov    %r13d,%eax
and    $0x7,%eax
mov    0x4(%rsp),%ecx
shr    $0x3,%ecx
and    $0x1,%ecx
lea    (%rcx,%rax,2),%ebp
shr    $0x3,%r13d
jmp    138d <main+0x21d>
lea    0x8(%rsp),%rdi
lea    0xce5(%rip),%rsi
call   1040 <strcpy@plt>
and    %r15b,%bpl
xor    $0xf,%bpl
jmp    1387 <main+0x217>
lea    0x8(%rsp),%rdi
lea    0xccf(%rip),%rsi
call   1040 <strcpy@plt>
mov    %ebx,%ebp
xor    %r15b,%bpl
mov    $0x1,%r13d
movl   $0xffffffff,(%rsp)
xor    %r12d,%r12d
movsbl %bpl,%eax
mov    %rax,0x30(%rsp)
mov    %eax,%r14d
and    $0xf,%r14d
movsbl %r15b,%r15d
movsbl %bl,%eax
mov    %rax,0x38(%rsp)
mov    0x10(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebx
and    $0x1,%ebx
cmp    %r10d,%r14d
jne    1410 <main+0x2a0>
cmp    %ebx,%r13d
jne    1410 <main+0x2a0>
test   %r12b,%r12b
je     14d0 <main+0x360>
mov    %r8d,%eax
shr    %eax
and    $0x1,%eax
cmp    (%rsp),%eax
jne    1410 <main+0x2a0>
mov    0x14(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebp
and    $0x1,%ebp
cmp    %r10d,%r14d
jne    14f0 <main+0x380>
cmp    %ebp,%r13d
je     1494 <main+0x324>
jmp    14f0 <main+0x380>
xchg   %ax,%ax
mov    0x4(%rsp),%edx
mov    %edx,%ebp
shr    $0x3,%ebp
and    $0x1,%ebp
lea    0xc31(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %ecx,%ecx
mov    %r15d,%r9d
xor    %eax,%eax
push   %rbx
push   %r13
push   %r10
push   0x48(%rsp)
push   %rbp
push   0x60(%rsp)
call   1060 <printf@plt>
add    $0x30,%rsp
test   %r12b,%r12b
je     1465 <main+0x2f5>
mov    0x10(%rsp),%edx
shr    %edx
and    $0x1,%edx
lea    0xc32(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x14(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebp
and    $0x1,%ebp
cmp    %r10d,%r14d
jne    14f0 <main+0x380>
cmp    %ebp,%r13d
jne    14f0 <main+0x380>
test   %r12b,%r12b
je     1552 <main+0x3e2>
mov    %r8d,%eax
shr    %eax
and    $0x1,%eax
cmp    (%rsp),%eax
jne    14f0 <main+0x380>
mov    0x18(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebx
and    $0x1,%ebx
cmp    %r10d,%r14d
jne    15b0 <main+0x440>
cmp    %ebx,%r13d
je     1577 <main+0x407>
jmp    15b0 <main+0x440>
nopw   0x0(%rax,%rax,1)
mov    0x14(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebp
and    $0x1,%ebp
cmp    %r10d,%r14d
jne    14f0 <main+0x380>
cmp    %ebp,%r13d
je     1552 <main+0x3e2>
nopl   0x0(%rax)
mov    0x4(%rsp),%edx
mov    %edx,%ebx
shr    $0x3,%ebx
and    $0x1,%ebx
lea    0xb51(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x1,%ecx
mov    %r15d,%r9d
xor    %eax,%eax
push   %rbp
push   %r13
push   %r10
push   0x48(%rsp)
push   %rbx
push   0x60(%rsp)
call   1060 <printf@plt>
add    $0x30,%rsp
test   %r12b,%r12b
je     1548 <main+0x3d8>
mov    0x14(%rsp),%edx
shr    %edx
and    $0x1,%edx
lea    0xb4f(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x18(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebx
and    $0x1,%ebx
cmp    %r10d,%r14d
jne    15b0 <main+0x440>
cmp    %ebx,%r13d
jne    15b0 <main+0x440>
test   %r12b,%r12b
je     1680 <main+0x510>
mov    %r8d,%eax
shr    %eax
and    $0x1,%eax
cmp    (%rsp),%eax
jne    15b0 <main+0x440>
mov    0x1c(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebp
and    $0x1,%ebp
cmp    %r10d,%r14d
jne    16a0 <main+0x530>
cmp    %ebp,%r13d
je     1637 <main+0x4c7>
jmp    16a0 <main+0x530>
nopl   (%rax)
mov    0x4(%rsp),%edx
mov    %edx,%ebp
shr    $0x3,%ebp
and    $0x1,%ebp
lea    0xa91(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x2,%ecx
mov    %r15d,%r9d
xor    %eax,%eax
push   %rbx
push   %r13
push   %r10
push   0x48(%rsp)
push   %rbp
push   0x60(%rsp)
call   1060 <printf@plt>
add    $0x30,%rsp
test   %r12b,%r12b
je     1608 <main+0x498>
mov    0x18(%rsp),%edx
shr    %edx
and    $0x1,%edx
lea    0xa8f(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x1c(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebp
and    $0x1,%ebp
cmp    %r10d,%r14d
jne    16a0 <main+0x530>
cmp    %ebp,%r13d
jne    16a0 <main+0x530>
test   %r12b,%r12b
je     1702 <main+0x592>
mov    %r8d,%eax
shr    %eax
and    $0x1,%eax
cmp    (%rsp),%eax
jne    16a0 <main+0x530>
mov    0x20(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebx
and    $0x1,%ebx
cmp    %r10d,%r14d
jne    1740 <main+0x5d0>
cmp    %ebx,%r13d
mov    0x28(%rsp),%r14
je     172c <main+0x5bc>
jmp    1745 <main+0x5d5>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x1c(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebp
and    $0x1,%ebp
cmp    %r10d,%r14d
jne    16a0 <main+0x530>
cmp    %ebp,%r13d
je     1702 <main+0x592>
nopl   0x0(%rax)
mov    0x4(%rsp),%edx
mov    %edx,%ebx
shr    $0x3,%ebx
and    $0x1,%ebx
lea    0x9a1(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x3,%ecx
mov    %r15d,%r9d
xor    %eax,%eax
push   %rbp
push   %r13
push   %r10
push   0x48(%rsp)
push   %rbx
push   0x60(%rsp)
call   1060 <printf@plt>
add    $0x30,%rsp
test   %r12b,%r12b
je     16f8 <main+0x588>
mov    0x1c(%rsp),%edx
shr    %edx
and    $0x1,%edx
lea    0x99f(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    0x20(%rsp),%r8d
mov    %r8d,%r10d
sar    $0x2,%r10d
mov    %r8d,%ebx
and    $0x1,%ebx
cmp    %r10d,%r14d
jne    1740 <main+0x5d0>
cmp    %ebx,%r13d
jne    1740 <main+0x5d0>
test   %r12b,%r12b
mov    0x28(%rsp),%r14
je     120a <main+0x9a>
mov    %r8d,%eax
shr    %eax
and    $0x1,%eax
cmp    (%rsp),%eax
je     120a <main+0x9a>
jmp    1745 <main+0x5d5>
nop
mov    0x28(%rsp),%r14
mov    0x4(%rsp),%edx
mov    %edx,%ebp
shr    $0x3,%ebp
and    $0x1,%ebp
lea    0x8fc(%rip),%rdi
lea    0x8(%rsp),%rsi
mov    $0x4,%ecx
mov    %r15d,%r9d
xor    %eax,%eax
push   %rbx
push   %r13
push   %r10
push   0x48(%rsp)
push   %rbp
push   0x60(%rsp)
call   1060 <printf@plt>
add    $0x30,%rsp
test   %r12b,%r12b
je     1200 <main+0x90>
mov    0x20(%rsp),%edx
shr    %edx
and    $0x1,%edx
lea    0x8f6(%rip),%rdi
mov    (%rsp),%esi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1200 <main+0x90>

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

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