#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 /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
char *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ spacesByLevel(int);
int /*<<< orphan*/ *stderr;
char strCmpPrefixAndCopy(char *, char *, char *);
scalar_t__ strncmp(char *, char *, int);
void writeFile(FILE *flIn, char *pOutName, int level) {
  FILE *flOut;
  char *lpszLine;
  char line[1000], outName[1000];
  char flag;
  outName[0] = 0;
  if (pOutName == NULL) {
    flOut = NULL;
    printf("Scanning for flatex archive start...\n");
  } else {
    flOut = fopen(pOutName, "wt");
    if (flOut == NULL) {
      fprintf(stderr, "Unable to open file: %s", pOutName);
      exit(-1);
    }
    spacesByLevel(level);
    printf("[%s]\n", pOutName);
  }
  do {
    lpszLine = fgets(line, 1000, flIn);
    if (lpszLine == NULL)
      break;
    flag = strCmpPrefixAndCopy(line, "% flatex input end: [", outName);
    if (flag) {
      if (flOut == NULL) {
        fprintf(stderr, "Something is wrong!!!!\n");
        exit(-1);
      }
      break;
    }
    flag = strCmpPrefixAndCopy(line, "% flatex input: [", outName);
    if (flag) {
      writeFile(flIn, outName, level + 1);
      if (flOut != NULL)
        fprintf(flOut, "\\input{%s}\n", outName);
    } else {
      flag = strCmpPrefixAndCopy(line, "%*flatex input: [", outName);
      if (flag) {
        writeFile(flIn, outName, level + 1);
      } else {
        if (flOut != NULL) {
          if (strncmp(line, "%FLATEX-REM:", 12) == 0)
            fputs(line + 12, flOut);
          else
            fputs(line, flOut);
        }
      }
    }
  } while (!feof(flIn));
  if (flOut != NULL)
    fclose(flOut);
}


x86 assembly (clang, -O0):
<writeFile>:
push   %rbp
mov    %rsp,%rbp
sub    $0x810,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movb   $0x0,-0x800(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    1203 <writeFile+0x43>
movq   $0x0,-0x20(%rbp)
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1262 <writeFile+0xa2>
mov    -0x10(%rbp),%rdi
lea    0xe18(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    1248 <writeFile+0x88>
mov    0x2db7(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rdx
lea    0xdf2(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0xffffffff,%edi
call   10e0 <exit@plt>
mov    -0x14(%rbp),%edi
call   10c0 <spacesByLevel@plt>
mov    -0x10(%rbp),%rsi
lea    0xde6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1267 <writeFile+0xa7>
lea    -0x410(%rbp),%rdi
mov    -0x8(%rbp),%rdx
mov    $0x3e8,%esi
call   1070 <fgets@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1290 <writeFile+0xd0>
jmp    1426 <writeFile+0x266>
lea    -0x410(%rbp),%rdi
lea    -0x800(%rbp),%rdx
lea    0xda2(%rip),%rsi
call   10b0 <strCmpPrefixAndCopy@plt>
mov    %al,-0x801(%rbp)
cmpb   $0x0,-0x801(%rbp)
je     12ef <writeFile+0x12f>
cmpq   $0x0,-0x20(%rbp)
jne    12ea <writeFile+0x12a>
mov    0x2d11(%rip),%rax
mov    (%rax),%rdi
lea    0xd84(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
mov    $0xffffffff,%edi
call   10e0 <exit@plt>
jmp    1426 <writeFile+0x266>
lea    -0x410(%rbp),%rdi
lea    -0x800(%rbp),%rdx
lea    0xd71(%rip),%rsi
call   10b0 <strCmpPrefixAndCopy@plt>
mov    %al,-0x801(%rbp)
cmpb   $0x0,-0x801(%rbp)
je     135b <writeFile+0x19b>
mov    -0x8(%rbp),%rdi
lea    -0x800(%rbp),%rsi
mov    -0x14(%rbp),%edx
add    $0x1,%edx
call   1080 <writeFile@plt>
cmpq   $0x0,-0x20(%rbp)
je     1356 <writeFile+0x196>
mov    -0x20(%rbp),%rdi
lea    -0x800(%rbp),%rdx
lea    0xd38(%rip),%rsi
mov    $0x0,%al
call   1090 <fprintf@plt>
jmp    1408 <writeFile+0x248>
lea    -0x410(%rbp),%rdi
lea    -0x800(%rbp),%rdx
lea    0xd23(%rip),%rsi
call   10b0 <strCmpPrefixAndCopy@plt>
mov    %al,-0x801(%rbp)
cmpb   $0x0,-0x801(%rbp)
je     13a3 <writeFile+0x1e3>
mov    -0x8(%rbp),%rdi
lea    -0x800(%rbp),%rsi
mov    -0x14(%rbp),%edx
add    $0x1,%edx
call   1080 <writeFile@plt>
jmp    1403 <writeFile+0x243>
cmpq   $0x0,-0x20(%rbp)
je     13fe <writeFile+0x23e>
lea    -0x410(%rbp),%rdi
lea    0xce9(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%rax
jne    13e9 <writeFile+0x229>
lea    -0x410(%rbp),%rdi
add    $0xc,%rdi
mov    -0x20(%rbp),%rsi
call   1060 <fputs@plt>
jmp    13f9 <writeFile+0x239>
lea    -0x410(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1060 <fputs@plt>
jmp    13fe <writeFile+0x23e>
jmp    1403 <writeFile+0x243>
jmp    1408 <writeFile+0x248>
jmp    140d <writeFile+0x24d>
mov    -0x8(%rbp),%rdi
call   10a0 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1267 <writeFile+0xa7>
cmpq   $0x0,-0x20(%rbp)
je     143a <writeFile+0x27a>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x810,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeFile>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x7d8,%rsp
mov    %edx,%r14d
mov    %rdi,%rbx
movb   $0x0,(%rsp)
test   %rsi,%rsi
je     1239 <writeFile+0x59>
mov    %rsi,%rbp
lea    0xdf6(%rip),%rsi
mov    %rbp,%rdi
call   10e0 <fopen@plt>
test   %rax,%rax
je     1360 <writeFile+0x180>
mov    %rax,%r12
mov    %r14d,%edi
call   10d0 <spacesByLevel@plt>
lea    0xdee(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1248 <writeFile+0x68>
lea    0xe4c(%rip),%rdi
call   1040 <puts@plt>
xor    %r12d,%r12d
add    $0x1,%r14d
lea    0x3f0(%rsp),%rbp
lea    0xdc6(%rip),%r13
mov    %rsp,%r15
jmp    1298 <writeFile+0xb8>
mov    %rbp,%rdi
lea    0xe03(%rip),%rsi
mov    %r15,%rdx
call   10c0 <strCmpPrefixAndCopy@plt>
test   %al,%al
je     1302 <writeFile+0x122>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1090 <writeFile@plt>
mov    %rbx,%rdi
call   10b0 <feof@plt>
test   %eax,%eax
jne    133a <writeFile+0x15a>
mov    %rbp,%rdi
mov    $0x3e8,%esi
mov    %rbx,%rdx
call   1080 <fgets@plt>
test   %rax,%rax
je     133a <writeFile+0x15a>
mov    %rbp,%rdi
mov    %r13,%rsi
mov    %r15,%rdx
call   10c0 <strCmpPrefixAndCopy@plt>
test   %al,%al
jne    1341 <writeFile+0x161>
mov    %rbp,%rdi
lea    0xd82(%rip),%rsi
mov    %r15,%rdx
call   10c0 <strCmpPrefixAndCopy@plt>
test   %al,%al
je     1260 <writeFile+0x80>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14d,%edx
call   1090 <writeFile@plt>
test   %r12,%r12
je     1288 <writeFile+0xa8>
mov    %r12,%rdi
lea    0xd6b(%rip),%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
jmp    1288 <writeFile+0xa8>
test   %r12,%r12
je     1288 <writeFile+0xa8>
mov    %rbp,%rdi
lea    0xd6e(%rip),%rsi
mov    $0xc,%edx
call   1030 <strncmp@plt>
test   %rax,%rax
je     1325 <writeFile+0x145>
mov    %rbp,%rdi
jmp    132d <writeFile+0x14d>
lea    0x3fc(%rsp),%rdi
mov    %r12,%rsi
call   1070 <fputs@plt>
jmp    1288 <writeFile+0xa8>
test   %r12,%r12
jne    1346 <writeFile+0x166>
jmp    134e <writeFile+0x16e>
test   %r12,%r12
je     1385 <writeFile+0x1a5>
mov    %r12,%rdi
call   1050 <fclose@plt>
add    $0x7d8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c79(%rip),%rax
mov    (%rax),%rdi
lea    0xc92(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10a0 <fprintf@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>
mov    0x2c54(%rip),%rax
mov    (%rax),%rcx
lea    0xca1(%rip),%rdi
mov    $0x17,%esi
mov    $0x1,%edx
call   1100 <fwrite@plt>
mov    $0xffffffff,%edi
call   10f0 <exit@plt>

LLVM IR (-O0):
@.str = [38 x i8] c"Scanning for flatex archive start...\0A\00"
@.str.1 = [3 x i8] c"wt\00"
@stderr = global i32* null
@.str.2 = [24 x i8] c"Unable to open file: %s\00"
@.str.3 = [6 x i8] c"[%s]\0A\00"
@.str.4 = [22 x i8] c"% flatex input end: [\00"
@.str.5 = [24 x i8] c"Something is wrong!!!!\0A\00"
@.str.6 = [18 x i8] c"% flatex input: [\00"
@.str.7 = [12 x i8] c"\\input{%s}\0A\00"
@.str.8 = [18 x i8] c"%*flatex input: [\00"
@.str.9 = [13 x i8] c"%FLATEX-REM:\00"
define void @writeFile(i32* %0, i8* %1, i32 %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i32
%7 = alloca i32*
%8 = alloca i8*
%9 = alloca [1000 x i8]
%10 = alloca [1000 x i8]
%11 = alloca i8
store i32* %0, i32** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%12 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
store i8 0, i8* %12
%13 = load i8*, i8** %5
%14 = icmp eq i8* %13, null
br i1 %14, label %15, label %17
15: ; preds = %3
store i32* null, i32** %7
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %32
17: ; preds = %3
%18 = load i8*, i8** %5
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %19, i32** %7
%20 = load i32*, i32** %7
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %27
22: ; preds = %17
%23 = load i32*, i32** @stderr
%24 = load i8*, i8** %5
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %24)
%26 = call i32 @exit(i32 -1)
unreachable
27: ; preds = %17
%28 = load i32, i32* %6
%29 = call i32 @spacesByLevel(i32 %28)
%30 = load i8*, i8** %5
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %30)
br label %32
32: ; preds = %27, %15
br label %33
33: ; preds = %103, %32
%34 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%35 = load i32*, i32** %4
%36 = call i8* @fgets(i8* %34, i32 1000, i32* %35)
store i8* %36, i8** %8
%37 = load i8*, i8** %8
%38 = icmp eq i8* %37, null
br i1 %38, label %39, label %40
39: ; preds = %33
br label %108
40: ; preds = %33
%41 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%42 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%43 = call signext i8 @strCmpPrefixAndCopy(i8* %41, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %42)
store i8 %43, i8* %11
%44 = load i8, i8* %11
%45 = icmp ne i8 %44, 0
br i1 %45, label %46, label %54
46: ; preds = %40
%47 = load i32*, i32** %7
%48 = icmp eq i32* %47, null
br i1 %48, label %49, label %53
49: ; preds = %46
%50 = load i32*, i32** @stderr
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%52 = call i32 @exit(i32 -1)
unreachable
53: ; preds = %46
br label %108
54: ; preds = %40
%55 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%56 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%57 = call signext i8 @strCmpPrefixAndCopy(i8* %55, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %56)
store i8 %57, i8* %11
%58 = load i8, i8* %11
%59 = icmp ne i8 %58, 0
br i1 %59, label %60, label %72
60: ; preds = %54
%61 = load i32*, i32** %4
%62 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%63 = load i32, i32* %6
%64 = add nsw i32 %63, 1
%65 = load i32*, i32** %7
%66 = icmp ne i32* %65, null
br i1 %66, label %67, label %71
67: ; preds = %60
%68 = load i32*, i32** %7
%69 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %69)
br label %71
71: ; preds = %67, %60
br label %102
72: ; preds = %54
%73 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%74 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%75 = call signext i8 @strCmpPrefixAndCopy(i8* %73, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* %74)
store i8 %75, i8* %11
%76 = load i8, i8* %11
%77 = icmp ne i8 %76, 0
br i1 %77, label %78, label %83
78: ; preds = %72
%79 = load i32*, i32** %4
%80 = getelementptr inbounds [1000 x i8], [1000 x i8]* %10, i64 0, i64 0
%81 = load i32, i32* %6
%82 = add nsw i32 %81, 1
br label %101
83: ; preds = %72
%84 = load i32*, i32** %7
%85 = icmp ne i32* %84, null
br i1 %85, label %86, label %100
86: ; preds = %83
%87 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%88 = call i64 @strncmp(i8* %87, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%89 = icmp eq i64 %88, 0
br i1 %89, label %90, label %95
90: ; preds = %86
%91 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%92 = getelementptr inbounds i8, i8* %91, i64 12
%93 = load i32*, i32** %7
%94 = call i32 @fputs(i8* %92, i32* %93)
br label %99
95: ; preds = %86
%96 = getelementptr inbounds [1000 x i8], [1000 x i8]* %9, i64 0, i64 0
%97 = load i32*, i32** %7
%98 = call i32 @fputs(i8* %96, i32* %97)
br label %99
99: ; preds = %95, %90
br label %100
100: ; preds = %99, %83
br label %101
101: ; preds = %100, %78
br label %102
102: ; preds = %101, %71
br label %103
103: ; preds = %102
%104 = load i32*, i32** %4
%105 = call i32 @feof(i32* %104)
%106 = icmp ne i32 %105, 0
%107 = xor i1 %106, true
br i1 %107, label %33, label %108
108: ; preds = %103, %53, %39
%109 = load i32*, i32** %7
%110 = icmp ne i32* %109, null
br i1 %110, label %111, label %114
111: ; preds = %108
%112 = load i32*, i32** %7
%113 = call i32 @fclose(i32* %112)
br label %114
114: ; preds = %111, %108
ret void
}

LLVM IR (-O2):
@.str.1 = [3 x i8] c"wt\00"
@stderr = global i32* null
@.str.2 = [24 x i8] c"Unable to open file: %s\00"
@.str.3 = [6 x i8] c"[%s]\0A\00"
@.str.4 = [22 x i8] c"% flatex input end: [\00"
@.str.5 = [24 x i8] c"Something is wrong!!!!\0A\00"
@.str.6 = [18 x i8] c"% flatex input: [\00"
@.str.7 = [12 x i8] c"\\input{%s}\0A\00"
@.str.8 = [18 x i8] c"%*flatex input: [\00"
@.str.9 = [13 x i8] c"%FLATEX-REM:\00"
@str = [37 x i8] c"Scanning for flatex archive start...\00"
define void @writeFile(i32* %0, i8* %1, i32 %2) {
%4 = alloca [1000 x i8]
%5 = alloca [1000 x i8]
%6 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 0
%7 = getelementptr inbounds [1000 x i8], [1000 x i8]* %5, i64 0, i64 0
store i8 0, i8* %7
%8 = icmp eq i8* %1, null
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str, i64 0, i64 0))
br label %21
11: ; preds = %3
%12 = tail call i32* @fopen(i8* %1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%13 = icmp eq i32* %12, null
br i1 %13, label %14, label %18
14: ; preds = %11
%15 = load i32*, i32** @stderr
%16 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %15, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%17 = tail call i32 @exit(i32 -1)
unreachable
18: ; preds = %11
%19 = tail call i32 @spacesByLevel(i32 %2)
%20 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %1)
br label %21
21: ; preds = %18, %9
%22 = phi i32* [ null, %9 ], [ %12, %18 ]
%23 = add nsw i32 %2, 1
%24 = icmp eq i32* %22, null
%25 = getelementptr inbounds [1000 x i8], [1000 x i8]* %4, i64 0, i64 12
br label %26
26: ; preds = %55, %21
%27 = call i8* @fgets(i8* %6, i32 1000, i32* %0)
%28 = icmp eq i8* %27, null
br i1 %28, label %58, label %29
29: ; preds = %26
%30 = call signext i8 @strCmpPrefixAndCopy(i8* %6, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i8* %7)
%31 = icmp eq i8 %30, 0
br i1 %31, label %37, label %32
32: ; preds = %29
br i1 %24, label %33, label %59
33: ; preds = %32
%34 = load i32*, i32** @stderr
%35 = call i64 @fwrite(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i64 23, i64 1, i32* %34)
%36 = call i32 @exit(i32 -1)
unreachable
37: ; preds = %29
%38 = call signext i8 @strCmpPrefixAndCopy(i8* %6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i8* %7)
%39 = icmp eq i8 %38, 0
br i1 %39, label %43, label %40
40: ; preds = %37
br i1 %24, label %55, label %41
41: ; preds = %40
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %22, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i8* %7)
br label %55
43: ; preds = %37
%44 = call signext i8 @strCmpPrefixAndCopy(i8* %6, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* %7)
%45 = icmp eq i8 %44, 0
br i1 %45, label %47, label %46
46: ; preds = %43
br label %55
47: ; preds = %43
br i1 %24, label %55, label %48
48: ; preds = %47
%49 = call i64 @strncmp(i8* %6, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i32 12)
%50 = icmp eq i64 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 @fputs(i8* %25, i32* %22)
br label %55
53: ; preds = %48
%54 = call i32 @fputs(i8* %6, i32* %22)
br label %55
55: ; preds = %41, %40, %47, %53, %51, %46
%56 = call i32 @feof(i32* %0)
%57 = icmp eq i32 %56, 0
br i1 %57, label %26, label %58
58: ; preds = %26, %55
br i1 %24, label %61, label %59
59: ; preds = %32, %58
%60 = call i32 @fclose(i32* %22)
br label %61
61: ; preds = %59, %58
ret void
}