#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 count_lines(char *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, double);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, double *, double *,
                          double *);
double *malloc(int);
scalar_t__ pow(double, double);
double sqrt(scalar_t__);
int main(int argc, char **argv) {
  int i, j, n_points;
  double count;
  double *x;
  double *y;
  double *z;
  double *k;
  FILE *rfile;
  FILE *cfile;
  n_points = count_lines(argv[1]);
  rfile = fopen(argv[1], "r");
  cfile = fopen(argv[2], "w");
  x = malloc(n_points * sizeof(double));
  y = malloc(n_points * sizeof(double));
  z = malloc(n_points * sizeof(double));
  k = malloc(n_points * sizeof(double));
  for (i = 0; i < n_points; i++) {
    fscanf(rfile, "%lf,%lf,%lf\n", &(x[i]), &(y[i]), &(z[i]));
    k[i] = 0;
  }
  for (i = 0; i < n_points; i++) {
    for (j = i + 1; j < n_points; j++) {
      count = 1.0 / sqrt(pow(x[i] - x[j], 2.0) + pow(y[i] - y[j], 2.0) +
                         pow(z[i] - z[j], 2.0));
      k[i] += count;
      k[j] += count;
    }
  }
  for (i = 0; i < n_points; i++) {
    fprintf(cfile, "%lf\n", k[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1060 <count_lines@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe6b(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe55(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,-0x58(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x40(%rbp)
movslq -0x1c(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1280 <main+0x110>
mov    -0x50(%rbp),%rdi
mov    -0x30(%rbp),%rdx
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rdx
mov    -0x38(%rbp),%rcx
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
add    %rax,%rcx
mov    -0x40(%rbp),%r8
movslq -0x14(%rbp),%rax
shl    $0x3,%rax
add    %rax,%r8
lea    0xdb7(%rip),%rsi
call   1030 <fscanf@plt>
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1219 <main+0xa9>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    139e <main+0x22e>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    138b <main+0x21b>
mov    -0x30(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x18(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xd3e(%rip),%xmm1
call   1080 <pow@plt>
mov    %rax,-0x68(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x18(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xd13(%rip),%xmm1
call   1080 <pow@plt>
mov    %rax,%rcx
mov    -0x68(%rbp),%rax
add    %rcx,%rax
mov    %rax,-0x60(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x18(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xcde(%rip),%xmm1
call   1080 <pow@plt>
mov    -0x60(%rbp),%rdi
add    %rax,%rdi
call   1090 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xcba(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x28(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x28(%rbp),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x18(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    129c <main+0x12c>
jmp    1390 <main+0x220>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1287 <main+0x117>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13dc <main+0x26c>
mov    -0x58(%rbp),%rdi
mov    -0x48(%rbp),%rax
movslq -0x14(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
lea    0xc53(%rip),%rsi
call   1040 <fprintf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    13a5 <main+0x235>
mov    -0x4(%rbp),%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
call   1060 <count_lines@plt>
mov    %eax,%ebp
mov    0x8(%rbx),%rdi
lea    0xe79(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r14
mov    0x10(%rbx),%rdi
lea    0xe68(%rip),%rsi
call   1070 <fopen@plt>
mov    %rax,%r12
lea    0x0(,%rbp,8),%ebx
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x20(%rsp)
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x30(%rsp)
mov    %ebx,%edi
call   1050 <malloc@plt>
mov    %rax,0x28(%rsp)
mov    %ebx,%edi
call   1050 <malloc@plt>
test   %ebp,%ebp
jle    1389 <main+0x219>
mov    %r12,0x38(%rsp)
mov    %rbp,0x10(%rsp)
mov    %ebp,%ecx
mov    %rcx,0x18(%rsp)
lea    0x0(,%rcx,8),%r13
xor    %r12d,%r12d
mov    0x20(%rsp),%r15
mov    0x30(%rsp),%rbp
mov    %rax,0x8(%rsp)
mov    0x28(%rsp),%rbx
nopl   0x0(%rax)
lea    (%r15,%r12,1),%rdx
lea    (%r12,%rbp,1),%rcx
lea    (%rbx,%r12,1),%r8
mov    %r14,%rdi
lea    0xdde(%rip),%rsi
call   1030 <fscanf@plt>
mov    0x8(%rsp),%rax
movq   $0x0,(%rax,%r12,1)
add    $0x8,%r12
cmp    %r12,%r13
jne    1220 <main+0xb0>
cmpl   $0x0,0x10(%rsp)
mov    0x18(%rsp),%r13
jle    1389 <main+0x219>
lea    -0x1(%r13),%r15
xor    %r12d,%r12d
mov    0x20(%rsp),%rbx
jmp    1283 <main+0x113>
nop
mov    0x18(%rsp),%r13
mov    0x40(%rsp),%r12
cmp    %r13,%r12
je     1347 <main+0x1d7>
lea    0x1(%r12),%rcx
mov    %rcx,0x40(%rsp)
cmp    %r13,%rcx
mov    0x8(%rsp),%r13
jae    1270 <main+0x100>
mov    %r12,%r14
nopw   0x0(%rax,%rax,1)
movsd  (%rbx,%r12,8),%xmm0
subsd  0x8(%rbx,%r14,8),%xmm0
movsd  0xd4b(%rip),%xmm1
call   1080 <pow@plt>
mov    %rax,%rbp
mov    0x30(%rsp),%rax
movsd  (%rax,%r12,8),%xmm0
subsd  0x8(%rax,%r14,8),%xmm0
movsd  0xd29(%rip),%xmm1
call   1080 <pow@plt>
add    %rax,%rbp
mov    0x28(%rsp),%rax
movsd  (%rax,%r12,8),%xmm0
subsd  0x8(%rax,%r14,8),%xmm0
movsd  0xd07(%rip),%xmm1
call   1080 <pow@plt>
add    %rax,%rbp
mov    %rbp,%rdi
call   1090 <sqrt@plt>
movsd  0xcf7(%rip),%xmm1
divsd  %xmm0,%xmm1
movsd  0x0(%r13,%r12,8),%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%r13,%r12,8)
addsd  0x8(%r13,%r14,8),%xmm1
movsd  %xmm1,0x8(%r13,%r14,8)
add    $0x1,%r14
cmp    %r14,%r15
jne    12a0 <main+0x130>
jmp    1270 <main+0x100>
cmpl   $0x0,0x10(%rsp)
mov    0x38(%rsp),%r15
mov    0x8(%rsp),%rbx
jle    1389 <main+0x219>
xor    %ebp,%ebp
lea    0xcbb(%rip),%r14
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rbp,8),%xmm0
mov    %r15,%rdi
mov    %r14,%rsi
call   1040 <fprintf@plt>
add    $0x1,%rbp
cmp    %rbp,%r13
jne    1370 <main+0x200>
xor    %eax,%eax
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [13 x i8] c"%lf,%lf,%lf\0A\00"
@.str.3 = [5 x i8] c"%lf\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
%10 = alloca double*
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca i32*
%15 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%16 = load i8**, i8*** %5
%17 = getelementptr inbounds i8*, i8** %16, i64 1
%18 = load i8*, i8** %17
%19 = call i32 @count_lines(i8* %18)
store i32 %19, i32* %8
%20 = load i8**, i8*** %5
%21 = getelementptr inbounds i8*, i8** %20, i64 1
%22 = load i8*, i8** %21
%23 = call i32* @fopen(i8* %22, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %23, i32** %14
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32* @fopen(i8* %26, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %27, i32** %15
%28 = load i32, i32* %8
%29 = sext i32 %28 to i64
%30 = mul i64 %29, 8
%31 = trunc i64 %30 to i32
%32 = call double* @malloc(i32 %31)
store double* %32, double** %10
%33 = load i32, i32* %8
%34 = sext i32 %33 to i64
%35 = mul i64 %34, 8
%36 = trunc i64 %35 to i32
%37 = call double* @malloc(i32 %36)
store double* %37, double** %11
%38 = load i32, i32* %8
%39 = sext i32 %38 to i64
%40 = mul i64 %39, 8
%41 = trunc i64 %40 to i32
%42 = call double* @malloc(i32 %41)
store double* %42, double** %12
%43 = load i32, i32* %8
%44 = sext i32 %43 to i64
%45 = mul i64 %44, 8
%46 = trunc i64 %45 to i32
%47 = call double* @malloc(i32 %46)
store double* %47, double** %13
store i32 0, i32* %6
br label %48
48: ; preds = %71, %2
%49 = load i32, i32* %6
%50 = load i32, i32* %8
%51 = icmp slt i32 %49, %50
br i1 %51, label %52, label %74
52: ; preds = %48
%53 = load i32*, i32** %14
%54 = load double*, double** %10
%55 = load i32, i32* %6
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %54, i64 %56
%58 = load double*, double** %11
%59 = load i32, i32* %6
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
%62 = load double*, double** %12
%63 = load i32, i32* %6
%64 = sext i32 %63 to i64
%65 = getelementptr inbounds double, double* %62, i64 %64
%66 = call i32 @fscanf(i32* %53, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), double* %57, double* %61, double* %65)
%67 = load double*, double** %13
%68 = load i32, i32* %6
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds double, double* %67, i64 %69
store double 0.000000e+00, double* %70
br label %71
71: ; preds = %52
%72 = load i32, i32* %6
%73 = add nsw i32 %72, 1
store i32 %73, i32* %6
br label %48
74: ; preds = %48
store i32 0, i32* %6
br label %75
75: ; preds = %145, %74
%76 = load i32, i32* %6
%77 = load i32, i32* %8
%78 = icmp slt i32 %76, %77
br i1 %78, label %79, label %148
79: ; preds = %75
%80 = load i32, i32* %6
%81 = add nsw i32 %80, 1
store i32 %81, i32* %7
br label %82
82: ; preds = %141, %79
%83 = load i32, i32* %7
%84 = load i32, i32* %8
%85 = icmp slt i32 %83, %84
br i1 %85, label %86, label %144
86: ; preds = %82
%87 = load double*, double** %10
%88 = load i32, i32* %6
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
%91 = load double, double* %90
%92 = load double*, double** %10
%93 = load i32, i32* %7
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds double, double* %92, i64 %94
%96 = load double, double* %95
%97 = fsub double %91, %96
%98 = call i64 @pow(double %97, double 2.000000e+00)
%99 = load double*, double** %11
%100 = load i32, i32* %6
%101 = sext i32 %100 to i64
%102 = getelementptr inbounds double, double* %99, i64 %101
%103 = load double, double* %102
%104 = load double*, double** %11
%105 = load i32, i32* %7
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %104, i64 %106
%108 = load double, double* %107
%109 = fsub double %103, %108
%110 = call i64 @pow(double %109, double 2.000000e+00)
%111 = add nsw i64 %98, %110
%112 = load double*, double** %12
%113 = load i32, i32* %6
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %112, i64 %114
%116 = load double, double* %115
%117 = load double*, double** %12
%118 = load i32, i32* %7
%119 = sext i32 %118 to i64
%120 = getelementptr inbounds double, double* %117, i64 %119
%121 = load double, double* %120
%122 = fsub double %116, %121
%123 = call i64 @pow(double %122, double 2.000000e+00)
%124 = add nsw i64 %111, %123
%125 = call double @sqrt(i64 %124)
%126 = fdiv double 1.000000e+00, %125
store double %126, double* %9
%127 = load double, double* %9
%128 = load double*, double** %13
%129 = load i32, i32* %6
%130 = sext i32 %129 to i64
%131 = getelementptr inbounds double, double* %128, i64 %130
%132 = load double, double* %131
%133 = fadd double %132, %127
store double %133, double* %131
%134 = load double, double* %9
%135 = load double*, double** %13
%136 = load i32, i32* %7
%137 = sext i32 %136 to i64
%138 = getelementptr inbounds double, double* %135, i64 %137
%139 = load double, double* %138
%140 = fadd double %139, %134
store double %140, double* %138
br label %141
141: ; preds = %86
%142 = load i32, i32* %7
%143 = add nsw i32 %142, 1
store i32 %143, i32* %7
br label %82
144: ; preds = %82
br label %145
145: ; preds = %144
%146 = load i32, i32* %6
%147 = add nsw i32 %146, 1
store i32 %147, i32* %6
br label %75
148: ; preds = %75
store i32 0, i32* %6
br label %149
149: ; preds = %161, %148
%150 = load i32, i32* %6
%151 = load i32, i32* %8
%152 = icmp slt i32 %150, %151
br i1 %152, label %153, label %164
153: ; preds = %149
%154 = load i32*, i32** %15
%155 = load double*, double** %13
%156 = load i32, i32* %6
%157 = sext i32 %156 to i64
%158 = getelementptr inbounds double, double* %155, i64 %157
%159 = load double, double* %158
%160 = call i32 @fprintf(i32* %154, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %159)
br label %161
161: ; preds = %153
%162 = load i32, i32* %6
%163 = add nsw i32 %162, 1
store i32 %163, i32* %6
br label %149
164: ; preds = %149
%165 = load i32, i32* %3
ret i32 %165
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [13 x i8] c"%lf,%lf,%lf\0A\00"
@.str.3 = [5 x i8] c"%lf\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i32 @count_lines(i8* %4)
%6 = load i8*, i8** %3
%7 = tail call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%8 = getelementptr inbounds i8*, i8** %1, i64 2
%9 = load i8*, i8** %8
%10 = tail call i32* @fopen(i8* %9, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%11 = shl i32 %5, 3
%12 = tail call double* @malloc(i32 %11)
%13 = tail call double* @malloc(i32 %11)
%14 = tail call double* @malloc(i32 %11)
%15 = tail call double* @malloc(i32 %11)
%16 = icmp sgt i32 %5, 0
br i1 %16, label %17, label %83
17: ; preds = %2
%18 = zext i32 %5 to i64
br label %23
19: ; preds = %23
br i1 %16, label %20, label %83
20: ; preds = %19
%21 = zext i32 %5 to i64
%22 = zext i32 %5 to i64
br label %38
23: ; preds = %17, %23
%24 = phi i64 [ 0, %17 ], [ %30, %23 ]
%25 = getelementptr inbounds double, double* %12, i64 %24
%26 = getelementptr inbounds double, double* %13, i64 %24
%27 = getelementptr inbounds double, double* %14, i64 %24
%28 = tail call i32 @fscanf(i32* %7, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0), double* %25, double* %26, double* %27)
%29 = getelementptr inbounds double, double* %15, i64 %24
store double 0.000000e+00, double* %29
%30 = add nuw nsw i64 %24, 1
%31 = icmp eq i64 %30, %18
br i1 %31, label %19, label %23
32: ; preds = %48, %38
%33 = add nuw nsw i64 %40, 1
%34 = icmp eq i64 %41, %22
br i1 %34, label %35, label %38
35: ; preds = %32
br i1 %16, label %36, label %83
36: ; preds = %35
%37 = zext i32 %5 to i64
br label %76
38: ; preds = %20, %32
%39 = phi i64 [ 0, %20 ], [ %41, %32 ]
%40 = phi i64 [ 1, %20 ], [ %33, %32 ]
%41 = add nuw nsw i64 %39, 1
%42 = icmp ult i64 %41, %21
br i1 %42, label %43, label %32
43: ; preds = %38
%44 = getelementptr inbounds double, double* %12, i64 %39
%45 = getelementptr inbounds double, double* %13, i64 %39
%46 = getelementptr inbounds double, double* %14, i64 %39
%47 = getelementptr inbounds double, double* %15, i64 %39
br label %48
48: ; preds = %43, %48
%49 = phi i64 [ %40, %43 ], [ %74, %48 ]
%50 = load double, double* %44
%51 = getelementptr inbounds double, double* %12, i64 %49
%52 = load double, double* %51
%53 = fsub double %50, %52
%54 = tail call i64 @pow(double %53, double 2.000000e+00)
%55 = load double, double* %45
%56 = getelementptr inbounds double, double* %13, i64 %49
%57 = load double, double* %56
%58 = fsub double %55, %57
%59 = tail call i64 @pow(double %58, double 2.000000e+00)
%60 = add nsw i64 %59, %54
%61 = load double, double* %46
%62 = getelementptr inbounds double, double* %14, i64 %49
%63 = load double, double* %62
%64 = fsub double %61, %63
%65 = tail call i64 @pow(double %64, double 2.000000e+00)
%66 = add nsw i64 %60, %65
%67 = tail call double @sqrt(i64 %66)
%68 = fdiv double 1.000000e+00, %67
%69 = load double, double* %47
%70 = fadd double %69, %68
store double %70, double* %47
%71 = getelementptr inbounds double, double* %15, i64 %49
%72 = load double, double* %71
%73 = fadd double %68, %72
store double %73, double* %71
%74 = add nuw nsw i64 %49, 1
%75 = icmp eq i64 %74, %22
br i1 %75, label %32, label %48
76: ; preds = %36, %76
%77 = phi i64 [ 0, %36 ], [ %81, %76 ]
%78 = getelementptr inbounds double, double* %15, i64 %77
%79 = load double, double* %78
%80 = tail call i32 @fprintf(i32* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), double %79)
%81 = add nuw nsw i64 %77, 1
%82 = icmp eq i64 %81, %37
br i1 %82, label %83, label %76
83: ; preds = %76, %2, %19, %35
ret i32 0
}