#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*/ clean_name(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ write_instr(int /*<<< orphan*/ *, char *, char *);
int main(int argc, char *argv[]) {
  if (argc != 2) {
    fprintf(stderr, "Wrong arguments\n");
    exit(1);
  }
  FILE *infile_ptr, *outfile_ptr;
  infile_ptr = fopen(argv[1], "r");
  clean_name(argv[1]);
  outfile_ptr = fopen(argv[1], "wb");
  if (infile_ptr == NULL) {
    fprintf(stderr, "Can't read input file\n");
    exit(1);
  }
  if (outfile_ptr == NULL) {
    fprintf(stderr, "Can't write output file\n");
    exit(1);
  }
  int c = (int)'a';
  char operand[6];
  char opcode[8];
  int i = 0;
  int is_opcode = 1;
  int is_comment = 0;
  int is_newline = 1;
  while (c != EOF) {
    c = fgetc(infile_ptr);
    switch (c) {
    case ';':
      is_comment = 1;
      break;
    case ' ':
    case '\t':
      if (is_comment == 1 || is_opcode == 0)
        break;
      opcode[i] = '\0';
      i = 0;
      is_opcode = 0;
      break;
    case '\n':
    case '\r':
      if (is_newline == 1) {
        is_comment = 0;
        break;
      }
      if (is_opcode == 1) {
        opcode[i] = '\0';
        strcpy(operand, "0");
      } else {
        operand[i] = '\0';
      }
      write_instr(outfile_ptr, opcode, operand);
      i = 0;
      is_opcode = 1;
      is_comment = 0;
      is_newline = 1;
      break;
    default:
      if (is_comment == 1)
        break;
      if (is_opcode == 1)
        opcode[i] = c;
      else
        operand[i] = c;
      i++;
      is_newline = 0;
    }
  }
  fclose(infile_ptr);
  fclose(outfile_ptr);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11bf <main+0x3f>
mov    0x2e31(%rip),%rax
mov    (%rax),%edi
lea    0xe50(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe43(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1070 <clean_name@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe20(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1226 <main+0xa6>
mov    0x2dca(%rip),%rax
mov    (%rax),%edi
lea    0xdff(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
cmpq   $0x0,-0x20(%rbp)
jne    1250 <main+0xd0>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
lea    0xdec(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
movl   $0x61,-0x24(%rbp)
movl   $0x0,-0x38(%rbp)
movl   $0x1,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x1,-0x44(%rbp)
mov    -0x24(%rbp),%eax
mov    0x2d6b(%rip),%rcx
cmp    (%rcx),%eax
je     13f0 <main+0x270>
mov    -0x18(%rbp),%rdi
call   1050 <fgetc@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x48(%rbp)
sub    $0x9,%eax
je     12f5 <main+0x175>
jmp    12a5 <main+0x125>
mov    -0x48(%rbp),%eax
sub    $0xa,%eax
je     132a <main+0x1aa>
jmp    12b6 <main+0x136>
mov    -0x48(%rbp),%eax
sub    $0xd,%eax
je     132a <main+0x1aa>
jmp    12c7 <main+0x147>
mov    -0x48(%rbp),%eax
sub    $0x20,%eax
je     12f5 <main+0x175>
jmp    12d8 <main+0x158>
mov    -0x48(%rbp),%eax
sub    $0x3b,%eax
jne    13a3 <main+0x223>
jmp    12e9 <main+0x169>
movl   $0x1,-0x40(%rbp)
jmp    13eb <main+0x26b>
cmpl   $0x1,-0x40(%rbp)
je     1309 <main+0x189>
cmpl   $0x0,-0x3c(%rbp)
jne    130e <main+0x18e>
jmp    13eb <main+0x26b>
movslq -0x38(%rbp),%rax
movb   $0x0,-0x32(%rbp,%rax,1)
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
jmp    13eb <main+0x26b>
cmpl   $0x1,-0x44(%rbp)
jne    1340 <main+0x1c0>
movl   $0x0,-0x40(%rbp)
jmp    13eb <main+0x26b>
cmpl   $0x1,-0x3c(%rbp)
jne    1368 <main+0x1e8>
movslq -0x38(%rbp),%rax
movb   $0x0,-0x32(%rbp,%rax,1)
lea    -0x2a(%rbp),%rdi
lea    0xce8(%rip),%rsi
call   1030 <strcpy@plt>
jmp    1371 <main+0x1f1>
movslq -0x38(%rbp),%rax
movb   $0x0,-0x2a(%rbp,%rax,1)
mov    -0x20(%rbp),%rdi
lea    -0x32(%rbp),%rsi
lea    -0x2a(%rbp),%rdx
call   10a0 <write_instr@plt>
movl   $0x0,-0x38(%rbp)
movl   $0x1,-0x3c(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x1,-0x44(%rbp)
jmp    13eb <main+0x26b>
cmpl   $0x1,-0x40(%rbp)
jne    13b2 <main+0x232>
jmp    13eb <main+0x26b>
cmpl   $0x1,-0x3c(%rbp)
jne    13ce <main+0x24e>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movslq -0x38(%rbp),%rax
mov    %cl,-0x32(%rbp,%rax,1)
jmp    13db <main+0x25b>
mov    -0x24(%rbp),%eax
mov    %al,%cl
movslq -0x38(%rbp),%rax
mov    %cl,-0x2a(%rbp,%rax,1)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x44(%rbp)
jmp    1273 <main+0xf3>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
cmp    $0x2,%edi
jne    133d <main+0x1bd>
mov    %rsi,%rbp
mov    0x8(%rsi),%rdi
lea    0xecc(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r13
mov    0x8(%rbp),%rdi
call   1070 <clean_name@plt>
mov    0x8(%rbp),%rdi
lea    0xeb2(%rip),%rsi
call   1080 <fopen@plt>
test   %r13,%r13
je     134f <main+0x1cf>
test   %rax,%rax
je     1361 <main+0x1e1>
mov    %rax,0x18(%rsp)
mov    0x2e04(%rip),%rax
cmpl   $0x61,(%rax)
jne    120c <main+0x8c>
mov    %r13,%rdi
call   1040 <fclose@plt>
mov    0x18(%rsp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r15d,%r15d
movl   $0x1,0xc(%rsp)
lea    0xde2(%rip),%rbx
mov    $0x1,%r14d
xor    %r12d,%r12d
jmp    1241 <main+0xc1>
nopl   0x0(%rax)
mov    $0x1,%r15d
mov    0x2dab(%rip),%rax
cmp    (%rax),%ebp
je     11e9 <main+0x69>
mov    %r13,%rdi
call   1050 <fgetc@plt>
mov    %eax,%ebp
lea    -0x9(%rbp),%eax
cmp    $0x17,%eax
ja     12a0 <main+0x120>
movslq (%rbx,%rax,4),%rax
add    %rbx,%rax
jmp    *%rax
cmp    $0x1,%r15d
je     1236 <main+0xb6>
test   %r14d,%r14d
je     1236 <main+0xb6>
movslq %r12d,%rax
movb   $0x0,0x20(%rsp,%rax,1)
xor    %r12d,%r12d
xor    %r14d,%r14d
jmp    128f <main+0x10f>
nopw   0x0(%rax,%rax,1)
cmpl   $0x1,0xc(%rsp)
jne    12d8 <main+0x158>
movl   $0x1,0xc(%rsp)
xor    %r15d,%r15d
jmp    1236 <main+0xb6>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
cmp    $0x3b,%ebp
je     1230 <main+0xb0>
cmp    $0x1,%r15d
je     1230 <main+0xb0>
cmp    $0x1,%r14d
movslq %r12d,%rax
lea    0x12(%rsp),%rcx
lea    0x20(%rsp),%rdx
cmove  %rdx,%rcx
mov    %bpl,(%rcx,%rax,1)
add    $0x1,%r12d
xor    %r15d,%r15d
movl   $0x0,0xc(%rsp)
jmp    1236 <main+0xb6>
movslq %r12d,%rax
cmp    $0x1,%r14d
jne    1301 <main+0x181>
movb   $0x0,0x20(%rsp,%rax,1)
lea    0x12(%rsp),%rbx
mov    %rbx,%rdi
lea    0xdb1(%rip),%rsi
call   1030 <strcpy@plt>
mov    0x18(%rsp),%rdi
jmp    1310 <main+0x190>
movb   $0x0,0x12(%rsp,%rax,1)
mov    0x18(%rsp),%rdi
lea    0x12(%rsp),%rbx
lea    0x20(%rsp),%rsi
mov    %rbx,%rdx
call   10a0 <write_instr@plt>
mov    $0x1,%r14d
xor    %r12d,%r12d
xor    %r15d,%r15d
movl   $0x1,0xc(%rsp)
lea    0xcc8(%rip),%rbx
jmp    1236 <main+0xb6>
mov    0x2c94(%rip),%rax
mov    (%rax),%edi
lea    0xd13(%rip),%rsi
jmp    1371 <main+0x1f1>
mov    0x2c82(%rip),%rax
mov    (%rax),%edi
lea    0xd17(%rip),%rsi
jmp    1371 <main+0x1f1>
mov    0x2c70(%rip),%rax
mov    (%rax),%edi
lea    0xd1c(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [17 x i8] c"Wrong arguments\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"wb\00"
@.str.3 = [23 x i8] c"Can't read input file\0A\00"
@.str.4 = [25 x i8] c"Can't write output file\0A\00"
@EOF = global i32 0
@.str.5 = [2 x i8] c"0\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 [6 x i8]
%10 = alloca [8 x i8]
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%15 = load i32, i32* %4
%16 = icmp ne i32 %15, 2
br i1 %16, label %17, label %21
17: ; preds = %2
%18 = load i32, i32* @stderr
%19 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @exit(i32 1)
unreachable
21: ; preds = %2
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %25, i32** %6
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
%29 = call i32 @clean_name(i8* %28)
%30 = load i8**, i8*** %5
%31 = getelementptr inbounds i8*, i8** %30, i64 1
%32 = load i8*, i8** %31
%33 = call i32* @fopen(i8* %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
store i32* %33, i32** %7
%34 = load i32*, i32** %6
%35 = icmp eq i32* %34, null
br i1 %35, label %36, label %40
36: ; preds = %21
%37 = load i32, i32* @stderr
%38 = call i32 @fprintf(i32 %37, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%39 = call i32 @exit(i32 1)
unreachable
40: ; preds = %21
%41 = load i32*, i32** %7
%42 = icmp eq i32* %41, null
br i1 %42, label %43, label %47
43: ; preds = %40
%44 = load i32, i32* @stderr
%45 = call i32 @fprintf(i32 %44, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%46 = call i32 @exit(i32 1)
unreachable
47: ; preds = %40
store i32 97, i32* %8
store i32 0, i32* %11
store i32 1, i32* %12
store i32 0, i32* %13
store i32 1, i32* %14
br label %48
48: ; preds = %112, %47
%49 = load i32, i32* %8
%50 = load i32, i32* @EOF
%51 = icmp ne i32 %49, %50
br i1 %51, label %52, label %113
52: ; preds = %48
%53 = load i32*, i32** %6
%54 = call i32 @fgetc(i32* %53)
store i32 %54, i32* %8
%55 = load i32, i32* %8
switch i32 %55, label %90 [
i32 59, label %56
i32 32, label %57
i32 9, label %57
i32 10, label %68
i32 13, label %68
]
56: ; preds = %52
store i32 1, i32* %13
br label %112
57: ; preds = %52, %52
%58 = load i32, i32* %13
%59 = icmp eq i32 %58, 1
br i1 %59, label %63, label %60
60: ; preds = %57
%61 = load i32, i32* %12
%62 = icmp eq i32 %61, 0
br i1 %62, label %63, label %64
63: ; preds = %60, %57
br label %112
64: ; preds = %60
%65 = load i32, i32* %11
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %66
store i8 0, i8* %67
store i32 0, i32* %11
store i32 0, i32* %12
br label %112
68: ; preds = %52, %52
%69 = load i32, i32* %14
%70 = icmp eq i32 %69, 1
br i1 %70, label %71, label %72
71: ; preds = %68
store i32 0, i32* %13
br label %112
72: ; preds = %68
%73 = load i32, i32* %12
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %81
75: ; preds = %72
%76 = load i32, i32* %11
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %77
store i8 0, i8* %78
%79 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%80 = call i32 @strcpy(i8* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %85
81: ; preds = %72
%82 = load i32, i32* %11
%83 = sext i32 %82 to i64
%84 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 %83
store i8 0, i8* %84
br label %85
85: ; preds = %81, %75
%86 = load i32*, i32** %7
%87 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 0
%88 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 0
%89 = call i32 @write_instr(i32* %86, i8* %87, i8* %88)
store i32 0, i32* %11
store i32 1, i32* %12
store i32 0, i32* %13
store i32 1, i32* %14
br label %112
90: ; preds = %52
%91 = load i32, i32* %13
%92 = icmp eq i32 %91, 1
br i1 %92, label %93, label %94
93: ; preds = %90
br label %112
94: ; preds = %90
%95 = load i32, i32* %12
%96 = icmp eq i32 %95, 1
br i1 %96, label %97, label %103
97: ; preds = %94
%98 = load i32, i32* %8
%99 = trunc i32 %98 to i8
%100 = load i32, i32* %11
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds [8 x i8], [8 x i8]* %10, i64 0, i64 %101
store i8 %99, i8* %102
br label %109
103: ; preds = %94
%104 = load i32, i32* %8
%105 = trunc i32 %104 to i8
%106 = load i32, i32* %11
%107 = sext i32 %106 to i64
%108 = getelementptr inbounds [6 x i8], [6 x i8]* %9, i64 0, i64 %107
store i8 %105, i8* %108
br label %109
109: ; preds = %103, %97
%110 = load i32, i32* %11
%111 = add nsw i32 %110, 1
store i32 %111, i32* %11
store i32 0, i32* %14
br label %112
112: ; preds = %109, %93, %85, %71, %64, %63, %56
br label %48
113: ; preds = %48
%114 = load i32*, i32** %6
%115 = call i32 @fclose(i32* %114)
%116 = load i32*, i32** %7
%117 = call i32 @fclose(i32* %116)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [17 x i8] c"Wrong arguments\0A\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [3 x i8] c"wb\00"
@.str.3 = [23 x i8] c"Can't read input file\0A\00"
@.str.4 = [25 x i8] c"Can't write output file\0A\00"
@EOF = global i32 0
@.str.5 = [2 x i8] c"0\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [6 x i8]
%4 = alloca [8 x i8]
%5 = icmp eq i32 %0, 2
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%14 = load i8*, i8** %11
%15 = tail call i32 @clean_name(i8* %14)
%16 = load i8*, i8** %11
%17 = tail call i32* @fopen(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%18 = icmp eq i32* %13, null
br i1 %18, label %19, label %23
19: ; preds = %10
%20 = load i32, i32* @stderr
%21 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.3, i64 0, i64 0))
%22 = tail call i32 @exit(i32 1)
unreachable
23: ; preds = %10
%24 = icmp eq i32* %17, null
br i1 %24, label %25, label %29
25: ; preds = %23
%26 = load i32, i32* @stderr
%27 = tail call i32 @fprintf(i32 %26, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0))
%28 = tail call i32 @exit(i32 1)
unreachable
29: ; preds = %23
%30 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%31 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 0
%32 = load i32, i32* @EOF
%33 = icmp eq i32 %32, 97
br i1 %33, label %76, label %34
34: ; preds = %29, %69
%35 = phi i32 [ %73, %69 ], [ 1, %29 ]
%36 = phi i32 [ %72, %69 ], [ 0, %29 ]
%37 = phi i32 [ %71, %69 ], [ 1, %29 ]
%38 = phi i32 [ %70, %69 ], [ 0, %29 ]
%39 = call i32 @fgetc(i32* %13)
switch i32 %39, label %59 [
i32 59, label %69
i32 32, label %40
i32 9, label %40
i32 10, label %47
i32 13, label %47
]
40: ; preds = %34, %34
%41 = icmp eq i32 %36, 1
%42 = icmp eq i32 %37, 0
%43 = select i1 %41, i1 true, i1 %42
br i1 %43, label %69, label %44
44: ; preds = %40
%45 = sext i32 %38 to i64
%46 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 %45
store i8 0, i8* %46
br label %69
47: ; preds = %34, %34
%48 = icmp eq i32 %35, 1
br i1 %48, label %69, label %49
49: ; preds = %47
%50 = icmp eq i32 %37, 1
%51 = sext i32 %38 to i64
br i1 %50, label %52, label %55
52: ; preds = %49
%53 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 %51
store i8 0, i8* %53
%54 = call i32 @strcpy(i8* %30, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %57
55: ; preds = %49
%56 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 %51
store i8 0, i8* %56
br label %57
57: ; preds = %55, %52
%58 = call i32 @write_instr(i32* %17, i8* %31, i8* %30)
br label %69
59: ; preds = %34
%60 = icmp eq i32 %36, 1
br i1 %60, label %69, label %61
61: ; preds = %59
%62 = icmp eq i32 %37, 1
%63 = trunc i32 %39 to i8
%64 = sext i32 %38 to i64
%65 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 %64
%66 = getelementptr inbounds [8 x i8], [8 x i8]* %4, i64 0, i64 %64
%67 = select i1 %62, i8* %66, i8* %65
store i8 %63, i8* %67
%68 = add nsw i32 %38, 1
br label %69
69: ; preds = %47, %34, %59, %40, %61, %57, %44
%70 = phi i32 [ %38, %59 ], [ %68, %61 ], [ 0, %57 ], [ %38, %40 ], [ 0, %44 ], [ %38, %34 ], [ %38, %47 ]
%71 = phi i32 [ %37, %59 ], [ %37, %61 ], [ 1, %57 ], [ %37, %40 ], [ 0, %44 ], [ %37, %34 ], [ %37, %47 ]
%72 = phi i32 [ 1, %59 ], [ 0, %61 ], [ 0, %57 ], [ %36, %40 ], [ 0, %44 ], [ 1, %34 ], [ 0, %47 ]
%73 = phi i32 [ %35, %59 ], [ 0, %61 ], [ 1, %57 ], [ %35, %40 ], [ %35, %44 ], [ %35, %34 ], [ 1, %47 ]
%74 = load i32, i32* @EOF
%75 = icmp eq i32 %39, %74
br i1 %75, label %76, label %34
76: ; preds = %69, %29
%77 = call i32 @fclose(i32* %13)
%78 = call i32 @fclose(i32* %17)
ret i32 0
}