#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 */

/* Variables and functions */
double sqrt(double);
int Linefit(double *x, double *y, int N, double *ret_a, double *ret_b,
            double *ret_r) {
  double sum_x = 0.0;
  double sum_y = 0.0;
  double sxx = 0.0;
  double syy = 0.0;
  double sxy = 0.0;
  double st2 = 0.0;
  double av_x;
  double av_y;
  double t;
  int i;
  for (i = 0; i < N; i++) {
    sum_x += x[i];
    sum_y += y[i];
  }
  av_x = sum_x / N;
  av_y = sum_y / N;
  *ret_b = 0.0;
  for (i = 0; i < N; i++) {
    sxx += (x[i] - av_x) * (x[i] - av_x);
    syy += (y[i] - av_y) * (y[i] - av_y);
    sxy += (x[i] - av_x) * (y[i] - av_y);
    t = x[i] - av_x;
    st2 += t * t;
    *ret_b += t * y[i];
  }
  *ret_b /= st2;
  *ret_a = (sum_y - sum_x * (*ret_b)) / N;
  *ret_r = sxy / (sqrt(sxx) * sqrt(syy));
  return 1;
}


x86 assembly (clang, -O0):
<Linefit>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11b1 <Linefit+0xa1>
mov    -0x8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    1169 <Linefit+0x59>
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x40(%rbp),%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x7c(%rbp)
mov    -0x7c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12fe <Linefit+0x1ee>
mov    -0x8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
subsd  -0x68(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
subsd  -0x70(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
subsd  -0x70(%rbp),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x7c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x7c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x7c(%rbp)
jmp    11e9 <Linefit+0xd9>
movsd  -0x60(%rbp),%xmm1
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm0
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
call   1030 <sqrt@plt>
movsd  -0x90(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0x88(%rbp),%xmm0
ff
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    $0x1,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Linefit>:
push   %r14
push   %rbx
sub    $0x28,%rsp
mov    %r9,%r14
test   %edx,%edx
jle    113d <Linefit+0x2d>
mov    %edx,%r9d
lea    -0x1(%r9),%rax
mov    %r9d,%r10d
and    $0x3,%r10d
cmp    $0x3,%rax
jae    115b <Linefit+0x4b>
xorpd  %xmm1,%xmm1
xor    %ebx,%ebx
jmp    11bb <Linefit+0xab>
cvtsi2sd %edx,%xmm8
xorpd  %xmm5,%xmm5
movsd  0xeb2(%rip),%xmm4
xorpd  %xmm0,%xmm0
xorpd  %xmm1,%xmm1
jmp    129a <Linefit+0x18a>
mov    %r9d,%eax
and    $0xfffffffc,%eax
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movsd  (%rsi,%rbx,8),%xmm2
movsd  0x8(%rsi,%rbx,8),%xmm3
movsd  0x10(%rsi,%rbx,8),%xmm4
movsd  0x18(%rsi,%rbx,8),%xmm1
movhpd (%rdi,%rbx,8),%xmm2
addpd  %xmm0,%xmm2
movhpd 0x8(%rdi,%rbx,8),%xmm3
addpd  %xmm2,%xmm3
movhpd 0x10(%rdi,%rbx,8),%xmm4
movhpd 0x18(%rdi,%rbx,8),%xmm1
addpd  %xmm3,%xmm4
addpd  %xmm4,%xmm1
add    $0x4,%rbx
movapd %xmm1,%xmm0
cmp    %rbx,%rax
jne    1170 <Linefit+0x60>
test   %r10,%r10
je     11e8 <Linefit+0xd8>
lea    (%rsi,%rbx,8),%r11
lea    (%rdi,%rbx,8),%rbx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movsd  (%r11,%rax,8),%xmm0
movhpd (%rbx,%rax,8),%xmm0
addpd  %xmm0,%xmm1
add    $0x1,%rax
cmp    %rax,%r10
jne    11d0 <Linefit+0xc0>
cvtsi2sd %edx,%xmm8
movq   $0x0,(%r8)
test   %edx,%edx
jle    128a <Linefit+0x17a>
movapd %xmm8,%xmm0
unpcklpd %xmm8,%xmm0
movapd %xmm1,%xmm9
divpd  %xmm0,%xmm9
xorpd  %xmm6,%xmm6
xorpd  %xmm3,%xmm3
xor    %eax,%eax
xorpd  %xmm0,%xmm0
xchg   %ax,%ax
movapd %xmm6,%xmm10
movsd  (%rsi,%rax,8),%xmm2
movapd %xmm2,%xmm7
movhpd (%rdi,%rax,8),%xmm7
subpd  %xmm9,%xmm7
movapd %xmm7,%xmm4
unpckhpd %xmm7,%xmm4
movapd %xmm7,%xmm5
unpcklpd %xmm7,%xmm5
mulpd  %xmm7,%xmm5
movapd %xmm5,%xmm6
addpd  %xmm10,%xmm6
movsd  %xmm2,%xmm7
mulpd  %xmm4,%xmm7
mulsd  %xmm4,%xmm4
addsd  %xmm4,%xmm3
addpd  %xmm7,%xmm0
movlpd %xmm0,(%r8)
add    $0x1,%rax
cmp    %rax,%r9
jne    1220 <Linefit+0x110>
addpd  %xmm10,%xmm5
movapd %xmm0,%xmm4
divsd  %xmm3,%xmm4
unpckhpd %xmm0,%xmm0
jmp    129a <Linefit+0x18a>
xorpd  %xmm5,%xmm5
movsd  0xd6a(%rip),%xmm4
xorpd  %xmm0,%xmm0
movsd  %xmm4,(%r8)
movapd %xmm1,%xmm2
unpckhpd %xmm1,%xmm2
mulsd  %xmm4,%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm8,%xmm1
movsd  %xmm1,(%rcx)
xorpd  %xmm2,%xmm2
ucomisd %xmm2,%xmm0
movapd %xmm5,0x10(%rsp)
jb     12f2 <Linefit+0x1e2>
xorps  %xmm1,%xmm1
sqrtsd %xmm0,%xmm1
ucomisd %xmm2,%xmm5
jae    130b <Linefit+0x1fb>
movapd %xmm5,%xmm0
movsd  %xmm1,0x8(%rsp)
call   1030 <sqrt@plt>
movsd  0x8(%rsp),%xmm1
movapd 0x10(%rsp),%xmm5
jmp    1312 <Linefit+0x202>
call   1030 <sqrt@plt>
xorpd  %xmm2,%xmm2
movapd 0x10(%rsp),%xmm5
movapd %xmm0,%xmm1
ucomisd %xmm2,%xmm5
jb     12d5 <Linefit+0x1c5>
xorps  %xmm0,%xmm0
sqrtsd %xmm5,%xmm0
mulsd  %xmm0,%xmm1
unpckhpd %xmm5,%xmm5
divsd  %xmm1,%xmm5
movsd  %xmm5,(%r14)
mov    $0x1,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r14
ret

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

LLVM IR (-O2):
define i32 @Linefit(double* nocapture %0, double* nocapture %1, i32 %2, double* nocapture writeonly %3, double* nocapture %4, double* nocapture writeonly %5) {
%7 = icmp sgt i32 %2, 0
br i1 %7, label %10, label %8
8: ; preds = %6
%9 = sitofp i32 %2 to double
br label %109
10: ; preds = %6
%11 = zext i32 %2 to i64
%12 = add nsw i64 %11, -1
%13 = and i64 %11, 3
%14 = icmp ult i64 %12, 3
br i1 %14, label %55, label %15
15: ; preds = %10
%16 = and i64 %11, 4294967292
br label %17
17: ; preds = %17, %15
%18 = phi i64 [ 0, %15 ], [ %52, %17 ]
%19 = phi <2 x double> [ zeroinitializer, %15 ], [ %51, %17 ]
%20 = phi i64 [ 0, %15 ], [ %53, %17 ]
%21 = getelementptr inbounds double, double* %0, i64 %18
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %1, i64 %18
%24 = load double, double* %23
%25 = insertelement <2 x double> poison, double %24, i64 0
%26 = insertelement <2 x double> %25, double %22, i64 1
%27 = fadd <2 x double> %19, %26
%28 = or i64 %18, 1
%29 = getelementptr inbounds double, double* %0, i64 %28
%30 = load double, double* %29
%31 = getelementptr inbounds double, double* %1, i64 %28
%32 = load double, double* %31
%33 = insertelement <2 x double> poison, double %32, i64 0
%34 = insertelement <2 x double> %33, double %30, i64 1
%35 = fadd <2 x double> %27, %34
%36 = or i64 %18, 2
%37 = getelementptr inbounds double, double* %0, i64 %36
%38 = load double, double* %37
%39 = getelementptr inbounds double, double* %1, i64 %36
%40 = load double, double* %39
%41 = insertelement <2 x double> poison, double %40, i64 0
%42 = insertelement <2 x double> %41, double %38, i64 1
%43 = fadd <2 x double> %35, %42
%44 = or i64 %18, 3
%45 = getelementptr inbounds double, double* %0, i64 %44
%46 = load double, double* %45
%47 = getelementptr inbounds double, double* %1, i64 %44
%48 = load double, double* %47
%49 = insertelement <2 x double> poison, double %48, i64 0
%50 = insertelement <2 x double> %49, double %46, i64 1
%51 = fadd <2 x double> %43, %50
%52 = add nuw nsw i64 %18, 4
%53 = add i64 %20, 4
%54 = icmp eq i64 %53, %16
br i1 %54, label %55, label %17
55: ; preds = %17, %10
%56 = phi <2 x double> [ undef, %10 ], [ %51, %17 ]
%57 = phi i64 [ 0, %10 ], [ %52, %17 ]
%58 = phi <2 x double> [ zeroinitializer, %10 ], [ %51, %17 ]
%59 = icmp eq i64 %13, 0
br i1 %59, label %74, label %60
60: ; preds = %55, %60
%61 = phi i64 [ %71, %60 ], [ %57, %55 ]
%62 = phi <2 x double> [ %70, %60 ], [ %58, %55 ]
%63 = phi i64 [ %72, %60 ], [ 0, %55 ]
%64 = getelementptr inbounds double, double* %0, i64 %61
%65 = load double, double* %64
%66 = getelementptr inbounds double, double* %1, i64 %61
%67 = load double, double* %66
%68 = insertelement <2 x double> poison, double %67, i64 0
%69 = insertelement <2 x double> %68, double %65, i64 1
%70 = fadd <2 x double> %62, %69
%71 = add nuw nsw i64 %61, 1
%72 = add i64 %63, 1
%73 = icmp eq i64 %72, %13
br i1 %73, label %74, label %60
74: ; preds = %60, %55
%75 = phi <2 x double> [ %56, %55 ], [ %70, %60 ]
%76 = sitofp i32 %2 to double
%77 = insertelement <2 x double> poison, double %76, i64 0
%78 = shufflevector <2 x double> %77, <2 x double> poison, <2 x i32> zeroinitializer
%79 = fdiv <2 x double> %75, %78
store double 0.000000e+00, double* %4
br i1 %7, label %80, label %109
80: ; preds = %74
%81 = zext i32 %2 to i64
br label %82
82: ; preds = %80, %82
%83 = phi i64 [ 0, %80 ], [ %102, %82 ]
%84 = phi double [ 0.000000e+00, %80 ], [ %97, %82 ]
%85 = phi <2 x double> [ zeroinitializer, %80 ], [ %96, %82 ]
%86 = phi <2 x double> [ zeroinitializer, %80 ], [ %100, %82 ]
%87 = getelementptr inbounds double, double* %0, i64 %83
%88 = load double, double* %87
%89 = getelementptr inbounds double, double* %1, i64 %83
%90 = load double, double* %89
%91 = insertelement <2 x double> poison, double %90, i64 0
%92 = insertelement <2 x double> %91, double %88, i64 1
%93 = fsub <2 x double> %92, %79
%94 = extractelement <2 x double> %93, i64 1
%95 = shufflevector <2 x double> %93, <2 x double> undef, <2 x i32> zeroinitializer
%96 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %93, <2 x double> %95, <2 x double> %85)
%97 = tail call double @llvm.fmuladd.f64(double %94, double %94, double %84)
%98 = shufflevector <2 x double> %93, <2 x double> undef, <2 x i32> <i32 1, i32 1>
%99 = insertelement <2 x double> %93, double %90, i64 0
%100 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %98, <2 x double> %99, <2 x double> %86)
%101 = extractelement <2 x double> %100, i64 0
store double %101, double* %4
%102 = add nuw nsw i64 %83, 1
%103 = icmp eq i64 %102, %81
br i1 %103, label %104, label %82
104: ; preds = %82
%105 = extractelement <2 x double> %100, i64 0
%106 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %93, <2 x double> %95, <2 x double> %85)
%107 = fdiv double %105, %97
%108 = extractelement <2 x double> %100, i64 1
br label %109
109: ; preds = %8, %104, %74
%110 = phi double [ %76, %74 ], [ %76, %104 ], [ %9, %8 ]
%111 = phi double [ 0.000000e+00, %74 ], [ %108, %104 ], [ 0.000000e+00, %8 ]
%112 = phi double [ 0x7FF8000000000000, %74 ], [ %107, %104 ], [ 0x7FF8000000000000, %8 ]
%113 = phi <2 x double> [ zeroinitializer, %74 ], [ %106, %104 ], [ zeroinitializer, %8 ]
%114 = phi <2 x double> [ %75, %74 ], [ %75, %104 ], [ zeroinitializer, %8 ]
store double %112, double* %4
%115 = extractelement <2 x double> %114, i64 1
%116 = fneg double %115
%117 = extractelement <2 x double> %114, i64 0
%118 = tail call double @llvm.fmuladd.f64(double %116, double %112, double %117)
%119 = fdiv double %118, %110
store double %119, double* %3
%120 = tail call double @sqrt(double %111)
%121 = extractelement <2 x double> %113, i64 0
%122 = tail call double @sqrt(double %121)
%123 = fmul double %120, %122
%124 = extractelement <2 x double> %113, i64 1
%125 = fdiv double %124, %123
store double %125, double* %5
ret i32 1
}