#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*/ puts(char *);
void c_savevtk_points_connects_write(int N, int Nc, double *x, char *filename,
                                     char *vectorname, double *connectsMat) {
  FILE *fptr = fopen(filename, "w");
  if (fptr == NULL) {
    puts("no file exists");
  } else {
    fprintf(fptr, "# vtk DataFile Version 2.0 \n");
    fprintf(fptr, "%s", vectorname);
    fprintf(fptr, "\n");
    fprintf(fptr, "ASCII\n");
    fprintf(fptr, "DATASET UNSTRUCTURED_GRID\n\n");
    fprintf(fptr, "POINTS %d float\n", N);
    for (int i = 0; i < N; i++) {
      fprintf(fptr, "%.15e %.15e %.15e \n", x[i * 3 + 0], x[i * 3 + 1],
              x[i * 3 + 2]);
    }
    fprintf(fptr, "\n");
    fprintf(fptr, "CELLS %d %d\n", Nc, Nc * 3);
    for (int i = 0; i < Nc; i++) {
      fprintf(fptr, "%d %d %d\n", 2, (int)connectsMat[i * 2 + 0],
              (int)connectsMat[i * 2 + 1]);
    }
    fprintf(fptr, "\n");
    fprintf(fptr, "CELL_TYPES %d\n", Nc);
    for (int i = 0; i < Nc; i++) {
      fprintf(fptr, "3 ");
    }
    fprintf(fptr, "\n");
    fclose(fptr);
  }
}


x86 assembly (clang, -O0):
<c_savevtk_points_connects_write>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe97(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    118e <c_savevtk_points_connects_write+0x4e>
lea    0xe7e(%rip),%rdi
call   1030 <puts@plt>
jmp    1370 <c_savevtk_points_connects_write+0x230>
mov    -0x30(%rbp),%rdi
lea    0xe78(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x20(%rbp),%rdx
lea    0xe7f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    0xe91(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    0xe5e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
lea    0xe53(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x4(%rbp),%edx
lea    0xe5a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    126d <c_savevtk_points_connects_write+0x12d>
mov    -0x30(%rbp),%rdi
mov    -0x10(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x10(%rbp),%rax
imul   $0x3,-0x34(%rbp),%ecx
add    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
lea    0xe0d(%rip),%rsi
mov    $0x3,%al
call   1050 <fprintf@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1208 <c_savevtk_points_connects_write+0xc8>
mov    -0x30(%rbp),%rdi
lea    0xdda(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%edx
imul   $0x3,-0x8(%rbp),%ecx
lea    0xde8(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12fb <c_savevtk_points_connects_write+0x1bb>
mov    -0x30(%rbp),%rdi
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
shl    $0x1,%ecx
add    $0x0,%ecx
movslq %ecx,%rcx
cvttsd2si (%rax,%rcx,8),%ecx
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%edx
shl    $0x1,%edx
add    $0x1,%edx
movslq %edx,%rdx
cvttsd2si (%rax,%rdx,8),%r8d
lea    0xda5(%rip),%rsi
mov    $0x2,%edx
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    129f <c_savevtk_points_connects_write+0x15f>
mov    -0x30(%rbp),%rdi
lea    0xd4c(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
mov    -0x8(%rbp),%edx
lea    0xd75(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1355 <c_savevtk_points_connects_write+0x215>
mov    -0x30(%rbp),%rdi
lea    0xd5f(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1329 <c_savevtk_points_connects_write+0x1e9>
mov    -0x30(%rbp),%rdi
lea    0xcf2(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x30(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<c_savevtk_points_connects_write>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r15
mov    %r8,%rbp
mov    %rdx,%rbx
mov    %esi,%r12d
mov    %edi,%r13d
lea    0xe6f(%rip),%rsi
mov    %rcx,%rdi
call   1080 <fopen@plt>
test   %rax,%rax
je     131d <c_savevtk_points_connects_write+0x1ad>
mov    %rax,%r14
lea    0xe65(%rip),%rdi
mov    $0x1c,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1090 <fwrite@plt>
mov    %rbp,%rdi
mov    %r14,%rsi
call   1050 <fputs@plt>
mov    $0xa,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
lea    0xe51(%rip),%rdi
mov    $0x6,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1090 <fwrite@plt>
lea    0xe3f(%rip),%rdi
mov    $0x1b,%esi
mov    $0x1,%edx
mov    %r14,%rcx
call   1090 <fwrite@plt>
lea    0xe42(%rip),%rsi
mov    %r14,%rdi
mov    %r13d,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
test   %r13d,%r13d
jle    125e <c_savevtk_points_connects_write+0xee>
mov    %r13d,%eax
shl    $0x3,%rax
lea    (%rax,%rax,2),%rbp
xor    %r13d,%r13d
nop
movsd  (%rbx,%r13,1),%xmm0
movsd  0x8(%rbx,%r13,1),%xmm1
movsd  0x10(%rbx,%r13,1),%xmm2
mov    %r14,%rdi
lea    0xe14(%rip),%rsi
mov    $0x3,%al
call   1070 <fprintf@plt>
add    $0x18,%r13
cmp    %r13,%rbp
jne    1230 <c_savevtk_points_connects_write+0xc0>
mov    $0xa,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
lea    (%r12,%r12,2),%ecx
lea    0xe00(%rip),%rsi
mov    %r14,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
test   %r12d,%r12d
jle    1337 <c_savevtk_points_connects_write+0x1c7>
mov    %r12d,%ebp
shl    $0x4,%rbp
lea    0xde9(%rip),%r13
xor    %ebx,%ebx
nopl   0x0(%rax)
cvttsd2si (%r15,%rbx,1),%ecx
cvttsd2si 0x8(%r15,%rbx,1),%r8d
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
add    $0x10,%rbx
cmp    %rbx,%rbp
jne    12a0 <c_savevtk_points_connects_write+0x130>
mov    $0xa,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
lea    0xdb1(%rip),%rsi
mov    %r14,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
test   %r12d,%r12d
jle    1358 <c_savevtk_points_connects_write+0x1e8>
lea    0xda7(%rip),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rbx,%rdi
mov    %r14,%rcx
call   1090 <fwrite@plt>
add    $0xffffffff,%r12d
jne    1300 <c_savevtk_points_connects_write+0x190>
jmp    1358 <c_savevtk_points_connects_write+0x1e8>
lea    0xcde(%rip),%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <puts@plt>
mov    $0xa,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
lea    0xd42(%rip),%rsi
mov    %r14,%rdi
mov    %r12d,%edx
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0xa,%edi
mov    %r14,%rsi
call   1060 <fputc@plt>
mov    %r14,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fclose@plt>

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

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