#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*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ exit(int);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
unsigned int ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  FILE *fd;
  int c;
  int i = 0;
  int write_size_word = 0;
  int filename_index = 1;
  unsigned int image_size;
  int current_addr = 0;
  int word_counter = 0;
  int byte_counter = 0;
  if (argc < 2) {
    fprintf(stderr, "\n\tInsufficient options.\n");
    fprintf(stderr, "\tPlease specify a binary file to convert to VMEM\n");
    fprintf(stderr, "\n\tbin2vmem - creates vmem output to stdout from bin\n");
    exit(1);
  }
  fd = fopen(argv[filename_index], "r");
  if (fd == NULL) {
    fprintf(stderr, "failed to open input file: %s\n", argv[1]);
    exit(1);
  }
  fseek(fd, 0, SEEK_END);
  image_size = ftell(fd);
  fseek(fd, 0, SEEK_SET);
  if (write_size_word) {
    fseek(fd, 0, SEEK_END);
    image_size = ftell(fd);
    fseek(fd, 0, SEEK_SET);
    image_size += 3;
    image_size &= 0xfffffffc;
    if (image_size < 8) {
      fprintf(stderr, "Bad binary image. Size too small\n");
      return 1;
    }
    printf("@%8x", current_addr);
    printf("%8x", image_size);
    current_addr += 4 * 4;
  } else {
  }
  i = 0;
  int starting_new_line = 1;
  while ((c = fgetc(fd)) != EOF) {
    if (starting_new_line) {
      printf("@%.8x", current_addr);
      current_addr += 4;
      starting_new_line = 0;
    }
    if (byte_counter == 0)
      printf(" ");
    printf("%.2x", (unsigned int)c);
    byte_counter++;
    if (byte_counter == 4) {
      word_counter++;
      byte_counter = 0;
    }
    if (word_counter == 4) {
      printf("\n");
      word_counter = 0;
      starting_new_line = 1;
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x1,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    1209 <main+0x99>
mov    0x2e0f(%rip),%rax
mov    (%rax),%edi
lea    0xe36(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2df8(%rip),%rax
mov    (%rax),%edi
lea    0xe38(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    0x2de1(%rip),%rax
mov    (%rax),%edi
lea    0xe53(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe64(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1259 <main+0xe9>
mov    0x2d99(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe3a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x18(%rbp),%rdi
mov    0x2d84(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1070 <fseek@plt>
mov    -0x18(%rbp),%rdi
call   1060 <ftell@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2d44(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1070 <fseek@plt>
cmpl   $0x0,-0x24(%rbp)
je     133a <main+0x1ca>
mov    -0x18(%rbp),%rdi
mov    0x2d46(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1070 <fseek@plt>
mov    -0x18(%rbp),%rdi
call   1060 <ftell@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rdi
mov    0x2d06(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1070 <fseek@plt>
mov    -0x2c(%rbp),%eax
add    $0x3,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
and    $0xfffffffc,%eax
mov    %eax,-0x2c(%rbp)
cmpl   $0x8,-0x2c(%rbp)
jae    130a <main+0x19a>
mov    0x2ce2(%rip),%rax
mov    (%rax),%edi
lea    0xdaa(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1411 <main+0x2a1>
mov    -0x30(%rbp),%esi
lea    0xdaf(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x2c(%rbp),%esi
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%eax
add    $0x10,%eax
mov    %eax,-0x30(%rbp)
jmp    133f <main+0x1cf>
jmp    133f <main+0x1cf>
movl   $0x0,-0x20(%rbp)
movl   $0x1,-0x3c(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <fgetc@plt>
mov    %eax,-0x1c(%rbp)
mov    0x2c80(%rip),%rcx
cmp    (%rcx),%eax
je     140a <main+0x29a>
cmpl   $0x0,-0x3c(%rbp)
je     1393 <main+0x223>
mov    -0x30(%rbp),%esi
lea    0xd4c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x30(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x0,-0x38(%rbp)
jne    13ab <main+0x23b>
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x1c(%rbp),%esi
lea    0xd1b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jne    13df <main+0x26f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x4,-0x34(%rbp)
jne    1405 <main+0x295>
lea    0xc27(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x3c(%rbp)
jmp    134d <main+0x1dd>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
cmp    $0x1,%edi
jle    129e <main+0x11e>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
lea    0xede(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     12df <main+0x15f>
mov    %rax,%r12
mov    0x2e2e(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   1080 <fseek@plt>
mov    %r12,%rdi
call   1070 <ftell@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   1080 <fseek@plt>
mov    %r12,%rdi
call   1050 <fgetc@plt>
mov    %eax,%ebx
mov    0x2dee(%rip),%rax
cmp    (%rax),%ebx
jne    1207 <main+0x87>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%r13d
xor    %r15d,%r15d
xor    %r14d,%r14d
xor    %ebp,%ebp
jmp    1235 <main+0xb5>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1050 <fgetc@plt>
mov    %eax,%ebx
mov    0x2daf(%rip),%rax
cmp    (%rax),%ebx
je     11f6 <main+0x76>
test   %r13d,%r13d
je     124d <main+0xcd>
lea    0xe60(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x4,%ebp
test   %r15d,%r15d
jne    125c <main+0xdc>
mov    $0x20,%edi
call   1030 <putchar@plt>
xor    %r13d,%r13d
lea    0xe41(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1040 <printf@plt>
add    $0x1,%r15d
xor    %eax,%eax
cmp    $0x4,%r15d
sete   %al
cmove  %r13d,%r15d
add    %eax,%r14d
cmp    $0x4,%r14d
jne    1220 <main+0xa0>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0x1,%r13d
xor    %r14d,%r14d
jmp    1220 <main+0xa0>
mov    0x2d2b(%rip),%rbx
mov    (%rbx),%edi
lea    0xd52(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd5b(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    (%rbx),%edi
lea    0xd7d(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    0x2cea(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xd8f(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [25 x i8] c"\0A\09Insufficient options.\0A\00"
@.str.1 = [50 x i8] c"\09Please specify a binary file to convert to VMEM\0A\00"
@.str.2 = [53 x i8] c"\0A\09bin2vmem - creates vmem output to stdout from bin\0A\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [31 x i8] c"failed to open input file: %s\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.5 = [34 x i8] c"Bad binary image. Size too small\0A\00"
@.str.6 = [5 x i8] c"@%8x\00"
@.str.7 = [4 x i8] c"%8x\00"
@EOF = global i32 0
@.str.8 = [6 x i8] c"@%.8x\00"
@.str.9 = [2 x i8] c" \00"
@.str.10 = [5 x i8] c"%.2x\00"
@.str.11 = [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 i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
store i32 0, i32* %9
store i32 1, i32* %10
store i32 0, i32* %12
store i32 0, i32* %13
store i32 0, i32* %14
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %26
18: ; preds = %2
%19 = load i32, i32* @stderr
%20 = call i32 (i32, i8*, ...) @fprintf(i32 %19, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%21 = load i32, i32* @stderr
%22 = call i32 (i32, i8*, ...) @fprintf(i32 %21, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%23 = load i32, i32* @stderr
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%25 = call i32 @exit(i32 1)
unreachable
26: ; preds = %2
%27 = load i8**, i8*** %5
%28 = load i32, i32* %10
%29 = sext i32 %28 to i64
%30 = getelementptr inbounds i8*, i8** %27, i64 %29
%31 = load i8*, i8** %30
%32 = call i32* @fopen(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %32, i32** %6
%33 = load i32*, i32** %6
%34 = icmp eq i32* %33, null
br i1 %34, label %35, label %42
35: ; preds = %26
%36 = load i32, i32* @stderr
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8* %39)
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %26
%43 = load i32*, i32** %6
%44 = load i32, i32* @SEEK_END
%45 = call i32 @fseek(i32* %43, i32 0, i32 %44)
%46 = load i32*, i32** %6
%47 = call i32 @ftell(i32* %46)
store i32 %47, i32* %11
%48 = load i32*, i32** %6
%49 = load i32, i32* @SEEK_SET
%50 = call i32 @fseek(i32* %48, i32 0, i32 %49)
%51 = load i32, i32* %9
%52 = icmp ne i32 %51, 0
br i1 %52, label %53, label %78
53: ; preds = %42
%54 = load i32*, i32** %6
%55 = load i32, i32* @SEEK_END
%56 = call i32 @fseek(i32* %54, i32 0, i32 %55)
%57 = load i32*, i32** %6
%58 = call i32 @ftell(i32* %57)
store i32 %58, i32* %11
%59 = load i32*, i32** %6
%60 = load i32, i32* @SEEK_SET
%61 = call i32 @fseek(i32* %59, i32 0, i32 %60)
%62 = load i32, i32* %11
%63 = add i32 %62, 3
store i32 %63, i32* %11
%64 = load i32, i32* %11
%65 = and i32 %64, -4
store i32 %65, i32* %11
%66 = load i32, i32* %11
%67 = icmp ult i32 %66, 8
br i1 %67, label %68, label %71
68: ; preds = %53
%69 = load i32, i32* @stderr
%70 = call i32 (i32, i8*, ...) @fprintf(i32 %69, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0))
store i32 1, i32* %3
br label %115
71: ; preds = %53
%72 = load i32, i32* %12
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 %72)
%74 = load i32, i32* %11
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i32 %74)
%76 = load i32, i32* %12
%77 = add nsw i32 %76, 16
store i32 %77, i32* %12
br label %79
78: ; preds = %42
br label %79
79: ; preds = %78, %71
store i32 0, i32* %8
store i32 1, i32* %15
br label %80
80: ; preds = %113, %79
%81 = load i32*, i32** %6
%82 = call i32 @fgetc(i32* %81)
store i32 %82, i32* %7
%83 = load i32, i32* @EOF
%84 = icmp ne i32 %82, %83
br i1 %84, label %85, label %114
85: ; preds = %80
%86 = load i32, i32* %15
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %93
88: ; preds = %85
%89 = load i32, i32* %12
%90 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %89)
%91 = load i32, i32* %12
%92 = add nsw i32 %91, 4
store i32 %92, i32* %12
store i32 0, i32* %15
br label %93
93: ; preds = %88, %85
%94 = load i32, i32* %14
%95 = icmp eq i32 %94, 0
br i1 %95, label %96, label %98
96: ; preds = %93
%97 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %98
98: ; preds = %96, %93
%99 = load i32, i32* %7
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %99)
%101 = load i32, i32* %14
%102 = add nsw i32 %101, 1
store i32 %102, i32* %14
%103 = load i32, i32* %14
%104 = icmp eq i32 %103, 4
br i1 %104, label %105, label %108
105: ; preds = %98
%106 = load i32, i32* %13
%107 = add nsw i32 %106, 1
store i32 %107, i32* %13
store i32 0, i32* %14
br label %108
108: ; preds = %105, %98
%109 = load i32, i32* %13
%110 = icmp eq i32 %109, 4
br i1 %110, label %111, label %113
111: ; preds = %108
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i32 0, i32* %13
store i32 1, i32* %15
br label %113
113: ; preds = %111, %108
br label %80
114: ; preds = %80
store i32 0, i32* %3
br label %115
115: ; preds = %114, %68
%116 = load i32, i32* %3
ret i32 %116
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [25 x i8] c"\0A\09Insufficient options.\0A\00"
@.str.1 = [50 x i8] c"\09Please specify a binary file to convert to VMEM\0A\00"
@.str.2 = [53 x i8] c"\0A\09bin2vmem - creates vmem output to stdout from bin\0A\00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [31 x i8] c"failed to open input file: %s\0A\00"
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@EOF = global i32 0
@.str.8 = [6 x i8] c"@%.8x\00"
@.str.10 = [5 x i8] c"%.2x\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp slt i32 %0, 2
br i1 %3, label %4, label %12
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 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.1, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %2
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32* @fopen(i8* %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %17, label %22
17: ; preds = %12
%18 = load i32, i32* @stderr
%19 = load i8*, i8** %13
%20 = tail call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.4, i64 0, i64 0), i8* %19)
%21 = tail call i32 @exit(i32 1)
unreachable
22: ; preds = %12
%23 = load i32, i32* @SEEK_END
%24 = tail call i32 @fseek(i32* %15, i32 0, i32 %23)
%25 = tail call i32 @ftell(i32* %15)
%26 = load i32, i32* @SEEK_SET
%27 = tail call i32 @fseek(i32* %15, i32 0, i32 %26)
%28 = tail call i32 @fgetc(i32* %15)
%29 = load i32, i32* @EOF
%30 = icmp eq i32 %28, %29
br i1 %30, label %62, label %31
31: ; preds = %22, %56
%32 = phi i32 [ %59, %56 ], [ %28, %22 ]
%33 = phi i32 [ %58, %56 ], [ 1, %22 ]
%34 = phi i32 [ %52, %56 ], [ 0, %22 ]
%35 = phi i32 [ %57, %56 ], [ 0, %22 ]
%36 = phi i32 [ %42, %56 ], [ 0, %22 ]
%37 = icmp eq i32 %33, 0
br i1 %37, label %41, label %38
38: ; preds = %31
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %36)
%40 = add nsw i32 %36, 4
br label %41
41: ; preds = %38, %31
%42 = phi i32 [ %40, %38 ], [ %36, %31 ]
%43 = icmp eq i32 %34, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = tail call i32 @putchar(i32 32)
br label %46
46: ; preds = %44, %41
%47 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0), i32 %32)
%48 = add nsw i32 %34, 1
%49 = icmp eq i32 %48, 4
%50 = zext i1 %49 to i32
%51 = add nsw i32 %35, %50
%52 = select i1 %49, i32 0, i32 %48
%53 = icmp eq i32 %51, 4
br i1 %53, label %54, label %56
54: ; preds = %46
%55 = tail call i32 @putchar(i32 10)
br label %56
56: ; preds = %54, %46
%57 = phi i32 [ 0, %54 ], [ %51, %46 ]
%58 = phi i32 [ 1, %54 ], [ 0, %46 ]
%59 = tail call i32 @fgetc(i32* %15)
%60 = load i32, i32* @EOF
%61 = icmp eq i32 %59, %60
br i1 %61, label %62, label %31
62: ; preds = %56, %22
ret i32 0
}