#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int hexdump(int /*<<< orphan*/ *, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcpy(char *, char *);
char *strrchr(char *, char);
int main(int argc, char **argv) {
  FILE *fo;
  FILE *fi;
  char name[256];
  char *basename;
  char *p;
  int i, len;
  if (argc < 3) {
    fprintf(stderr, "usage: fontdump output.c input.dat\n");
    return 1;
  }
  fo = fopen(argv[1], "wb");
  if (!fo) {
    fprintf(stderr, "fontdump: could not open output file '%s'\n", argv[1]);
    return 1;
  }
  for (i = 2; i < argc; i++) {
    fi = fopen(argv[i], "rb");
    if (!fi) {
      fprintf(stderr, "fontdump: could not open input file '%s'\n", argv[i]);
      return 1;
    }
    basename = strrchr(argv[i], '/');
    if (!basename)
      basename = strrchr(argv[i], '\\');
    if (basename)
      basename++;
    else
      basename = argv[i];
    strcpy(name, basename);
    p = name;
    while (*p) {
      if ((*p == '/') || (*p == '.') || (*p == '\\') || (*p == '-'))
        *p = '_';
      p++;
    }
    fprintf(fo, "const unsigned char pdf_font_%s_buf[] = {\n", name);
    len = hexdump(fo, fi);
    fprintf(fo, "};\n");
    fprintf(fo, "const unsigned int pdf_font_%s_len = %d;\n", name, len);
    fclose(fi);
  }
  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)
cmpl   $0x3,-0x8(%rbp)
jge    11a7 <main+0x47>
mov    0x2e56(%rip),%rax
movslq (%rax),%rdi
lea    0xe6c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1414 <main+0x2b4>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe6e(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11f6 <main+0x96>
mov    0x2e0f(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe44(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1414 <main+0x2b4>
movl   $0x2,-0x134(%rbp)
mov    -0x134(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    140d <main+0x2ad>
mov    -0x10(%rbp),%rax
movslq -0x134(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xe2d(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
jne    126c <main+0x10c>
mov    0x2da0(%rip),%rax
movslq (%rax),%rdi
mov    -0x10(%rbp),%rax
movslq -0x134(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xdfc(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1414 <main+0x2b4>
mov    -0x10(%rbp),%rax
movslq -0x134(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x2f,%esi
call   1050 <strrchr@plt>
mov    %rax,-0x128(%rbp)
cmpq   $0x0,-0x128(%rbp)
jne    12ba <main+0x15a>
mov    -0x10(%rbp),%rax
movslq -0x134(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x5c,%esi
call   1050 <strrchr@plt>
mov    %rax,-0x128(%rbp)
cmpq   $0x0,-0x128(%rbp)
je     12df <main+0x17f>
mov    -0x128(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x128(%rbp)
jmp    12f5 <main+0x195>
mov    -0x10(%rbp),%rax
movslq -0x134(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x128(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0x128(%rbp),%rsi
call   1030 <strcpy@plt>
lea    -0x120(%rbp),%rax
mov    %rax,-0x130(%rbp)
mov    -0x130(%rbp),%rax
cmpb   $0x0,(%rax)
je     1393 <main+0x233>
mov    -0x130(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
je     1372 <main+0x212>
mov    -0x130(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2e,%eax
je     1372 <main+0x212>
mov    -0x130(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x5c,%eax
je     1372 <main+0x212>
mov    -0x130(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    137c <main+0x21c>
mov    -0x130(%rbp),%rax
movb   $0x5f,(%rax)
mov    -0x130(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x130(%rbp)
jmp    1316 <main+0x1b6>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
lea    0xcda(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
call   1070 <hexdump@plt>
mov    %eax,-0x138(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xce0(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    -0x120(%rbp),%rdx
mov    -0x138(%rbp),%ecx
lea    0xcc5(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x134(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x134(%rbp)
jmp    1200 <main+0xa0>
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    $0x128,%rsp
cmp    $0x2,%edi
jg     11ab <main+0x3b>
mov    0x2e53(%rip),%rax
movslq (%rax),%rcx
lea    0xe69(%rip),%rdi
mov    $0x23,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
jmp    1331 <main+0x1c1>
mov    %rsi,%r13
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
lea    0xe69(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,0x18(%rsp)
test   %rax,%rax
je     12fd <main+0x18d>
mov    %ebp,%eax
mov    %rax,0x10(%rsp)
mov    $0x2,%r14d
movabs $0x800000000007,%r12
jmp    1270 <main+0x100>
nopw   0x0(%rax,%rax,1)
movl   $0x0,0xc(%rsp)
mov    0x18(%rsp),%rbp
mov    %rbp,%rdi
lea    0xe78(%rip),%rsi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbp,%rdi
mov    %r15,%rsi
call   1070 <hexdump@plt>
mov    %r13,%rbx
mov    %eax,%r13d
mov    $0x3,%esi
mov    $0x1,%edx
lea    0xe75(%rip),%rdi
mov    %rbp,%rcx
call   1090 <fwrite@plt>
mov    %rbp,%rdi
lea    0xe67(%rip),%rsi
lea    0x20(%rsp),%rdx
mov    %r13d,%ecx
mov    %rbx,%r13
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %r15,%rdi
call   1040 <fclose@plt>
add    $0x1,%r14
cmp    0x10(%rsp),%r14
je     1339 <main+0x1c9>
mov    0x0(%r13,%r14,8),%rdi
lea    0xdd6(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     1314 <main+0x1a4>
mov    %rax,%r15
mov    0x0(%r13,%r14,8),%rbp
mov    %rbp,%rdi
mov    $0x2f,%esi
call   1050 <strrchr@plt>
test   %rax,%rax
jne    12b6 <main+0x146>
mov    %rbp,%rdi
mov    $0x5c,%esi
call   1050 <strrchr@plt>
test   %rax,%rax
je     12bd <main+0x14d>
add    $0x1,%rax
mov    %rax,%rbp
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1030 <strcpy@plt>
jmp    12e4 <main+0x174>
nop
test   %cl,%cl
je     11f0 <main+0x80>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
movzbl (%rbx),%ecx
lea    -0x2d(%rcx),%edx
cmp    $0x2f,%dl
ja     12d0 <main+0x160>
movzbl %dl,%edx
bt     %rdx,%r12
jae    12d0 <main+0x160>
movb   $0x5f,(%rbx)
jmp    12e0 <main+0x170>
mov    0x2cdc(%rip),%rax
movslq (%rax),%rdi
mov    0x8(%r13),%rdx
lea    0xd15(%rip),%rsi
jmp    132a <main+0x1ba>
mov    0x2cc5(%rip),%rax
movslq (%rax),%rdi
mov    0x0(%r13,%r14,8),%rdx
lea    0xd2b(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
movl   $0x1,0xc(%rsp)
mov    0xc(%rsp),%eax
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [36 x i8] c"usage: fontdump output.c input.dat\0A\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [43 x i8] c"fontdump: could not open output file '%s'\0A\00"
@.str.3 = [3 x i8] c"rb\00"
@.str.4 = [42 x i8] c"fontdump: could not open input file '%s'\0A\00"
@.str.5 = [43 x i8] c"const unsigned char pdf_font_%s_buf[] = {\0A\00"
@.str.6 = [4 x i8] c"};\0A\00"
@.str.7 = [42 x i8] c"const unsigned int pdf_font_%s_len = %d;\0A\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 [256 x i8]
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32
%12 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%13 = load i32, i32* %4
%14 = icmp slt i32 %13, 3
br i1 %14, label %15, label %20
15: ; preds = %2
%16 = load i32, i32* @stderr
%17 = sext i32 %16 to i64
%18 = inttoptr i64 %17 to i32*
%19 = call i32 (i32*, i8*, ...) @fprintf(i32* %18, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %140
20: ; preds = %2
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i32* @fopen(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %24, i32** %6
%25 = load i32*, i32** %6
%26 = icmp ne i32* %25, null
br i1 %26, label %35, label %27
27: ; preds = %20
%28 = load i32, i32* @stderr
%29 = sext i32 %28 to i64
%30 = inttoptr i64 %29 to i32*
%31 = load i8**, i8*** %5
%32 = getelementptr inbounds i8*, i8** %31, i64 1
%33 = load i8*, i8** %32
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i8* %33)
store i32 1, i32* %3
br label %140
35: ; preds = %20
store i32 2, i32* %11
br label %36
36: ; preds = %136, %35
%37 = load i32, i32* %11
%38 = load i32, i32* %4
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %139
40: ; preds = %36
%41 = load i8**, i8*** %5
%42 = load i32, i32* %11
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8*, i8** %41, i64 %43
%45 = load i8*, i8** %44
%46 = call i32* @fopen(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
store i32* %46, i32** %7
%47 = load i32*, i32** %7
%48 = icmp ne i32* %47, null
br i1 %48, label %59, label %49
49: ; preds = %40
%50 = load i32, i32* @stderr
%51 = sext i32 %50 to i64
%52 = inttoptr i64 %51 to i32*
%53 = load i8**, i8*** %5
%54 = load i32, i32* %11
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds i8*, i8** %53, i64 %55
%57 = load i8*, i8** %56
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i8* %57)
store i32 1, i32* %3
br label %140
59: ; preds = %40
%60 = load i8**, i8*** %5
%61 = load i32, i32* %11
%62 = sext i32 %61 to i64
%63 = getelementptr inbounds i8*, i8** %60, i64 %62
%64 = load i8*, i8** %63
%65 = call i8* @strrchr(i8* %64, i8 signext 47)
store i8* %65, i8** %9
%66 = load i8*, i8** %9
%67 = icmp ne i8* %66, null
br i1 %67, label %75, label %68
68: ; preds = %59
%69 = load i8**, i8*** %5
%70 = load i32, i32* %11
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds i8*, i8** %69, i64 %71
%73 = load i8*, i8** %72
%74 = call i8* @strrchr(i8* %73, i8 signext 92)
store i8* %74, i8** %9
br label %75
75: ; preds = %68, %59
%76 = load i8*, i8** %9
%77 = icmp ne i8* %76, null
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = load i8*, i8** %9
%80 = getelementptr inbounds i8, i8* %79, i32 1
store i8* %80, i8** %9
br label %87
81: ; preds = %75
%82 = load i8**, i8*** %5
%83 = load i32, i32* %11
%84 = sext i32 %83 to i64
%85 = getelementptr inbounds i8*, i8** %82, i64 %84
%86 = load i8*, i8** %85
store i8* %86, i8** %9
br label %87
87: ; preds = %81, %78
%88 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%89 = load i8*, i8** %9
%90 = call i32 @strcpy(i8* %88, i8* %89)
%91 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
store i8* %91, i8** %10
br label %92
92: ; preds = %118, %87
%93 = load i8*, i8** %10
%94 = load i8, i8* %93
%95 = icmp ne i8 %94, 0
br i1 %95, label %96, label %121
96: ; preds = %92
%97 = load i8*, i8** %10
%98 = load i8, i8* %97
%99 = sext i8 %98 to i32
%100 = icmp eq i32 %99, 47
br i1 %100, label %116, label %101
101: ; preds = %96
%102 = load i8*, i8** %10
%103 = load i8, i8* %102
%104 = sext i8 %103 to i32
%105 = icmp eq i32 %104, 46
br i1 %105, label %116, label %106
106: ; preds = %101
%107 = load i8*, i8** %10
%108 = load i8, i8* %107
%109 = sext i8 %108 to i32
%110 = icmp eq i32 %109, 92
br i1 %110, label %116, label %111
111: ; preds = %106
%112 = load i8*, i8** %10
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = icmp eq i32 %114, 45
br i1 %115, label %116, label %118
116: ; preds = %111, %106, %101, %96
%117 = load i8*, i8** %10
store i8 95, i8* %117
br label %118
118: ; preds = %116, %111
%119 = load i8*, i8** %10
%120 = getelementptr inbounds i8, i8* %119, i32 1
store i8* %120, i8** %10
br label %92
121: ; preds = %92
%122 = load i32*, i32** %6
%123 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%124 = call i32 (i32*, i8*, ...) @fprintf(i32* %122, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i8* %123)
%125 = load i32*, i32** %6
%126 = load i32*, i32** %7
%127 = call i32 @hexdump(i32* %125, i32* %126)
store i32 %127, i32* %12
%128 = load i32*, i32** %6
%129 = call i32 (i32*, i8*, ...) @fprintf(i32* %128, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%130 = load i32*, i32** %6
%131 = getelementptr inbounds [256 x i8], [256 x i8]* %8, i64 0, i64 0
%132 = load i32, i32* %12
%133 = call i32 (i32*, i8*, ...) @fprintf(i32* %130, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i8* %131, i32 %132)
%134 = load i32*, i32** %7
%135 = call i32 @fclose(i32* %134)
br label %136
136: ; preds = %121
%137 = load i32, i32* %11
%138 = add nsw i32 %137, 1
store i32 %138, i32* %11
br label %36
139: ; preds = %36
store i32 0, i32* %3
br label %140
140: ; preds = %139, %49, %27, %15
%141 = load i32, i32* %3
ret i32 %141
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [36 x i8] c"usage: fontdump output.c input.dat\0A\00"
@.str.1 = [3 x i8] c"wb\00"
@.str.2 = [43 x i8] c"fontdump: could not open output file '%s'\0A\00"
@.str.3 = [3 x i8] c"rb\00"
@.str.4 = [42 x i8] c"fontdump: could not open input file '%s'\0A\00"
@.str.5 = [43 x i8] c"const unsigned char pdf_font_%s_buf[] = {\0A\00"
@.str.6 = [4 x i8] c"};\0A\00"
@.str.7 = [42 x i8] c"const unsigned int pdf_font_%s_len = %d;\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [256 x i8]
%4 = getelementptr inbounds [256 x i8], [256 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 3
br i1 %5, label %6, label %11
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = sext i32 %7 to i64
%9 = inttoptr i64 %8 to i32*
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str, i64 0, i64 0), i64 35, i64 1, i32* %9)
br label %63
11: ; preds = %2
%12 = getelementptr inbounds i8*, i8** %1, i64 1
%13 = load i8*, i8** %12
%14 = tail call i32* @fopen(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%15 = icmp eq i32* %14, null
br i1 %15, label %18, label %16
16: ; preds = %11
%17 = zext i32 %0 to i64
br label %24
18: ; preds = %11
%19 = load i32, i32* @stderr
%20 = sext i32 %19 to i64
%21 = inttoptr i64 %20 to i32*
%22 = load i8*, i8** %12
%23 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.2, i64 0, i64 0), i8* %22)
br label %63
24: ; preds = %16, %55
%25 = phi i64 [ 2, %16 ], [ %61, %55 ]
%26 = getelementptr inbounds i8*, i8** %1, i64 %25
%27 = load i8*, i8** %26
%28 = call i32* @fopen(i8* %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32* %28, null
br i1 %29, label %30, label %36
30: ; preds = %24
%31 = load i32, i32* @stderr
%32 = sext i32 %31 to i64
%33 = inttoptr i64 %32 to i32*
%34 = load i8*, i8** %26
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.4, i64 0, i64 0), i8* %34)
br label %63
36: ; preds = %24
%37 = load i8*, i8** %26
%38 = call i8* @strrchr(i8* dereferenceable(1) %37, i8 signext 47)
%39 = icmp eq i8* %38, null
br i1 %39, label %40, label %43
40: ; preds = %36
%41 = call i8* @strrchr(i8* dereferenceable(1) %37, i8 signext 92)
%42 = icmp eq i8* %41, null
br i1 %42, label %46, label %43
43: ; preds = %36, %40
%44 = phi i8* [ %41, %40 ], [ %38, %36 ]
%45 = getelementptr inbounds i8, i8* %44, i64 1
br label %46
46: ; preds = %40, %43
%47 = phi i8* [ %45, %43 ], [ %37, %40 ]
%48 = call i32 @strcpy(i8* %4, i8* %47)
br label %49
49: ; preds = %53, %46
%50 = phi i8* [ %4, %46 ], [ %54, %53 ]
%51 = load i8, i8* %50
switch i8 %51, label %53 [
i8 0, label %55
i8 47, label %52
i8 46, label %52
i8 92, label %52
i8 45, label %52
]
52: ; preds = %49, %49, %49, %49
store i8 95, i8* %50
br label %53
53: ; preds = %49, %52
%54 = getelementptr inbounds i8, i8* %50, i64 1
br label %49
55: ; preds = %49
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.5, i64 0, i64 0), i8* %4)
%57 = call i32 @hexdump(i32* %14, i32* %28)
%58 = call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i64 3, i64 1, i32* %14)
%59 = call i32 (i32*, i8*, ...) @fprintf(i32* %14, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.7, i64 0, i64 0), i8* %4, i32 %57)
%60 = call i32 @fclose(i32* %28)
%61 = add nuw nsw i64 %25, 1
%62 = icmp eq i64 %61, %17
br i1 %62, label %63, label %24
63: ; preds = %55, %30, %18, %6
%64 = phi i32 [ 1, %6 ], [ 1, %30 ], [ 1, %18 ], [ 0, %55 ]
ret i32 %64
}