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

/* Variables and functions */
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
size_t fread(unsigned char *, int, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *open_or_exit(char *, char *);
int /*<<< orphan*/ snprintf(char *, int, char *, char const *);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  if (argc < 3) {
    fprintf(stderr,
            "USAGE: %s {sym} {rsrc}\n\n"
            "  Creates {sym}.cpp from the contents of {rsrc}\n",
            argv[0]);
    return EXIT_FAILURE;
  }
  const char *sym = argv[1];
  FILE *in = open_or_exit(argv[2], "r");
  char symfile[256];
  snprintf(symfile, sizeof(symfile), "%s.cpp", sym);
  FILE *out = open_or_exit(symfile, "w");
  fprintf(out, "namespace lightstep {\n");
  fprintf(out, "extern const unsigned char %s[];\n", sym);
  fprintf(out, "extern const int %s_size;\n", sym);
  fprintf(out, "const unsigned char %s[] = {\n", sym);
  unsigned char buf[256];
  size_t nread = 0;
  size_t linecount = 0;
  do {
    nread = fread(buf, 1, sizeof(buf), in);
    size_t i;
    for (i = 0; i < nread; i++) {
      fprintf(out, "0x%02x, ", buf[i]);
      if (++linecount == 10) {
        fprintf(out, "\n");
        linecount = 0;
      }
    }
  } while (nread > 0);
  if (linecount > 0)
    fprintf(out, "\n");
  fprintf(out, "};\n");
  fprintf(out, "const int %s_size = static_cast<int>(sizeof(%s));\n\n", sym,
          sym);
  fprintf(out, "} //namespace lightstep\n");
  fclose(in);
  fclose(out);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x250,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x3,-0x8(%rbp)
jge    11a3 <main+0x53>
mov    0x2e66(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xe75(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    0x2e3f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    13cd <main+0x27d>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe8b(%rip),%rsi
call   1060 <open_or_exit@plt>
mov    %rax,-0x20(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x18(%rbp),%rcx
mov    $0x100,%esi
lea    0xe6d(%rip),%rdx
call   1050 <snprintf@plt>
lea    -0x120(%rbp),%rdi
lea    0xe61(%rip),%rsi
call   1060 <open_or_exit@plt>
mov    %rax,-0x128(%rbp)
mov    -0x128(%rbp),%rdi
lea    0xe49(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x128(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe47(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x128(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe50(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x128(%rbp),%rdi
mov    -0x18(%rbp),%rdx
lea    0xe52(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movq   $0x0,-0x238(%rbp)
movq   $0x0,-0x240(%rbp)
lea    -0x230(%rbp),%rdi
mov    -0x20(%rbp),%rcx
mov    $0x1,%esi
mov    $0x100,%edx
call   1030 <fread@plt>
mov    %rax,-0x238(%rbp)
movq   $0x0,-0x248(%rbp)
mov    -0x248(%rbp),%rax
cmp    -0x238(%rbp),%rax
jae    132f <main+0x1df>
mov    -0x128(%rbp),%rdi
mov    -0x248(%rbp),%rax
movzbl -0x230(%rbp,%rax,1),%edx
ff
lea    0xdf6(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x240(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x240(%rbp)
cmp    $0xa,%rax
jne    1313 <main+0x1c3>
mov    -0x128(%rbp),%rdi
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movq   $0x0,-0x240(%rbp)
jmp    1318 <main+0x1c8>
mov    -0x248(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x248(%rbp)
jmp    129f <main+0x14f>
jmp    1334 <main+0x1e4>
cmpq   $0x0,-0x238(%rbp)
ja     1273 <main+0x123>
cmpq   $0x0,-0x240(%rbp)
jbe    1365 <main+0x215>
mov    -0x128(%rbp),%rdi
lea    0xda7(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x128(%rbp),%rdi
lea    0xd5c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x128(%rbp),%rdi
mov    -0x18(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xd43(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x128(%rbp),%rdi
lea    0xd62(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x128(%rbp),%rdi
call   1040 <fclose@plt>
mov    0x2c08(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x250,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x218,%rsp
cmp    $0x2,%edi
jg     11ad <main+0x3d>
mov    0x2e53(%rip),%rax
movslq (%rax),%rdi
mov    (%rsi),%rdx
lea    0xe66(%rip),%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
mov    0x2e30(%rip),%rax
jmp    134d <main+0x1dd>
mov    0x8(%rsi),%rbp
mov    0x10(%rsi),%rdi
lea    0xe8d(%rip),%rsi
call   1060 <open_or_exit@plt>
mov    %rax,(%rsp)
lea    0xe7f(%rip),%rdx
lea    0x110(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x100,%esi
mov    %rbp,%rcx
call   1050 <snprintf@plt>
lea    0xe67(%rip),%rsi
mov    %rbx,%rdi
call   1060 <open_or_exit@plt>
mov    %rax,%rbx
lea    0xe57(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1090 <fwrite@plt>
lea    0xe55(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xe63(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xe6a(%rip),%rsi
mov    %rbx,%rdi
mov    %rbp,0x8(%rsp)
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0x10(%rsp),%r12
lea    0xe6a(%rip),%r13
xor    %r14d,%r14d
jmp    1275 <main+0x105>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
test   %rbp,%rbp
je     12d8 <main+0x168>
mov    %r12,%rdi
mov    $0x1,%esi
mov    $0x100,%edx
mov    (%rsp),%rcx
call   1030 <fread@plt>
test   %rax,%rax
je     12d8 <main+0x168>
mov    %rax,%rbp
xor    %r15d,%r15d
jmp    12a9 <main+0x139>
nopl   0x0(%rax,%rax,1)
add    $0x1,%r15
cmp    %r15,%rbp
je     1270 <main+0x100>
movzbl 0x10(%rsp,%r15,1),%edx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1080 <fprintf@plt>
add    $0x1,%r14
cmp    $0xa,%r14
jne    12a0 <main+0x130>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1070 <fputc@plt>
xor    %r14d,%r14d
jmp    12a0 <main+0x130>
test   %r14,%r14
je     12ea <main+0x17a>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1070 <fputc@plt>
lea    0xdde(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xdc9(%rip),%rsi
mov    %rbx,%rdi
mov    0x8(%rsp),%rcx
mov    %rcx,%rdx
xor    %eax,%eax
call   1080 <fprintf@plt>
lea    0xde4(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    (%rsp),%rdi
call   1040 <fclose@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
mov    0x2c83(%rip),%rax
mov    (%rax),%eax
add    $0x218,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [73 x i8] c"USAGE: %s {sym} {rsrc}\0A\0A Creates {sym}.cpp from the contents of {rsrc}\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [7 x i8] c"%s.cpp\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [23 x i8] c"namespace lightstep {\0A\00"
@.str.5 = [34 x i8] c"extern const unsigned char %s[];\0A\00"
@.str.6 = [27 x i8] c"extern const int %s_size;\0A\00"
@.str.7 = [30 x i8] c"const unsigned char %s[] = {\0A\00"
@.str.8 = [9 x i8] c"0x%02x, \00"
@.str.9 = [2 x i8] c"\0A\00"
@.str.10 = [4 x i8] c"};\0A\00"
@.str.11 = [52 x i8] c"const int %s_size = static_cast<int>(sizeof(%s));\0A\0A\00"
@.str.12 = [25 x i8] c"} //namespace lightstep\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i32*
%8 = alloca [256 x i8]
%9 = alloca i32*
%10 = alloca [256 x i8]
%11 = alloca i64
%12 = alloca i64
%13 = alloca i64
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = load i32, i32* %4
%15 = icmp slt i32 %14, 3
br i1 %15, label %16, label %25
16: ; preds = %2
%17 = load i32, i32* @stderr
%18 = sext i32 %17 to i64
%19 = inttoptr i64 %18 to i32*
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 0
%22 = load i8*, i8** %21
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %22)
%24 = load i32, i32* @EXIT_FAILURE
store i32 %24, i32* %3
br label %98
25: ; preds = %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 1
%28 = load i8*, i8** %27
store i8* %28, i8** %6
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 2
%31 = load i8*, i8** %30
%32 = call i32* @open_or_exit(i8* %31, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %32, i32** %7
%33 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%34 = load i8*, i8** %6
%35 = call i32 @snprintf(i8* %33, i32 256, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %34)
%36 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%37 = call i32* @open_or_exit(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %37, i32** %9
%38 = load i32*, i32** %9
%39 = call i32 (i32*, i8*, ...) @fprintf(i32* %38, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%40 = load i32*, i32** %9
%41 = load i8*, i8** %6
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i8* %41)
%43 = load i32*, i32** %9
%44 = load i8*, i8** %6
%45 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %44)
%46 = load i32*, i32** %9
%47 = load i8*, i8** %6
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %47)
store i64 0, i64* %11
store i64 0, i64* %12
br label %49
49: ; preds = %75, %25
%50 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 0
%51 = load i32*, i32** %7
%52 = call i64 @fread(i8* %50, i32 1, i32 256, i32* %51)
store i64 %52, i64* %11
store i64 0, i64* %13
br label %53
53: ; preds = %71, %49
%54 = load i64, i64* %13
%55 = load i64, i64* %11
%56 = icmp ult i64 %54, %55
br i1 %56, label %57, label %74
57: ; preds = %53
%58 = load i32*, i32** %9
%59 = load i64, i64* %13
%60 = getelementptr inbounds [256 x i8], [256 x i8]* %10, i64 0, i64 %59
%61 = load i8, i8* %60
%62 = zext i8 %61 to i32
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %58, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %62)
%64 = load i64, i64* %12
%65 = add i64 %64, 1
store i64 %65, i64* %12
%66 = icmp eq i64 %65, 10
br i1 %66, label %67, label %70
67: ; preds = %57
%68 = load i32*, i32** %9
%69 = call i32 (i32*, i8*, ...) @fprintf(i32* %68, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
store i64 0, i64* %12
br label %70
70: ; preds = %67, %57
br label %71
71: ; preds = %70
%72 = load i64, i64* %13
%73 = add i64 %72, 1
store i64 %73, i64* %13
br label %53
74: ; preds = %53
br label %75
75: ; preds = %74
%76 = load i64, i64* %11
%77 = icmp ugt i64 %76, 0
br i1 %77, label %49, label %78
78: ; preds = %75
%79 = load i64, i64* %12
%80 = icmp ugt i64 %79, 0
br i1 %80, label %81, label %84
81: ; preds = %78
%82 = load i32*, i32** %9
%83 = call i32 (i32*, i8*, ...) @fprintf(i32* %82, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %84
84: ; preds = %81, %78
%85 = load i32*, i32** %9
%86 = call i32 (i32*, i8*, ...) @fprintf(i32* %85, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%87 = load i32*, i32** %9
%88 = load i8*, i8** %6
%89 = load i8*, i8** %6
%90 = call i32 (i32*, i8*, ...) @fprintf(i32* %87, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.11, i64 0, i64 0), i8* %88, i8* %89)
%91 = load i32*, i32** %9
%92 = call i32 (i32*, i8*, ...) @fprintf(i32* %91, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0))
%93 = load i32*, i32** %7
%94 = call i32 @fclose(i32* %93)
%95 = load i32*, i32** %9
%96 = call i32 @fclose(i32* %95)
%97 = load i32, i32* @EXIT_SUCCESS
store i32 %97, i32* %3
br label %98
98: ; preds = %84, %16
%99 = load i32, i32* %3
ret i32 %99
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [73 x i8] c"USAGE: %s {sym} {rsrc}\0A\0A Creates {sym}.cpp from the contents of {rsrc}\0A\00"
@EXIT_FAILURE = global i32 0
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [7 x i8] c"%s.cpp\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [23 x i8] c"namespace lightstep {\0A\00"
@.str.5 = [34 x i8] c"extern const unsigned char %s[];\0A\00"
@.str.6 = [27 x i8] c"extern const int %s_size;\0A\00"
@.str.7 = [30 x i8] c"const unsigned char %s[] = {\0A\00"
@.str.8 = [9 x i8] c"0x%02x, \00"
@.str.10 = [4 x i8] c"};\0A\00"
@.str.11 = [52 x i8] c"const int %s_size = static_cast<int>(sizeof(%s));\0A\0A\00"
@.str.12 = [25 x i8] c"} //namespace lightstep\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = alloca [256 x i8]
%5 = icmp slt i32 %0, 3
br i1 %5, label %6, label %13
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = load i8*, i8** %1
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %9, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str, i64 0, i64 0), i8* %10)
%12 = load i32, i32* @EXIT_FAILURE
br label %59
13: ; preds = %2
%14 = getelementptr inbounds i8*, i8** %1, i64 1
%15 = load i8*, i8** %14
%16 = getelementptr inbounds i8*, i8** %1, i64 2
%17 = load i8*, i8** %16
%18 = tail call i32* @open_or_exit(i8* %17, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%19 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%20 = call i32 @snprintf(i8* %19, i32 256, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i8* %15)
%21 = call i32* @open_or_exit(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%22 = call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0), i64 22, i64 1, i32* %21)
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i8* %15)
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0), i8* %15)
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* %15)
%26 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 0
br label %27
27: ; preds = %46, %13
%28 = phi i64 [ 0, %13 ], [ %43, %46 ]
%29 = call i64 @fread(i8* %26, i32 1, i32 256, i32* %18)
%30 = icmp eq i64 %29, 0
br i1 %30, label %47, label %31
31: ; preds = %27, %42
%32 = phi i64 [ %44, %42 ], [ 0, %27 ]
%33 = phi i64 [ %43, %42 ], [ %28, %27 ]
%34 = getelementptr inbounds [256 x i8], [256 x i8]* %4, i64 0, i64 %32
%35 = load i8, i8* %34
%36 = zext i8 %35 to i32
%37 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %36)
%38 = add i64 %33, 1
%39 = icmp eq i64 %38, 10
br i1 %39, label %40, label %42
40: ; preds = %31
%41 = call i32 @fputc(i32 10, i32* %21)
br label %42
42: ; preds = %31, %40
%43 = phi i64 [ 0, %40 ], [ %38, %31 ]
%44 = add nuw i64 %32, 1
%45 = icmp eq i64 %44, %29
br i1 %45, label %46, label %31
46: ; preds = %42
br i1 %30, label %47, label %27
47: ; preds = %27, %46
%48 = phi i64 [ %43, %46 ], [ %28, %27 ]
%49 = icmp eq i64 %48, 0
br i1 %49, label %52, label %50
50: ; preds = %47
%51 = call i32 @fputc(i32 10, i32* %21)
br label %52
52: ; preds = %50, %47
%53 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0), i64 3, i64 1, i32* %21)
%54 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.11, i64 0, i64 0), i8* %15, i8* %15)
%55 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i64 24, i64 1, i32* %21)
%56 = call i32 @fclose(i32* %18)
%57 = call i32 @fclose(i32* %21)
%58 = load i32, i32* @EXIT_SUCCESS
br label %59
59: ; preds = %52, %6
%60 = phi i32 [ %12, %6 ], [ %58, %52 ]
ret i32 %60
}