#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");
    for (k = 0; k < array_size; k++) {
      fprintf(fp, "        array[%d] = \"string_%04d\";\n", k, k);
    }
    fprintf(fp, "    }\n");
    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    1270 <createFiles+0x130>
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    1359 <createFiles+0x219>
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
lea    0xe7f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1235 <createFiles+0xf5>
mov    -0x18(%rbp),%rdi
mov    -0x20(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe62(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1203 <createFiles+0xc3>
mov    -0x18(%rbp),%rdi
lea    0xe66(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe58(%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    0xe36(%rip),%rdi
lea    0xd94(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    12b6 <createFiles+0x176>
mov    0x2d47(%rip),%rax
mov    (%rax),%rdi
lea    0xe1c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1359 <createFiles+0x219>
mov    -0x18(%rbp),%rdi
lea    0xe27(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xe2e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1325 <createFiles+0x1e5>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe26(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe45(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    12e1 <createFiles+0x1a1>
mov    -0x18(%rbp),%rdi
lea    0xd76(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%rdi
lea    0xd68(%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    126d <createFiles+0x11d>
mov    %esi,%ebp
lea    0xf10(%rip),%r14
xor    %r13d,%r13d
jmp    11c7 <createFiles+0x77>
nopw   0x0(%rax,%rax,1)
mov    $0x6,%esi
mov    $0x1,%edx
lea    0xf15(%rip),%rdi
mov    %r12,%rcx
call   1070 <fwrite@plt>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xf00(%rip),%rdi
mov    %r12,%rcx
call   1070 <fwrite@plt>
mov    %r12,%rdi
call   1030 <fclose@plt>
add    $0x1,%r13d
cmp    %r15d,%r13d
je     126d <createFiles+0x11d>
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0x20,%esi
lea    0xe27(%rip),%rdx
mov    %r13d,%ecx
call   1040 <snprintf@plt>
mov    %rbx,%rdi
lea    0xe27(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1344 <createFiles+0x1f4>
mov    %rax,%r12
mov    %rax,%rdi
lea    0xe28(%rip),%rsi
mov    %r13d,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    %r12,%rdi
lea    0xe2d(%rip),%rsi
mov    %ebp,%edx
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xd,%esi
mov    $0x1,%edx
lea    0xe40(%rip),%rdi
mov    %r12,%rcx
call   1070 <fwrite@plt>
test   %ebp,%ebp
jle    1180 <createFiles+0x30>
xor    %ebx,%ebx
cs 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    1250 <createFiles+0x100>
jmp    1180 <createFiles+0x30>
lea    0xe39(%rip),%rdi
lea    0xd97(%rip),%rsi
call   1060 <fopen@plt>
test   %rax,%rax
je     1361 <createFiles+0x211>
mov    %rax,%rbp
lea    0xe55(%rip),%rdi
mov    $0x18,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1070 <fwrite@plt>
lea    0xe55(%rip),%rdi
mov    $0x1f,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
test   %r15d,%r15d
jle    1306 <createFiles+0x1b6>
lea    0xe57(%rip),%r14
lea    0xe84(%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    12e0 <createFiles+0x190>
lea    0xd99(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
lea    0xd84(%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    1386 <createFiles+0x236>
mov    0x2c95(%rip),%rax
mov    (%rax),%rdi
lea    0xcbf(%rip),%rsi
mov    %rsp,%rdx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1381 <createFiles+0x231>
mov    0x2c78(%rip),%rax
mov    (%rax),%rcx
lea    0xd4d(%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 = %54, %2
%11 = load i32, i32* %7
%12 = load i32, i32* %4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %57
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 %90
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 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %8
br label %35
35: ; preds = %44, %26
%36 = load i32, i32* %8
%37 = load i32, i32* %5
%38 = icmp slt i32 %36, %37
br i1 %38, label %39, label %47
39: ; preds = %35
%40 = load i32*, i32** %6
%41 = load i32, i32* %8
%42 = load i32, i32* %8
%43 = call i32 (i32*, i8*, ...) @fprintf(i32* %40, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.6, i64 0, i64 0), i32 %41, i32 %42)
br label %44
44: ; preds = %39
%45 = load i32, i32* %8
%46 = add nsw i32 %45, 1
store i32 %46, i32* %8
br label %35
47: ; preds = %35
%48 = load i32*, i32** %6
%49 = call i32 (i32*, i8*, ...) @fprintf(i32* %48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%50 = load i32*, i32** %6
%51 = call i32 (i32*, i8*, ...) @fprintf(i32* %50, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%52 = load i32*, i32** %6
%53 = call i32 @fclose(i32* %52)
br label %54
54: ; preds = %47
%55 = load i32, i32* %7
%56 = add nsw i32 %55, 1
store i32 %56, i32* %7
br label %10
57: ; preds = %10
%58 = 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* %58, i32** %6
%59 = load i32*, i32** %6
%60 = icmp eq i32* %59, null
br i1 %60, label %61, label %64
61: ; preds = %57
%62 = load i32*, i32** @stderr
%63 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.10, i64 0, i64 0))
store i32 -1, i32* %3
br label %90
64: ; preds = %57
%65 = load i32*, i32** %6
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %65, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0))
%67 = load i32*, i32** %6
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %7
br label %69
69: ; preds = %80, %64
%70 = load i32, i32* %7
%71 = load i32, i32* %4
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %83
73: ; preds = %69
%74 = load i32*, i32** %6
%75 = load i32, i32* %7
%76 = call i32 (i32*, i8*, ...) @fprintf(i32* %74, i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.13, i64 0, i64 0), i32 %75)
%77 = load i32*, i32** %6
%78 = load i32, i32* %7
%79 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i32 %78)
br label %80
80: ; preds = %73
%81 = load i32, i32* %7
%82 = add nsw i32 %81, 1
store i32 %82, i32* %7
br label %69
83: ; preds = %69
%84 = load i32*, i32** %6
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %84, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0))
%86 = load i32*, i32** %6
%87 = call i32 (i32*, i8*, ...) @fprintf(i32* %86, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%88 = load i32*, i32** %6
%89 = call i32 @fclose(i32* %88)
store i32 0, i32* %3
br label %90
90: ; preds = %83, %61, %22
%91 = load i32, i32* %3
ret i32 %91
}

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 i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.7, i64 0, i64 0), i64 6, i64 1, i32* %17)
%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 i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i64 13, i64 1, i32* %17)
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
}