#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 */
int /*<<< orphan*/ printf(char *, ...);
double sqrt(double);
void lineal(double *X, double *Y, int n, double *a1, double *a0, double *syx,
            double *r2) {
  double sumx = 0, sumy = 0, sumxy = 0, vad;
  double sumx2 = 0, st = 0, sr = 0, cdd;
  double xm, ym;
  int i;
  for (i = 0; i < n; i++) {
    sumx = sumx + X[i];
    sumy = sumy + Y[i];
    sumxy = sumxy + X[i] * Y[i];
    sumx2 = sumx2 + X[i] * X[i];
  }
  xm = sumx / n;
  ym = sumy / n;
  *a1 = (n * sumxy - sumx * sumy) / (n * sumx2 - sumx * sumx);
  *a0 = ym - *a1 * xm;
  printf("\n       Xi       |        Yi       |     (Yi-Ym)^2     |      "
         "(Yi-ao-a1X1)^2   |");
  for (i = 0; i < n; i++) {
    vad = (Y[i] - *a1 * X[i] - *a0) * (Y[i] - *a1 * X[i] - *a0);
    cdd = (Y[i] - ym) * (Y[i] - ym);
    st = st + cdd;
    sr = sr + vad;
    printf("\n    %8.4lf    |     %8.4lf    |     %8.4lf      |         %8.4lf "
           "     |",
           X[i], Y[i], cdd, vad);
  }
  *syx = sqrt(sr / (n - 2));
  *r2 = (st - sr) / st;
  printf("\n      sum       |     %8.4lf    |     %8.4lf      |         %8.4lf "
         "     |",
         sumy, st, sr);
}


x86 assembly (clang, -O0):
<lineal>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    0x10(%rbp),%rax
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,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    123b <lineal+0x11b>
movsd  -0x38(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x84(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x58(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1180 <lineal+0x60>
movsd  -0x38(%rbp),%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x40(%rbp),%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
movsd  -0x58(%rbp),%xmm3
movsd  -0x38(%rbp),%xmm2
mulsd  -0x38(%rbp),%xmm2
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x80(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movsd  -0x78(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
lea    0xced(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x84(%rbp)
mov    -0x84(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1477 <lineal+0x357>
mov    -0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm3
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mov    -0x28(%rbp),%rax
subsd  (%rax),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
subsd  -0x80(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x68(%rbp),%xmm0
addsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x84(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x70(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm3
lea    0xbf5(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
mov    -0x84(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x84(%rbp)
jmp    1324 <lineal+0x204>
movsd  -0x68(%rbp),%xmm0
mov    -0x14(%rbp),%eax
sub    $0x2,%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
mov    -0x30(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x60(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
divsd  -0x60(%rbp),%xmm0
mov    0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x40(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
movsd  -0x68(%rbp),%xmm2
lea    0xbd6(%rip),%rdi
mov    $0x3,%al
call   1030 <printf@plt>
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lineal>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %r8,%r13
mov    %rcx,%r15
mov    %edx,%r14d
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    %edx,%esi
test   %edx,%edx
mov    %r9,0x18(%rsp)
jle    1161 <lineal+0x41>
cmp    $0x1,%r14d
jne    1175 <lineal+0x55>
xorpd  %xmm2,%xmm2
xorpd  %xmm0,%xmm0
xor    %eax,%eax
xorpd  %xmm7,%xmm7
jmp    11f0 <lineal+0xd0>
mov    %rsi,%r12
xorpd  %xmm7,%xmm7
xorpd  %xmm0,%xmm0
xorpd  %xmm1,%xmm1
jmp    1220 <lineal+0x100>
mov    %esi,%edx
and    $0xfffffffe,%edx
xorpd  %xmm2,%xmm2
xorpd  %xmm0,%xmm0
xor    %eax,%eax
xorpd  %xmm7,%xmm7
nopl   0x0(%rax,%rax,1)
movsd  0x0(%rbp,%rax,8),%xmm3
movsd  0x8(%rbp,%rax,8),%xmm1
addsd  %xmm3,%xmm0
movsd  (%rbx,%rax,8),%xmm4
movsd  0x8(%rbx,%rax,8),%xmm5
addsd  %xmm4,%xmm7
movapd %xmm3,%xmm6
unpcklpd %xmm3,%xmm6
unpcklpd %xmm4,%xmm3
mulpd  %xmm6,%xmm3
addpd  %xmm2,%xmm3
addsd  %xmm1,%xmm0
addsd  %xmm5,%xmm7
movapd %xmm1,%xmm2
unpcklpd %xmm1,%xmm2
unpcklpd %xmm5,%xmm1
mulpd  %xmm2,%xmm1
movapd %xmm1,%xmm2
addpd  %xmm3,%xmm2
add    $0x2,%rax
cmp    %rax,%rdx
jne    1190 <lineal+0x70>
addpd  %xmm3,%xmm1
mov    %rsi,%r12
test   $0x1,%sil
je     1220 <lineal+0x100>
movsd  0x0(%rbp,%rax,8),%xmm1
addsd  %xmm1,%xmm0
movsd  (%rbx,%rax,8),%xmm3
addsd  %xmm3,%xmm7
movapd %xmm1,%xmm4
unpcklpd %xmm1,%xmm4
unpcklpd %xmm3,%xmm1
mulpd  %xmm4,%xmm1
addpd  %xmm2,%xmm1
mov    0x80(%rsp),%rax
mov    %rax,0x8(%rsp)
xorps  %xmm2,%xmm2
cvtsi2sd %r14d,%xmm2
movapd %xmm0,%xmm3
divsd  %xmm2,%xmm3
movapd %xmm7,%xmm6
divsd  %xmm2,%xmm6
movsd  %xmm7,0x10(%rsp)
movapd %xmm7,%xmm4
mulsd  %xmm0,%xmm4
movapd %xmm1,%xmm5
unpckhpd %xmm1,%xmm5
mulsd  %xmm2,%xmm5
subsd  %xmm4,%xmm5
mulsd  %xmm0,%xmm0
mulsd  %xmm1,%xmm2
subsd  %xmm0,%xmm2
divsd  %xmm2,%xmm5
movsd  %xmm5,(%r15)
mulsd  %xmm3,%xmm5
movapd %xmm6,0x20(%rsp)
movapd %xmm6,%xmm0
subsd  %xmm5,%xmm0
movsd  %xmm0,0x0(%r13)
lea    0xd69(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r14d,0x4(%rsp)
test   %r14d,%r14d
xorpd  %xmm4,%xmm4
jle    1329 <lineal+0x209>
mov    %r12,%r14
xorpd  %xmm4,%xmm4
xor    %r12d,%r12d
cs nopw 0x0(%rax,%rax,1)
movsd  (%rbx,%r12,8),%xmm1
movsd  0x0(%rbp,%r12,8),%xmm0
movsd  (%r15),%xmm2
mulsd  %xmm0,%xmm2
movapd %xmm1,%xmm3
subsd  %xmm2,%xmm3
movapd %xmm1,%xmm2
unpcklpd %xmm3,%xmm2
movapd 0x20(%rsp),%xmm3
movhpd 0x0(%r13),%xmm3
subpd  %xmm3,%xmm2
mulpd  %xmm2,%xmm2
addpd  %xmm2,%xmm4
movapd %xmm4,0x30(%rsp)
movapd %xmm2,%xmm3
unpckhpd %xmm2,%xmm3
lea    0xd3e(%rip),%rdi
mov    $0x4,%al
call   1030 <printf@plt>
movapd 0x30(%rsp),%xmm4
add    $0x1,%r12
cmp    %r12,%r14
jne    12c0 <lineal+0x1a0>
mov    0x4(%rsp),%eax
add    $0xfffffffe,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movapd %xmm4,%xmm2
unpckhpd %xmm4,%xmm2
movapd %xmm2,%xmm0
divsd  %xmm1,%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     1357 <lineal+0x237>
sqrtsd %xmm0,%xmm0
jmp    1374 <lineal+0x254>
movapd %xmm4,0x30(%rsp)
movapd %xmm2,0x20(%rsp)
call   1040 <sqrt@plt>
movapd 0x20(%rsp),%xmm2
movapd 0x30(%rsp),%xmm4
mov    0x18(%rsp),%rax
movsd  0x10(%rsp),%xmm1
mov    0x8(%rsp),%rcx
movsd  %xmm0,(%rax)
movapd %xmm4,%xmm0
subsd  %xmm2,%xmm0
divsd  %xmm4,%xmm0
movsd  %xmm0,(%rcx)
lea    0xcfb(%rip),%rdi
movaps %xmm1,%xmm0
movapd %xmm4,%xmm1
mov    $0x3,%al
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [81 x i8] c"\0A Xi | Yi | (Yi-Ym)^2 | (Yi-ao-a1X1)^2 |\00"
@.str.1 = [73 x i8] c"\0A %8.4lf | %8.4lf | %8.4lf | %8.4lf |\00"
@.str.2 = [75 x i8] c"\0A sum | %8.4lf | %8.4lf | %8.4lf |\00"
define void @lineal(double* %0, double* %1, i32 %2, double* %3, double* %4, double* %5, double* %6) {
%8 = alloca double*
%9 = alloca double*
%10 = alloca i32
%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 double
%23 = alloca double
%24 = alloca double
%25 = alloca i32
store double* %0, double** %8
store double* %1, double** %9
store i32 %2, i32* %10
store double* %3, double** %11
store double* %4, double** %12
store double* %5, double** %13
store double* %6, 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* %19
store double 0.000000e+00, double* %20
store double 0.000000e+00, double* %21
store i32 0, i32* %25
br label %26
26: ; preds = %69, %7
%27 = load i32, i32* %25
%28 = load i32, i32* %10
%29 = icmp slt i32 %27, %28
br i1 %29, label %30, label %72
30: ; preds = %26
%31 = load double, double* %15
%32 = load double*, double** %8
%33 = load i32, i32* %25
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds double, double* %32, i64 %34
%36 = load double, double* %35
%37 = fadd double %31, %36
store double %37, double* %15
%38 = load double, double* %16
%39 = load double*, double** %9
%40 = load i32, i32* %25
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds double, double* %39, i64 %41
%43 = load double, double* %42
%44 = fadd double %38, %43
store double %44, double* %16
%45 = load double, double* %17
%46 = load double*, double** %8
%47 = load i32, i32* %25
%48 = sext i32 %47 to i64
%49 = getelementptr inbounds double, double* %46, i64 %48
%50 = load double, double* %49
%51 = load double*, double** %9
%52 = load i32, i32* %25
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds double, double* %51, i64 %53
%55 = load double, double* %54
%56 = call double @llvm.fmuladd.f64(double %50, double %55, double %45)
store double %56, double* %17
%57 = load double, double* %19
%58 = load double*, double** %8
%59 = load i32, i32* %25
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %58, i64 %60
%62 = load double, double* %61
%63 = load double*, double** %8
%64 = load i32, i32* %25
%65 = sext i32 %64 to i64
%66 = getelementptr inbounds double, double* %63, i64 %65
%67 = load double, double* %66
%68 = call double @llvm.fmuladd.f64(double %62, double %67, double %57)
store double %68, double* %19
br label %69
69: ; preds = %30
%70 = load i32, i32* %25
%71 = add nsw i32 %70, 1
store i32 %71, i32* %25
br label %26
72: ; preds = %26
%73 = load double, double* %15
%74 = load i32, i32* %10
%75 = sitofp i32 %74 to double
%76 = fdiv double %73, %75
store double %76, double* %23
%77 = load double, double* %16
%78 = load i32, i32* %10
%79 = sitofp i32 %78 to double
%80 = fdiv double %77, %79
store double %80, double* %24
%81 = load i32, i32* %10
%82 = sitofp i32 %81 to double
%83 = load double, double* %17
%84 = load double, double* %15
%85 = load double, double* %16
%86 = fmul double %84, %85
%87 = fneg double %86
%88 = call double @llvm.fmuladd.f64(double %82, double %83, double %87)
%89 = load i32, i32* %10
%90 = sitofp i32 %89 to double
%91 = load double, double* %19
%92 = load double, double* %15
%93 = load double, double* %15
%94 = fmul double %92, %93
%95 = fneg double %94
%96 = call double @llvm.fmuladd.f64(double %90, double %91, double %95)
%97 = fdiv double %88, %96
%98 = load double*, double** %11
store double %97, double* %98
%99 = load double, double* %24
%100 = load double*, double** %11
%101 = load double, double* %100
%102 = load double, double* %23
%103 = fneg double %101
%104 = call double @llvm.fmuladd.f64(double %103, double %102, double %99)
%105 = load double*, double** %12
store double %104, double* %105
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([81 x i8], [81 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %25
br label %107
107: ; preds = %181, %72
%108 = load i32, i32* %25
%109 = load i32, i32* %10
%110 = icmp slt i32 %108, %109
br i1 %110, label %111, label %184
111: ; preds = %107
%112 = load double*, double** %9
%113 = load i32, i32* %25
%114 = sext i32 %113 to i64
%115 = getelementptr inbounds double, double* %112, i64 %114
%116 = load double, double* %115
%117 = load double*, double** %11
%118 = load double, double* %117
%119 = load double*, double** %8
%120 = load i32, i32* %25
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %119, i64 %121
%123 = load double, double* %122
%124 = fneg double %118
%125 = call double @llvm.fmuladd.f64(double %124, double %123, double %116)
%126 = load double*, double** %12
%127 = load double, double* %126
%128 = fsub double %125, %127
%129 = load double*, double** %9
%130 = load i32, i32* %25
%131 = sext i32 %130 to i64
%132 = getelementptr inbounds double, double* %129, i64 %131
%133 = load double, double* %132
%134 = load double*, double** %11
%135 = load double, double* %134
%136 = load double*, double** %8
%137 = load i32, i32* %25
%138 = sext i32 %137 to i64
%139 = getelementptr inbounds double, double* %136, i64 %138
%140 = load double, double* %139
%141 = fneg double %135
%142 = call double @llvm.fmuladd.f64(double %141, double %140, double %133)
%143 = load double*, double** %12
%144 = load double, double* %143
%145 = fsub double %142, %144
%146 = fmul double %128, %145
store double %146, double* %18
%147 = load double*, double** %9
%148 = load i32, i32* %25
%149 = sext i32 %148 to i64
%150 = getelementptr inbounds double, double* %147, i64 %149
%151 = load double, double* %150
%152 = load double, double* %24
%153 = fsub double %151, %152
%154 = load double*, double** %9
%155 = load i32, i32* %25
%156 = sext i32 %155 to i64
%157 = getelementptr inbounds double, double* %154, i64 %156
%158 = load double, double* %157
%159 = load double, double* %24
%160 = fsub double %158, %159
%161 = fmul double %153, %160
store double %161, double* %22
%162 = load double, double* %20
%163 = load double, double* %22
%164 = fadd double %162, %163
store double %164, double* %20
%165 = load double, double* %21
%166 = load double, double* %18
%167 = fadd double %165, %166
store double %167, double* %21
%168 = load double*, double** %8
%169 = load i32, i32* %25
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, double* %168, i64 %170
%172 = load double, double* %171
%173 = load double*, double** %9
%174 = load i32, i32* %25
%175 = sext i32 %174 to i64
%176 = getelementptr inbounds double, double* %173, i64 %175
%177 = load double, double* %176
%178 = load double, double* %22
%179 = load double, double* %18
%180 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.1, i64 0, i64 0), double %172, double %177, double %178, double %179)
br label %181
181: ; preds = %111
%182 = load i32, i32* %25
%183 = add nsw i32 %182, 1
store i32 %183, i32* %25
br label %107
184: ; preds = %107
%185 = load double, double* %21
%186 = load i32, i32* %10
%187 = sub nsw i32 %186, 2
%188 = sitofp i32 %187 to double
%189 = fdiv double %185, %188
%190 = call double @sqrt(double %189)
%191 = load double*, double** %13
store double %190, double* %191
%192 = load double, double* %20
%193 = load double, double* %21
%194 = fsub double %192, %193
%195 = load double, double* %20
%196 = fdiv double %194, %195
%197 = load double*, double** %14
store double %196, double* %197
%198 = load double, double* %16
%199 = load double, double* %20
%200 = load double, double* %21
%201 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.2, i64 0, i64 0), double %198, double %199, double %200)
ret void
}

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