#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*/ w16;
typedef scalar_t__ off_t;

/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ SEEK_SET;
int atoi(char *);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ lseek(int, scalar_t__, int /*<<< orphan*/);
int open(char *, int /*<<< orphan*/);
int read(int, unsigned short *, int);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ stdout;
scalar_t__ strtol(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int main(int argc, char **argv) {
  int fd;
  int nr = 0;
  char map[16 * 16];
  char *ptr = map;
  char syms[] = {
      ' ', ':', '@', '$', '+', '#', '&', '%',
  };
  unsigned char color;
  off_t pos;
  int n;
  int x;
  int y;
  int i;
  if (argc < 4) {
    fprintf(stderr,
            "Usage: %s\n"
            "    <bin file> <offset> <n>\n",
            argv[0]);
    return 1;
  }
  fd = open(argv[1], O_RDONLY);
  if (fd < 0) {
    fprintf(stderr, "Can not open file %s\n", argv[1]);
    return 1;
  }
  pos = strtol(argv[2], NULL, 0);
  fprintf(stderr, "%s @ %lx\n", argv[1], (unsigned long)pos);
  if (lseek(fd, pos, SEEK_SET) < 0) {
    fprintf(stderr, "Can not seek file %s\n", argv[1]);
    return 1;
  }
  n = atoi(argv[3]);
  fprintf(stderr, "%d map(s)\n", n);
  fprintf(stdout, "maps = {\n");
  while (n--) {
    ptr = map;
    for (i = 0; i < 52; i++) {
      unsigned short w16;
      int nn = 5;
      if (read(fd, &w16, sizeof(w16)) != sizeof(w16)) {
        fprintf(stderr, "Can not read file %s\n", argv[1]);
        return 1;
      }
      w16 <<= 1;
      if (i == 51)
        nn = 1;
      while (nn--) {
        *ptr = (w16 & 0xe000) >> (16 - 3);
        ptr++;
        w16 <<= 3;
      }
    }
    fprintf(stdout, "-- %d\n", nr);
    for (y = 0; y < 16; y++) {
      fprintf(stdout, "\"");
      for (x = 0; x < 16; x++) {
        fprintf(stdout, "%c", syms[map[y * 16 + x]]);
      }
      fprintf(stdout, "\",\n");
    }
    nr++;
  }
  fprintf(stdout, "};\n");
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x160,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
lea    -0x120(%rbp),%rax
mov    %rax,-0x128(%rbp)
mov    0xe5b(%rip),%rax
mov    %rax,-0x130(%rbp)
cmpl   $0x4,-0x8(%rbp)
jge    11e0 <main+0x70>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe3b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1543 <main+0x3d3>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2df9(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    122e <main+0xbe>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe14(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1543 <main+0x3d3>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   1070 <strtol@plt>
mov    %rax,-0x140(%rbp)
mov    0x2d89(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
mov    -0x140(%rbp),%rcx
lea    0xdde(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x14(%rbp),%edi
mov    -0x140(%rbp),%rsi
mov    0x2d51(%rip),%rax
mov    (%rax),%edx
call   1030 <lseek@plt>
cmp    $0x0,%rax
jge    12bb <main+0x14b>
mov    0x2d41(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xda7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1543 <main+0x3d3>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1090 <atoi@plt>
mov    %eax,-0x144(%rbp)
mov    0x2d03(%rip),%rax
mov    (%rax),%edi
mov    -0x144(%rbp),%edx
lea    0xd81(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2cd6(%rip),%rax
mov    (%rax),%edi
lea    0xd75(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x144(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x144(%rbp)
cmp    $0x0,%eax
je     151d <main+0x3ad>
lea    -0x120(%rbp),%rax
mov    %rax,-0x128(%rbp)
movl   $0x0,-0x150(%rbp)
cmpl   $0x34,-0x150(%rbp)
jge    1438 <main+0x2c8>
movl   $0x5,-0x158(%rbp)
mov    -0x14(%rbp),%edi
lea    -0x152(%rbp),%rsi
mov    $0x2,%edx
call   1050 <read@plt>
cltq
cmp    $0x2,%rax
je     1396 <main+0x226>
mov    0x2c66(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xcf7(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1543 <main+0x3d3>
movzwl -0x152(%rbp),%eax
shl    $0x1,%eax
mov    %ax,-0x152(%rbp)
cmpl   $0x33,-0x150(%rbp)
jne    13be <main+0x24e>
movl   $0x1,-0x158(%rbp)
jmp    13c3 <main+0x253>
mov    -0x158(%rbp),%eax
mov    %eax,%ecx
add    $0xffffffff,%ecx
mov    %ecx,-0x158(%rbp)
cmp    $0x0,%eax
je     141f <main+0x2af>
movzwl -0x152(%rbp),%eax
and    $0xe000,%eax
sar    $0xd,%eax
mov    %al,%cl
mov    -0x128(%rbp),%rax
mov    %cl,(%rax)
mov    -0x128(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x128(%rbp)
movzwl -0x152(%rbp),%eax
shl    $0x3,%eax
mov    %ax,-0x152(%rbp)
jmp    13c3 <main+0x253>
jmp    1424 <main+0x2b4>
mov    -0x150(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x150(%rbp)
jmp    1334 <main+0x1c4>
mov    0x2b89(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%edx
lea    0xc45(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x14c(%rbp)
cmpl   $0x10,-0x14c(%rbp)
jge    150f <main+0x39f>
mov    0x2b58(%rip),%rax
mov    (%rax),%edi
lea    0xc1e(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x148(%rbp)
cmpl   $0x10,-0x148(%rbp)
jge    14e4 <main+0x374>
mov    0x2b2a(%rip),%rax
mov    (%rax),%edi
mov    -0x14c(%rbp),%eax
shl    $0x4,%eax
add    -0x148(%rbp),%eax
cltq
movsbq -0x120(%rbp,%rax,1),%rax
ff ff
movsbl -0x130(%rbp,%rax,1),%edx
ff
lea    0xbd0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x148(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x148(%rbp)
jmp    148a <main+0x31a>
mov    0x2add(%rip),%rax
mov    (%rax),%edi
lea    0xba8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x14c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14c(%rbp)
jmp    145c <main+0x2ec>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1302 <main+0x192>
mov    0x2aa4(%rip),%rax
mov    (%rax),%edi
lea    0xb73(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x160,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
jg     11a1 <main+0x31>
mov    0x2e48(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xe6c(%rip),%rsi
jmp    1594 <main+0x424>
mov    0x8(%rbx),%rdi
mov    0x2e3c(%rip),%rax
mov    (%rax),%esi
call   1080 <open@plt>
test   %eax,%eax
js     1555 <main+0x3e5>
mov    %eax,%ebp
mov    0x10(%rbx),%rdi
xor    %esi,%esi
xor    %edx,%edx
call   1070 <strtol@plt>
mov    %rax,%r15
mov    0x2e04(%rip),%r14
mov    (%r14),%edi
mov    0x8(%rbx),%rdx
lea    0xe63(%rip),%rsi
mov    %rax,%rcx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2ddd(%rip),%rax
mov    (%rax),%edx
mov    %ebp,%edi
mov    %r15,%rsi
call   1030 <lseek@plt>
test   %rax,%rax
js     156b <main+0x3fb>
mov    %ebp,0x10(%rsp)
mov    %rbx,0x18(%rsp)
mov    0x18(%rbx),%rdi
call   1090 <atoi@plt>
mov    %eax,%ebp
mov    (%r14),%edi
lea    0xe3f(%rip),%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x2d92(%rip),%r13
mov    0x0(%r13),%edi
lea    0xe2f(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
test   %ebp,%ebp
je     1536 <main+0x3c6>
lea    0x20(%rsp),%rbx
lea    0xda4(%rip),%r14
lea    0xe36(%rip),%r12
lea    0xe32(%rip),%r15
movl   $0x0,0xc(%rsp)
add    $0xffffffff,%ebp
mov    %ebp,0x14(%rsp)
mov    $0x34,%ebp
jmp    12e6 <main+0x176>
movzwl %ax,%eax
shr    $0xd,%eax
mov    %al,0x1(%rbx)
movzwl 0xa(%rsp),%eax
lea    0x0(,%rax,8),%ecx
mov    %cx,0xa(%rsp)
shr    $0xa,%eax
and    $0x7,%eax
mov    %al,0x2(%rbx)
movzwl 0xa(%rsp),%eax
lea    0x0(,%rax,8),%ecx
mov    %cx,0xa(%rsp)
shr    $0xa,%eax
and    $0x7,%eax
mov    %al,0x3(%rbx)
movzwl 0xa(%rsp),%eax
lea    0x0(,%rax,8),%ecx
mov    %cx,0xa(%rsp)
shr    $0xa,%eax
and    $0x7,%eax
mov    %al,0x4(%rbx)
add    $0x5,%rbx
shlw   $0x3,0xa(%rsp)
add    $0xffffffff,%ebp
je     1336 <main+0x1c6>
mov    0x10(%rsp),%edi
lea    0xa(%rsp),%rsi
mov    $0x2,%edx
call   1050 <read@plt>
cmp    $0x2,%eax
jne    157b <main+0x40b>
movzwl 0xa(%rsp),%eax
lea    (%rax,%rax,1),%ecx
mov    %cx,0xa(%rsp)
shr    $0xc,%eax
and    $0x7,%eax
mov    %al,(%rbx)
movzwl 0xa(%rsp),%eax
shl    $0x3,%eax
mov    %ax,0xa(%rsp)
cmp    $0x1,%ebp
jne    1280 <main+0x110>
add    $0x1,%rbx
add    $0xffffffff,%ebp
jne    12e6 <main+0x176>
mov    0x0(%r13),%edi
mov    %r15,%rbx
lea    0xd4c(%rip),%rsi
mov    0xc(%rsp),%edx
xor    %eax,%eax
call   1060 <fprintf@plt>
xor    %r15d,%r15d
lea    0xd3e(%rip),%rbp
nopl   0x0(%rax)
mov    0x0(%r13),%edi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x20(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x21(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x22(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x23(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x24(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x25(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x26(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x27(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x28(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x29(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x2a(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x2b(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x2c(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x2d(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x2e(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
movsbq 0x2f(%rsp,%r15,1),%rax
movsbl (%rax,%r14,1),%edx
mov    %r12,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
mov    %rbx,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x10,%r15
cmp    $0x100,%r15
jne    1360 <main+0x1f0>
addl   $0x1,0xc(%rsp)
mov    0x14(%rsp),%ebp
test   %ebp,%ebp
mov    %rbx,%r15
lea    0x20(%rsp),%rbx
jne    1272 <main+0x102>
mov    0x0(%r13),%edi
lea    0xb5f(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x10(%rsp),%edi
call   1040 <close@plt>
jmp    15a0 <main+0x430>
mov    0x2a7c(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xac6(%rip),%rsi
jmp    1594 <main+0x424>
mov    (%r14),%edi
mov    0x8(%rbx),%rdx
lea    0xad6(%rip),%rsi
jmp    1594 <main+0x424>
mov    0x2a56(%rip),%rax
mov    (%rax),%edi
mov    0x18(%rsp),%rax
mov    0x8(%rax),%rdx
lea    0xae6(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.syms = [8 x i8] c" :@$+#&%"
@stderr = global i32 0
@.str = [39 x i8] c"Usage: %s\0A <bin file> <offset> <n>\0A\00"
@O_RDONLY = global i32 0
@.str.1 = [22 x i8] c"Can not open file %s\0A\00"
@.str.2 = [10 x i8] c"%s @ %lx\0A\00"
@SEEK_SET = global i32 0
@.str.3 = [22 x i8] c"Can not seek file %s\0A\00"
@.str.4 = [11 x i8] c"%d map(s)\0A\00"
@stdout = global i32 0
@.str.5 = [10 x i8] c"maps = {\0A\00"
@.str.6 = [22 x i8] c"Can not read file %s\0A\00"
@.str.7 = [7 x i8] c"-- %d\0A\00"
@.str.8 = [2 x i8] c"\22\00"
@.str.9 = [3 x i8] c"%c\00"
@.str.10 = [4 x i8] c"\22,\0A\00"
@.str.11 = [4 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 [256 x i8]
%9 = alloca i8*
%10 = alloca [8 x i8]
%11 = alloca i8
%12 = alloca i64
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i16
%18 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
%19 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
store i8* %19, i8** %9
%20 = bitcast [8 x i8]* %10 to i8*
%21 = load i32, i32* %4
%22 = icmp slt i32 %21, 4
br i1 %22, label %23, label %29
23: ; preds = %2
%24 = load i32, i32* @stderr
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 0
%27 = load i8*, i8** %26
%28 = call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i8* %27)
store i32 1, i32* %3
br label %169
29: ; preds = %2
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = load i32, i32* @O_RDONLY
%34 = call i32 @open(i8* %32, i32 %33)
store i32 %34, i32* %6
%35 = load i32, i32* %6
%36 = icmp slt i32 %35, 0
br i1 %36, label %37, label %43
37: ; preds = %29
%38 = load i32, i32* @stderr
%39 = load i8**, i8*** %5
%40 = getelementptr inbounds i8*, i8** %39, i64 1
%41 = load i8*, i8** %40
%42 = call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0), i8* %41)
store i32 1, i32* %3
br label %169
43: ; preds = %29
%44 = load i8**, i8*** %5
%45 = getelementptr inbounds i8*, i8** %44, i64 2
%46 = load i8*, i8** %45
%47 = call i64 @strtol(i8* %46, i32* null, i32 0)
store i64 %47, i64* %12
%48 = load i32, i32* @stderr
%49 = load i8**, i8*** %5
%50 = getelementptr inbounds i8*, i8** %49, i64 1
%51 = load i8*, i8** %50
%52 = load i64, i64* %12
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %51, i64 %52)
%54 = load i32, i32* %6
%55 = load i64, i64* %12
%56 = load i32, i32* @SEEK_SET
%57 = call i64 @lseek(i32 %54, i64 %55, i32 %56)
%58 = icmp slt i64 %57, 0
br i1 %58, label %59, label %65
59: ; preds = %43
%60 = load i32, i32* @stderr
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 1
%63 = load i8*, i8** %62
%64 = call i32 (i32, i8*, ...) @fprintf(i32 %60, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %63)
store i32 1, i32* %3
br label %169
65: ; preds = %43
%66 = load i8**, i8*** %5
%67 = getelementptr inbounds i8*, i8** %66, i64 3
%68 = load i8*, i8** %67
%69 = call i32 @atoi(i8* %68)
store i32 %69, i32* %13
%70 = load i32, i32* @stderr
%71 = load i32, i32* %13
%72 = call i32 (i32, i8*, ...) @fprintf(i32 %70, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i32 %71)
%73 = load i32, i32* @stdout
%74 = call i32 (i32, i8*, ...) @fprintf(i32 %73, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %75
75: ; preds = %161, %65
%76 = load i32, i32* %13
%77 = add nsw i32 %76, -1
store i32 %77, i32* %13
%78 = icmp ne i32 %76, 0
br i1 %78, label %79, label %164
79: ; preds = %75
%80 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
store i8* %80, i8** %9
store i32 0, i32* %16
br label %81
81: ; preds = %122, %79
%82 = load i32, i32* %16
%83 = icmp slt i32 %82, 52
br i1 %83, label %84, label %125
84: ; preds = %81
store i32 5, i32* %18
%85 = load i32, i32* %6
%86 = call i32 @read(i32 %85, i16* %17, i32 2)
%87 = sext i32 %86 to i64
%88 = icmp ne i64 %87, 2
br i1 %88, label %89, label %95
89: ; preds = %84
%90 = load i32, i32* @stderr
%91 = load i8**, i8*** %5
%92 = getelementptr inbounds i8*, i8** %91, i64 1
%93 = load i8*, i8** %92
%94 = call i32 (i32, i8*, ...) @fprintf(i32 %90, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i8* %93)
store i32 1, i32* %3
br label %169
95: ; preds = %84
%96 = load i16, i16* %17
%97 = zext i16 %96 to i32
%98 = shl i32 %97, 1
%99 = trunc i32 %98 to i16
store i16 %99, i16* %17
%100 = load i32, i32* %16
%101 = icmp eq i32 %100, 51
br i1 %101, label %102, label %103
102: ; preds = %95
store i32 1, i32* %18
br label %103
103: ; preds = %102, %95
br label %104
104: ; preds = %108, %103
%105 = load i32, i32* %18
%106 = add nsw i32 %105, -1
store i32 %106, i32* %18
%107 = icmp ne i32 %105, 0
br i1 %107, label %108, label %121
108: ; preds = %104
%109 = load i16, i16* %17
%110 = zext i16 %109 to i32
%111 = and i32 %110, 57344
%112 = ashr i32 %111, 13
%113 = trunc i32 %112 to i8
%114 = load i8*, i8** %9
store i8 %113, i8* %114
%115 = load i8*, i8** %9
%116 = getelementptr inbounds i8, i8* %115, i32 1
store i8* %116, i8** %9
%117 = load i16, i16* %17
%118 = zext i16 %117 to i32
%119 = shl i32 %118, 3
%120 = trunc i32 %119 to i16
store i16 %120, i16* %17
br label %104
121: ; preds = %104
br label %122
122: ; preds = %121
%123 = load i32, i32* %16
%124 = add nsw i32 %123, 1
store i32 %124, i32* %16
br label %81
125: ; preds = %81
%126 = load i32, i32* @stdout
%127 = load i32, i32* %7
%128 = call i32 (i32, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %127)
store i32 0, i32* %15
br label %129
129: ; preds = %158, %125
%130 = load i32, i32* %15
%131 = icmp slt i32 %130, 16
br i1 %131, label %132, label %161
132: ; preds = %129
%133 = load i32, i32* @stdout
%134 = call i32 (i32, i8*, ...) @fprintf(i32 %133, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %14
br label %135
135: ; preds = %152, %132
%136 = load i32, i32* %14
%137 = icmp slt i32 %136, 16
br i1 %137, label %138, label %155
138: ; preds = %135
%139 = load i32, i32* @stdout
%140 = load i32, i32* %15
%141 = mul nsw i32 %140, 16
%142 = load i32, i32* %14
%143 = add nsw i32 %141, %142
%144 = sext i32 %143 to i64
%145 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 %144
%146 = load i8, i8* %145
%147 = sext i8 %146 to i64
%148 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %147
%149 = load i8, i8* %148
%150 = sext i8 %149 to i32
%151 = call i32 (i32, i8*, ...) @fprintf(i32 %139, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i32 %150)
br label %152
152: ; preds = %138
%153 = load i32, i32* %14
%154 = add nsw i32 %153, 1
store i32 %154, i32* %14
br label %135
155: ; preds = %135
%156 = load i32, i32* @stdout
%157 = call i32 (i32, i8*, ...) @fprintf(i32 %156, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
br label %158
158: ; preds = %155
%159 = load i32, i32* %15
%160 = add nsw i32 %159, 1
store i32 %160, i32* %15
br label %129
161: ; preds = %129
%162 = load i32, i32* %7
%163 = add nsw i32 %162, 1
store i32 %163, i32* %7
br label %75
164: ; preds = %75
%165 = load i32, i32* @stdout
%166 = call i32 (i32, i8*, ...) @fprintf(i32 %165, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%167 = load i32, i32* %6
%168 = call i32 @close(i32 %167)
store i32 0, i32* %3
br label %169
169: ; preds = %164, %89, %59, %37, %23
%170 = load i32, i32* %3
ret i32 %170
}

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