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

/* Variables and functions */
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ snprintf(char *, int, char *, int);
int /*<<< orphan*/ *stderr;
int createFiles(int count, int array_size) {
  FILE *fp;
  int i;
  int k;
  for (i = 0; i < count; i++) {
    char nameBuf[32];
    snprintf(nameBuf, sizeof(nameBuf), "src/Test%03d.java", i);
    fp = fopen(nameBuf, "w");
    if (fp == NULL) {
      fprintf(stderr, "ERROR: unable to open %s\n", nameBuf);
      return -1;
    }
    fprintf(fp, "public class Test%03d {\n", i);
    fprintf(fp, "    static String[] array = new String[%d];\n", array_size);
    fprintf(fp, "    static {\n", array_size);
    for (k = 0; k < array_size; k++) {
      fprintf(fp, "        array[%d] = \"string_%04d\";\n", k, k);
    }
    fprintf(fp, "    }\n", array_size);
    fprintf(fp, "}\n");
    fclose(fp);
  }
  fp = fopen("src/MainTest.java", "w");
  if (fp == NULL) {
    fprintf(stderr, "ERROR: unable to open src/MainTest.java\n");
    return -1;
  }
  fprintf(fp, "public class MainTest {\n");
  fprintf(fp, "    public static void run() {\n");
  for (i = 0; i < count; i++) {
    fprintf(fp, "        System.out.println(\"Create new Test%03d\");\n", i);
    fprintf(fp, "        new Test%03d();\n", i);
  }
  fprintf(fp, "    }\n");
  fprintf(fp, "}\n");
  fclose(fp);
  return 0;
}


x86 assembly (clang, -O0):
<createFiles>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1276 <createFiles+0x136>
lea    -0x40(%rbp),%rdi
mov    -0x1c(%rbp),%ecx
mov    $0x20,%esi
lea    0xe8c(%rip),%rdx
call   1040 <snprintf@plt>
lea    -0x40(%rbp),%rdi
lea    0xe8e(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    11c0 <createFiles+0x80>
mov    0x2e41(%rip),%rax
mov    (%rax),%rdi
lea    -0x40(%rbp),%rdx
lea    0xe67(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    135f <createFiles+0x21f>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe60(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe64(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe7c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1238 <createFiles+0xf8>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe5f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1206 <createFiles+0xc6>
mov    -0x18(%rbp),%rdi
mov    -0xc(%rbp),%edx
lea    0xe60(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe52(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1155 <createFiles+0x15>
lea    0xe30(%rip),%rdi
lea    0xd8e(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    12bc <createFiles+0x17c>
mov    0x2d41(%rip),%rax
mov    (%rax),%rdi
lea    0xe16(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    135f <createFiles+0x21f>
mov    -0x18(%rbp),%rdi
lea    0xe21(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe28(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    132b <createFiles+0x1eb>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe3f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12e7 <createFiles+0x1a7>
mov    -0x18(%rbp),%rdi
lea    0xd70(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xd62(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createFiles>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edi,%r15d
test   %edi,%edi
jle    125d <createFiles+0x10d>
mov    %esi,%ebp
lea    0xf10(%rip),%r14
xor    %r13d,%r13d
jmp    11c1 <createFiles+0x71>
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
lea    0xf1c(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xf06(%rip),%rdi
mov    %r12,%rcx
call   1070 <fwrite@plt>
mov    %r12,%rdi
call   1030 <fclose@plt>
add    $0x1,%r13d
cmp    %r15d,%r13d
je     125d <createFiles+0x10d>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x20,%esi
lea    0xe2d(%rip),%rdx
mov    %r13d,%ecx
call   1040 <snprintf@plt>
mov    %rbx,%rdi
lea    0xe2d(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1334 <createFiles+0x1e4>
mov    %rax,%r12
mov    %rax,%rdi
lea    0xe2e(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
lea    0xe33(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
lea    0xe4d(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
test   %ebp,%ebp
jle    1180 <createFiles+0x30>
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
mov    %ebx,%ecx
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    1240 <createFiles+0xf0>
jmp    1180 <createFiles+0x30>
lea    0xe49(%rip),%rdi
lea    0xda7(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1351 <createFiles+0x201>
mov    %rax,%rbp
lea    0xe65(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1070 <fwrite@plt>
lea    0xe65(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
test   %r15d,%r15d
jle    12f6 <createFiles+0x1a6>
lea    0xe67(%rip),%r14
lea    0xe94(%rip),%r12
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbp,%rdi
mov    %r14,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %rbp,%rdi
mov    %r12,%rsi
mov    %ebx,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
add    $0x1,%ebx
cmp    %ebx,%r15d
jne    12d0 <createFiles+0x180>
lea    0xda9(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
lea    0xd94(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
mov    %rbp,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
jmp    1376 <createFiles+0x226>
mov    0x2ca5(%rip),%rax
mov    (%rax),%rdi
lea    0xccf(%rip),%rsi
mov    %rsp,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1371 <createFiles+0x221>
mov    0x2c88(%rip),%rax
mov    (%rax),%rcx
lea    0xd5d(%rip),%rdi
mov    $0x28,%esi
mov    $0x1,%edx
call   1070 <fwrite@plt>
mov    $0xffffffff,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [18 x i8] c"src/Test%03d.java\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [26 x i8] c"ERROR: unable to open %s\0A\00"
@.str.3 = [25 x i8] c"public class Test%03d {\0A\00"
@.str.4 = [45 x i8] c" static String[] array = new String[%d];\0A\00"
@.str.5 = [14 x i8] c" static {\0A\00"
@.str.6 = [36 x i8] c" array[%d] = \22string_%04d\22;\0A\00"
@.str.7 = [7 x i8] c" }\0A\00"
@.str.8 = [3 x i8] c"}\0A\00"
@.str.9 = [18 x i8] c"src/MainTest.java\00"
@.str.10 = [41 x i8] c"ERROR: unable to open src/MainTest.java\0A\00"
@.str.11 = [25 x i8] c"public class MainTest {\0A\00"
@.str.12 = [32 x i8] c" public static void run() {\0A\00"
@.str.13 = [52 x i8] c" System.out.println(\22Create new Test%03d\22);\0A\00"
@.str.14 = [25 x i8] c" new Test%03d();\0A\00"
define i32 @createFiles(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
%7 = alloca i32
%8 = alloca i32
%9 = alloca [32 x i8]
store i32 %0, i32* %4
store i32 %1, i32* %5
store i32 0, i32* %7
br label %10
10: ; preds = %56, %2
%11 = load i32, i32* %7
%12 = load i32, i32* %4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %59
14: ; preds = %10
%15 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%16 = load i32, i32* %7
%17 = call i32 @snprintf(i8* %15, i32 32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %16)
%18 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%19 = call i32* @fopen(i8* %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %19, i32** %6
%20 = load i32*, i32** %6
%21 = icmp eq i32* %20, null
br i1 %21, label %22, label %26
22: ; preds = %14
%23 = load i32*, i32** @stderr
%24 = getelementptr inbounds [32 x i8], [32 x i8]* %9, i64 0, i64 0
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %24)
store i32 -1, i32* %3
br label %92
26: ; preds = %14
%27 = load i32*, i32** %6
%28 = load i32, i32* %7
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %28)
%30 = load i32*, i32** %6
%31 = load i32, i32* %5
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i32 %31)
%33 = load i32*, i32** %6
%34 = load i32, i32* %5
%35 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %34)
store i32 0, i32* %8
br label %36
36: ; preds = %45, %26
%37 = load i32, i32* %8
%38 = load i32, i32* %5
%39 = icmp slt i32 %37, %38
br i1 %39, label %40, label %48
40: ; preds = %36
%41 = load i32*, i32** %6
%42 = load i32, i32* %8
%43 = load i32, i32* %8
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 %42, i32 %43)
br label %45
45: ; preds = %40
%46 = load i32, i32* %8
%47 = add nsw i32 %46, 1
store i32 %47, i32* %8
br label %36
48: ; preds = %36
%49 = load i32*, i32** %6
%50 = load i32, i32* %5
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %50)
%52 = load i32*, i32** %6
%53 = call i32 (i32*, i8*, ...) @fprintf(i32* %52, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%54 = load i32*, i32** %6
%55 = call i32 @fclose(i32* %54)
br label %56
56: ; preds = %48
%57 = load i32, i32* %7
%58 = add nsw i32 %57, 1
store i32 %58, i32* %7
br label %10
59: ; preds = %10
%60 = call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %60, i32** %6
%61 = load i32*, i32** %6
%62 = icmp eq i32* %61, null
br i1 %62, label %63, label %66
63: ; preds = %59
%64 = load i32*, i32** @stderr
%65 = call i32 (i32*, i8*, ...) @fprintf(i32* %64, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
store i32 -1, i32* %3
br label %92
66: ; preds = %59
%67 = load i32*, i32** %6
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%69 = load i32*, i32** %6
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %7
br label %71
71: ; preds = %82, %66
%72 = load i32, i32* %7
%73 = load i32, i32* %4
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %85
75: ; preds = %71
%76 = load i32*, i32** %6
%77 = load i32, i32* %7
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0), i32 %77)
%79 = load i32*, i32** %6
%80 = load i32, i32* %7
%81 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i32 %80)
br label %82
82: ; preds = %75
%83 = load i32, i32* %7
%84 = add nsw i32 %83, 1
store i32 %84, i32* %7
br label %71
85: ; preds = %71
%86 = load i32*, i32** %6
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%88 = load i32*, i32** %6
%89 = call i32 (i32*, i8*, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%90 = load i32*, i32** %6
%91 = call i32 @fclose(i32* %90)
store i32 0, i32* %3
br label %92
92: ; preds = %85, %63, %22
%93 = load i32, i32* %3
ret i32 %93
}

LLVM IR (-O2):
@.str = [18 x i8] c"src/Test%03d.java\00"
@.str.1 = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.2 = [26 x i8] c"ERROR: unable to open %s\0A\00"
@.str.3 = [25 x i8] c"public class Test%03d {\0A\00"
@.str.4 = [45 x i8] c" static String[] array = new String[%d];\0A\00"
@.str.5 = [14 x i8] c" static {\0A\00"
@.str.6 = [36 x i8] c" array[%d] = \22string_%04d\22;\0A\00"
@.str.7 = [7 x i8] c" }\0A\00"
@.str.8 = [3 x i8] c"}\0A\00"
@.str.9 = [18 x i8] c"src/MainTest.java\00"
@.str.10 = [41 x i8] c"ERROR: unable to open src/MainTest.java\0A\00"
@.str.11 = [25 x i8] c"public class MainTest {\0A\00"
@.str.12 = [32 x i8] c" public static void run() {\0A\00"
@.str.13 = [52 x i8] c" System.out.println(\22Create new Test%03d\22);\0A\00"
@.str.14 = [25 x i8] c" new Test%03d();\0A\00"
define i32 @createFiles(i32 %0, i32 %1) {
%3 = alloca [32 x i8]
%4 = icmp sgt i32 %0, 0
br i1 %4, label %5, label %31
5: ; preds = %2
%6 = getelementptr inbounds [32 x i8], [32 x i8]* %3, i64 0, i64 0
%7 = icmp sgt i32 %1, 0
br label %14
8: ; preds = %26, %22
%9 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i32 %1)
%10 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i64 2, i64 1, i32* %17)
%11 = call i32 @fclose(i32* %17)
%12 = add nuw nsw i32 %15, 1
%13 = icmp eq i32 %12, %0
br i1 %13, label %31, label %14
14: ; preds = %5, %8
%15 = phi i32 [ 0, %5 ], [ %12, %8 ]
%16 = call i32 @snprintf(i8* %6, i32 32, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 %15)
%17 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %22
19: ; preds = %14
%20 = load i32*, i32** @stderr
%21 = call i32 (i32*, i8*, ...) @fprintf(i32* %20, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.2, i64 0, i64 0), i8* %6)
br label %50
22: ; preds = %14
%23 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %15)
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.4, i64 0, i64 0), i32 %1)
%25 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i32 %1)
br i1 %7, label %26, label %8
26: ; preds = %22, %26
%27 = phi i32 [ %29, %26 ], [ 0, %22 ]
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 %27, i32 %27)
%29 = add nuw nsw i32 %27, 1
%30 = icmp eq i32 %29, %1
br i1 %30, label %8, label %26
31: ; preds = %8, %2
%32 = call i32* @fopen(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%33 = icmp eq i32* %32, null
br i1 %33, label %34, label %37
34: ; preds = %31
%35 = load i32*, i32** @stderr
%36 = call i64 @fwrite(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0), i64 40, i64 1, i32* %35)
br label %50
37: ; preds = %31
%38 = call i64 @fwrite(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i64 24, i64 1, i32* %32)
%39 = call i64 @fwrite(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), i64 31, i64 1, i32* %32)
br i1 %4, label %40, label %46
40: ; preds = %37, %40
%41 = phi i32 [ %44, %40 ], [ 0, %37 ]
%42 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0), i32 %41)
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i32 %41)
%44 = add nuw nsw i32 %41, 1
%45 = icmp eq i32 %44, %0
br i1 %45, label %46, label %40
46: ; preds = %40, %37
%47 = call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i64 6, i64 1, i32* %32)
%48 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i64 2, i64 1, i32* %32)
%49 = call i32 @fclose(i32* %32)
br label %50
50: ; preds = %19, %46, %34
%51 = phi i32 [ -1, %34 ], [ 0, %46 ], [ -1, %19 ]
ret i32 %51
}