#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 */

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int fread(unsigned char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stdin;
int /*<<< orphan*/ stdout;
int main(int argc, char **argv) {
  int i, j, k, plane;
  unsigned char temp_char[16];
  for (i = 0; i < 0x20; i++) {
    for (j = 0; j < 16; j++) {
      if (fread(&temp_char[j], 1, 1, stdin) < 1)
        return -1;
    }
  }
  for (i = 0x20; i < 0x80; i++) {
    if ((i >= 0x20) && (i < 127))
      printf("; Char : 0x%x %c\n", i, i);
    else
      printf("; Char : 0x%x\n", i);
    for (j = 0; j < 16; j++) {
      if (fread(&temp_char[j], 1, 1, stdin) < 1)
        return -1;
    }
    for (plane = 0; plane < 2; plane++) {
      fprintf(stdout, "; planes %d and %d\n", plane * 2, (plane * 2) + 1);
      for (j = 0; j < 16; j++) {
        if (j < 8) {
          fprintf(stdout, ".byte $%02x,$%02x\t", temp_char[j], temp_char[j]);
          fprintf(stdout, "; ");
          for (k = 0; k < 8; k++) {
            if ((1 << (7 - k)) & temp_char[j]) {
              printf("#");
            } else {
              printf(" ");
            }
          }
          fprintf(stdout, "\n");
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x20,-0x14(%rbp)
jge    11c3 <main+0x93>
movl   $0x0,-0x18(%rbp)
cmpl   $0x10,-0x18(%rbp)
jge    11b0 <main+0x80>
movslq -0x18(%rbp),%rax
lea    -0x30(%rbp),%rdi
add    %rax,%rdi
mov    0x2e6e(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
jge    119d <main+0x6d>
movl   $0xffffffff,-0x4(%rbp)
jmp    13bf <main+0x28f>
jmp    11a2 <main+0x72>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    115e <main+0x2e>
jmp    11b5 <main+0x85>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    114d <main+0x1d>
movl   $0x20,-0x14(%rbp)
cmpl   $0x80,-0x14(%rbp)
jge    13b8 <main+0x288>
cmpl   $0x20,-0x14(%rbp)
jl     1204 <main+0xd4>
cmpl   $0x7f,-0x14(%rbp)
jge    1204 <main+0xd4>
mov    -0x14(%rbp),%esi
mov    -0x14(%rbp),%edx
lea    0xe08(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1215 <main+0xe5>
mov    -0x14(%rbp),%esi
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x10,-0x18(%rbp)
jge    126e <main+0x13e>
movslq -0x18(%rbp),%rax
lea    -0x30(%rbp),%rdi
add    %rax,%rdi
mov    0x2db0(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%edx
mov    %edx,%esi
call   1030 <fread@plt>
cmp    $0x1,%eax
jge    125b <main+0x12b>
movl   $0xffffffff,-0x4(%rbp)
jmp    13bf <main+0x28f>
jmp    1260 <main+0x130>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    121c <main+0xec>
movl   $0x0,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    13a5 <main+0x275>
mov    0x2d52(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%edx
shl    $0x1,%edx
mov    -0x20(%rbp),%ecx
shl    $0x1,%ecx
add    $0x1,%ecx
lea    0xd83(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x18(%rbp)
cmpl   $0x10,-0x18(%rbp)
jge    1392 <main+0x262>
cmpl   $0x8,-0x18(%rbp)
jge    137f <main+0x24f>
mov    0x2d11(%rip),%rax
mov    (%rax),%edi
movslq -0x18(%rbp),%rax
movzbl -0x30(%rbp,%rax,1),%edx
movslq -0x18(%rbp),%rax
movzbl -0x30(%rbp,%rax,1),%ecx
lea    0xd53(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2ce8(%rip),%rax
mov    (%rax),%edi
lea    0xd4f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x8,-0x1c(%rbp)
jge    1368 <main+0x238>
mov    $0x7,%ecx
sub    -0x1c(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
movslq -0x18(%rbp),%rcx
movzbl -0x30(%rbp,%rcx,1),%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     1347 <main+0x217>
lea    0xd10(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1355 <main+0x225>
lea    0xcfb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    135a <main+0x22a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1307 <main+0x1d7>
mov    0x2c69(%rip),%rax
mov    (%rax),%edi
lea    0xc98(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
jmp    1384 <main+0x254>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12ac <main+0x17c>
jmp    1397 <main+0x267>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1275 <main+0x145>
jmp    13aa <main+0x27a>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11ca <main+0x9a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0x1(%rsp),%r15
lea    0x2(%rsp),%r14
lea    0x3(%rsp),%rbx
mov    $0x20,%r12d
mov    0x2e7e(%rip),%r13
mov    %rsp,%rbp
mov    0x0(%r13),%ecx
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x4(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x5(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x6(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x7(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x8(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x9(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xa(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xb(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xc(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xd(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xe(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
add    $0xffffffff,%r12d
jne    116d <main+0x2d>
mov    $0x20,%r12d
mov    0x2c5c(%rip),%rbp
jmp    1396 <main+0x256>
add    $0x1,%r12d
xor    %eax,%eax
cmp    $0x80,%r12d
lea    0x3(%rsp),%rbx
je     1817 <main+0x6d7>
cmp    $0x7f,%r12d
jne    13b1 <main+0x271>
lea    0xc6f(%rip),%rdi
mov    $0x7f,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    13c5 <main+0x285>
lea    0xc48(%rip),%rdi
mov    %r12d,%esi
mov    %r12d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x0(%r13),%ecx
mov    %rsp,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
mov    %r15,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
mov    %r14,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x4(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x5(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x6(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x7(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x8(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0x9(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xa(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xb(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xc(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xd(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xe(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%r13),%ecx
lea    0xf(%rsp),%rdi
mov    $0x1,%esi
mov    $0x1,%edx
call   1040 <fread@plt>
test   %eax,%eax
jle    1812 <main+0x6d2>
mov    0x0(%rbp),%edi
lea    0xa5a(%rip),%rsi
xor    %edx,%edx
mov    $0x1,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %ebx,%ebx
jmp    15ee <main+0x4ae>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    $0x10,%rbx
je     16e2 <main+0x5a2>
cmp    $0x7,%rbx
ja     15e0 <main+0x4a0>
mov    0x0(%rbp),%edi
movzbl (%rsp,%rbx,1),%ecx
lea    0xa33(%rip),%rsi
mov    %ecx,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xa33(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
movzbl (%rsp,%rbx,1),%eax
shr    $0x7,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x40,%al
shr    $0x6,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x20,%al
shr    $0x5,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x10,%al
shr    $0x4,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x8,%al
shr    $0x3,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x4,%al
shr    $0x2,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x2,%al
shr    %al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x1,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
mov    0x0(%rbp),%edi
lea    0x93a(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    15e0 <main+0x4a0>
mov    0x0(%rbp),%edi
lea    0x935(%rip),%rsi
mov    $0x2,%edx
mov    $0x3,%ecx
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %ebx,%ebx
jmp    171e <main+0x5de>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    $0x10,%rbx
je     137e <main+0x23e>
cmp    $0x7,%rbx
ja     1710 <main+0x5d0>
mov    0x0(%rbp),%edi
movzbl (%rsp,%rbx,1),%ecx
lea    0x903(%rip),%rsi
mov    %ecx,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0x903(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
movzbl (%rsp,%rbx,1),%eax
shr    $0x7,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x40,%al
shr    $0x6,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x20,%al
shr    $0x5,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x10,%al
shr    $0x4,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x8,%al
shr    $0x3,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x4,%al
shr    $0x2,%al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x2,%al
shr    %al
movzbl %al,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
movzbl (%rsp,%rbx,1),%eax
and    $0x1,%eax
lea    (%rax,%rax,2),%edi
or     $0x20,%edi
call   1030 <putchar@plt>
mov    0x0(%rbp),%edi
lea    0x80a(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1710 <main+0x5d0>
mov    $0xffffffff,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stdin = global i32 0
@.str = [18 x i8] c"; Char : 0x%x %c\0A\00"
@.str.1 = [15 x i8] c"; Char : 0x%x\0A\00"
@stdout = global i32 0
@.str.2 = [20 x i8] c"; planes %d and %d\0A\00"
@.str.3 = [19 x i8] c".byte $%02x,$%02x\09\00"
@.str.4 = [3 x i8] c"; \00"
@.str.5 = [2 x i8] c"#\00"
@.str.6 = [2 x i8] c" \00"
@.str.7 = [2 x i8] c"\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 i32
%10 = alloca [16 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %6
br label %11
11: ; preds = %31, %2
%12 = load i32, i32* %6
%13 = icmp slt i32 %12, 32
br i1 %13, label %14, label %34
14: ; preds = %11
store i32 0, i32* %7
br label %15
15: ; preds = %27, %14
%16 = load i32, i32* %7
%17 = icmp slt i32 %16, 16
br i1 %17, label %18, label %30
18: ; preds = %15
%19 = load i32, i32* %7
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %20
%22 = load i32, i32* @stdin
%23 = call i32 @fread(i8* %21, i32 1, i32 1, i32 %22)
%24 = icmp slt i32 %23, 1
br i1 %24, label %25, label %26
25: ; preds = %18
store i32 -1, i32* %3
br label %138
26: ; preds = %18
br label %27
27: ; preds = %26
%28 = load i32, i32* %7
%29 = add nsw i32 %28, 1
store i32 %29, i32* %7
br label %15
30: ; preds = %15
br label %31
31: ; preds = %30
%32 = load i32, i32* %6
%33 = add nsw i32 %32, 1
store i32 %33, i32* %6
br label %11
34: ; preds = %11
store i32 32, i32* %6
br label %35
35: ; preds = %134, %34
%36 = load i32, i32* %6
%37 = icmp slt i32 %36, 128
br i1 %37, label %38, label %137
38: ; preds = %35
%39 = load i32, i32* %6
%40 = icmp sge i32 %39, 32
br i1 %40, label %41, label %48
41: ; preds = %38
%42 = load i32, i32* %6
%43 = icmp slt i32 %42, 127
br i1 %43, label %44, label %48
44: ; preds = %41
%45 = load i32, i32* %6
%46 = load i32, i32* %6
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %45, i32 %46)
br label %51
48: ; preds = %41, %38
%49 = load i32, i32* %6
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0), i32 %49)
br label %51
51: ; preds = %48, %44
store i32 0, i32* %7
br label %52
52: ; preds = %64, %51
%53 = load i32, i32* %7
%54 = icmp slt i32 %53, 16
br i1 %54, label %55, label %67
55: ; preds = %52
%56 = load i32, i32* %7
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %57
%59 = load i32, i32* @stdin
%60 = call i32 @fread(i8* %58, i32 1, i32 1, i32 %59)
%61 = icmp slt i32 %60, 1
br i1 %61, label %62, label %63
62: ; preds = %55
store i32 -1, i32* %3
br label %138
63: ; preds = %55
br label %64
64: ; preds = %63
%65 = load i32, i32* %7
%66 = add nsw i32 %65, 1
store i32 %66, i32* %7
br label %52
67: ; preds = %52
store i32 0, i32* %9
br label %68
68: ; preds = %130, %67
%69 = load i32, i32* %9
%70 = icmp slt i32 %69, 2
br i1 %70, label %71, label %133
71: ; preds = %68
%72 = load i32, i32* @stdout
%73 = load i32, i32* %9
%74 = mul nsw i32 %73, 2
%75 = load i32, i32* %9
%76 = mul nsw i32 %75, 2
%77 = add nsw i32 %76, 1
%78 = call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 %74, i32 %77)
store i32 0, i32* %7
br label %79
79: ; preds = %126, %71
%80 = load i32, i32* %7
%81 = icmp slt i32 %80, 16
br i1 %81, label %82, label %129
82: ; preds = %79
%83 = load i32, i32* %7
%84 = icmp slt i32 %83, 8
br i1 %84, label %85, label %125
85: ; preds = %82
%86 = load i32, i32* @stdout
%87 = load i32, i32* %7
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %88
%90 = load i8, i8* %89
%91 = zext i8 %90 to i32
%92 = load i32, i32* %7
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %93
%95 = load i8, i8* %94
%96 = zext i8 %95 to i32
%97 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %91, i32 %96)
%98 = load i32, i32* @stdout
%99 = call i32 (i32, i8*, ...) @fprintf(i32 %98, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %8
br label %100
100: ; preds = %119, %85
%101 = load i32, i32* %8
%102 = icmp slt i32 %101, 8
br i1 %102, label %103, label %122
103: ; preds = %100
%104 = load i32, i32* %8
%105 = sub nsw i32 7, %104
%106 = shl i32 1, %105
%107 = load i32, i32* %7
%108 = sext i32 %107 to i64
%109 = getelementptr inbounds [16 x i8], [16 x i8]* %10, i64 0, i64 %108
%110 = load i8, i8* %109
%111 = zext i8 %110 to i32
%112 = and i32 %106, %111
%113 = icmp ne i32 %112, 0
br i1 %113, label %114, label %116
114: ; preds = %103
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %118
116: ; preds = %103
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %118
118: ; preds = %116, %114
br label %119
119: ; preds = %118
%120 = load i32, i32* %8
%121 = add nsw i32 %120, 1
store i32 %121, i32* %8
br label %100
122: ; preds = %100
%123 = load i32, i32* @stdout
%124 = call i32 (i32, i8*, ...) @fprintf(i32 %123, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %125
125: ; preds = %122, %82
br label %126
126: ; preds = %125
%127 = load i32, i32* %7
%128 = add nsw i32 %127, 1
store i32 %128, i32* %7
br label %79
129: ; preds = %79
br label %130
130: ; preds = %129
%131 = load i32, i32* %9
%132 = add nsw i32 %131, 1
store i32 %132, i32* %9
br label %68
133: ; preds = %68
br label %134
134: ; preds = %133
%135 = load i32, i32* %6
%136 = add nsw i32 %135, 1
store i32 %136, i32* %6
br label %35
137: ; preds = %35
store i32 0, i32* %3
br label %138
138: ; preds = %137, %62, %25
%139 = load i32, i32* %3
ret i32 %139
}

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