#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 fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int create_main(int max_so, int max_chain, int max_depth, int *rand_array) {
  int i, j, k, rval, start;
  FILE *fp_main;
  char filename[100];
  fp_main = fopen("FOO_main.c", "w+");
  fprintf(fp_main, "//\n");
  fprintf(fp_main, "//\n");
  fprintf(fp_main, "#include <stdio.h>\n");
  fprintf(fp_main, "#include <stdlib.h>\n");
  fprintf(fp_main, "#include \"FOO.h\"\n");
  fprintf(fp_main, "\n");
  fprintf(fp_main, "int main(int argc, char* argv[])\n");
  fprintf(fp_main, "{\n");
  fprintf(fp_main, "\tlong i=0, d=0;\n");
  fprintf(fp_main, "\tlong j,k,loop;\n");
  fprintf(fp_main, "\tloop=atol(argv[1]);\n");
  fprintf(fp_main, "\tfor(k=0;k<loop;k++){\n");
  for (i = 0; i < max_so; i++) {
    for (j = 0; j < max_chain; j++) {
      start = rand_array[(i + j) % max_depth];
      fprintf(fp_main, "\t\td = 0;\n");
      fprintf(fp_main, "\t\tFOO_%03d_%03d_%03d(i,d);\n", i, j, start);
      fprintf(fp_main, "\t\ti += 1000;\n");
    }
  }
  fprintf(fp_main, "\t}\n");
  fprintf(fp_main, "\n");
  fprintf(fp_main, "\treturn 0;\n");
  fprintf(fp_main, "}\n");
  rval = fclose(fp_main);
  return 0;
}


x86 assembly (clang, -O0):
<create_main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %rcx,-0x18(%rbp)
lea    0xeb1(%rip),%rdi
lea    0xeb5(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
lea    0xea4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe92(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe84(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe86(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe89(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe87(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xed3(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe75(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe74(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe73(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    12e3 <create_main+0x1b3>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12d0 <create_main+0x1a0>
mov    -0x18(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0x1c(%rbp),%eax
add    -0x20(%rbp),%eax
cltd
idivl  -0xc(%rbp)
mov    -0xa8(%rbp),%rax
movslq %edx,%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x38(%rbp),%rdi
lea    0xe31(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
mov    -0x2c(%rbp),%r8d
lea    0xe1f(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe29(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1251 <create_main+0x121>
jmp    12d5 <create_main+0x1a5>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    123e <create_main+0x10e>
mov    -0x38(%rbp),%rdi
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xd4b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xde4(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xdcf(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%rdi
call   1030 <fclose@plt>
mov    %eax,-0x28(%rbp)
xor    %eax,%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<create_main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rcx,0x10(%rsp)
mov    %edx,0x4(%rsp)
mov    %esi,%r14d
mov    %edi,%r15d
lea    0xe8c(%rip),%rdi
lea    0xe90(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,%rbx
lea    0xe84(%rip),%rbp
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rax,%rcx
call   1070 <fwrite@plt>
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbp,%rdi
mov    %rbx,%rbp
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe54(%rip),%rdi
mov    $0x13,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe4f(%rip),%rdi
mov    $0x14,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe4b(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    $0xa,%edi
mov    %rbx,%rsi
call   1040 <fputc@plt>
lea    0xe37(%rip),%rdi
mov    $0x21,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe8c(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe27(%rip),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe1f(%rip),%rdi
mov    $0x10,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe17(%rip),%rdi
mov    $0x15,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
lea    0xe14(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1070 <fwrite@plt>
mov    %r15d,0x8(%rsp)
test   %r15d,%r15d
jle    135a <create_main+0x20a>
mov    %r14d,%ecx
lea    0xe01(%rip),%r14
lea    0xe20(%rip),%rbx
xor    %r15d,%r15d
mov    %ecx,0xc(%rsp)
jmp    12db <create_main+0x18b>
nopl   (%rax)
add    $0x1,%r15d
cmp    0x8(%rsp),%r15d
je     135a <create_main+0x20a>
test   %ecx,%ecx
mov    0x10(%rsp),%rsi
mov    0x4(%rsp),%edi
jle    12d0 <create_main+0x180>
xor    %r13d,%r13d
nopl   0x0(%rax,%rax,1)
lea    (%r15,%r13,1),%eax
cltd
idiv   %edi
mov    (%rsi,%rdx,4),%r12d
mov    $0x9,%esi
mov    $0x1,%edx
mov    %r14,%rdi
mov    %rbp,%rcx
call   1070 <fwrite@plt>
mov    %rbp,%rdi
lea    0xdae(%rip),%rsi
mov    %r15d,%edx
mov    %r13d,%ecx
mov    %r12d,%r8d
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0xd,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %rbp,%rcx
call   1070 <fwrite@plt>
mov    0x4(%rsp),%edi
mov    0x10(%rsp),%rsi
mov    0xc(%rsp),%ecx
add    $0x1,%r13d
cmp    %r13d,%ecx
jne    12f0 <create_main+0x1a0>
jmp    12d0 <create_main+0x180>
lea    0xd91(%rip),%rdi
mov    $0x3,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1040 <fputc@plt>
lea    0xd6f(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1070 <fwrite@plt>
lea    0xd53(%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
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"FOO_main.c\00"
@.str.1 = [3 x i8] c"w+\00"
@.str.2 = [4 x i8] c"//\0A\00"
@.str.3 = [20 x i8] c"#include <stdio.h>\0A\00"
@.str.4 = [21 x i8] c"#include <stdlib.h>\0A\00"
@.str.5 = [18 x i8] c"#include \22FOO.h\22\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [34 x i8] c"int main(int argc, char* argv[])\0A\00"
@.str.8 = [3 x i8] c"{\0A\00"
@.str.9 = [17 x i8] c"\09long i=0, d=0;\0A\00"
@.str.10 = [17 x i8] c"\09long j,k,loop;\0A\00"
@.str.11 = [22 x i8] c"\09loop=atol(argv[1]);\0A\00"
@.str.12 = [23 x i8] c"\09for(k=0;k<loop;k++){\0A\00"
@.str.13 = [10 x i8] c"\09\09d = 0;\0A\00"
@.str.14 = [28 x i8] c"\09\09FOO_%03d_%03d_%03d(i,d);\0A\00"
@.str.15 = [14 x i8] c"\09\09i += 1000;\0A\00"
@.str.16 = [4 x i8] c"\09}\0A\00"
@.str.17 = [12 x i8] c"\09return 0;\0A\00"
@.str.18 = [3 x i8] c"}\0A\00"
define i32 @create_main(i32 %0, i32 %1, i32 %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32*
%15 = alloca [100 x i8]
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32* %3, i32** %8
%16 = call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
store i32* %16, i32** %14
%17 = load i32*, i32** %14
%18 = call i32 (i32*, i8*, ...) @fprintf(i32* %17, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%19 = load i32*, i32** %14
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%21 = load i32*, i32** %14
%22 = call i32 (i32*, i8*, ...) @fprintf(i32* %21, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0))
%23 = load i32*, i32** %14
%24 = call i32 (i32*, i8*, ...) @fprintf(i32* %23, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0))
%25 = load i32*, i32** %14
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0))
%27 = load i32*, i32** %14
%28 = call i32 (i32*, i8*, ...) @fprintf(i32* %27, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%29 = load i32*, i32** %14
%30 = call i32 (i32*, i8*, ...) @fprintf(i32* %29, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0))
%31 = load i32*, i32** %14
%32 = call i32 (i32*, i8*, ...) @fprintf(i32* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
%33 = load i32*, i32** %14
%34 = call i32 (i32*, i8*, ...) @fprintf(i32* %33, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%35 = load i32*, i32** %14
%36 = call i32 (i32*, i8*, ...) @fprintf(i32* %35, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%37 = load i32*, i32** %14
%38 = call i32 (i32*, i8*, ...) @fprintf(i32* %37, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%39 = load i32*, i32** %14
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0))
store i32 0, i32* %9
br label %41
41: ; preds = %73, %4
%42 = load i32, i32* %9
%43 = load i32, i32* %5
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %76
45: ; preds = %41
store i32 0, i32* %10
br label %46
46: ; preds = %69, %45
%47 = load i32, i32* %10
%48 = load i32, i32* %6
%49 = icmp slt i32 %47, %48
br i1 %49, label %50, label %72
50: ; preds = %46
%51 = load i32*, i32** %8
%52 = load i32, i32* %9
%53 = load i32, i32* %10
%54 = add nsw i32 %52, %53
%55 = load i32, i32* %7
%56 = srem i32 %54, %55
%57 = sext i32 %56 to i64
%58 = getelementptr inbounds i32, i32* %51, i64 %57
%59 = load i32, i32* %58
store i32 %59, i32* %13
%60 = load i32*, i32** %14
%61 = call i32 (i32*, i8*, ...) @fprintf(i32* %60, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%62 = load i32*, i32** %14
%63 = load i32, i32* %9
%64 = load i32, i32* %10
%65 = load i32, i32* %13
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %62, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %63, i32 %64, i32 %65)
%67 = load i32*, i32** %14
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
br label %69
69: ; preds = %50
%70 = load i32, i32* %10
%71 = add nsw i32 %70, 1
store i32 %71, i32* %10
br label %46
72: ; preds = %46
br label %73
73: ; preds = %72
%74 = load i32, i32* %9
%75 = add nsw i32 %74, 1
store i32 %75, i32* %9
br label %41
76: ; preds = %41
%77 = load i32*, i32** %14
%78 = call i32 (i32*, i8*, ...) @fprintf(i32* %77, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%79 = load i32*, i32** %14
%80 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%81 = load i32*, i32** %14
%82 = call i32 (i32*, i8*, ...) @fprintf(i32* %81, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
%83 = load i32*, i32** %14
%84 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0))
%85 = load i32*, i32** %14
%86 = call i32 @fclose(i32* %85)
store i32 %86, i32* %12
ret i32 0
}

LLVM IR (-O2):
@.str = [11 x i8] c"FOO_main.c\00"
@.str.1 = [3 x i8] c"w+\00"
@.str.2 = [4 x i8] c"//\0A\00"
@.str.3 = [20 x i8] c"#include <stdio.h>\0A\00"
@.str.4 = [21 x i8] c"#include <stdlib.h>\0A\00"
@.str.5 = [18 x i8] c"#include \22FOO.h\22\0A\00"
@.str.7 = [34 x i8] c"int main(int argc, char* argv[])\0A\00"
@.str.8 = [3 x i8] c"{\0A\00"
@.str.9 = [17 x i8] c"\09long i=0, d=0;\0A\00"
@.str.10 = [17 x i8] c"\09long j,k,loop;\0A\00"
@.str.11 = [22 x i8] c"\09loop=atol(argv[1]);\0A\00"
@.str.12 = [23 x i8] c"\09for(k=0;k<loop;k++){\0A\00"
@.str.13 = [10 x i8] c"\09\09d = 0;\0A\00"
@.str.14 = [28 x i8] c"\09\09FOO_%03d_%03d_%03d(i,d);\0A\00"
@.str.15 = [14 x i8] c"\09\09i += 1000;\0A\00"
@.str.16 = [4 x i8] c"\09}\0A\00"
@.str.17 = [12 x i8] c"\09return 0;\0A\00"
@.str.18 = [3 x i8] c"}\0A\00"
define i32 @create_main(i32 %0, i32 %1, i32 %2, i32* nocapture %3) {
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 3, i64 1, i32* %5)
%7 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), i64 3, i64 1, i32* %5)
%8 = tail call i64 @fwrite(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i64 19, i64 1, i32* %5)
%9 = tail call i64 @fwrite(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i64 20, i64 1, i32* %5)
%10 = tail call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i64 17, i64 1, i32* %5)
%11 = tail call i32 @fputc(i32 10, i32* %5)
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.7, i64 0, i64 0), i64 33, i64 1, i32* %5)
%13 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i64 2, i64 1, i32* %5)
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0), i64 16, i64 1, i32* %5)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0), i64 16, i64 1, i32* %5)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0), i64 21, i64 1, i32* %5)
%17 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.12, i64 0, i64 0), i64 22, i64 1, i32* %5)
%18 = icmp sgt i32 %0, 0
br i1 %18, label %19, label %38
19: ; preds = %4
%20 = icmp sgt i32 %1, 0
br label %21
21: ; preds = %19, %35
%22 = phi i32 [ 0, %19 ], [ %36, %35 ]
br i1 %20, label %23, label %35
23: ; preds = %21, %23
%24 = phi i32 [ %33, %23 ], [ 0, %21 ]
%25 = add nuw nsw i32 %24, %22
%26 = srem i32 %25, %2
%27 = zext i32 %26 to i64
%28 = getelementptr inbounds i32, i32* %3, i64 %27
%29 = load i32, i32* %28
%30 = tail call i64 @fwrite(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0), i64 9, i64 1, i32* %5)
%31 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %5, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.14, i64 0, i64 0), i32 %22, i32 %24, i32 %29)
%32 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i64 13, i64 1, i32* %5)
%33 = add nuw nsw i32 %24, 1
%34 = icmp eq i32 %33, %1
br i1 %34, label %35, label %23
35: ; preds = %23, %21
%36 = add nuw nsw i32 %22, 1
%37 = icmp eq i32 %36, %0
br i1 %37, label %38, label %21
38: ; preds = %35, %4
%39 = tail call i64 @fwrite(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i64 3, i64 1, i32* %5)
%40 = tail call i32 @fputc(i32 10, i32* %5)
%41 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i64 11, i64 1, i32* %5)
%42 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i64 0, i64 0), i64 2, i64 1, i32* %5)
%43 = tail call i32 @fclose(i32* %5)
ret i32 0
}