#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*/ free(double *);
int /*<<< orphan*/ linreg_clrm(double *, double *, int, double *, double *,
                               double *, double, double *, double *, double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ zerohyp_clrm(int, double *, double *, double *, double *);
int main(void) {
  int N;
  double alpha;
  double *res;
  double *b;
  N = 10;
  res = (double *)malloc(sizeof(double) * N);
  b = (double *)malloc(sizeof(double) * 2);
  double X[10] = {80, 100, 120, 140, 160, 180, 200, 220, 240, 260};
  double Y[10] = {70, 65, 90, 95, 110, 115, 120, 140, 155, 150};
  double var[5] = {0.0, 0.0, 0.0, 0.0, 0.0};
  double anv[7] = {0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0};
  double lower[3] = {0.0, 0.0, 0.0};
  double upper[3] = {0.0, 0.0, 0.0};
  double tval[2] = {0.0, 0.0};
  double pval[2] = {0.0, 0.0};
  alpha = 0.05;
  linreg_clrm(X, Y, N, b, var, res, alpha, anv, lower, upper);
  printf("Estimates Regression Parameters : Beta1 = %lf ,Beta 2 = %lf \n", b[0],
         b[1]);
  printf("Confidence Interval %lf \n", (1. - alpha) * 100.);
  printf("Beta1 : Lower Limit = %lf ,Upper Limit = %lf \n", lower[0], upper[0]);
  printf("Beta2 : Lower Limit = %lf ,Upper Limit = %lf \n", lower[1], upper[1]);
  printf("Variance : Lower Limit = %lf ,Upper Limit = %lf \n", lower[2],
         upper[2]);
  printf("%lf ,%lf %lf %lf %lf \n", var[0], var[1], var[2], var[3], var[4]);
  zerohyp_clrm(N, b, var, tval, pval);
  printf("Beta1 : T Value = %g ,P Value = %g \n", tval[0], pval[0]);
  printf("Beta2 : T Value = %g ,P Value = %g \n", tval[1], pval[1]);
  printf("\n ANOVA : \n");
  printf("Regression :  df = %lf ,SS = %lf ,MSS = %lf ,F Stat = %lf \n", anv[3],
         anv[1], anv[1] / anv[3], anv[5]);
  printf("Residual :  df = %lf ,SS = %lf ,MSS = %lf \n", anv[4], anv[2],
         anv[2] / anv[4]);
  printf("Total :  df = %lf ,SS = %lf  \n", anv[3] + anv[4], anv[0]);
  printf("F pvalue = %g \n", anv[6]);
  free(res);
  free(b);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1b0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xa,-0x8(%rbp)
movslq -0x8(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1090 <malloc@plt>
mov    %rax,-0x18(%rbp)
mov    $0x10,%edi
call   1090 <malloc@plt>
mov    %rax,-0x20(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xe6b(%rip),%rsi
mov    $0x50,%edx
call   1080 <memcpy@plt>
lea    -0xc0(%rbp),%rdi
lea    0xea3(%rip),%rsi
mov    $0x50,%edx
call   1080 <memcpy@plt>
lea    -0xf0(%rbp),%rdi
xor    %esi,%esi
mov    $0x28,%edx
call   1060 <memset@plt>
lea    -0x130(%rbp),%rdi
xor    %esi,%esi
mov    $0x38,%edx
call   1060 <memset@plt>
lea    -0x150(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1060 <memset@plt>
lea    -0x170(%rbp),%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1060 <memset@plt>
lea    -0x180(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
lea    -0x190(%rbp),%rdi
xor    %esi,%esi
mov    $0x10,%edx
call   1060 <memset@plt>
movsd  0xdbf(%rip),%xmm0
movsd  %xmm0,-0x10(%rbp)
lea    -0x70(%rbp),%rdi
lea    -0xc0(%rbp),%rsi
mov    -0x8(%rbp),%edx
mov    -0x20(%rbp),%rcx
lea    -0xf0(%rbp),%r8
mov    -0x18(%rbp),%r9
movsd  -0x10(%rbp),%xmm0
lea    -0x130(%rbp),%r11
lea    -0x150(%rbp),%r10
lea    -0x170(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1070 <linreg_clrm@plt>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movsd  0x8(%rax),%xmm1
lea    0xe08(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  0xd41(%rip),%xmm0
subsd  -0x10(%rbp),%xmm0
movsd  0xd2c(%rip),%xmm1
mulsd  %xmm1,%xmm0
lea    0xe1f(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
movsd  -0x150(%rbp),%xmm0
ff
movsd  -0x170(%rbp),%xmm1
ff
lea    0xe1b(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x148(%rbp),%xmm0
ff
movsd  -0x168(%rbp),%xmm1
ff
lea    0xe2c(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x140(%rbp),%xmm0
ff
movsd  -0x160(%rbp),%xmm1
ff
lea    0xe3d(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0xf0(%rbp),%xmm0
ff
movsd  -0xe8(%rbp),%xmm1
ff
movsd  -0xe0(%rbp),%xmm2
ff
movsd  -0xd8(%rbp),%xmm3
ff
movsd  -0xd0(%rbp),%xmm4
ff
lea    0xe39(%rip),%rdi
mov    $0x5,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%rsi
lea    -0xf0(%rbp),%rdx
lea    -0x180(%rbp),%rcx
lea    -0x190(%rbp),%r8
call   1040 <zerohyp_clrm@plt>
movsd  -0x180(%rbp),%xmm0
ff
movsd  -0x190(%rbp),%xmm1
ff
lea    0xe11(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x178(%rbp),%xmm0
ff
movsd  -0x188(%rbp),%xmm1
ff
lea    0xe18(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
lea    0xe2f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movsd  -0x118(%rbp),%xmm0
ff
movsd  -0x128(%rbp),%xmm1
ff
movsd  -0x128(%rbp),%xmm2
ff
divsd  -0x118(%rbp),%xmm2
movsd  -0x108(%rbp),%xmm3
ff
lea    0xe05(%rip),%rdi
mov    $0x4,%al
call   1050 <printf@plt>
movsd  -0x110(%rbp),%xmm0
ff
movsd  -0x120(%rbp),%xmm1
ff
movsd  -0x120(%rbp),%xmm2
ff
divsd  -0x110(%rbp),%xmm2
ff
lea    0xe13(%rip),%rdi
mov    $0x3,%al
call   1050 <printf@plt>
movsd  -0x118(%rbp),%xmm0
ff
addsd  -0x110(%rbp),%xmm0
ff
movsd  -0x130(%rbp),%xmm1
ff
lea    0xe19(%rip),%rdi
mov    $0x2,%al
call   1050 <printf@plt>
movsd  -0x100(%rbp),%xmm0
ff
lea    0xe22(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x1b0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %rbx
sub    $0x170,%rsp
mov    $0x50,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
mov    $0x10,%edi
call   1080 <malloc@plt>
mov    %rax,%rbx
movaps 0xec3(%rip),%xmm0
movaps %xmm0,0x160(%rsp)
movaps 0xea4(%rip),%xmm0
movaps %xmm0,0x150(%rsp)
movaps 0xe85(%rip),%xmm0
movaps %xmm0,0x140(%rsp)
movaps 0xe66(%rip),%xmm0
movaps %xmm0,0x130(%rsp)
movaps 0xe47(%rip),%xmm0
movaps %xmm0,0x120(%rsp)
movaps 0xec8(%rip),%xmm0
movaps %xmm0,0x110(%rsp)
movaps 0xea9(%rip),%xmm0
movaps %xmm0,0x100(%rsp)
movaps 0xe8a(%rip),%xmm0
movaps %xmm0,0xf0(%rsp)
movaps 0xe6b(%rip),%xmm0
movaps %xmm0,0xe0(%rsp)
movaps 0xe4c(%rip),%xmm0
movaps %xmm0,0xd0(%rsp)
xorps  %xmm0,%xmm0
movaps %xmm0,0xb0(%rsp)
movaps %xmm0,0xa0(%rsp)
movq   $0x0,0xc0(%rsp)
movaps %xmm0,0x80(%rsp)
movaps %xmm0,0x70(%rsp)
movaps %xmm0,0x60(%rsp)
movq   $0x0,0x90(%rsp)
movaps %xmm0,0x40(%rsp)
movq   $0x0,0x50(%rsp)
movaps %xmm0,0x20(%rsp)
movq   $0x0,0x30(%rsp)
movaps %xmm0,0x10(%rsp)
movaps %xmm0,(%rsp)
sub    $0x8,%rsp
lea    0x28(%rsp),%rax
lea    0x48(%rsp),%r10
lea    0x68(%rsp),%r11
lea    0x128(%rsp),%rdi
lea    0xd8(%rsp),%rsi
lea    0xa8(%rsp),%r15
movsd  0xd4f(%rip),%xmm0
mov    $0xa,%edx
mov    %rbx,%rcx
mov    %r15,%r8
mov    %r14,%r9
push   %rax
push   %r10
push   %r11
call   1070 <linreg_clrm@plt>
add    $0x20,%rsp
movsd  (%rbx),%xmm0
movsd  0x8(%rbx),%xmm1
lea    0xdd3(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
lea    0xe03(%rip),%rdi
movsd  0xd15(%rip),%xmm0
mov    $0x1,%al
call   1060 <printf@plt>
movsd  0x40(%rsp),%xmm0
movsd  0x20(%rsp),%xmm1
lea    0xdfb(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x48(%rsp),%xmm0
movsd  0x28(%rsp),%xmm1
lea    0xe10(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x50(%rsp),%xmm0
movsd  0x30(%rsp),%xmm1
lea    0xe25(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0xa0(%rsp),%xmm0
movsd  0xa8(%rsp),%xmm1
movsd  0xb0(%rsp),%xmm2
movsd  0xb8(%rsp),%xmm3
movsd  0xc0(%rsp),%xmm4
lea    0xe1c(%rip),%rdi
mov    $0x5,%al
call   1060 <printf@plt>
lea    0x10(%rsp),%rcx
mov    %rsp,%r8
mov    $0xa,%edi
mov    %rbx,%rsi
mov    %r15,%rdx
call   1040 <zerohyp_clrm@plt>
movsd  0x10(%rsp),%xmm0
movsd  (%rsp),%xmm1
lea    0xe02(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x18(%rsp),%xmm0
movsd  0x8(%rsp),%xmm1
lea    0xe0d(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
lea    0xebb(%rip),%rdi
call   1050 <puts@plt>
movsd  0x68(%rsp),%xmm1
movsd  0x78(%rsp),%xmm0
movapd %xmm1,%xmm2
divsd  %xmm0,%xmm2
movsd  0x88(%rsp),%xmm3
lea    0xdfb(%rip),%rdi
mov    $0x4,%al
call   1060 <printf@plt>
movsd  0x70(%rsp),%xmm1
movsd  0x80(%rsp),%xmm0
movapd %xmm1,%xmm2
divsd  %xmm0,%xmm2
lea    0xe12(%rip),%rdi
mov    $0x3,%al
call   1060 <printf@plt>
movsd  0x60(%rsp),%xmm1
movsd  0x78(%rsp),%xmm0
addsd  0x80(%rsp),%xmm0
lea    0xe1b(%rip),%rdi
mov    $0x2,%al
call   1060 <printf@plt>
movsd  0x90(%rsp),%xmm0
lea    0xe23(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
mov    %r14,%rdi
call   1030 <free@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
xor    %eax,%eax
add    $0x170,%rsp
pop    %rbx
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@__const.main.X = [10 x double] [double 8.000000e+01, double 1.000000e+02, double 1.200000e+02, double 1.400000e+02, double 1.600000e+02, double 1.800000e+02, double 2.000000e+02, double 2.200000e+02, double 2.400000e+02, double 2.600000e+02]
@__const.main.Y = [10 x double] [double 7.000000e+01, double 6.500000e+01, double 9.000000e+01, double 9.500000e+01, double 1.100000e+02, double 1.150000e+02, double 1.200000e+02, double 1.400000e+02, double 1.550000e+02, double 1.500000e+02]
@.str = [62 x i8] c"Estimates Regression Parameters : Beta1 = %lf ,Beta 2 = %lf \0A\00"
@.str.1 = [26 x i8] c"Confidence Interval %lf \0A\00"
@.str.2 = [47 x i8] c"Beta1 : Lower Limit = %lf ,Upper Limit = %lf \0A\00"
@.str.3 = [47 x i8] c"Beta2 : Lower Limit = %lf ,Upper Limit = %lf \0A\00"
@.str.4 = [50 x i8] c"Variance : Lower Limit = %lf ,Upper Limit = %lf \0A\00"
@.str.5 = [23 x i8] c"%lf ,%lf %lf %lf %lf \0A\00"
@.str.6 = [37 x i8] c"Beta1 : T Value = %g ,P Value = %g \0A\00"
@.str.7 = [37 x i8] c"Beta2 : T Value = %g ,P Value = %g \0A\00"
@.str.8 = [12 x i8] c"\0A ANOVA : \0A\00"
@.str.9 = [60 x i8] c"Regression : df = %lf ,SS = %lf ,MSS = %lf ,F Stat = %lf \0A\00"
@.str.10 = [44 x i8] c"Residual : df = %lf ,SS = %lf ,MSS = %lf \0A\00"
@.str.11 = [31 x i8] c"Total : df = %lf ,SS = %lf \0A\00"
@.str.12 = [16 x i8] c"F pvalue = %g \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca double
%4 = alloca double*
%5 = alloca double*
%6 = alloca [10 x double]
%7 = alloca [10 x double]
%8 = alloca [5 x double]
%9 = alloca [7 x double]
%10 = alloca [3 x double]
%11 = alloca [3 x double]
%12 = alloca [2 x double]
%13 = alloca [2 x double]
store i32 0, i32* %1
store i32 10, i32* %2
%14 = load i32, i32* %2
%15 = sext i32 %14 to i64
%16 = mul i64 8, %15
%17 = trunc i64 %16 to i32
%18 = call i64 @malloc(i32 %17)
%19 = inttoptr i64 %18 to double*
store double* %19, double** %4
%20 = call i64 @malloc(i32 16)
%21 = inttoptr i64 %20 to double*
store double* %21, double** %5
%22 = bitcast [10 x double]* %6 to i8*
%23 = bitcast [10 x double]* %7 to i8*
%24 = bitcast [5 x double]* %8 to i8*
%25 = bitcast [7 x double]* %9 to i8*
%26 = bitcast [3 x double]* %10 to i8*
%27 = bitcast [3 x double]* %11 to i8*
%28 = bitcast [2 x double]* %12 to i8*
%29 = bitcast [2 x double]* %13 to i8*
store double 5.000000e-02, double* %3
%30 = getelementptr inbounds [10 x double], [10 x double]* %6, i64 0, i64 0
%31 = getelementptr inbounds [10 x double], [10 x double]* %7, i64 0, i64 0
%32 = load i32, i32* %2
%33 = load double*, double** %5
%34 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%35 = load double*, double** %4
%36 = load double, double* %3
%37 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 0
%38 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 0
%39 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 0
%40 = call i32 @linreg_clrm(double* %30, double* %31, i32 %32, double* %33, double* %34, double* %35, double %36, double* %37, double* %38, double* %39)
%41 = load double*, double** %5
%42 = getelementptr inbounds double, double* %41, i64 0
%43 = load double, double* %42
%44 = load double*, double** %5
%45 = getelementptr inbounds double, double* %44, i64 1
%46 = load double, double* %45
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), double %43, double %46)
%48 = load double, double* %3
%49 = fsub double 1.000000e+00, %48
%50 = fmul double %49, 1.000000e+02
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), double %50)
%52 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 0
%53 = load double, double* %52
%54 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 0
%55 = load double, double* %54
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), double %53, double %55)
%57 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 1
%58 = load double, double* %57
%59 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 1
%60 = load double, double* %59
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), double %58, double %60)
%62 = getelementptr inbounds [3 x double], [3 x double]* %10, i64 0, i64 2
%63 = load double, double* %62
%64 = getelementptr inbounds [3 x double], [3 x double]* %11, i64 0, i64 2
%65 = load double, double* %64
%66 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), double %63, double %65)
%67 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%68 = load double, double* %67
%69 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 1
%70 = load double, double* %69
%71 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 2
%72 = load double, double* %71
%73 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 3
%74 = load double, double* %73
%75 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 4
%76 = load double, double* %75
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), double %68, double %70, double %72, double %74, double %76)
%78 = load i32, i32* %2
%79 = load double*, double** %5
%80 = getelementptr inbounds [5 x double], [5 x double]* %8, i64 0, i64 0
%81 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%82 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%83 = call i32 @zerohyp_clrm(i32 %78, double* %79, double* %80, double* %81, double* %82)
%84 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 0
%85 = load double, double* %84
%86 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 0
%87 = load double, double* %86
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), double %85, double %87)
%89 = getelementptr inbounds [2 x double], [2 x double]* %12, i64 0, i64 1
%90 = load double, double* %89
%91 = getelementptr inbounds [2 x double], [2 x double]* %13, i64 0, i64 1
%92 = load double, double* %91
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), double %90, double %92)
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.8, i64 0, i64 0))
%95 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 3
%96 = load double, double* %95
%97 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 1
%98 = load double, double* %97
%99 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 1
%100 = load double, double* %99
%101 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 3
%102 = load double, double* %101
%103 = fdiv double %100, %102
%104 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 5
%105 = load double, double* %104
%106 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), double %96, double %98, double %103, double %105)
%107 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 4
%108 = load double, double* %107
%109 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 2
%110 = load double, double* %109
%111 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 2
%112 = load double, double* %111
%113 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 4
%114 = load double, double* %113
%115 = fdiv double %112, %114
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), double %108, double %110, double %115)
%117 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 3
%118 = load double, double* %117
%119 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 4
%120 = load double, double* %119
%121 = fadd double %118, %120
%122 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 0
%123 = load double, double* %122
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), double %121, double %123)
%125 = getelementptr inbounds [7 x double], [7 x double]* %9, i64 0, i64 6
%126 = load double, double* %125
%127 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), double %126)
%128 = load double*, double** %4
%129 = call i32 @free(double* %128)
%130 = load double*, double** %5
%131 = call i32 @free(double* %130)
ret i32 0
}

LLVM IR (-O2):
@__const.main.X = [10 x double] [double 8.000000e+01, double 1.000000e+02, double 1.200000e+02, double 1.400000e+02, double 1.600000e+02, double 1.800000e+02, double 2.000000e+02, double 2.200000e+02, double 2.400000e+02, double 2.600000e+02]
@__const.main.Y = [10 x double] [double 7.000000e+01, double 6.500000e+01, double 9.000000e+01, double 9.500000e+01, double 1.100000e+02, double 1.150000e+02, double 1.200000e+02, double 1.400000e+02, double 1.550000e+02, double 1.500000e+02]
@.str = [62 x i8] c"Estimates Regression Parameters : Beta1 = %lf ,Beta 2 = %lf \0A\00"
@.str.1 = [26 x i8] c"Confidence Interval %lf \0A\00"
@.str.2 = [47 x i8] c"Beta1 : Lower Limit = %lf ,Upper Limit = %lf \0A\00"
@.str.3 = [47 x i8] c"Beta2 : Lower Limit = %lf ,Upper Limit = %lf \0A\00"
@.str.4 = [50 x i8] c"Variance : Lower Limit = %lf ,Upper Limit = %lf \0A\00"
@.str.5 = [23 x i8] c"%lf ,%lf %lf %lf %lf \0A\00"
@.str.6 = [37 x i8] c"Beta1 : T Value = %g ,P Value = %g \0A\00"
@.str.7 = [37 x i8] c"Beta2 : T Value = %g ,P Value = %g \0A\00"
@.str.9 = [60 x i8] c"Regression : df = %lf ,SS = %lf ,MSS = %lf ,F Stat = %lf \0A\00"
@.str.10 = [44 x i8] c"Residual : df = %lf ,SS = %lf ,MSS = %lf \0A\00"
@.str.11 = [31 x i8] c"Total : df = %lf ,SS = %lf \0A\00"
@.str.12 = [16 x i8] c"F pvalue = %g \0A\00"
@str = [11 x i8] c"\0A ANOVA : \00"
define i32 @main() {
%1 = alloca [10 x double]
%2 = alloca [10 x double]
%3 = alloca [5 x double]
%4 = alloca [7 x double]
%5 = alloca [3 x double]
%6 = alloca [3 x double]
%7 = alloca [2 x double]
%8 = alloca [2 x double]
%9 = tail call i64 @malloc(i32 80)
%10 = inttoptr i64 %9 to double*
%11 = tail call i64 @malloc(i32 16)
%12 = inttoptr i64 %11 to double*
%13 = bitcast [10 x double]* %1 to i8*
%14 = bitcast [10 x double]* %2 to i8*
%15 = bitcast [5 x double]* %3 to i8*
%16 = bitcast [7 x double]* %4 to i8*
%17 = bitcast [3 x double]* %5 to i8*
%18 = bitcast [3 x double]* %6 to i8*
%19 = bitcast [2 x double]* %7 to i8*
%20 = bitcast [2 x double]* %8 to i8*
%21 = getelementptr inbounds [10 x double], [10 x double]* %1, i64 0, i64 0
%22 = getelementptr inbounds [10 x double], [10 x double]* %2, i64 0, i64 0
%23 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 0
%24 = getelementptr inbounds [7 x double], [7 x double]* %4, i64 0, i64 0
%25 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 0
%26 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 0
%27 = call i32 @linreg_clrm(double* %21, double* %22, i32 10, double* %12, double* %23, double* %10, double 5.000000e-02, double* %24, double* %25, double* %26)
%28 = load double, double* %12
%29 = getelementptr inbounds double, double* %12, i64 1
%30 = load double, double* %29
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([62 x i8], [62 x i8]* @.str, i64 0, i64 0), double %28, double %30)
%32 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.1, i64 0, i64 0), double 9.500000e+01)
%33 = load double, double* %25
%34 = load double, double* %26
%35 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.2, i64 0, i64 0), double %33, double %34)
%36 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 1
%37 = load double, double* %36
%38 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 1
%39 = load double, double* %38
%40 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0), double %37, double %39)
%41 = getelementptr inbounds [3 x double], [3 x double]* %5, i64 0, i64 2
%42 = load double, double* %41
%43 = getelementptr inbounds [3 x double], [3 x double]* %6, i64 0, i64 2
%44 = load double, double* %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([50 x i8], [50 x i8]* @.str.4, i64 0, i64 0), double %42, double %44)
%46 = load double, double* %23
%47 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 1
%48 = load double, double* %47
%49 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 2
%50 = load double, double* %49
%51 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 3
%52 = load double, double* %51
%53 = getelementptr inbounds [5 x double], [5 x double]* %3, i64 0, i64 4
%54 = load double, double* %53
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), double %46, double %48, double %50, double %52, double %54)
%56 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 0
%57 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%58 = call i32 @zerohyp_clrm(i32 10, double* %12, double* %23, double* %56, double* %57)
%59 = load double, double* %56
%60 = load double, double* %57
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.6, i64 0, i64 0), double %59, double %60)
%62 = getelementptr inbounds [2 x double], [2 x double]* %7, i64 0, i64 1
%63 = load double, double* %62
%64 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 1
%65 = load double, double* %64
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.7, i64 0, i64 0), double %63, double %65)
%67 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%68 = getelementptr inbounds [7 x double], [7 x double]* %4, i64 0, i64 3
%69 = load double, double* %68
%70 = getelementptr inbounds [7 x double], [7 x double]* %4, i64 0, i64 1
%71 = load double, double* %70
%72 = fdiv double %71, %69
%73 = getelementptr inbounds [7 x double], [7 x double]* %4, i64 0, i64 5
%74 = load double, double* %73
%75 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([60 x i8], [60 x i8]* @.str.9, i64 0, i64 0), double %69, double %71, double %72, double %74)
%76 = getelementptr inbounds [7 x double], [7 x double]* %4, i64 0, i64 4
%77 = load double, double* %76
%78 = getelementptr inbounds [7 x double], [7 x double]* %4, i64 0, i64 2
%79 = load double, double* %78
%80 = fdiv double %79, %77
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.10, i64 0, i64 0), double %77, double %79, double %80)
%82 = load double, double* %68
%83 = load double, double* %76
%84 = fadd double %82, %83
%85 = load double, double* %24
%86 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @.str.11, i64 0, i64 0), double %84, double %85)
%87 = getelementptr inbounds [7 x double], [7 x double]* %4, i64 0, i64 6
%88 = load double, double* %87
%89 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), double %88)
%90 = call i32 @free(double* %10)
%91 = call i32 @free(double* %12)
ret i32 0
}