#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 EOF;
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  FILE *fd;
  int c, j;
  unsigned long addr = 0x100100;
  unsigned char chksum;
  if (argc < 2) {
    fprintf(stderr, "no input file specified\n");
    exit(1);
  }
  if (argc > 2) {
    fprintf(stderr, "too many input files (more than one) specified\n");
    exit(1);
  }
  fd = fopen(argv[1], "r");
  if (fd == NULL) {
    fprintf(stderr, "failed to open input file: %s\n", argv[1]);
    exit(1);
  }
  while (!feof(fd)) {
    j = 0;
    chksum = 0xff;
    printf("%s%.6lx", "S214", addr);
    while (j < 16) {
      c = fgetc(fd);
      if (c == EOF) {
        c = 0;
      }
      printf("%.2x", c);
      chksum -= c;
      j++;
    }
    chksum -= addr & 0xff;
    chksum -= (addr >> 8) & 0xff;
    chksum -= (addr >> 16) & 0xff;
    chksum -= 0x14;
    printf("%.2x\r\n", chksum);
    addr += 16;
  }
  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)
movq   $0x100100,-0x28(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11a9 <main+0x49>
mov    0x2e49(%rip),%rax
mov    (%rax),%edi
lea    0xe68(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
cmpl   $0x2,-0x8(%rbp)
jle    11d4 <main+0x74>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
lea    0xe56(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe66(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1220 <main+0xc0>
mov    0x2dda(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe3c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
jmp    1225 <main+0xc5>
mov    -0x18(%rbp),%rdi
call   1060 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1243 <main+0xe3>
jmp    1335 <main+0x1d5>
movl   $0x0,-0x20(%rbp)
movb   $0xff,-0x29(%rbp)
mov    -0x28(%rbp),%rdx
lea    0xe11(%rip),%rdi
lea    0xe12(%rip),%rsi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x10,-0x20(%rbp)
jge    12c1 <main+0x161>
mov    -0x18(%rbp),%rdi
call   1040 <fgetc@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    0x2d61(%rip),%rcx
cmp    (%rcx),%eax
jne    1296 <main+0x136>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%esi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%ecx
movzbl -0x29(%rbp),%eax
sub    %ecx,%eax
mov    %al,-0x29(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1267 <main+0x107>
mov    -0x28(%rbp),%rcx
and    $0xff,%rcx
movzbl -0x29(%rbp),%eax
sub    %rcx,%rax
mov    %al,-0x29(%rbp)
mov    -0x28(%rbp),%rcx
shr    $0x8,%rcx
and    $0xff,%rcx
movzbl -0x29(%rbp),%eax
sub    %rcx,%rax
mov    %al,-0x29(%rbp)
mov    -0x28(%rbp),%rcx
shr    $0x10,%rcx
and    $0xff,%rcx
movzbl -0x29(%rbp),%eax
sub    %rcx,%rax
mov    %al,-0x29(%rbp)
movzbl -0x29(%rbp),%eax
sub    $0x14,%eax
mov    %al,-0x29(%rbp)
movzbl -0x29(%rbp),%esi
lea    0xd5f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rax
add    $0x10,%rax
mov    %rax,-0x28(%rbp)
jmp    1225 <main+0xc5>
xor    %eax,%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    $0x48,%rsp
cmp    $0x1,%edi
jle    14e3 <main+0x383>
cmp    $0x2,%edi
jne    14f5 <main+0x395>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xebb(%rip),%rsi
call   1070 <fopen@plt>
test   %rax,%rax
je     1516 <main+0x3b6>
mov    %rax,%r14
mov    %rax,%rdi
call   1060 <feof@plt>
test   %eax,%eax
je     11bc <main+0x5c>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x100100,%ebp
mov    $0xffefffeb,%r12d
mov    0x2e1a(%rip),%rbx
jmp    1275 <main+0x115>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
sub    0x40(%rsp),%r15d
sub    0x3c(%rsp),%r15d
sub    0x38(%rsp),%r15d
sub    0x34(%rsp),%r15d
sub    0x30(%rsp),%r15d
sub    0x2c(%rsp),%r15d
sub    0x28(%rsp),%r15d
sub    0x24(%rsp),%r15d
sub    0x20(%rsp),%r15d
sub    0x1c(%rsp),%r15d
sub    0x18(%rsp),%r15d
sub    0x14(%rsp),%r15d
sub    0x10(%rsp),%r15d
sub    %ebp,%r15d
sub    %r13d,%r15d
lea    (%r15,%r12,1),%eax
add    $0x1,%eax
movzbl %al,%esi
lea    0xe37(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x8(%rsp),%rbp
add    $0x10,%rbp
mov    %r14,%rdi
call   1060 <feof@plt>
mov    0x44(%rsp),%r12d
add    $0xfffffff0,%r12d
test   %eax,%eax
mov    0x2d79(%rip),%rbx
jne    11ab <main+0x4b>
lea    0xdee(%rip),%rdi
lea    0xdef(%rip),%rsi
mov    %rbp,0x8(%rsp)
mov    %rbp,%rdx
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%r15d
cmp    (%rbx),%eax
je     12a7 <main+0x147>
mov    %eax,%r15d
lea    0xdc9(%rip),%rbp
mov    %rbp,%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     12ce <main+0x16e>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x40(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     12ef <main+0x18f>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x3c(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     1310 <main+0x1b0>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x38(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     1331 <main+0x1d1>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x34(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     1352 <main+0x1f2>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x30(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     1373 <main+0x213>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x2c(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     1394 <main+0x234>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x28(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     13b5 <main+0x255>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x24(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     13d6 <main+0x276>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x20(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     13f7 <main+0x297>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x1c(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14,%r13
mov    %r14,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     141b <main+0x2bb>
mov    %eax,%esi
mov    %rbp,%rdi
mov    %esi,0x18(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     143c <main+0x2dc>
mov    %eax,%esi
mov    0x8(%rsp),%rax
mov    %eax,%ebp
shr    $0x10,%ebp
lea    0xc2a(%rip),%rdi
mov    %esi,0x14(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     146b <main+0x30b>
mov    %eax,%esi
mov    %r12d,0x44(%rsp)
sub    %ebp,%r12d
mov    0x8(%rsp),%rax
mov    %eax,%ebp
shr    $0x8,%ebp
lea    0xbf3(%rip),%rdi
mov    %esi,0x10(%rsp)
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%esi
cmp    (%rbx),%eax
je     14a2 <main+0x342>
mov    %eax,%esi
sub    %ebp,%r12d
not    %r15d
lea    0xbc8(%rip),%rbx
mov    %rbx,%rdi
mov    %esi,%ebp
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r13,%r14
mov    %r13,%rdi
call   1040 <fgetc@plt>
mov    $0x0,%r13d
mov    0x2b15(%rip),%rcx
cmp    (%rcx),%eax
je     11e0 <main+0x80>
mov    %eax,%r13d
jmp    11e0 <main+0x80>
mov    0x2aee(%rip),%rax
mov    (%rax),%edi
lea    0xb0d(%rip),%rsi
jmp    1505 <main+0x3a5>
mov    0x2adc(%rip),%rax
mov    (%rax),%edi
lea    0xb14(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    0x2abb(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xb21(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [25 x i8] c"no input file specified\0A\00"
@.str.1 = [48 x i8] c"too many input files (more than one) specified\0A\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [31 x i8] c"failed to open input file: %s\0A\00"
@.str.4 = [8 x i8] c"%s%.6lx\00"
@.str.5 = [5 x i8] c"S214\00"
@EOF = global i32 0
@.str.6 = [5 x i8] c"%.2x\00"
@.str.7 = [7 x i8] c"%.2x\0D\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 i64
%10 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i64 1048832, i64* %9
%11 = load i32, i32* %4
%12 = icmp slt i32 %11, 2
br i1 %12, label %13, label %17
13: ; preds = %2
%14 = load i32, i32* @stderr
%15 = call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %2
%18 = load i32, i32* %4
%19 = icmp sgt i32 %18, 2
br i1 %19, label %20, label %24
20: ; preds = %17
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%23 = call i32 @exit(i32 1)
unreachable
24: ; preds = %17
%25 = load i8**, i8*** %5
%26 = getelementptr inbounds i8*, i8** %25, i64 1
%27 = load i8*, i8** %26
%28 = call i32* @fopen(i8* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
store i32* %28, i32** %6
%29 = load i32*, i32** %6
%30 = icmp eq i32* %29, null
br i1 %30, label %31, label %38
31: ; preds = %24
%32 = load i32, i32* @stderr
%33 = load i8**, i8*** %5
%34 = getelementptr inbounds i8*, i8** %33, i64 1
%35 = load i8*, i8** %34
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %35)
%37 = call i32 @exit(i32 1)
unreachable
38: ; preds = %24
br label %39
39: ; preds = %67, %38
%40 = load i32*, i32** %6
%41 = call i32 @feof(i32* %40)
%42 = icmp ne i32 %41, 0
%43 = xor i1 %42, true
br i1 %43, label %44, label %97
44: ; preds = %39
store i32 0, i32* %8
store i8 -1, i8* %10
%45 = load i64, i64* %9
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %45)
br label %47
47: ; preds = %57, %44
%48 = load i32, i32* %8
%49 = icmp slt i32 %48, 16
br i1 %49, label %50, label %67
50: ; preds = %47
%51 = load i32*, i32** %6
%52 = call i32 @fgetc(i32* %51)
store i32 %52, i32* %7
%53 = load i32, i32* %7
%54 = load i32, i32* @EOF
%55 = icmp eq i32 %53, %54
br i1 %55, label %56, label %57
56: ; preds = %50
store i32 0, i32* %7
br label %57
57: ; preds = %56, %50
%58 = load i32, i32* %7
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %58)
%60 = load i32, i32* %7
%61 = load i8, i8* %10
%62 = zext i8 %61 to i32
%63 = sub nsw i32 %62, %60
%64 = trunc i32 %63 to i8
store i8 %64, i8* %10
%65 = load i32, i32* %8
%66 = add nsw i32 %65, 1
store i32 %66, i32* %8
br label %47
67: ; preds = %47
%68 = load i64, i64* %9
%69 = and i64 %68, 255
%70 = load i8, i8* %10
%71 = zext i8 %70 to i64
%72 = sub i64 %71, %69
%73 = trunc i64 %72 to i8
store i8 %73, i8* %10
%74 = load i64, i64* %9
%75 = lshr i64 %74, 8
%76 = and i64 %75, 255
%77 = load i8, i8* %10
%78 = zext i8 %77 to i64
%79 = sub i64 %78, %76
%80 = trunc i64 %79 to i8
store i8 %80, i8* %10
%81 = load i64, i64* %9
%82 = lshr i64 %81, 16
%83 = and i64 %82, 255
%84 = load i8, i8* %10
%85 = zext i8 %84 to i64
%86 = sub i64 %85, %83
%87 = trunc i64 %86 to i8
store i8 %87, i8* %10
%88 = load i8, i8* %10
%89 = zext i8 %88 to i32
%90 = sub nsw i32 %89, 20
%91 = trunc i32 %90 to i8
store i8 %91, i8* %10
%92 = load i8, i8* %10
%93 = zext i8 %92 to i32
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %93)
%95 = load i64, i64* %9
%96 = add i64 %95, 16
store i64 %96, i64* %9
br label %39
97: ; preds = %39
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c"no input file specified\0A\00"
@.str.1 = [48 x i8] c"too many input files (more than one) specified\0A\00"
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [31 x i8] c"failed to open input file: %s\0A\00"
@.str.4 = [8 x i8] c"%s%.6lx\00"
@.str.5 = [5 x i8] c"S214\00"
@EOF = global i32 0
@.str.6 = [5 x i8] c"%.2x\00"
@.str.7 = [7 x i8] c"%.2x\0D\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %8
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 (i32, i8*, ...) @fprintf(i32 %5, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%7 = tail call i32 @exit(i32 1)
unreachable
8: ; preds = %2
%9 = icmp eq i32 %0, 2
br i1 %9, label %14, label %10
10: ; preds = %8
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.1, i64 0, i64 0))
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %8
%15 = getelementptr inbounds i8*, i8** %1, i64 1
%16 = load i8*, i8** %15
%17 = tail call i32* @fopen(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i32* %17, null
br i1 %18, label %22, label %19
19: ; preds = %14
%20 = tail call i32 @feof(i32* %17)
%21 = icmp eq i32 %20, 0
br i1 %21, label %27, label %140
22: ; preds = %14
%23 = load i32, i32* @stderr
%24 = load i8*, i8** %15
%25 = tail call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0), i8* %24)
%26 = tail call i32 @exit(i32 1)
unreachable
27: ; preds = %19, %27
%28 = phi i64 [ %137, %27 ], [ 1048832, %19 ]
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64 %28)
%30 = tail call i32 @fgetc(i32* %17)
%31 = load i32, i32* @EOF
%32 = icmp eq i32 %30, %31
%33 = select i1 %32, i32 0, i32 %30
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %33)
%35 = xor i32 %33, -1
%36 = tail call i32 @fgetc(i32* %17)
%37 = load i32, i32* @EOF
%38 = icmp eq i32 %36, %37
%39 = select i1 %38, i32 0, i32 %36
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %39)
%41 = tail call i32 @fgetc(i32* %17)
%42 = load i32, i32* @EOF
%43 = icmp eq i32 %41, %42
%44 = select i1 %43, i32 0, i32 %41
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %44)
%46 = add i32 %39, %44
%47 = tail call i32 @fgetc(i32* %17)
%48 = load i32, i32* @EOF
%49 = icmp eq i32 %47, %48
%50 = select i1 %49, i32 0, i32 %47
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %50)
%52 = add i32 %46, %50
%53 = tail call i32 @fgetc(i32* %17)
%54 = load i32, i32* @EOF
%55 = icmp eq i32 %53, %54
%56 = select i1 %55, i32 0, i32 %53
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %56)
%58 = add i32 %52, %56
%59 = tail call i32 @fgetc(i32* %17)
%60 = load i32, i32* @EOF
%61 = icmp eq i32 %59, %60
%62 = select i1 %61, i32 0, i32 %59
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %62)
%64 = add i32 %58, %62
%65 = tail call i32 @fgetc(i32* %17)
%66 = load i32, i32* @EOF
%67 = icmp eq i32 %65, %66
%68 = select i1 %67, i32 0, i32 %65
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %68)
%70 = add i32 %64, %68
%71 = tail call i32 @fgetc(i32* %17)
%72 = load i32, i32* @EOF
%73 = icmp eq i32 %71, %72
%74 = select i1 %73, i32 0, i32 %71
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %74)
%76 = add i32 %70, %74
%77 = tail call i32 @fgetc(i32* %17)
%78 = load i32, i32* @EOF
%79 = icmp eq i32 %77, %78
%80 = select i1 %79, i32 0, i32 %77
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %80)
%82 = add i32 %76, %80
%83 = tail call i32 @fgetc(i32* %17)
%84 = load i32, i32* @EOF
%85 = icmp eq i32 %83, %84
%86 = select i1 %85, i32 0, i32 %83
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %86)
%88 = add i32 %82, %86
%89 = tail call i32 @fgetc(i32* %17)
%90 = load i32, i32* @EOF
%91 = icmp eq i32 %89, %90
%92 = select i1 %91, i32 0, i32 %89
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %92)
%94 = add i32 %88, %92
%95 = tail call i32 @fgetc(i32* %17)
%96 = load i32, i32* @EOF
%97 = icmp eq i32 %95, %96
%98 = select i1 %97, i32 0, i32 %95
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %98)
%100 = add i32 %94, %98
%101 = tail call i32 @fgetc(i32* %17)
%102 = load i32, i32* @EOF
%103 = icmp eq i32 %101, %102
%104 = select i1 %103, i32 0, i32 %101
%105 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %104)
%106 = add i32 %100, %104
%107 = tail call i32 @fgetc(i32* %17)
%108 = load i32, i32* @EOF
%109 = icmp eq i32 %107, %108
%110 = select i1 %109, i32 0, i32 %107
%111 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %110)
%112 = add i32 %106, %110
%113 = tail call i32 @fgetc(i32* %17)
%114 = load i32, i32* @EOF
%115 = icmp eq i32 %113, %114
%116 = select i1 %115, i32 0, i32 %113
%117 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %116)
%118 = add i32 %112, %116
%119 = tail call i32 @fgetc(i32* %17)
%120 = load i32, i32* @EOF
%121 = icmp eq i32 %119, %120
%122 = select i1 %121, i32 0, i32 %119
%123 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %122)
%124 = add i32 %118, %122
%125 = sub i32 %35, %124
%126 = trunc i64 %28 to i32
%127 = trunc i64 %28 to i32
%128 = lshr i32 %127, 8
%129 = trunc i64 %28 to i32
%130 = lshr i32 %129, 16
%131 = add i32 %128, %126
%132 = add i32 %131, %130
%133 = sub i32 236, %132
%134 = add i32 %133, %125
%135 = and i32 %134, 255
%136 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %135)
%137 = add i64 %28, 16
%138 = tail call i32 @feof(i32* %17)
%139 = icmp eq i32 %138, 0
br i1 %139, label %27, label %140
140: ; preds = %27, %19
ret i32 0
}