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

/* Variables and functions */
int atoi(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fread(int *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcmp(char *, char *);
int main(int argc, char *argv[]) {
  FILE *fp;
  char *filename;
  int program_loc;
  int cnt = 0;
  int bytes = 0;
  if (argc == 1) {
    fprintf(stderr, "%s: no arguments, assuming file a.o65, start 768\n",
            argv[0]);
    filename = "a.o65";
    program_loc = 768;
  } else if (argc == 2) {
    if (!strcmp(argv[1], "-h")) {
      fprintf(stderr, "usage: %s <program name> <decimal start addr>\n",
              argv[0]);
      exit(1);
    }
    fprintf(stderr, "%s: missing start argument, assuming 768\n", argv[0]);
    filename = argv[1];
    program_loc = 768;
  } else if (argc != 3) {
    fprintf(stderr, "usage: %s <program name> <decimal start addr>\n", argv[0]);
    exit(1);
  } else {
    filename = argv[1];
    program_loc = atoi(argv[2]);
  }
  if ((fp = fopen(filename, "r")) == NULL) {
    perror(filename);
    exit(1);
  }
  do {
    u_int8_t data;
    if (cnt == 0)
      fprintf(stderr, "%04X:", program_loc);
    fread(&data, sizeof(u_int8_t), 1, fp);
    bytes++;
    fprintf(stderr, "%02X ", data);
    cnt++;
    if (cnt == 16) {
      fprintf(stderr, "\n");
      cnt = 0;
    }
    program_loc++;
  } while (!feof(fp));
  if (cnt != 16)
    fprintf(stderr, "\n");
  fprintf(stderr, "\n%s: total size: %d bytes (%x bytes)\n", filename, bytes,
          bytes);
  fclose(fp);
  exit(1);
}


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,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x1,-0x8(%rbp)
jne    11f3 <main+0x63>
mov    0x2e1b(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe2b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
lea    0xe4f(%rip),%rax
mov    %rax,-0x20(%rbp)
movl   $0x300,-0x24(%rbp)
jmp    12d0 <main+0x140>
cmpl   $0x2,-0x8(%rbp)
jne    1278 <main+0xe8>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe2c(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1242 <main+0xb2>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe0a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    0x2d97(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe11(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
movl   $0x300,-0x24(%rbp)
jmp    12cb <main+0x13b>
cmpl   $0x3,-0x8(%rbp)
je     12aa <main+0x11a>
mov    0x2d57(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xda2(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10a0 <atoi@plt>
mov    %eax,-0x24(%rbp)
jmp    12cb <main+0x13b>
jmp    12d0 <main+0x140>
mov    -0x20(%rbp),%rdi
lea    0xdb9(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmp    $0x0,%rax
jne    1301 <main+0x171>
mov    -0x20(%rbp),%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
jmp    1306 <main+0x176>
cmpl   $0x0,-0x28(%rbp)
jne    132a <main+0x19a>
mov    0x2cc9(%rip),%rax
mov    (%rax),%edi
mov    -0x24(%rbp),%edx
lea    0xd73(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rcx
lea    -0x30(%rbp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
call   1030 <fread@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    0x2c8f(%rip),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%edx
lea    0xd3f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x10,-0x28(%rbp)
jne    1395 <main+0x205>
mov    0x2c62(%rip),%rax
mov    (%rax),%edi
lea    0xd3f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x28(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x18(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1306 <main+0x176>
cmpl   $0x10,-0x28(%rbp)
je     13d8 <main+0x248>
mov    0x2c18(%rip),%rax
mov    (%rax),%edi
lea    0xcf5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    0x2c01(%rip),%rax
mov    (%rax),%edi
mov    -0x20(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xcaf(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
cmp    $0x3,%edi
je     11e0 <main+0x50>
cmp    $0x2,%edi
je     11ef <main+0x5f>
mov    0x2e2e(%rip),%rax
cmp    $0x1,%edi
jne    133d <main+0x1ad>
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xe39(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x300,%eax
mov    %rax,(%rsp)
lea    0xe54(%rip),%rbp
jmp    122e <main+0x9e>
mov    0x8(%rbx),%rbp
mov    0x10(%rbx),%rdi
call   10a0 <atoi@plt>
jmp    122a <main+0x9a>
mov    0x8(%rbx),%rdi
lea    0xe3e(%rip),%rsi
call   1050 <strcmp@plt>
mov    0x2dda(%rip),%rcx
mov    (%rcx),%edi
mov    (%rbx),%rdx
test   %eax,%eax
je     1342 <main+0x1b2>
lea    0xe50(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x8(%rbx),%rbp
mov    $0x300,%eax
mov    %rax,(%rsp)
lea    0xe5f(%rip),%rsi
mov    %rbp,%rdi
call   1080 <fopen@plt>
test   %rax,%rax
jne    1254 <main+0xc4>
mov    %rbp,%rdi
call   1090 <perror@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    %rax,%r12
mov    %rbp,0x10(%rsp)
mov    0x2d7d(%rip),%r13
lea    0xc(%rsp),%rbp
lea    0xe2d(%rip),%r14
xor    %r15d,%r15d
xor    %ebx,%ebx
jmp    12c0 <main+0x130>
cs nopw 0x0(%rax,%rax,1)
mov    %rbp,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %r12,%rcx
call   1030 <fread@plt>
mov    0x0(%r13),%edi
mov    0xc(%rsp),%edx
mov    %r14,%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
add    $0x1,%r15d
cmp    $0x10,%r15d
je     12e0 <main+0x150>
mov    %r12,%rdi
call   1070 <feof@plt>
add    $0x1,%ebx
test   %eax,%eax
jne    12f7 <main+0x167>
test   %r15d,%r15d
jne    1280 <main+0xf0>
mov    (%rsp),%rax
lea    (%rax,%rbx,1),%edx
mov    0x0(%r13),%edi
lea    0xdbf(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    1280 <main+0xf0>
mov    0x0(%r13),%edi
xor    %r15d,%r15d
lea    0xdd8(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
jmp    12b1 <main+0x121>
cmp    $0x10,%r15d
je     130f <main+0x17f>
mov    0x0(%r13),%edi
lea    0xdbe(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    0x0(%r13),%edi
lea    0xd88(%rip),%rsi
mov    0x10(%rsp),%rdx
mov    %ebx,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r12,%rdi
call   1040 <fclose@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xcf2(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [50 x i8] c"%s: no arguments, assuming file a.o65, start 768\0A\00"
@.str.1 = [6 x i8] c"a.o65\00"
@.str.2 = [3 x i8] c"-h\00"
@.str.3 = [47 x i8] c"usage: %s <program name> <decimal start addr>\0A\00"
@.str.4 = [42 x i8] c"%s: missing start argument, assuming 768\0A\00"
@.str.5 = [2 x i8] c"r\00"
@.str.6 = [6 x i8] c"%04X:\00"
@.str.7 = [6 x i8] c"%02X \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [38 x i8] c"\0A%s: total size: %d bytes (%x bytes)\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i32 0, i32* %10
%12 = load i32, i32* %4
%13 = icmp eq i32 %12, 1
br i1 %13, label %14, label %20
14: ; preds = %2
%15 = load i32, i32* @stderr
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 0
%18 = load i8*, i8** %17
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %15, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %18)
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), i8** %7
store i32 768, i32* %8
br label %65
20: ; preds = %2
%21 = load i32, i32* %4
%22 = icmp eq i32 %21, 2
br i1 %22, label %23, label %45
23: ; preds = %20
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %36, label %29
29: ; preds = %23
%30 = load i32, i32* @stderr
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 0
%33 = load i8*, i8** %32
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i8* %33)
%35 = call i32 @exit(i32 1)
unreachable
36: ; preds = %23
%37 = load i32, i32* @stderr
%38 = load i8**, i8*** %5
%39 = getelementptr inbounds i8*, i8** %38, i64 0
%40 = load i8*, i8** %39
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i8* %40)
%42 = load i8**, i8*** %5
%43 = getelementptr inbounds i8*, i8** %42, i64 1
%44 = load i8*, i8** %43
store i8* %44, i8** %7
store i32 768, i32* %8
br label %64
45: ; preds = %20
%46 = load i32, i32* %4
%47 = icmp ne i32 %46, 3
br i1 %47, label %48, label %55
48: ; preds = %45
%49 = load i32, i32* @stderr
%50 = load i8**, i8*** %5
%51 = getelementptr inbounds i8*, i8** %50, i64 0
%52 = load i8*, i8** %51
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %49, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i8* %52)
%54 = call i32 @exit(i32 1)
unreachable
55: ; preds = %45
%56 = load i8**, i8*** %5
%57 = getelementptr inbounds i8*, i8** %56, i64 1
%58 = load i8*, i8** %57
store i8* %58, i8** %7
%59 = load i8**, i8*** %5
%60 = getelementptr inbounds i8*, i8** %59, i64 2
%61 = load i8*, i8** %60
%62 = call i32 @atoi(i8* %61)
store i32 %62, i32* %8
br label %63
63: ; preds = %55
br label %64
64: ; preds = %63, %36
br label %65
65: ; preds = %64, %14
%66 = load i8*, i8** %7
%67 = call i32* @fopen(i8* %66, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i32* %67, i32** %6
%68 = icmp eq i32* %67, null
br i1 %68, label %69, label %73
69: ; preds = %65
%70 = load i8*, i8** %7
%71 = call i32 @perror(i8* %70)
%72 = call i32 @exit(i32 1)
unreachable
73: ; preds = %65
br label %74
74: ; preds = %99, %73
%75 = load i32, i32* %9
%76 = icmp eq i32 %75, 0
br i1 %76, label %77, label %81
77: ; preds = %74
%78 = load i32, i32* @stderr
%79 = load i32, i32* %8
%80 = call i32 (i32, i8*, ...) @fprintf(i32 %78, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %79)
br label %81
81: ; preds = %77, %74
%82 = load i32*, i32** %6
%83 = call i32 @fread(i32* %11, i32 4, i32 1, i32* %82)
%84 = load i32, i32* %10
%85 = add nsw i32 %84, 1
store i32 %85, i32* %10
%86 = load i32, i32* @stderr
%87 = load i32, i32* %11
%88 = call i32 (i32, i8*, ...) @fprintf(i32 %86, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %87)
%89 = load i32, i32* %9
%90 = add nsw i32 %89, 1
store i32 %90, i32* %9
%91 = load i32, i32* %9
%92 = icmp eq i32 %91, 16
br i1 %92, label %93, label %96
93: ; preds = %81
%94 = load i32, i32* @stderr
%95 = call i32 (i32, i8*, ...) @fprintf(i32 %94, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32 0, i32* %9
br label %96
96: ; preds = %93, %81
%97 = load i32, i32* %8
%98 = add nsw i32 %97, 1
store i32 %98, i32* %8
br label %99
99: ; preds = %96
%100 = load i32*, i32** %6
%101 = call i32 @feof(i32* %100)
%102 = icmp ne i32 %101, 0
%103 = xor i1 %102, true
br i1 %103, label %74, label %104
104: ; preds = %99
%105 = load i32, i32* %9
%106 = icmp ne i32 %105, 16
br i1 %106, label %107, label %110
107: ; preds = %104
%108 = load i32, i32* @stderr
%109 = call i32 (i32, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %110
110: ; preds = %107, %104
%111 = load i32, i32* @stderr
%112 = load i8*, i8** %7
%113 = load i32, i32* %10
%114 = load i32, i32* %10
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %111, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8* %112, i32 %113, i32 %114)
%116 = load i32*, i32** %6
%117 = call i32 @fclose(i32* %116)
%118 = call i32 @exit(i32 1)
unreachable
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [50 x i8] c"%s: no arguments, assuming file a.o65, start 768\0A\00"
@.str.1 = [6 x i8] c"a.o65\00"
@.str.2 = [3 x i8] c"-h\00"
@.str.3 = [47 x i8] c"usage: %s <program name> <decimal start addr>\0A\00"
@.str.4 = [42 x i8] c"%s: missing start argument, assuming 768\0A\00"
@.str.5 = [2 x i8] c"r\00"
@.str.6 = [6 x i8] c"%04X:\00"
@.str.7 = [6 x i8] c"%02X \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [38 x i8] c"\0A%s: total size: %d bytes (%x bytes)\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
switch i32 %0, label %21 [
i32 1, label %4
i32 2, label %8
i32 3, label %26
]
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = load i8*, i8** %1
%7 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i8* %6)
br label %32
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 @strcmp(i8* dereferenceable(1) %10, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
%13 = load i32, i32* @stderr
%14 = load i8*, i8** %1
br i1 %12, label %15, label %18
15: ; preds = %8
%16 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i8* %14)
%17 = tail call i32 @exit(i32 1)
unreachable
18: ; preds = %8
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i8* %14)
%20 = load i8*, i8** %9
br label %32
21: ; preds = %2
%22 = load i32, i32* @stderr
%23 = load i8*, i8** %1
%24 = tail call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), i8* %23)
%25 = tail call i32 @exit(i32 1)
unreachable
26: ; preds = %2
%27 = getelementptr inbounds i8*, i8** %1, i64 1
%28 = load i8*, i8** %27
%29 = getelementptr inbounds i8*, i8** %1, i64 2
%30 = load i8*, i8** %29
%31 = tail call i32 @atoi(i8* %30)
br label %32
32: ; preds = %18, %26, %4
%33 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), %4 ], [ %20, %18 ], [ %28, %26 ]
%34 = phi i32 [ 768, %4 ], [ 768, %18 ], [ %31, %26 ]
%35 = tail call i32* @fopen(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%36 = icmp eq i32* %35, null
br i1 %36, label %39, label %37
37: ; preds = %32
%38 = bitcast i32* %3 to i8*
br label %42
39: ; preds = %32
%40 = tail call i32 @perror(i8* %33)
%41 = tail call i32 @exit(i32 1)
unreachable
42: ; preds = %37, %61
%43 = phi i32 [ %63, %61 ], [ %34, %37 ]
%44 = phi i32 [ %62, %61 ], [ 0, %37 ]
%45 = phi i32 [ %52, %61 ], [ 0, %37 ]
%46 = icmp eq i32 %44, 0
br i1 %46, label %47, label %50
47: ; preds = %42
%48 = load i32, i32* @stderr
%49 = tail call i32 (i32, i8*, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 %43)
br label %50
50: ; preds = %47, %42
%51 = call i32 @fread(i32* %3, i32 4, i32 1, i32* %35)
%52 = add nuw nsw i32 %45, 1
%53 = load i32, i32* @stderr
%54 = load i32, i32* %3
%55 = tail call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i32 %54)
%56 = add nsw i32 %44, 1
%57 = icmp eq i32 %56, 16
br i1 %57, label %58, label %61
58: ; preds = %50
%59 = load i32, i32* @stderr
%60 = tail call i32 (i32, i8*, ...) @fprintf(i32 %59, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %61
61: ; preds = %58, %50
%62 = phi i32 [ 0, %58 ], [ %56, %50 ]
%63 = add nsw i32 %43, 1
%64 = tail call i32 @feof(i32* %35)
%65 = icmp eq i32 %64, 0
br i1 %65, label %42, label %66
66: ; preds = %61
%67 = icmp eq i32 %62, 16
br i1 %67, label %71, label %68
68: ; preds = %66
%69 = load i32, i32* @stderr
%70 = tail call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %71
71: ; preds = %68, %66
%72 = load i32, i32* @stderr
%73 = tail call i32 (i32, i8*, ...) @fprintf(i32 %72, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i8* %33, i32 %52, i32 %52)
%74 = tail call i32 @fclose(i32* %35)
%75 = tail call i32 @exit(i32 1)
unreachable
}