#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*/ assert(int /*<<< orphan*/);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ puts(char *);
void c_savevtk_vector(int Xrow, int Xcol, int Yrow, int Ycol, double *X,
                      double *Y, char *filename, char *vectorName, double dx,
                      double dy) {
  FILE *fptr = fopen(filename, "w");
  if (fptr == NULL) {
    puts("no file exists");
  } else {
    assert(Xrow == Yrow && Xcol == Ycol &&
           "Error: velocity arrays of unequal size");
    fprintf(fptr, "# vtk DataFile Version 2.0\n");
    fprintf(fptr, "Comment goes here\n");
    fprintf(fptr, "ASCII\n");
    fprintf(fptr, "\n");
    fprintf(fptr, "DATASET STRUCTURED_POINTS\n");
    fprintf(fptr, "DIMENSIONS    %d   %d   %d\n", Xrow, Xcol, 1);
    fprintf(fptr, "\n");
    fprintf(fptr, "ORIGIN    0.000   0.000   0.000\n");
    fprintf(fptr, "SPACING   %f%f   1.000\n", dx, dy);
    fprintf(fptr, "\n");
    fprintf(fptr, "POINT_DATA   %d\n", Xrow * Xcol);
    fprintf(fptr, "VECTORS %s double\n", vectorName);
    fprintf(fptr, "\n");
    for (int i = 0; i < Xrow; i++) {
      for (int j = 0; j < Xcol; j++) {
        fprintf(fptr, "%f ", X[i * Xcol + j]);
        fprintf(fptr, "%f ", Y[i * Xcol + j]);
        fprintf(fptr, "0 ");
      }
      fprintf(fptr, "\n");
    }
    fclose(fptr);
  }
}


x86 assembly (clang, -O0):
<c_savevtk_vector>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8,-0x18(%rbp)
mov    %r9,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
movsd  %xmm1,-0x30(%rbp)
mov    0x10(%rbp),%rdi
lea    0xe77(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    11ae <c_savevtk_vector+0x5e>
lea    0xe5e(%rip),%rdi
call   1030 <puts@plt>
jmp    13b1 <c_savevtk_vector+0x261>
mov    -0x4(%rbp),%ecx
xor    %eax,%eax
cmp    -0xc(%rbp),%ecx
mov    %al,-0x41(%rbp)
jne    11da <c_savevtk_vector+0x8a>
mov    -0x8(%rbp),%ecx
xor    %eax,%eax
cmp    -0x10(%rbp),%ecx
mov    %al,-0x41(%rbp)
jne    11da <c_savevtk_vector+0x8a>
mov    $0x1,%al
mov    %al,-0x41(%rbp)
jmp    11da <c_savevtk_vector+0x8a>
mov    -0x41(%rbp),%al
and    $0x1,%al
movzbl %al,%edi
call   1050 <assert@plt>
mov    -0x38(%rbp),%rdi
lea    0xe46(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe50(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe51(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe2a(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe34(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
lea    0xe37(%rip),%rsi
mov    $0x1,%r8d
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xde8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xe29(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
movsd  -0x28(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
lea    0xe2e(%rip),%rsi
mov    $0x2,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xda8(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    -0x4(%rbp),%edx
imul   -0x8(%rbp),%edx
lea    0xe1b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    0x18(%rbp),%rdx
lea    0xe16(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xd67(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13a8 <c_savevtk_vector+0x258>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1388 <c_savevtk_vector+0x238>
mov    -0x38(%rbp),%rdi
mov    -0x18(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xdc9(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
mov    -0x20(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x8(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xda1(%rip),%rsi
mov    $0x1,%al
call   1060 <fprintf@plt>
mov    -0x38(%rbp),%rdi
lea    0xd93(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    130c <c_savevtk_vector+0x1bc>
mov    -0x38(%rbp),%rdi
lea    0xcbf(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12f9 <c_savevtk_vector+0x1a9>
mov    -0x38(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_savevtk_vector>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movsd  %xmm1,0x18(%rsp)
movsd  %xmm0,0x10(%rsp)
mov    %r9,%r13
mov    %r8,%r14
mov    %ecx,%ebx
mov    %edx,%r12d
mov    %esi,0xc(%rsp)
mov    %edi,%r15d
mov    0x68(%rsp),%rax
mov    %rax,0x20(%rsp)
mov    0x60(%rsp),%rdi
lea    0xe4e(%rip),%rsi
call   1080 <fopen@plt>
test   %rax,%rax
je     13c4 <c_savevtk_vector+0x254>
mov    %rax,%rbp
xor    %r15d,%r12d
xor    0xc(%rsp),%ebx
xor    %edi,%edi
or     %r12d,%ebx
sete   %dil
call   1060 <assert@plt>
lea    0xe32(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1090 <fwrite@plt>
lea    0xe35(%rip),%rdi
mov    $0x12,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1090 <fwrite@plt>
lea    0xe2f(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1090 <fwrite@plt>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1050 <fputc@plt>
lea    0xe10(%rip),%rdi
mov    $0x1a,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1090 <fwrite@plt>
lea    0xe12(%rip),%rsi
mov    %rbp,%rdi
mov    %r15d,%edx
mov    0xc(%rsp),%ebx
mov    %ebx,%ecx
mov    $0x1,%r8d
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1050 <fputc@plt>
lea    0xe01(%rip),%rdi
mov    $0x20,%esi
mov    $0x1,%edx
mov    %rbp,%rcx
call   1090 <fwrite@plt>
lea    0xe09(%rip),%rsi
mov    %rbp,%rdi
movsd  0x10(%rsp),%xmm0
movsd  0x18(%rsp),%xmm1
mov    $0x2,%al
call   1070 <fprintf@plt>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1050 <fputc@plt>
mov    %ebx,%edx
imul   %r15d,%edx
lea    0xdf1(%rip),%rsi
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <fprintf@plt>
lea    0xdf1(%rip),%rsi
mov    %rbp,%rdi
mov    0x20(%rsp),%rdx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1050 <fputc@plt>
test   %r15d,%r15d
jle    13ae <c_savevtk_vector+0x23e>
mov    %ebx,%eax
movslq %ebx,%rcx
mov    %r15d,%edx
mov    %rdx,0x10(%rsp)
mov    %ebx,%r15d
shl    $0x3,%rcx
mov    %rcx,0x18(%rsp)
xor    %ecx,%ecx
lea    0xdbd(%rip),%rbx
jmp    134f <c_savevtk_vector+0x1df>
mov    $0xa,%edi
mov    %rbp,%rsi
call   1050 <fputc@plt>
mov    0x20(%rsp),%rcx
add    $0x1,%rcx
mov    0x18(%rsp),%rax
add    %rax,%r12
mov    %r12,%r14
add    %rax,%r13
cmp    0x10(%rsp),%rcx
mov    0xc(%rsp),%eax
je     13ae <c_savevtk_vector+0x23e>
mov    %rcx,0x20(%rsp)
test   %eax,%eax
mov    %r14,%r12
jle    1320 <c_savevtk_vector+0x1b0>
xor    %r14d,%r14d
xchg   %ax,%ax
movsd  (%r12,%r14,8),%xmm0
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
movsd  0x0(%r13,%r14,8),%xmm0
mov    %rbp,%rdi
mov    %rbx,%rsi
mov    $0x1,%al
call   1070 <fprintf@plt>
mov    $0x2,%esi
mov    $0x1,%edx
lea    0xd47(%rip),%rdi
mov    %rbp,%rcx
call   1090 <fwrite@plt>
add    $0x1,%r14
cmp    %r14,%r15
jne    1360 <c_savevtk_vector+0x1f0>
jmp    1320 <c_savevtk_vector+0x1b0>
mov    %rbp,%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fclose@plt>
lea    0xc37(%rip),%rdi
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"w\00"
@.str.1 = [15 x i8] c"no file exists\00"
@.str.2 = [39 x i8] c"Error: velocity arrays of unequal size\00"
@.str.3 = [28 x i8] c"# vtk DataFile Version 2.0\0A\00"
@.str.4 = [19 x i8] c"Comment goes here\0A\00"
@.str.5 = [7 x i8] c"ASCII\0A\00"
@.str.6 = [2 x i8] c"\0A\00"
@.str.7 = [27 x i8] c"DATASET STRUCTURED_POINTS\0A\00"
@.str.8 = [28 x i8] c"DIMENSIONS %d %d %d\0A\00"
@.str.9 = [33 x i8] c"ORIGIN 0.000 0.000 0.000\0A\00"
@.str.10 = [24 x i8] c"SPACING %f%f 1.000\0A\00"
@.str.11 = [17 x i8] c"POINT_DATA %d\0A\00"
@.str.12 = [19 x i8] c"VECTORS %s double\0A\00"
@.str.13 = [4 x i8] c"%f \00"
@.str.14 = [3 x i8] c"0 \00"
define void @c_savevtk_vector(i32 %0, i32 %1, i32 %2, i32 %3, double* %4, double* %5, i8* %6, i8* %7, double %8, double %9) {
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca double*
%16 = alloca double*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca double
%20 = alloca double
%21 = alloca i32*
%22 = alloca i32
%23 = alloca i32
store i32 %0, i32* %11
store i32 %1, i32* %12
store i32 %2, i32* %13
store i32 %3, i32* %14
store double* %4, double** %15
store double* %5, double** %16
store i8* %6, i8** %17
store i8* %7, i8** %18
store double %8, double* %19
store double %9, double* %20
%24 = load i8*, i8** %17
%25 = call i32* @fopen(i8* %24, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %25, i32** %21
%26 = load i32*, i32** %21
%27 = icmp eq i32* %26, null
br i1 %27, label %28, label %30
28: ; preds = %10
%29 = call i32 @puts(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %123
30: ; preds = %10
%31 = load i32, i32* %11
%32 = load i32, i32* %13
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %39
34: ; preds = %30
%35 = load i32, i32* %12
%36 = load i32, i32* %14
%37 = icmp eq i32 %35, %36
br i1 %37, label %38, label %39
38: ; preds = %34
br label %39
39: ; preds = %38, %34, %30
%40 = phi i1 [ false, %34 ], [ false, %30 ], [ true, %38 ]
%41 = zext i1 %40 to i32
%42 = call i32 @assert(i32 %41)
%43 = load i32*, i32** %21
%44 = call i32 (i32*, i8*, ...) @fprintf(i32* %43, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0))
%45 = load i32*, i32** %21
%46 = call i32 (i32*, i8*, ...) @fprintf(i32* %45, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0))
%47 = load i32*, i32** %21
%48 = call i32 (i32*, i8*, ...) @fprintf(i32* %47, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
%49 = load i32*, i32** %21
%50 = call i32 (i32*, i8*, ...) @fprintf(i32* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%51 = load i32*, i32** %21
%52 = call i32 (i32*, i8*, ...) @fprintf(i32* %51, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%53 = load i32*, i32** %21
%54 = load i32, i32* %11
%55 = load i32, i32* %12
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %53, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 %54, i32 %55, i32 1)
%57 = load i32*, i32** %21
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %57, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%59 = load i32*, i32** %21
%60 = call i32 (i32*, i8*, ...) @fprintf(i32* %59, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0))
%61 = load i32*, i32** %21
%62 = load double, double* %19
%63 = load double, double* %20
%64 = call i32 (i32*, i8*, ...) @fprintf(i32* %61, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), double %62, double %63)
%65 = load i32*, i32** %21
%66 = call i32 (i32*, i8*, ...) @fprintf(i32* %65, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%67 = load i32*, i32** %21
%68 = load i32, i32* %11
%69 = load i32, i32* %12
%70 = mul nsw i32 %68, %69
%71 = call i32 (i32*, i8*, ...) @fprintf(i32* %67, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 %70)
%72 = load i32*, i32** %21
%73 = load i8*, i8** %18
%74 = call i32 (i32*, i8*, ...) @fprintf(i32* %72, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %73)
%75 = load i32*, i32** %21
%76 = call i32 (i32*, i8*, ...) @fprintf(i32* %75, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i32 0, i32* %22
br label %77
77: ; preds = %117, %39
%78 = load i32, i32* %22
%79 = load i32, i32* %11
%80 = icmp slt i32 %78, %79
br i1 %80, label %81, label %120
81: ; preds = %77
store i32 0, i32* %23
br label %82
82: ; preds = %111, %81
%83 = load i32, i32* %23
%84 = load i32, i32* %12
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %114
86: ; preds = %82
%87 = load i32*, i32** %21
%88 = load double*, double** %15
%89 = load i32, i32* %22
%90 = load i32, i32* %12
%91 = mul nsw i32 %89, %90
%92 = load i32, i32* %23
%93 = add nsw i32 %91, %92
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %88, i64 %94
%96 = load double, double* %95
%97 = call i32 (i32*, i8*, ...) @fprintf(i32* %87, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %96)
%98 = load i32*, i32** %21
%99 = load double*, double** %16
%100 = load i32, i32* %22
%101 = load i32, i32* %12
%102 = mul nsw i32 %100, %101
%103 = load i32, i32* %23
%104 = add nsw i32 %102, %103
%105 = sext i32 %104 to i64
%106 = getelementptr inbounds double, double* %99, i64 %105
%107 = load double, double* %106
%108 = call i32 (i32*, i8*, ...) @fprintf(i32* %98, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %107)
%109 = load i32*, i32** %21
%110 = call i32 (i32*, i8*, ...) @fprintf(i32* %109, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0))
br label %111
111: ; preds = %86
%112 = load i32, i32* %23
%113 = add nsw i32 %112, 1
store i32 %113, i32* %23
br label %82
114: ; preds = %82
%115 = load i32*, i32** %21
%116 = call i32 (i32*, i8*, ...) @fprintf(i32* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %117
117: ; preds = %114
%118 = load i32, i32* %22
%119 = add nsw i32 %118, 1
store i32 %119, i32* %22
br label %77
120: ; preds = %77
%121 = load i32*, i32** %21
%122 = call i32 @fclose(i32* %121)
br label %123
123: ; preds = %120, %28
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"w\00"
@.str.1 = [15 x i8] c"no file exists\00"
@.str.3 = [28 x i8] c"# vtk DataFile Version 2.0\0A\00"
@.str.4 = [19 x i8] c"Comment goes here\0A\00"
@.str.5 = [7 x i8] c"ASCII\0A\00"
@.str.7 = [27 x i8] c"DATASET STRUCTURED_POINTS\0A\00"
@.str.8 = [28 x i8] c"DIMENSIONS %d %d %d\0A\00"
@.str.9 = [33 x i8] c"ORIGIN 0.000 0.000 0.000\0A\00"
@.str.10 = [24 x i8] c"SPACING %f%f 1.000\0A\00"
@.str.11 = [17 x i8] c"POINT_DATA %d\0A\00"
@.str.12 = [19 x i8] c"VECTORS %s double\0A\00"
@.str.13 = [4 x i8] c"%f \00"
@.str.14 = [3 x i8] c"0 \00"
define void @c_savevtk_vector(i32 %0, i32 %1, i32 %2, i32 %3, double* nocapture %4, double* nocapture %5, i8* nocapture %6, i8* %7, double %8, double %9) {
%11 = tail call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %15
13: ; preds = %10
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
br label %63
15: ; preds = %10
%16 = icmp eq i32 %0, %2
%17 = icmp eq i32 %1, %3
%18 = and i1 %16, %17
%19 = zext i1 %18 to i32
%20 = tail call i32 @assert(i32 %19)
%21 = tail call i64 @fwrite(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.3, i64 0, i64 0), i64 27, i64 1, i32* %11)
%22 = tail call i64 @fwrite(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i64 18, i64 1, i32* %11)
%23 = tail call i64 @fwrite(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i64 6, i64 1, i32* %11)
%24 = tail call i32 @fputc(i32 10, i32* %11)
%25 = tail call i64 @fwrite(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0), i64 26, i64 1, i32* %11)
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.8, i64 0, i64 0), i32 %0, i32 %1, i32 1)
%27 = tail call i32 @fputc(i32 10, i32* %11)
%28 = tail call i64 @fwrite(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.9, i64 0, i64 0), i64 32, i64 1, i32* %11)
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.10, i64 0, i64 0), double %8, double %9)
%30 = tail call i32 @fputc(i32 10, i32* %11)
%31 = mul nsw i32 %1, %0
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.11, i64 0, i64 0), i32 %31)
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.12, i64 0, i64 0), i8* %7)
%34 = tail call i32 @fputc(i32 10, i32* %11)
%35 = icmp sgt i32 %0, 0
br i1 %35, label %36, label %45
36: ; preds = %15
%37 = icmp sgt i32 %1, 0
%38 = sext i32 %1 to i64
%39 = zext i32 %0 to i64
%40 = zext i32 %1 to i64
br label %41
41: ; preds = %36, %47
%42 = phi i64 [ 0, %36 ], [ %49, %47 ]
br i1 %37, label %43, label %47
43: ; preds = %41
%44 = mul nsw i64 %42, %38
br label %51
45: ; preds = %47, %15
%46 = tail call i32 @fclose(i32* %11)
br label %63
47: ; preds = %51, %41
%48 = tail call i32 @fputc(i32 10, i32* %11)
%49 = add nuw nsw i64 %42, 1
%50 = icmp eq i64 %49, %39
br i1 %50, label %45, label %41
51: ; preds = %43, %51
%52 = phi i64 [ 0, %43 ], [ %61, %51 ]
%53 = add nsw i64 %52, %44
%54 = getelementptr inbounds double, double* %4, i64 %53
%55 = load double, double* %54
%56 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %55)
%57 = getelementptr inbounds double, double* %5, i64 %53
%58 = load double, double* %57
%59 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %11, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0), double %58)
%60 = tail call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i64 2, i64 1, i32* %11)
%61 = add nuw nsw i64 %52, 1
%62 = icmp eq i64 %61, %40
br i1 %62, label %47, label %51
63: ; preds = %45, %13
ret void
}