#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 */
scalar_t__ EOF;
scalar_t__ calloc(int, int);
int /*<<< orphan*/ error_print(char *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ free(double *);
scalar_t__ fscanf(int /*<<< orphan*/ *, char *, double *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ realloc(double *, int);
scalar_t__ sqrt(double);
int /*<<< orphan*/ stderr;
void main(int argc, char *argv[]) {
  double *x, dum;
  int i, nn, j, im, jm;
  long ik;
  FILE *fr;
  if (argc < 2 || argc > 2) {
    error_print(argv[0]);
    exit(1);
  }
  fr = fopen(argv[1], "r");
  x = (double *)calloc(1, sizeof(double));
  ik = 0;
  while ((fscanf(fr, "%le", &dum)) != EOF) {
    x = (double *)realloc(x, sizeof(double) * (ik + 1));
    if (x == NULL) {
      fprintf(stderr, "%s: Allocation error while reading, exiting\n", argv[0]);
      exit(1);
    }
    x[ik] = dum;
    ik++;
  }
  nn = (int)sqrt((double)ik);
  fclose(fr);
  for (i = 1; i <= nn; i++) {
    im = nn + 1 - i;
    for (j = 1; j <= nn; j++) {
      double fdd = 0;
      jm = nn + 1 - j;
      ik = (i - 1) * nn + j - 1;
      fdd += x[ik];
      ik = (j - 1) * nn + i - 1;
      fdd += x[ik];
      ik = (j - 1) * nn + im - 1;
      fdd += x[ik];
      ik = (i - 1) * nn + jm - 1;
      fdd += x[ik];
      printf("%g\n", fdd);
    }
    printf("\n");
  }
  free(x);
  fclose(fr);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x4(%rbp)
jl     11d3 <main+0x23>
cmpl   $0x2,-0x4(%rbp)
jle    11e9 <main+0x39>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   1090 <error_print@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe08(%rip),%rsi
call   10b0 <fopen@plt>
mov    %rax,-0x48(%rbp)
mov    $0x1,%edi
mov    $0x8,%esi
call   1070 <calloc@plt>
mov    %rax,-0x18(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
lea    0xddb(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1060 <fscanf@plt>
mov    0x2db1(%rip),%rcx
cmp    (%rcx),%rax
je     12af <main+0xff>
mov    -0x18(%rbp),%rdi
mov    -0x40(%rbp),%rax
add    $0x1,%rax
shl    $0x3,%rax
mov    %eax,%esi
call   10a0 <realloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    128c <main+0xdc>
mov    0x2d6b(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xd89(%rip),%rsi
call   1080 <fprintf@plt>
mov    $0x1,%edi
call   10d0 <exit@plt>
movsd  -0x20(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x40(%rbp)
jmp    121c <main+0x6c>
cvtsi2sdq -0x40(%rbp),%xmm0
call   10c0 <sqrt@plt>
mov    %eax,-0x28(%rbp)
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     13fd <main+0x24d>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x30(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jg     13e1 <main+0x231>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
sub    -0x2c(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
imul   -0x28(%rbp),%eax
add    -0x2c(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
imul   -0x28(%rbp),%eax
add    -0x24(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x2c(%rbp),%eax
sub    $0x1,%eax
imul   -0x28(%rbp),%eax
add    -0x30(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
imul   -0x28(%rbp),%eax
add    -0x34(%rbp),%eax
sub    $0x1,%eax
cltq
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x50(%rbp),%xmm0
lea    0xc67(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    12ec <main+0x13c>
lea    0xc4d(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    12cd <main+0x11d>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x48(%rbp),%rdi
call   1040 <fclose@plt>
add    $0x50,%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,%r15
cmp    $0x2,%edi
jne    13e4 <main+0x224>
mov    0x8(%r15),%rdi
lea    0xe23(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,%r14
mov    $0x8,%ebp
mov    $0x1,%edi
mov    $0x8,%esi
call   1080 <calloc@plt>
mov    %rax,%rbx
lea    0xdff(%rip),%rsi
lea    0x30(%rsp),%rdx
mov    %r14,0x10(%rsp)
mov    %r14,%rdi
call   1070 <fscanf@plt>
mov    0x2dc4(%rip),%r14
cmp    (%r14),%rax
jne    1234 <main+0x74>
mov    %rbx,0x18(%rsp)
xorpd  %xmm0,%xmm0
jmp    129b <main+0xdb>
mov    %r15,0x8(%rsp)
xor    %r15d,%r15d
lea    0xdc7(%rip),%r12
lea    0x30(%rsp),%r13
nopl   0x0(%rax,%rax,1)
mov    %rbx,%rdi
mov    %ebp,%esi
call   10b0 <realloc@plt>
test   %rax,%rax
je     13bd <main+0x1fd>
mov    %rax,%rbx
movsd  0x30(%rsp),%xmm0
movsd  %xmm0,(%rax,%r15,8)
mov    0x10(%rsp),%rdi
mov    %r12,%rsi
mov    %r13,%rdx
call   1070 <fscanf@plt>
add    $0x8,%ebp
add    $0x1,%r15
cmp    (%r14),%rax
jne    1250 <main+0x90>
mov    %rbx,0x18(%rsp)
xorps  %xmm0,%xmm0
cvtsi2sd %r15,%xmm0
call   10d0 <sqrt@plt>
mov    %rax,%rbp
mov    0x10(%rsp),%rdi
call   1050 <fclose@plt>
test   %ebp,%ebp
jle    139a <main+0x1da>
mov    %ebp,%eax
add    $0x1,%eax
lea    -0x1(%rbp),%ecx
add    $0xffffffffffffffff,%rax
mov    %rax,0x38(%rsp)
mov    $0x1,%eax
xor    %edx,%edx
mov    %ecx,%edi
xor    %ebx,%ebx
mov    %rbp,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
mov    %rax,0x40(%rsp)
mov    0x38(%rsp),%r14
mov    %edx,0x28(%rsp)
mov    %edx,%r13d
mov    %ecx,0x2c(%rsp)
mov    %ecx,%ebp
mov    %edi,0x24(%rsp)
mov    %edi,%r12d
mov    %ebx,0x20(%rsp)
mov    %ebx,%r15d
mov    0x18(%rsp),%rbx
nopw   0x0(%rax,%rax,1)
movslq %r13d,%r13
movsd  (%rbx,%r13,8),%xmm0
addsd  0xcdf(%rip),%xmm0
movslq %r15d,%r15
addsd  (%rbx,%r15,8),%xmm0
movslq %ebp,%rbp
addsd  (%rbx,%rbp,8),%xmm0
movslq %r12d,%r12
addsd  (%rbx,%r12,8),%xmm0
lea    0xcf9(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    0x8(%rsp),%rax
add    %eax,%r15d
add    $0xffffffff,%r12d
add    %eax,%ebp
add    $0x1,%r13d
add    $0xffffffffffffffff,%r14
jne    1310 <main+0x150>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x40(%rsp),%rsi
lea    0x1(%rsi),%eax
mov    0x20(%rsp),%ebx
add    $0x1,%ebx
mov    0x24(%rsp),%edi
mov    0x8(%rsp),%rbp
add    %ebp,%edi
mov    0x2c(%rsp),%ecx
add    $0xffffffff,%ecx
mov    0x28(%rsp),%edx
add    %ebp,%edx
cmp    %ebp,%esi
jne    12e0 <main+0x120>
mov    0x18(%rsp),%rdi
call   1030 <free@plt>
mov    0x10(%rsp),%rdi
call   1050 <fclose@plt>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2c14(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rsp),%rax
mov    (%rax),%rdx
lea    0xc39(%rip),%rsi
call   1090 <fprintf@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>
mov    (%r15),%rdi
call   10a0 <error_print@plt>
mov    $0x1,%edi
call   10e0 <exit@plt>

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

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [4 x i8] c"%le\00"
@EOF = global i64 0
@stderr = global i32 0
@.str.2 = [45 x i8] c"%s: Allocation error while reading, exiting\0A\00"
@.str.3 = [4 x i8] c"%g\0A\00"
define void @main(i32 %0, i8** nocapture %1) {
%3 = alloca double
%4 = bitcast double* %3 to i8*
%5 = icmp eq i32 %0, 2
br i1 %5, label %10, label %6
6: ; preds = %2
%7 = load i8*, i8** %1
%8 = tail call i32 @error_print(i8* %7)
%9 = tail call i32 @exit(i32 1)
unreachable
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 1
%12 = load i8*, i8** %11
%13 = tail call i32* @fopen(i8* %12, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%14 = tail call i64 @calloc(i32 1, i32 8)
%15 = inttoptr i64 %14 to double*
%16 = call i64 @fscanf(i32* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%17 = load i64, i64* @EOF
%18 = icmp eq i64 %16, %17
br i1 %18, label %42, label %19
19: ; preds = %10, %33
%20 = phi double* [ %26, %33 ], [ %15, %10 ]
%21 = phi i64 [ %22, %33 ], [ 0, %10 ]
%22 = add nuw nsw i64 %21, 1
%23 = trunc i64 %22 to i32
%24 = shl i32 %23, 3
%25 = call i64 @realloc(double* %20, i32 %24)
%26 = inttoptr i64 %25 to double*
%27 = icmp eq i64 %25, 0
br i1 %27, label %28, label %33
28: ; preds = %19
%29 = load i32, i32* @stderr
%30 = load i8*, i8** %1
%31 = call i32 @fprintf(i32 %29, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.2, i64 0, i64 0), i8* %30)
%32 = call i32 @exit(i32 1)
unreachable
33: ; preds = %19
%34 = load double, double* %3
%35 = getelementptr inbounds double, double* %26, i64 %21
store double %34, double* %35
%36 = call i64 @fscanf(i32* %13, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %3)
%37 = load i64, i64* @EOF
%38 = icmp eq i64 %36, %37
br i1 %38, label %39, label %19
39: ; preds = %33
%40 = inttoptr i64 %25 to double*
%41 = sitofp i64 %22 to double
br label %42
42: ; preds = %39, %10
%43 = phi double [ %41, %39 ], [ 0.000000e+00, %10 ]
%44 = phi double* [ %40, %39 ], [ %15, %10 ]
%45 = call i64 @sqrt(double %43)
%46 = trunc i64 %45 to i32
%47 = call i32 @fclose(i32* %13)
%48 = icmp slt i32 %46, 1
br i1 %48, label %93, label %49
49: ; preds = %42
%50 = and i64 %45, 4294967295
%51 = add i64 %45, 1
%52 = and i64 %51, 4294967295
br label %53
53: ; preds = %89, %49
%54 = phi i32 [ 1, %49 ], [ %91, %89 ]
%55 = add nsw i32 %54, -1
%56 = mul nsw i32 %55, %46
%57 = add i32 %56, -1
%58 = mul i32 %54, %46
br label %59
59: ; preds = %53, %59
%60 = phi i64 [ 1, %53 ], [ %87, %59 ]
%61 = trunc i64 %60 to i32
%62 = add i32 %57, %61
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %44, i64 %63
%65 = load double, double* %64
%66 = fadd double %65, 0.000000e+00
%67 = add nsw i64 %60, -1
%68 = mul i64 %67, %50
%69 = trunc i64 %68 to i32
%70 = add i32 %55, %69
%71 = sext i32 %70 to i64
%72 = getelementptr inbounds double, double* %44, i64 %71
%73 = load double, double* %72
%74 = fadd double %66, %73
%75 = mul i32 %61, %46
%76 = sub i32 %75, %54
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %44, i64 %77
%79 = load double, double* %78
%80 = fadd double %74, %79
%81 = sub i32 %58, %61
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %44, i64 %82
%84 = load double, double* %83
%85 = fadd double %80, %84
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), double %85)
%87 = add nuw nsw i64 %60, 1
%88 = icmp eq i64 %87, %52
br i1 %88, label %89, label %59
89: ; preds = %59
%90 = call i32 @putchar(i32 10)
%91 = add nuw i32 %54, 1
%92 = icmp eq i32 %54, %46
br i1 %92, label %93, label %53
93: ; preds = %89, %42
%94 = call i32 @free(double* %44)
%95 = call i32 @fclose(i32* %13)
ret void
}