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

/* Variables and functions */
int EOF;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ memset(char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int main(int argc, char *argv[]) {
  FILE *fp_input = NULL;
  fp_input = fopen("/Users/tmkasun/Documents/uni/Level4_Semester2/CM 4220 - "
                   "Theory of Compilers/labs/c_parser/sample_input.txt",
                   "r");
  if (fp_input == NULL) {
    perror("No input file!\n");
    return 1;
  }
  printf("Input file opened sucsussfully!\n");
  char token[255];
  int token_index = 0;
  int token_type = -1;
  int line_number = 0, column_number = 0;
  int current_character;
  while (1) {
    current_character = fgetc(fp_input);
    ++column_number;
    if (97 <= current_character && current_character <= 122 &&
        (token_type == 0 || token_type == -1)) {
      token[token_index++] = (char)current_character;
      token_type = 0;
    } else if (48 <= current_character && current_character <= 57 &&
               (token_type == 1 || token_type == -1)) {
      token[token_index++] = (char)current_character;
      token_type = 1;
    } else if (current_character == 32 || current_character == 10) {
      current_character == 10 ? ++line_number, column_number = 0 : 1;
      if (token_index != 0) {
        token_type == 0 ? printf("Found a WORD token %s\n", token)
                        : printf("Found a NUMBER token %s\n", token);
        token_index = 0;
        token_type = -1;
        memset(token, 0, sizeof(token));
      }
      continue;
    } else if (current_character == EOF) {
      if (token_index != 0)
        token_type == 0 ? printf("Found a WORD token %s\n", token)
                        : printf("Found a NUMBER token %s\n", token);
      break;
    } else {
      printf("ERROR in line %d column %d : Unknown character `%c` \n",
             line_number + 1, column_number, current_character);
      break;
    }
  }
  fclose(fp_input);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
lea    0xe78(%rip),%rdi
lea    0xedc(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11bb <main+0x5b>
lea    0xec3(%rip),%rdi
call   1080 <perror@plt>
movl   $0x1,-0x4(%rbp)
jmp    1445 <main+0x2e5>
lea    0xebb(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x124(%rbp)
movl   $0xffffffff,-0x128(%rbp)
ff ff ff
movl   $0x0,-0x12c(%rbp)
movl   $0x0,-0x130(%rbp)
mov    -0x18(%rbp),%rdi
call   1060 <fgetc@plt>
mov    %eax,-0x134(%rbp)
mov    -0x130(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x130(%rbp)
mov    $0x61,%eax
cmp    -0x134(%rbp),%eax
jg     1278 <main+0x118>
cmpl   $0x7a,-0x134(%rbp)
jg     1278 <main+0x118>
cmpl   $0x0,-0x128(%rbp)
je     1247 <main+0xe7>
cmpl   $0xffffffff,-0x128(%rbp)
jne    1278 <main+0x118>
mov    -0x134(%rbp),%eax
mov    %al,%cl
mov    -0x124(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x124(%rbp)
cltq
mov    %cl,-0x120(%rbp,%rax,1)
movl   $0x0,-0x128(%rbp)
jmp    1430 <main+0x2d0>
mov    $0x30,%eax
cmp    -0x134(%rbp),%eax
jg     12e1 <main+0x181>
cmpl   $0x39,-0x134(%rbp)
jg     12e1 <main+0x181>
cmpl   $0x1,-0x128(%rbp)
je     12b0 <main+0x150>
cmpl   $0xffffffff,-0x128(%rbp)
jne    12e1 <main+0x181>
mov    -0x134(%rbp),%eax
mov    %al,%cl
mov    -0x124(%rbp),%eax
mov    %eax,%edx
add    $0x1,%edx
mov    %edx,-0x124(%rbp)
cltq
mov    %cl,-0x120(%rbp,%rax,1)
movl   $0x1,-0x128(%rbp)
jmp    142b <main+0x2cb>
cmpl   $0x20,-0x134(%rbp)
je     12fb <main+0x19b>
cmpl   $0xa,-0x134(%rbp)
jne    13a0 <main+0x240>
cmpl   $0xa,-0x134(%rbp)
jne    1326 <main+0x1c6>
mov    -0x12c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x12c(%rbp)
movl   $0x0,-0x130(%rbp)
jmp    132b <main+0x1cb>
jmp    132b <main+0x1cb>
cmpl   $0x0,-0x124(%rbp)
je     139b <main+0x23b>
cmpl   $0x0,-0x128(%rbp)
jne    135f <main+0x1ff>
lea    -0x120(%rbp),%rsi
lea    0xd4b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1374 <main+0x214>
lea    -0x120(%rbp),%rsi
lea    0xd48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x124(%rbp)
movl   $0xffffffff,-0x128(%rbp)
ff ff ff
lea    -0x120(%rbp),%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1050 <memset@plt>
jmp    11f1 <main+0x91>
mov    -0x134(%rbp),%eax
mov    0x2c3b(%rip),%rcx
cmp    (%rcx),%eax
jne    1403 <main+0x2a3>
cmpl   $0x0,-0x124(%rbp)
je     13fe <main+0x29e>
cmpl   $0x0,-0x128(%rbp)
jne    13e9 <main+0x289>
lea    -0x120(%rbp),%rsi
lea    0xcc1(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    13fe <main+0x29e>
lea    -0x120(%rbp),%rsi
lea    0xcbe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1435 <main+0x2d5>
mov    -0x12c(%rbp),%esi
add    $0x1,%esi
mov    -0x130(%rbp),%edx
mov    -0x134(%rbp),%ecx
lea    0xcaf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1435 <main+0x2d5>
jmp    1430 <main+0x2d0>
jmp    11f1 <main+0x91>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
lea    0xe78(%rip),%rdi
lea    0xedc(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     12dd <main+0x16d>
mov    %rax,%rbx
lea    0xf3c(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%r12d
mov    %rsp,%r15
xor    %r14d,%r14d
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
xor    %r13d,%r13d
jmp    11db <main+0x6b>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %al,(%rsp,%r13,1)
add    $0x1,%r13
mov    %ecx,%r12d
mov    %rbx,%rdi
call   1070 <fgetc@plt>
lea    -0x61(%rax),%ecx
cmp    $0x19,%ecx
ja     11f7 <main+0x87>
lea    0x1(%r12),%edx
xor    %ecx,%ecx
cmp    $0x2,%edx
jb     11d0 <main+0x60>
lea    -0x30(%rax),%ecx
cmp    $0x9,%ecx
ja     1210 <main+0xa0>
mov    $0x1,%ecx
cmp    $0xffffffff,%r12d
je     11d0 <main+0x60>
cmp    $0x1,%r12d
je     11d0 <main+0x60>
cmp    $0xa,%eax
je     1230 <main+0xc0>
add    $0x1,%ebp
cmp    $0x20,%eax
jne    1274 <main+0x104>
add    %r13,%rbp
test   %r13d,%r13d
jne    123b <main+0xcb>
jmp    11c0 <main+0x50>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r14d
xor    %ebp,%ebp
test   %r13d,%r13d
je     11c0 <main+0x50>
test   %r12d,%r12d
lea    0xe4f(%rip),%rdi
lea    0xe31(%rip),%rax
cmove  %rax,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
xor    %esi,%esi
mov    $0xff,%edx
call   1060 <memset@plt>
mov    $0xffffffff,%r12d
jmp    11c0 <main+0x50>
mov    0x2d6d(%rip),%rcx
cmp    (%rcx),%eax
jne    1292 <main+0x122>
test   %r13d,%r13d
je     12c1 <main+0x151>
test   %r12d,%r12d
je     12b0 <main+0x140>
lea    0xe04(%rip),%rdi
jmp    12b7 <main+0x147>
add    %r13,%rbp
add    $0x1,%r14d
lea    0xe0d(%rip),%rdi
mov    %r14d,%esi
mov    %ebp,%edx
mov    %eax,%ecx
xor    %eax,%eax
call   1050 <printf@plt>
jmp    12c1 <main+0x151>
lea    0xdc6(%rip),%rdi
mov    %rsp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd89(%rip),%rdi
call   1090 <perror@plt>
mov    $0x1,%eax
jmp    12cb <main+0x15b>

LLVM IR (-O0):
@.str = [107 x i8] c"/Users/tmkasun/Documents/uni/Level4_Semester2/CM 4220 - Theory of Compilers/labs/c_parser/sample_input.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [16 x i8] c"No input file!\0A\00"
@.str.3 = [33 x i8] c"Input file opened sucsussfully!\0A\00"
@.str.4 = [23 x i8] c"Found a WORD token %s\0A\00"
@.str.5 = [25 x i8] c"Found a NUMBER token %s\0A\00"
@EOF = global i32 0
@.str.6 = [54 x i8] c"ERROR in line %d column %d : Unknown character `%c` \0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca [255 x i8]
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32* null, i32** %6
%13 = call i32* @fopen(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %13, i32** %6
%14 = load i32*, i32** %6
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %18
16: ; preds = %2
%17 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %3
br label %123
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %8
store i32 -1, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
br label %20
20: ; preds = %18, %92, %119
%21 = load i32*, i32** %6
%22 = call i32 @fgetc(i32* %21)
store i32 %22, i32* %12
%23 = load i32, i32* %11
%24 = add nsw i32 %23, 1
store i32 %24, i32* %11
%25 = load i32, i32* %12
%26 = icmp sle i32 97, %25
br i1 %26, label %27, label %43
27: ; preds = %20
%28 = load i32, i32* %12
%29 = icmp sle i32 %28, 122
br i1 %29, label %30, label %43
30: ; preds = %27
%31 = load i32, i32* %9
%32 = icmp eq i32 %31, 0
br i1 %32, label %36, label %33
33: ; preds = %30
%34 = load i32, i32* %9
%35 = icmp eq i32 %34, -1
br i1 %35, label %36, label %43
36: ; preds = %33, %30
%37 = load i32, i32* %12
%38 = trunc i32 %37 to i8
%39 = load i32, i32* %8
%40 = add nsw i32 %39, 1
store i32 %40, i32* %8
%41 = sext i32 %39 to i64
%42 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 %41
store i8 %38, i8* %42
store i32 0, i32* %9
br label %119
43: ; preds = %33, %27, %20
%44 = load i32, i32* %12
%45 = icmp sle i32 48, %44
br i1 %45, label %46, label %62
46: ; preds = %43
%47 = load i32, i32* %12
%48 = icmp sle i32 %47, 57
br i1 %48, label %49, label %62
49: ; preds = %46
%50 = load i32, i32* %9
%51 = icmp eq i32 %50, 1
br i1 %51, label %55, label %52
52: ; preds = %49
%53 = load i32, i32* %9
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %62
55: ; preds = %52, %49
%56 = load i32, i32* %12
%57 = trunc i32 %56 to i8
%58 = load i32, i32* %8
%59 = add nsw i32 %58, 1
store i32 %59, i32* %8
%60 = sext i32 %58 to i64
%61 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 %60
store i8 %57, i8* %61
store i32 1, i32* %9
br label %118
62: ; preds = %52, %46, %43
%63 = load i32, i32* %12
%64 = icmp eq i32 %63, 32
br i1 %64, label %68, label %65
65: ; preds = %62
%66 = load i32, i32* %12
%67 = icmp eq i32 %66, 10
br i1 %67, label %68, label %93
68: ; preds = %65, %62
%69 = load i32, i32* %12
%70 = icmp eq i32 %69, 10
br i1 %70, label %71, label %74
71: ; preds = %68
%72 = load i32, i32* %10
%73 = add nsw i32 %72, 1
store i32 %73, i32* %10
store i32 0, i32* %11
br label %75
74: ; preds = %68
br label %75
75: ; preds = %74, %71
%76 = phi i32 [ 0, %71 ], [ 1, %74 ]
%77 = load i32, i32* %8
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %92
79: ; preds = %75
%80 = load i32, i32* %9
%81 = icmp eq i32 %80, 0
br i1 %81, label %82, label %85
82: ; preds = %79
%83 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %83)
br label %88
85: ; preds = %79
%86 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %86)
br label %88
88: ; preds = %85, %82
%89 = phi i32 [ %84, %82 ], [ %87, %85 ]
store i32 0, i32* %8
store i32 -1, i32* %9
%90 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
%91 = call i32 @memset(i8* %90, i32 0, i32 255)
br label %92
92: ; preds = %88, %75
br label %20
93: ; preds = %65
%94 = load i32, i32* %12
%95 = load i32, i32* @EOF
%96 = icmp eq i32 %94, %95
br i1 %96, label %97, label %112
97: ; preds = %93
%98 = load i32, i32* %8
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %111
100: ; preds = %97
%101 = load i32, i32* %9
%102 = icmp eq i32 %101, 0
br i1 %102, label %103, label %106
103: ; preds = %100
%104 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
%105 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %104)
br label %109
106: ; preds = %100
%107 = getelementptr inbounds [255 x i8], [255 x i8]* %7, i64 0, i64 0
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %107)
br label %109
109: ; preds = %106, %103
%110 = phi i32 [ %105, %103 ], [ %108, %106 ]
br label %111
111: ; preds = %109, %97
br label %120
112: ; preds = %93
%113 = load i32, i32* %10
%114 = add nsw i32 %113, 1
%115 = load i32, i32* %11
%116 = load i32, i32* %12
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0), i32 %114, i32 %115, i32 %116)
br label %120
118: ; preds = %55
br label %119
119: ; preds = %118, %36
br label %20
120: ; preds = %112, %111
%121 = load i32*, i32** %6
%122 = call i32 @fclose(i32* %121)
store i32 0, i32* %3
br label %123
123: ; preds = %120, %16
%124 = load i32, i32* %3
ret i32 %124
}

LLVM IR (-O2):
@.str = [107 x i8] c"/Users/tmkasun/Documents/uni/Level4_Semester2/CM 4220 - Theory of Compilers/labs/c_parser/sample_input.txt\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [16 x i8] c"No input file!\0A\00"
@.str.4 = [23 x i8] c"Found a WORD token %s\0A\00"
@.str.5 = [25 x i8] c"Found a NUMBER token %s\0A\00"
@EOF = global i32 0
@.str.6 = [54 x i8] c"ERROR in line %d column %d : Unknown character `%c` \0A\00"
@str = [32 x i8] c"Input file opened sucsussfully!\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca [255 x i8]
%4 = tail call i32* @fopen(i8* getelementptr inbounds ([107 x i8], [107 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%5 = icmp eq i32* %4, null
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %67
8: ; preds = %2
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
%10 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 0
br label %11
11: ; preds = %43, %8
%12 = phi i32 [ -1, %8 ], [ %44, %43 ]
%13 = phi i32 [ 0, %8 ], [ %35, %43 ]
%14 = phi i32 [ 0, %8 ], [ %36, %43 ]
br label %15
15: ; preds = %11, %60
%16 = phi i64 [ 0, %11 ], [ %64, %60 ]
%17 = phi i32 [ %12, %11 ], [ %61, %60 ]
%18 = phi i32 [ %14, %11 ], [ %20, %60 ]
%19 = call i32 @fgetc(i32* %4)
%20 = add nsw i32 %18, 1
%21 = add i32 %19, -97
%22 = icmp ult i32 %21, 26
%23 = add i32 %17, 1
%24 = icmp ult i32 %23, 2
%25 = select i1 %22, i1 %24, i1 false
br i1 %25, label %60, label %26
26: ; preds = %15
%27 = add i32 %19, -48
%28 = icmp ult i32 %27, 10
br i1 %28, label %29, label %30
29: ; preds = %26
switch i32 %17, label %30 [
i32 -1, label %60
i32 1, label %60
]
30: ; preds = %29, %26
%31 = trunc i64 %16 to i32
switch i32 %19, label %45 [
i32 10, label %32
i32 32, label %34
]
32: ; preds = %30
%33 = add nsw i32 %13, 1
br label %34
34: ; preds = %30, %32
%35 = phi i32 [ %33, %32 ], [ %13, %30 ]
%36 = phi i32 [ 0, %32 ], [ %20, %30 ]
%37 = icmp eq i32 %31, 0
br i1 %37, label %43, label %38
38: ; preds = %34
%39 = icmp eq i32 %17, 0
%40 = select i1 %39, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0)
%41 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %40, i8* %10)
%42 = call i32 @memset(i8* %10, i32 0, i32 255)
br label %43
43: ; preds = %38, %34
%44 = phi i32 [ -1, %38 ], [ %17, %34 ]
br label %11
45: ; preds = %30
%46 = load i32, i32* @EOF
%47 = icmp eq i32 %19, %46
br i1 %47, label %48, label %57
48: ; preds = %45
%49 = trunc i64 %16 to i32
%50 = icmp eq i32 %49, 0
br i1 %50, label %65, label %51
51: ; preds = %48
%52 = icmp eq i32 %17, 0
br i1 %52, label %53, label %55
53: ; preds = %51
%54 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i8* %10)
br label %65
55: ; preds = %51
%56 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i8* %10)
br label %65
57: ; preds = %45
%58 = add nsw i32 %13, 1
%59 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @.str.6, i64 0, i64 0), i32 %58, i32 %20, i32 %19)
br label %65
60: ; preds = %29, %29, %15
%61 = phi i32 [ 0, %15 ], [ 1, %29 ], [ 1, %29 ]
%62 = trunc i32 %19 to i8
%63 = getelementptr inbounds [255 x i8], [255 x i8]* %3, i64 0, i64 %16
store i8 %62, i8* %63
%64 = add nuw i64 %16, 1
br label %15
65: ; preds = %48, %55, %53, %57
%66 = call i32 @fclose(i32* %4)
br label %67
67: ; preds = %65, %6
%68 = phi i32 [ 1, %6 ], [ 0, %65 ]
ret i32 %68
}