#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*/ emit(int /*<<< orphan*/ *, unsigned int, int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int /*<<< orphan*/ *stderr;
int main(int argc, char **argv) {
  FILE *fp;
  unsigned int i;
  fp = fopen("tzsw_table.S", "w");
  if (!fp) {
    fprintf(stderr, "can't open file for writing\n");
    return -1;
  }
  fprintf(fp, "/* Translation table\n");
  fprintf(fp, " * Each line represents a section (1 Mb block).\n");
  fprintf(fp, " * Zero entries represent that the section is not mapped.\n");
  fprintf(fp, " * For more details check ARM DDI 0406C.\n");
  fprintf(fp, " * WARNING: This file was auto-generated!\n");
  fprintf(fp, " */\n\n\n");
  fprintf(fp, "translation_table0:\n");
  for (i = 0; i < 0x1000; i++) {
    if (i == 0x20) {
      fprintf(fp,
              "\t/* PXN=0, B=0, C=0, AP=011, TEX=001, S=1, nG=0, nS=0 */\n");
      fprintf(fp, "\t/* Shareable, Secure, Global, Outer and Inner "
                  "Non-cacheable, Full access */\n");
      emit(fp, i, 0x11C02);
    } else if (i >= 0x100 && i < 0x200) {
      if (i == 0x100) {
        fprintf(fp,
                "\t/* PXN=0, B=1, C=0, AP=011, TEX=000, S=1, nG=0, nS=0 */\n");
        fprintf(fp, "\t/* Shareable, Secure, Global, Shareable Device, Full "
                    "access */\n");
      }
      emit(fp, i, 0x10C06);
    } else if (i >= 0x400) {
      if (i == 0x400) {
        fprintf(fp,
                "\t/* PXN=0, B=0, C=0, AP=011, TEX=001, S=1, nG=0, nS=0 */\n");
        fprintf(fp, "\t/* Shareable, Secure, Global, Outer and Inner "
                    "Non-cacheable, Full access */\n");
      }
      emit(fp, i, 0x11C02);
    } else {
      fprintf(fp, "\t.word\t0\n");
    }
  }
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea3(%rip),%rdi
lea    0xea9(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    119a <main+0x5a>
mov    0x2e61(%rip),%rax
mov    (%rax),%rdi
lea    0xe86(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1348 <main+0x208>
mov    -0x18(%rbp),%rdi
lea    0xe87(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe8d(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xeae(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xef3(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xf0e(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xf05(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x1000,-0x1c(%rbp)
jae    1338 <main+0x1f8>
cmpl   $0x20,-0x1c(%rbp)
jne    125e <main+0x11e>
mov    -0x18(%rbp),%rdi
lea    0xeec(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xf16(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    $0x11c02,%edx
call   1060 <emit@plt>
jmp    1325 <main+0x1e5>
cmpl   $0x100,-0x1c(%rbp)
jb     12bb <main+0x17b>
cmpl   $0x200,-0x1c(%rbp)
jae    12bb <main+0x17b>
cmpl   $0x100,-0x1c(%rbp)
jne    12a5 <main+0x165>
mov    -0x18(%rbp),%rdi
lea    0xf17(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xf41(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    $0x10c06,%edx
call   1060 <emit@plt>
jmp    1320 <main+0x1e0>
cmpl   $0x400,-0x1c(%rbp)
jb     130b <main+0x1cb>
cmpl   $0x400,-0x1c(%rbp)
jne    12f5 <main+0x1b5>
mov    -0x18(%rbp),%rdi
lea    0xe3f(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    $0x11c02,%edx
call   1060 <emit@plt>
jmp    131b <main+0x1db>
mov    -0x18(%rbp),%rdi
lea    0xf0c(%rip),%rsi
call   1040 <fprintf@plt>
jmp    1320 <main+0x1e0>
jmp    1325 <main+0x1e5>
jmp    132a <main+0x1ea>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1211 <main+0xd1>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xeae(%rip),%rdi
lea    0xeb4(%rip),%rsi
call   1040 <fopen@plt>
test   %rax,%rax
je     1360 <main+0x220>
mov    %rax,%rbx
lea    0xebb(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1060 <fwrite@plt>
lea    0xeb8(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xed0(%rip),%rdi
mov    $0x3a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xef2(%rip),%rdi
mov    $0x29,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xf03(%rip),%rdi
mov    $0x2a,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xf15(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
lea    0xf03(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1060 <fwrite@plt>
xor    %ebp,%ebp
lea    0xefd(%rip),%r14
lea    0xf30(%rip),%r15
lea    0xfb1(%rip),%r13
lea    0xfeb(%rip),%r12
jmp    125e <main+0x11e>
nopl   0x0(%rax)
mov    %rbx,%rdi
mov    %ebp,%esi
mov    $0x10c06,%edx
call   1050 <emit@plt>
add    $0x1,%ebp
cmp    $0x1000,%ebp
je     1354 <main+0x214>
cmp    $0x20,%ebp
jne    12a0 <main+0x160>
mov    $0x39,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    $0x4d,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    %rbx,%rdi
mov    $0x20,%esi
jmp    1330 <main+0x1f0>
nopw   0x0(%rax,%rax,1)
mov    %ebp,%eax
and    $0x7fffff00,%eax
cmp    $0x100,%eax
jne    12f0 <main+0x1b0>
cmp    $0x100,%ebp
jne    1240 <main+0x100>
mov    $0x39,%esi
mov    $0x1,%edx
lea    0xee0(%rip),%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    $0x40,%esi
mov    $0x1,%edx
mov    %r13,%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
jmp    1240 <main+0x100>
nopl   0x0(%rax)
cmp    $0x400,%ebp
jb     133a <main+0x1fa>
jne    1324 <main+0x1e4>
mov    $0x39,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    $0x4d,%esi
mov    $0x1,%edx
mov    %r15,%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
nopl   0x0(%rax)
mov    $0x11c02,%edx
jmp    124a <main+0x10a>
mov    $0x9,%esi
mov    $0x1,%edx
mov    %r12,%rdi
mov    %rbx,%rcx
call   1060 <fwrite@plt>
jmp    124f <main+0x10f>
mov    %rbx,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
jmp    1385 <main+0x245>
mov    0x2c79(%rip),%rax
mov    (%rax),%rcx
lea    0xc9e(%rip),%rdi
mov    $0x1c,%esi
mov    $0x1,%edx
call   1060 <fwrite@plt>
mov    $0xffffffff,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [13 x i8] c"tzsw_table.S\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [29 x i8] c"can't open file for writing\0A\00"
@.str.3 = [22 x i8] c"/* Translation table\0A\00"
@.str.4 = [49 x i8] c" * Each line represents a section (1 Mb block).\0A\00"
@.str.5 = [59 x i8] c" * Zero entries represent that the section is not mapped.\0A\00"
@.str.6 = [42 x i8] c" * For more details check ARM DDI 0406C.\0A\00"
@.str.7 = [43 x i8] c" * WARNING: This file was auto-generated!\0A\00"
@.str.8 = [7 x i8] c" */\0A\0A\0A\00"
@.str.9 = [21 x i8] c"translation_table0:\0A\00"
@.str.10 = [58 x i8] c"\09/* PXN=0, B=0, C=0, AP=011, TEX=001, S=1, nG=0, nS=0 */\0A\00"
@.str.11 = [78 x i8] c"\09/* Shareable, Secure, Global, Outer and Inner Non-cacheable, Full access */\0A\00"
@.str.12 = [58 x i8] c"\09/* PXN=0, B=1, C=0, AP=011, TEX=000, S=1, nG=0, nS=0 */\0A\00"
@.str.13 = [65 x i8] c"\09/* Shareable, Secure, Global, Shareable Device, Full access */\0A\00"
@.str.14 = [10 x i8] c"\09.word\090\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %8, i32** %6
%9 = load i32*, i32** %6
%10 = icmp ne i32* %9, null
br i1 %10, label %14, label %11
11: ; preds = %2
%12 = load i32*, i32** @stderr
%13 = call i32 @fprintf(i32* %12, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %3
br label %88
14: ; preds = %2
%15 = load i32*, i32** %6
%16 = call i32 @fprintf(i32* %15, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%17 = load i32*, i32** %6
%18 = call i32 @fprintf(i32* %17, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0))
%19 = load i32*, i32** %6
%20 = call i32 @fprintf(i32* %19, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0))
%21 = load i32*, i32** %6
%22 = call i32 @fprintf(i32* %21, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0))
%23 = load i32*, i32** %6
%24 = call i32 @fprintf(i32* %23, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0))
%25 = load i32*, i32** %6
%26 = call i32 @fprintf(i32* %25, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0))
%27 = load i32*, i32** %6
%28 = call i32 @fprintf(i32* %27, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %7
br label %29
29: ; preds = %82, %14
%30 = load i32, i32* %7
%31 = icmp ult i32 %30, 4096
br i1 %31, label %32, label %85
32: ; preds = %29
%33 = load i32, i32* %7
%34 = icmp eq i32 %33, 32
br i1 %34, label %35, label %43
35: ; preds = %32
%36 = load i32*, i32** %6
%37 = call i32 @fprintf(i32* %36, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%38 = load i32*, i32** %6
%39 = call i32 @fprintf(i32* %38, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
%40 = load i32*, i32** %6
%41 = load i32, i32* %7
%42 = call i32 @emit(i32* %40, i32 %41, i32 72706)
br label %81
43: ; preds = %32
%44 = load i32, i32* %7
%45 = icmp uge i32 %44, 256
br i1 %45, label %46, label %61
46: ; preds = %43
%47 = load i32, i32* %7
%48 = icmp ult i32 %47, 512
br i1 %48, label %49, label %61
49: ; preds = %46
%50 = load i32, i32* %7
%51 = icmp eq i32 %50, 256
br i1 %51, label %52, label %57
52: ; preds = %49
%53 = load i32*, i32** %6
%54 = call i32 @fprintf(i32* %53, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0))
%55 = load i32*, i32** %6
%56 = call i32 @fprintf(i32* %55, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0))
br label %57
57: ; preds = %52, %49
%58 = load i32*, i32** %6
%59 = load i32, i32* %7
%60 = call i32 @emit(i32* %58, i32 %59, i32 68614)
br label %80
61: ; preds = %46, %43
%62 = load i32, i32* %7
%63 = icmp uge i32 %62, 1024
br i1 %63, label %64, label %76
64: ; preds = %61
%65 = load i32, i32* %7
%66 = icmp eq i32 %65, 1024
br i1 %66, label %67, label %72
67: ; preds = %64
%68 = load i32*, i32** %6
%69 = call i32 @fprintf(i32* %68, i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%70 = load i32*, i32** %6
%71 = call i32 @fprintf(i32* %70, i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0))
br label %72
72: ; preds = %67, %64
%73 = load i32*, i32** %6
%74 = load i32, i32* %7
%75 = call i32 @emit(i32* %73, i32 %74, i32 72706)
br label %79
76: ; preds = %61
%77 = load i32*, i32** %6
%78 = call i32 @fprintf(i32* %77, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0))
br label %79
79: ; preds = %76, %72
br label %80
80: ; preds = %79, %57
br label %81
81: ; preds = %80, %35
br label %82
82: ; preds = %81
%83 = load i32, i32* %7
%84 = add i32 %83, 1
store i32 %84, i32* %7
br label %29
85: ; preds = %29
%86 = load i32*, i32** %6
%87 = call i32 @fclose(i32* %86)
store i32 0, i32* %3
br label %88
88: ; preds = %85, %11
%89 = load i32, i32* %3
ret i32 %89
}

LLVM IR (-O2):
@.str = [13 x i8] c"tzsw_table.S\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [29 x i8] c"can't open file for writing\0A\00"
@.str.3 = [22 x i8] c"/* Translation table\0A\00"
@.str.4 = [49 x i8] c" * Each line represents a section (1 Mb block).\0A\00"
@.str.5 = [59 x i8] c" * Zero entries represent that the section is not mapped.\0A\00"
@.str.6 = [42 x i8] c" * For more details check ARM DDI 0406C.\0A\00"
@.str.7 = [43 x i8] c" * WARNING: This file was auto-generated!\0A\00"
@.str.8 = [7 x i8] c" */\0A\0A\0A\00"
@.str.9 = [21 x i8] c"translation_table0:\0A\00"
@.str.10 = [58 x i8] c"\09/* PXN=0, B=0, C=0, AP=011, TEX=001, S=1, nG=0, nS=0 */\0A\00"
@.str.11 = [78 x i8] c"\09/* Shareable, Secure, Global, Outer and Inner Non-cacheable, Full access */\0A\00"
@.str.12 = [58 x i8] c"\09/* PXN=0, B=1, C=0, AP=011, TEX=000, S=1, nG=0, nS=0 */\0A\00"
@.str.13 = [65 x i8] c"\09/* Shareable, Secure, Global, Shareable Device, Full access */\0A\00"
@.str.14 = [10 x i8] c"\09.word\090\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%4 = icmp eq i32* %3, null
br i1 %4, label %5, label %8
5: ; preds = %2
%6 = load i32*, i32** @stderr
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.2, i64 0, i64 0), i64 28, i64 1, i32* %6)
br label %49
8: ; preds = %2
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0), i64 21, i64 1, i32* %3)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.4, i64 0, i64 0), i64 48, i64 1, i32* %3)
%11 = tail call i64 @fwrite(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.5, i64 0, i64 0), i64 58, i64 1, i32* %3)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.6, i64 0, i64 0), i64 41, i64 1, i32* %3)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.7, i64 0, i64 0), i64 42, i64 1, i32* %3)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i64 6, i64 1, i32* %3)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i64 20, i64 1, i32* %3)
br label %16
16: ; preds = %8, %44
%17 = phi i32 [ 0, %8 ], [ %45, %44 ]
%18 = icmp eq i32 %17, 32
br i1 %18, label %19, label %23
19: ; preds = %16
%20 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0), i64 57, i64 1, i32* %3)
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0), i64 77, i64 1, i32* %3)
%22 = tail call i32 @emit(i32* %3, i32 32, i32 72706)
br label %44
23: ; preds = %16
%24 = and i32 %17, 2147483392
%25 = icmp eq i32 %24, 256
br i1 %25, label %26, label %33
26: ; preds = %23
%27 = icmp eq i32 %17, 256
br i1 %27, label %28, label %31
28: ; preds = %26
%29 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.12, i64 0, i64 0), i64 57, i64 1, i32* %3)
%30 = tail call i64 @fwrite(i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.13, i64 0, i64 0), i64 64, i64 1, i32* %3)
br label %31
31: ; preds = %28, %26
%32 = tail call i32 @emit(i32* %3, i32 %17, i32 68614)
br label %44
33: ; preds = %23
%34 = icmp ugt i32 %17, 1023
br i1 %34, label %35, label %42
35: ; preds = %33
%36 = icmp eq i32 %17, 1024
br i1 %36, label %37, label %40
37: ; preds = %35
%38 = tail call i64 @fwrite(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0), i64 57, i64 1, i32* %3)
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([78 x i8], [78 x i8]* @.str.11, i64 0, i64 0), i64 77, i64 1, i32* %3)
br label %40
40: ; preds = %37, %35
%41 = tail call i32 @emit(i32* %3, i32 %17, i32 72706)
br label %44
42: ; preds = %33
%43 = tail call i64 @fwrite(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.14, i64 0, i64 0), i64 9, i64 1, i32* %3)
br label %44
44: ; preds = %19, %40, %42, %31
%45 = add nuw nsw i32 %17, 1
%46 = icmp eq i32 %45, 4096
br i1 %46, label %47, label %16
47: ; preds = %44
%48 = tail call i32 @fclose(i32* %3)
br label %49
49: ; preds = %47, %5
%50 = phi i32 [ 0, %47 ], [ -1, %5 ]
ret i32 %50
}