#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 /*<<< orphan*/ *stderr;
int WriteQWML(char *filename, int **adjacency, double **probdist,
              char *graphName, char *comment, int vertices, int steps) {
  int i, j, t;
  FILE *fptr = NULL;
  fptr = fopen(filename, "w");
  if (fptr == NULL) {
    fprintf(stderr, "WriteQWML: error opening output file");
    return (-1);
  }
  fprintf(fptr, "<?xml version=\"1.0\"?>\n");
  fprintf(fptr, "<qwml>\n");
  fprintf(fptr, "<adjacency>\n");
  for (i = 0; i < vertices; i++) {
    fprintf(fptr, "<row>\n");
    for (j = 0; j < vertices; j++)
      fprintf(fptr, "<col>%1d</col>\n", adjacency[i][j]);
    fprintf(fptr, "</row>\n");
  }
  fprintf(fptr, "</adjacency>\n");
  fprintf(fptr, "<probdist>\n");
  for (i = 0; i < vertices; i++) {
    fprintf(fptr, "<vertex>\n");
    for (t = 0; t < steps; t++)
      fprintf(fptr, "<prob>%10.8f</prob>\n", probdist[t][i]);
    fprintf(fptr, "</vertex>\n");
  }
  fprintf(fptr, "</probdist>\n");
  fprintf(fptr, "<filename>%s</filename>\n", filename);
  fprintf(fptr, "<comment>%s</comment>\n", comment);
  fprintf(fptr, "</qwml>\n");
  fclose(fptr);
  return (0);
}


x86 assembly (clang, -O0):
<WriteQWML>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9d,-0x34(%rbp)
movq   $0x0,-0x48(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xe9a(%rip),%rsi
call   1050 <fopen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jne    119e <WriteQWML+0x6e>
mov    0x2e5f(%rip),%rax
mov    (%rax),%rdi
lea    0xe77(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1370 <WriteQWML+0x240>
mov    -0x48(%rbp),%rdi
lea    0xe7e(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x48(%rbp),%rdi
lea    0xe83(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x48(%rbp),%rdi
lea    0xe79(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    125f <WriteQWML+0x12f>
mov    -0x48(%rbp),%rdi
lea    0xe61(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    123f <WriteQWML+0x10f>
mov    -0x48(%rbp),%rdi
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xe30(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1200 <WriteQWML+0xd0>
mov    -0x48(%rbp),%rdi
lea    0xe20(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11db <WriteQWML+0xab>
mov    -0x48(%rbp),%rdi
lea    0xe08(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x48(%rbp),%rdi
lea    0xe04(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1310 <WriteQWML+0x1e0>
mov    -0x48(%rbp),%rdi
lea    0xdeb(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    12f0 <WriteQWML+0x1c0>
mov    -0x48(%rbp),%rdi
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xdbb(%rip),%rsi
mov    $0x1,%al
call   1040 <fprintf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    12af <WriteQWML+0x17f>
mov    -0x48(%rbp),%rdi
lea    0xdb0(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    128a <WriteQWML+0x15a>
mov    -0x48(%rbp),%rdi
lea    0xd9b(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x10(%rbp),%rdx
lea    0xd92(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rdx
lea    0xd95(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x48(%rbp),%rdi
lea    0xd9a(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x48(%rbp),%rdi
call   1030 <fclose@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WriteQWML>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %r9d,%r13d
mov    %r8,%rbx
mov    %rdx,%r12
mov    %rsi,%rbp
mov    %rdi,%r15
lea    0xe9c(%rip),%rsi
call   1050 <fopen@plt>
test   %rax,%rax
je     1325 <WriteQWML+0x1e5>
mov    %rax,%r14
mov    %r15,0x8(%rsp)
mov    %rbx,0x10(%rsp)
lea    0xea1(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1060 <fwrite@plt>
lea    0xe9f(%rip),%rdi
mov    $0x7,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
lea    0xe8e(%rip),%rdi
mov    $0xc,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
test   %r13d,%r13d
jle    134f <WriteQWML+0x20f>
mov    %r12,0x20(%rsp)
mov    %r13d,0x4(%rsp)
mov    %r13d,%ebx
lea    0xe73(%rip),%r15
xor    %r13d,%r13d
nopw   0x0(%rax,%rax,1)
mov    $0x6,%esi
mov    $0x1,%edx
lea    0xe52(%rip),%rdi
mov    %r14,%rcx
call   1060 <fwrite@plt>
xor    %r12d,%r12d
nopl   0x0(%rax)
mov    0x0(%rbp,%r13,8),%rax
mov    (%rax,%r12,4),%edx
mov    %r14,%rdi
mov    %r15,%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
add    $0x1,%r12
cmp    %r12,%rbx
jne    1210 <WriteQWML+0xd0>
mov    $0x7,%esi
mov    $0x1,%edx
lea    0xe2a(%rip),%rdi
mov    %r14,%rcx
call   1060 <fwrite@plt>
add    $0x1,%r13
cmp    %rbx,%r13
jne    11f0 <WriteQWML+0xb0>
mov    %rbx,0x18(%rsp)
lea    0xe15(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
lea    0xe0a(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
cmpl   $0x0,0x4(%rsp)
jle    1381 <WriteQWML+0x241>
xor    %r15d,%r15d
mov    0x20(%rsp),%r12
jmp    12c8 <WriteQWML+0x188>
nopl   (%rax)
mov    $0xa,%esi
mov    $0x1,%edx
lea    0xdfa(%rip),%rdi
mov    %r14,%rcx
call   1060 <fwrite@plt>
add    $0x1,%r15
cmp    0x18(%rsp),%r15
je     1381 <WriteQWML+0x241>
mov    $0x9,%esi
mov    $0x1,%edx
lea    0xdb3(%rip),%rdi
mov    %r14,%rcx
call   1060 <fwrite@plt>
cmpl   $0x0,0x60(%rsp)
lea    0xda9(%rip),%r13
mov    0x60(%rsp),%ebx
jle    12a0 <WriteQWML+0x160>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%r12,%rbp,8),%rax
movsd  (%rax,%r15,8),%xmm0
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0x1,%al
call   1040 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1300 <WriteQWML+0x1c0>
jmp    12a0 <WriteQWML+0x160>
mov    0x2cb4(%rip),%rax
mov    (%rax),%rcx
lea    0xccc(%rip),%rdi
mov    $0x24,%esi
mov    $0x1,%edx
call   1060 <fwrite@plt>
mov    $0xffffffff,%ebp
jmp    13e9 <WriteQWML+0x2a9>
lea    0xd1c(%rip),%rdi
mov    $0xd,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
lea    0xd11(%rip),%rdi
mov    $0xb,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
lea    0xd2e(%rip),%rdi
mov    $0xc,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
lea    0xd22(%rip),%rsi
xor    %ebp,%ebp
mov    %r14,%rdi
mov    0x8(%rsp),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xd23(%rip),%rsi
mov    %r14,%rdi
mov    0x10(%rsp),%rdx
xor    %eax,%eax
call   1040 <fprintf@plt>
lea    0xd24(%rip),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1060 <fwrite@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
mov    %ebp,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.1 = [37 x i8] c"WriteQWML: error opening output file\00"
@.str.2 = [23 x i8] c"<?xml version=\221.0\22?>\0A\00"
@.str.3 = [8 x i8] c"<qwml>\0A\00"
@.str.4 = [13 x i8] c"<adjacency>\0A\00"
@.str.5 = [7 x i8] c"<row>\0A\00"
@.str.6 = [16 x i8] c"<col>%1d</col>\0A\00"
@.str.7 = [8 x i8] c"</row>\0A\00"
@.str.8 = [14 x i8] c"</adjacency>\0A\00"
@.str.9 = [12 x i8] c"<probdist>\0A\00"
@.str.10 = [10 x i8] c"<vertex>\0A\00"
@.str.11 = [21 x i8] c"<prob>%10.8f</prob>\0A\00"
@.str.12 = [11 x i8] c"</vertex>\0A\00"
@.str.13 = [13 x i8] c"</probdist>\0A\00"
@.str.14 = [25 x i8] c"<filename>%s</filename>\0A\00"
@.str.15 = [23 x i8] c"<comment>%s</comment>\0A\00"
@.str.16 = [9 x i8] c"</qwml>\0A\00"
define i32 @WriteQWML(i8* %0, i32** %1, double** %2, i8* %3, i8* %4, i32 %5, i32 %6) {
%8 = alloca i32
%9 = alloca i8*
%10 = alloca i32**
%11 = alloca double**
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32*
store i8* %0, i8** %9
store i32** %1, i32*** %10
store double** %2, double*** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i32 %5, i32* %14
store i32 %6, i32* %15
store i32* null, i32** %19
%20 = load i8*, i8** %9
%21 = call i32* @fopen(i8* %20, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %21, i32** %19
%22 = load i32*, i32** %19
%23 = icmp eq i32* %22, null
br i1 %23, label %24, label %27
24: ; preds = %7
%25 = load i32*, i32** @stderr
%26 = call i32 (i32*, i8*, ...) @fprintf(i32* %25, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %8
br label %116
27: ; preds = %7
%28 = load i32*, i32** %19
%29 = call i32 (i32*, i8*, ...) @fprintf(i32* %28, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%30 = load i32*, i32** %19
%31 = call i32 (i32*, i8*, ...) @fprintf(i32* %30, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
%32 = load i32*, i32** %19
%33 = call i32 (i32*, i8*, ...) @fprintf(i32* %32, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
store i32 0, i32* %16
br label %34
34: ; preds = %63, %27
%35 = load i32, i32* %16
%36 = load i32, i32* %14
%37 = icmp slt i32 %35, %36
br i1 %37, label %38, label %66
38: ; preds = %34
%39 = load i32*, i32** %19
%40 = call i32 (i32*, i8*, ...) @fprintf(i32* %39, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %17
br label %41
41: ; preds = %57, %38
%42 = load i32, i32* %17
%43 = load i32, i32* %14
%44 = icmp slt i32 %42, %43
br i1 %44, label %45, label %60
45: ; preds = %41
%46 = load i32*, i32** %19
%47 = load i32**, i32*** %10
%48 = load i32, i32* %16
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i32*, i32** %47, i64 %49
%51 = load i32*, i32** %50
%52 = load i32, i32* %17
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds i32, i32* %51, i64 %53
%55 = load i32, i32* %54
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %46, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %55)
br label %57
57: ; preds = %45
%58 = load i32, i32* %17
%59 = add nsw i32 %58, 1
store i32 %59, i32* %17
br label %41
60: ; preds = %41
%61 = load i32*, i32** %19
%62 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
br label %63
63: ; preds = %60
%64 = load i32, i32* %16
%65 = add nsw i32 %64, 1
store i32 %65, i32* %16
br label %34
66: ; preds = %34
%67 = load i32*, i32** %19
%68 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%69 = load i32*, i32** %19
%70 = call i32 (i32*, i8*, ...) @fprintf(i32* %69, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0))
store i32 0, i32* %16
br label %71
71: ; preds = %100, %66
%72 = load i32, i32* %16
%73 = load i32, i32* %14
%74 = icmp slt i32 %72, %73
br i1 %74, label %75, label %103
75: ; preds = %71
%76 = load i32*, i32** %19
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0))
store i32 0, i32* %18
br label %78
78: ; preds = %94, %75
%79 = load i32, i32* %18
%80 = load i32, i32* %15
%81 = icmp slt i32 %79, %80
br i1 %81, label %82, label %97
82: ; preds = %78
%83 = load i32*, i32** %19
%84 = load double**, double*** %11
%85 = load i32, i32* %18
%86 = sext i32 %85 to i64
%87 = getelementptr inbounds double*, double** %84, i64 %86
%88 = load double*, double** %87
%89 = load i32, i32* %16
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds double, double* %88, i64 %90
%92 = load double, double* %91
%93 = call i32 (i32*, i8*, ...) @fprintf(i32* %83, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), double %92)
br label %94
94: ; preds = %82
%95 = load i32, i32* %18
%96 = add nsw i32 %95, 1
store i32 %96, i32* %18
br label %78
97: ; preds = %78
%98 = load i32*, i32** %19
%99 = call i32 (i32*, i8*, ...) @fprintf(i32* %98, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
br label %100
100: ; preds = %97
%101 = load i32, i32* %16
%102 = add nsw i32 %101, 1
store i32 %102, i32* %16
br label %71
103: ; preds = %71
%104 = load i32*, i32** %19
%105 = call i32 (i32*, i8*, ...) @fprintf(i32* %104, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0))
%106 = load i32*, i32** %19
%107 = load i8*, i8** %9
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %106, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i8* %107)
%109 = load i32*, i32** %19
%110 = load i8*, i8** %13
%111 = call i32 (i32*, i8*, ...) @fprintf(i32* %109, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* %110)
%112 = load i32*, i32** %19
%113 = call i32 (i32*, i8*, ...) @fprintf(i32* %112, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0))
%114 = load i32*, i32** %19
%115 = call i32 @fclose(i32* %114)
store i32 0, i32* %8
br label %116
116: ; preds = %103, %24
%117 = load i32, i32* %8
ret i32 %117
}

LLVM IR (-O2):
@.str = [2 x i8] c"w\00"
@stderr = global i32* null
@.str.1 = [37 x i8] c"WriteQWML: error opening output file\00"
@.str.2 = [23 x i8] c"<?xml version=\221.0\22?>\0A\00"
@.str.3 = [8 x i8] c"<qwml>\0A\00"
@.str.4 = [13 x i8] c"<adjacency>\0A\00"
@.str.5 = [7 x i8] c"<row>\0A\00"
@.str.6 = [16 x i8] c"<col>%1d</col>\0A\00"
@.str.7 = [8 x i8] c"</row>\0A\00"
@.str.8 = [14 x i8] c"</adjacency>\0A\00"
@.str.9 = [12 x i8] c"<probdist>\0A\00"
@.str.10 = [10 x i8] c"<vertex>\0A\00"
@.str.11 = [21 x i8] c"<prob>%10.8f</prob>\0A\00"
@.str.12 = [11 x i8] c"</vertex>\0A\00"
@.str.13 = [13 x i8] c"</probdist>\0A\00"
@.str.14 = [25 x i8] c"<filename>%s</filename>\0A\00"
@.str.15 = [23 x i8] c"<comment>%s</comment>\0A\00"
@.str.16 = [9 x i8] c"</qwml>\0A\00"
define i32 @WriteQWML(i8* %0, i32** nocapture %1, double** nocapture %2, i8* nocapture readnone %3, i8* %4, i32 %5, i32 %6) {
%8 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%9 = icmp eq i32* %8, null
br i1 %9, label %10, label %13
10: ; preds = %7
%11 = load i32*, i32** @stderr
%12 = tail call i64 @fwrite(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.1, i64 0, i64 0), i64 36, i64 1, i32* %11)
br label %68
13: ; preds = %7
%14 = tail call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0), i64 22, i64 1, i32* %8)
%15 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i64 7, i64 1, i32* %8)
%16 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0), i64 12, i64 1, i32* %8)
%17 = icmp sgt i32 %5, 0
br i1 %17, label %18, label %59
18: ; preds = %13
%19 = zext i32 %5 to i64
br label %20
20: ; preds = %32, %18
%21 = phi i64 [ 0, %18 ], [ %34, %32 ]
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i64 6, i64 1, i32* %8)
%23 = getelementptr inbounds i32*, i32** %1, i64 %21
br label %24
24: ; preds = %20, %24
%25 = phi i64 [ 0, %20 ], [ %30, %24 ]
%26 = load i32*, i32** %23
%27 = getelementptr inbounds i32, i32* %26, i64 %25
%28 = load i32, i32* %27
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.6, i64 0, i64 0), i32 %28)
%30 = add nuw nsw i64 %25, 1
%31 = icmp eq i64 %30, %19
br i1 %31, label %32, label %24
32: ; preds = %24
%33 = tail call i64 @fwrite(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i64 7, i64 1, i32* %8)
%34 = add nuw nsw i64 %21, 1
%35 = icmp eq i64 %34, %19
br i1 %35, label %36, label %20
36: ; preds = %32
%37 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i64 13, i64 1, i32* %8)
%38 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i64 11, i64 1, i32* %8)
br i1 %17, label %39, label %62
39: ; preds = %36
%40 = icmp sgt i32 %6, 0
%41 = zext i32 %5 to i64
%42 = zext i32 %6 to i64
br label %43
43: ; preds = %39, %55
%44 = phi i64 [ 0, %39 ], [ %57, %55 ]
%45 = tail call i64 @fwrite(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.10, i64 0, i64 0), i64 9, i64 1, i32* %8)
br i1 %40, label %46, label %55
46: ; preds = %43, %46
%47 = phi i64 [ %53, %46 ], [ 0, %43 ]
%48 = getelementptr inbounds double*, double** %2, i64 %47
%49 = load double*, double** %48
%50 = getelementptr inbounds double, double* %49, i64 %44
%51 = load double, double* %50
%52 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.11, i64 0, i64 0), double %51)
%53 = add nuw nsw i64 %47, 1
%54 = icmp eq i64 %53, %42
br i1 %54, label %55, label %46
55: ; preds = %46, %43
%56 = tail call i64 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i64 10, i64 1, i32* %8)
%57 = add nuw nsw i64 %44, 1
%58 = icmp eq i64 %57, %41
br i1 %58, label %62, label %43
59: ; preds = %13
%60 = tail call i64 @fwrite(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), i64 13, i64 1, i32* %8)
%61 = tail call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i64 11, i64 1, i32* %8)
br label %62
62: ; preds = %55, %59, %36
%63 = tail call i64 @fwrite(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.13, i64 0, i64 0), i64 12, i64 1, i32* %8)
%64 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i8* %0)
%65 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %8, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.15, i64 0, i64 0), i8* %4)
%66 = tail call i64 @fwrite(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i64 8, i64 1, i32* %8)
%67 = tail call i32 @fclose(i32* %8)
br label %68
68: ; preds = %62, %10
%69 = phi i32 [ -1, %10 ], [ 0, %62 ]
ret i32 %69
}