#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 O_CREAT;
int O_RDONLY;
int O_TRUNC;
int O_WRONLY;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ errno;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fdopen(int, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, ...);
int open(char *, int, ...);
int parse_buffer(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ *stdout;
char *strerror(int /*<<< orphan*/);
int main(int argc, char *argv[]) {
  int fdin, fdout;
  FILE *in, *out = stdout;
  int rc, o_lf = 0;
  if (argc > 3 || argc < 2) {
    fprintf(stderr, "usage: %s <input> [output]\n", argv[0]);
    return 0;
  }
  fdin = open(argv[1], O_RDONLY | o_lf);
  if (fdin == -1) {
    fprintf(stderr, "open(%s) failed: %s\n", argv[1], strerror(errno));
    return 1;
  }
  in = fdopen(fdin, "r");
  if (in == NULL) {
    fprintf(stderr, "fopen(%s) failed: %s\n", argv[1], strerror(errno));
    close(fdin);
    return 1;
  }
  if (argc > 2) {
    fdout = open(argv[2], O_CREAT | O_TRUNC | O_WRONLY | o_lf, 0600);
    if (fdout == -1) {
      fprintf(stderr, "open(%s) failed: %s\n", argv[2], strerror(errno));
      fclose(in);
      return 1;
    }
    out = fdopen(fdout, "w");
    if (out == NULL) {
      fprintf(stderr, "fopen(%s) failed: %s\n", argv[2], strerror(errno));
      fclose(in);
      close(fdout);
      return 1;
    }
  }
  rc = parse_buffer(in, out);
  fclose(in);
  if (out != stdout)
    fclose(out);
  return rc;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    0x2e2b(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0x28(%rbp)
movl   $0x0,-0x30(%rbp)
cmpl   $0x3,-0x8(%rbp)
jg     11af <main+0x3f>
cmpl   $0x2,-0x8(%rbp)
jge    11d9 <main+0x69>
mov    0x2e12(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe3a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1411 <main+0x2a1>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2df0(%rip),%rax
mov    (%rax),%esi
or     -0x30(%rbp),%esi
mov    $0x0,%al
call   1080 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0xffffffff,-0x14(%rbp)
jne    124b <main+0xdb>
mov    0x2dc0(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x38(%rbp)
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x3c(%rbp),%edi
mov    -0x38(%rbp),%rdx
mov    %rax,%rcx
lea    0xde7(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1411 <main+0x2a1>
mov    -0x14(%rbp),%edi
lea    0xdc7(%rip),%rsi
call   1070 <fdopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    12bb <main+0x14b>
mov    0x2d58(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x48(%rbp)
mov    0x2d38(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x4c(%rbp),%edi
mov    -0x48(%rbp),%rdx
mov    %rax,%rcx
lea    0xd7e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
movl   $0x1,-0x4(%rbp)
jmp    1411 <main+0x2a1>
cmpl   $0x2,-0x8(%rbp)
jle    13d5 <main+0x265>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2d24(%rip),%rax
mov    (%rax),%esi
mov    0x2d13(%rip),%rax
or     (%rax),%esi
mov    0x2cc2(%rip),%rax
or     (%rax),%esi
or     -0x30(%rbp),%esi
mov    $0x180,%edx
mov    $0x0,%al
call   1080 <open@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    1357 <main+0x1e7>
mov    0x2cbd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x58(%rbp)
mov    0x2c9d(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x5c(%rbp),%edi
mov    -0x58(%rbp),%rdx
mov    %rax,%rcx
lea    0xce4(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x1,-0x4(%rbp)
jmp    1411 <main+0x2a1>
mov    -0x18(%rbp),%edi
lea    0xcd3(%rip),%rsi
call   1070 <fdopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    13d0 <main+0x260>
mov    0x2c4c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x6c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rax
mov    %rax,-0x68(%rbp)
mov    0x2c2c(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
mov    -0x6c(%rbp),%edi
mov    -0x68(%rbp),%rdx
mov    %rax,%rcx
lea    0xc72(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
movl   $0x1,-0x4(%rbp)
jmp    1411 <main+0x2a1>
jmp    13d5 <main+0x265>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1060 <parse_buffer@plt>
mov    %eax,-0x2c(%rbp)
mov    -0x20(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%rax
mov    0x2bbf(%rip),%rcx
cmp    (%rcx),%rax
je     140b <main+0x29b>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%r12
mov    %edi,%ebx
lea    -0x4(%rbx),%eax
cmp    $0xfffffffd,%eax
ja     11aa <main+0x3a>
mov    0x2e39(%rip),%rax
mov    (%rax),%edi
mov    (%r12),%rdx
lea    0xe64(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    131f <main+0x1af>
mov    0x2e07(%rip),%r13
mov    0x0(%r13),%r15
mov    0x8(%r12),%rdi
mov    0x2e17(%rip),%rax
mov    (%rax),%esi
xor    %eax,%eax
call   1080 <open@plt>
cmp    $0xffffffff,%eax
je     1271 <main+0x101>
mov    %eax,%ebp
lea    0xe40(%rip),%rsi
mov    %eax,%edi
call   1070 <fdopen@plt>
test   %rax,%rax
je     12a5 <main+0x135>
mov    %rax,%r14
cmp    $0x3,%ebx
jb     1245 <main+0xd5>
mov    0x2dfd(%rip),%rax
mov    0x2dee(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x10(%r12),%rdi
mov    0x2d96(%rip),%rax
or     (%rax),%esi
mov    $0x180,%edx
xor    %eax,%eax
call   1080 <open@plt>
cmp    $0xffffffff,%eax
je     12e0 <main+0x170>
mov    %eax,%ebp
lea    0xe02(%rip),%rsi
mov    %eax,%edi
call   1070 <fdopen@plt>
mov    %rax,%r15
test   %rax,%rax
je     1330 <main+0x1c0>
mov    %r14,%rdi
mov    %r15,%rsi
call   1060 <parse_buffer@plt>
mov    %eax,%ebx
mov    %r14,%rdi
call   1030 <fclose@plt>
cmp    0x0(%r13),%r15
je     131f <main+0x1af>
mov    %r15,%rdi
call   1030 <fclose@plt>
jmp    131f <main+0x1af>
mov    0x2d50(%rip),%rax
mov    (%rax),%ebx
mov    0x8(%r12),%rbp
mov    0x2d3a(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xd8b(%rip),%rsi
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    131a <main+0x1aa>
mov    0x2d1c(%rip),%rax
mov    (%rax),%ebx
mov    0x8(%r12),%r14
mov    0x2d06(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xd56(%rip),%rsi
mov    %ebx,%edi
mov    %r14,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %ebp,%edi
call   1040 <close@plt>
jmp    131a <main+0x1aa>
mov    0x2ce1(%rip),%rax
mov    (%rax),%ebx
mov    0x10(%r12),%rbp
mov    0x2ccb(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xd1c(%rip),%rsi
mov    %ebx,%edi
mov    %rbp,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c91(%rip),%rax
mov    (%rax),%ebx
mov    0x10(%r12),%r15
mov    0x2c7b(%rip),%rax
mov    (%rax),%edi
call   1090 <strerror@plt>
lea    0xccb(%rip),%rsi
mov    %ebx,%edi
mov    %r15,%rdx
mov    %rax,%rcx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
jmp    12d7 <main+0x167>

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

LLVM IR (-O2):
@stdout = global i32* null
@stderr = global i32 0
@.str = [28 x i8] c"usage: %s <input> [output]\0A\00"
@O_RDONLY = global i32 0
@.str.1 = [21 x i8] c"open(%s) failed: %s\0A\00"
@errno = global i32 0
@.str.2 = [2 x i8] c"r\00"
@.str.3 = [22 x i8] c"fopen(%s) failed: %s\0A\00"
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@O_WRONLY = global i32 0
@.str.4 = [2 x i8] c"w\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = load i32*, i32** @stdout
%4 = add i32 %0, -4
%5 = icmp ult i32 %4, -2
br i1 %5, label %6, label %10
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = load i8*, i8** %1
%9 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0), i8* %8)
br label %70
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = load i32, i32* @O_RDONLY
%14 = tail call i32 (i8*, i32, ...) @open(i8* %12, i32 %13)
%15 = icmp eq i32 %14, -1
br i1 %15, label %16, label %22
16: ; preds = %10
%17 = load i32, i32* @stderr
%18 = load i8*, i8** %11
%19 = load i32, i32* @errno
%20 = tail call i8* @strerror(i32 %19)
%21 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %17, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %18, i8* %20)
br label %70
22: ; preds = %10
%23 = tail call i32* @fdopen(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%24 = icmp eq i32* %23, null
br i1 %24, label %25, label %32
25: ; preds = %22
%26 = load i32, i32* @stderr
%27 = load i8*, i8** %11
%28 = load i32, i32* @errno
%29 = tail call i8* @strerror(i32 %28)
%30 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %26, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %27, i8* %29)
%31 = tail call i32 @close(i32 %14)
br label %70
32: ; preds = %22
%33 = icmp ugt i32 %0, 2
br i1 %33, label %34, label %62
34: ; preds = %32
%35 = getelementptr inbounds i8*, i8** %1, i64 2
%36 = load i8*, i8** %35
%37 = load i32, i32* @O_CREAT
%38 = load i32, i32* @O_TRUNC
%39 = or i32 %38, %37
%40 = load i32, i32* @O_WRONLY
%41 = or i32 %39, %40
%42 = tail call i32 (i8*, i32, ...) @open(i8* %36, i32 %41, i32 384)
%43 = icmp eq i32 %42, -1
br i1 %43, label %44, label %51
44: ; preds = %34
%45 = load i32, i32* @stderr
%46 = load i8*, i8** %35
%47 = load i32, i32* @errno
%48 = tail call i8* @strerror(i32 %47)
%49 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %45, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0), i8* %46, i8* %48)
%50 = tail call i32 @fclose(i32* %23)
br label %70
51: ; preds = %34
%52 = tail call i32* @fdopen(i32 %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%53 = icmp eq i32* %52, null
br i1 %53, label %54, label %62
54: ; preds = %51
%55 = load i32, i32* @stderr
%56 = load i8*, i8** %35
%57 = load i32, i32* @errno
%58 = tail call i8* @strerror(i32 %57)
%59 = tail call i32 (i32, i8*, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i8* %56, i8* %58)
%60 = tail call i32 @fclose(i32* %23)
%61 = tail call i32 @close(i32 %42)
br label %70
62: ; preds = %51, %32
%63 = phi i32* [ %52, %51 ], [ %3, %32 ]
%64 = tail call i32 @parse_buffer(i32* %23, i32* %63)
%65 = tail call i32 @fclose(i32* %23)
%66 = load i32*, i32** @stdout
%67 = icmp eq i32* %63, %66
br i1 %67, label %70, label %68
68: ; preds = %62
%69 = tail call i32 @fclose(i32* %63)
br label %70
70: ; preds = %62, %68, %54, %44, %25, %16, %6
%71 = phi i32 [ 0, %6 ], [ 1, %16 ], [ 1, %25 ], [ 1, %44 ], [ 1, %54 ], [ %64, %68 ], [ %64, %62 ]
ret i32 %71
}