#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*/ MatrixVectorMult(double *, double **, double *, int);
double dot(double *, double *, int);
int /*<<< orphan*/ free(double *);
scalar_t__ getx(double *, double *, double *, int **, int, int);
scalar_t__ malloc(int);
double sum(double *, int);
double getRho(double *lambda, double *p, double *Grad, double *x, double **Hes,
              double *x0, double *G, int **AT, int numSS, int numTotal) {
  int i;
  double rho;
  double *newlambda;
  double *newx;
  double *Hp;
  double negh;
  double NewNegh;
  double pHp;
  newlambda = (double *)malloc(numSS * sizeof(double));
  newx = (double *)malloc(numTotal * sizeof(double));
  Hp = (double *)malloc(numSS * sizeof(double));
  negh = sum(x, numTotal);
  negh -= dot(lambda, x0, numSS);
  for (i = 0; i < numSS; i++) {
    newlambda[i] = lambda[i] + p[i];
  }
  if (getx(newx, newlambda, G, AT, numSS, numTotal)) {
    NewNegh = sum(newx, numTotal);
    NewNegh -= dot(newlambda, x0, numSS);
    MatrixVectorMult(Hp, Hes, p, numSS);
    pHp = dot(p, Hp, numSS);
    rho = (negh - NewNegh) / (-dot(Grad, p, numSS) - pHp / 2.0);
  } else {
    rho = -1.0;
  }
  free(newlambda);
  free(newx);
  free(Hp);
  return rho;
}


x86 assembly (clang, -O0):
<getRho>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    0x28(%rbp),%eax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movslq 0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x48(%rbp)
movslq 0x28(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x50(%rbp)
movslq 0x20(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,-0x58(%rbp)
mov    -0x20(%rbp),%rdi
mov    0x28(%rbp),%esi
call   1060 <sum@plt>
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    0x20(%rbp),%edx
call   1030 <dot@plt>
movaps %xmm0,%xmm1
movsd  -0x60(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x20(%rbp),%eax
jge    1244 <getRho+0xe4>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1203 <getRho+0xa3>
mov    -0x50(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    0x10(%rbp),%rdx
mov    0x18(%rbp),%rcx
mov    0x20(%rbp),%r8d
mov    0x28(%rbp),%r9d
call   1050 <getx@plt>
cmp    $0x0,%rax
je     1327 <getRho+0x1c7>
mov    -0x50(%rbp),%rdi
mov    0x28(%rbp),%esi
call   1060 <sum@plt>
movsd  %xmm0,-0x68(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    0x20(%rbp),%edx
call   1030 <dot@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    0x20(%rbp),%ecx
call   1080 <MatrixVectorMult@plt>
mov    -0x10(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    0x20(%rbp),%edx
call   1030 <dot@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    0x20(%rbp),%edx
call   1030 <dot@plt>
movaps %xmm0,%xmm1
movsd  -0x78(%rbp),%xmm0
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
movsd  -0x70(%rbp),%xmm2
movsd  0xcf7(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1334 <getRho+0x1d4>
movsd  0xcd1(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x48(%rbp),%rdi
call   1040 <free@plt>
mov    -0x50(%rbp),%rdi
call   1040 <free@plt>
mov    -0x58(%rbp),%rdi
call   1040 <free@plt>
movsd  -0x40(%rbp),%xmm0
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<getRho>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %r9,%rbp
mov    %r8,0x10(%rsp)
mov    %rcx,(%rsp)
mov    %rdx,0x28(%rsp)
mov    %rsi,%rbx
mov    %rdi,%r13
mov    0x88(%rsp),%r15d
mov    0x80(%rsp),%eax
lea    0x0(,%rax,8),%r14d
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,%r12
lea    0x0(,%r15,8),%edi
call   1070 <malloc@plt>
mov    %rax,0x30(%rsp)
mov    %r14d,%edi
call   1070 <malloc@plt>
mov    %rax,0x18(%rsp)
mov    (%rsp),%rdi
mov    0x80(%rsp),%r14d
mov    %r15d,%esi
call   1060 <sum@plt>
movsd  %xmm0,(%rsp)
mov    %r13,%rdi
mov    %rbp,0x20(%rsp)
mov    %rbp,%rsi
mov    %r14d,%edx
call   1030 <dot@plt>
movsd  %xmm0,0x8(%rsp)
test   %r14d,%r14d
jle    13d5 <getRho+0x275>
mov    %r14d,%eax
cmp    $0x4,%r14d
jae    12bc <getRho+0x15c>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
add    %rax,%rdx
mov    %rax,%rsi
and    $0x3,%rsi
je     124c <getRho+0xec>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0x0(%r13,%rcx,8),%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%r12,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rsi
jne    1230 <getRho+0xd0>
cmp    $0x3,%rdx
jb     13d5 <getRho+0x275>
cs nopw 0x0(%rax,%rax,1)
movsd  0x0(%r13,%rcx,8),%xmm0
addsd  (%rbx,%rcx,8),%xmm0
movsd  %xmm0,(%r12,%rcx,8)
movsd  0x8(%r13,%rcx,8),%xmm0
addsd  0x8(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r12,%rcx,8)
movsd  0x10(%r13,%rcx,8),%xmm0
addsd  0x10(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%r12,%rcx,8)
movsd  0x18(%r13,%rcx,8),%xmm0
addsd  0x18(%rbx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%r12,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rax
jne    1260 <getRho+0x100>
jmp    13d5 <getRho+0x275>
lea    (%r12,%rax,8),%rcx
lea    0x0(,%rax,8),%rdx
add    %r13,%rdx
cmp    %rdx,%r12
setb   %dil
cmp    %r13,%rcx
seta   %r8b
lea    (%rbx,%rax,8),%rdx
cmp    %rdx,%r12
setb   %dl
cmp    %rbx,%rcx
seta   %sil
xor    %ecx,%ecx
test   %r8b,%dil
jne    1210 <getRho+0xb0>
and    %sil,%dl
jne    1210 <getRho+0xb0>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rdx
mov    %rdx,%rsi
shr    $0x2,%rsi
add    $0x1,%rsi
test   %rdx,%rdx
je     14eb <getRho+0x38b>
mov    %rsi,%rdi
and    $0xfffffffffffffffe,%rdi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movupd 0x0(%r13,%rdx,8),%xmm0
movupd 0x10(%r13,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%r12,%rdx,8)
movupd %xmm0,0x10(%r12,%rdx,8)
movupd 0x20(%r13,%rdx,8),%xmm0
movupd 0x30(%r13,%rdx,8),%xmm1
movupd 0x20(%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x30(%rbx,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x20(%r12,%rdx,8)
movupd %xmm0,0x30(%r12,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rdi
jne    1330 <getRho+0x1d0>
test   $0x1,%sil
je     13cc <getRho+0x26c>
movupd 0x0(%r13,%rdx,8),%xmm0
movupd 0x10(%r13,%rdx,8),%xmm1
movupd (%rbx,%rdx,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rbx,%rdx,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%r12,%rdx,8)
movupd %xmm0,0x10(%r12,%rdx,8)
cmp    %rax,%rcx
jne    1210 <getRho+0xb0>
mov    0x30(%rsp),%r15
mov    %r15,%rdi
mov    %r12,%rsi
mov    0x70(%rsp),%rdx
mov    0x78(%rsp),%rcx
mov    %r14d,%r8d
mov    0x88(%rsp),%r13d
mov    %r13d,%r9d
call   1050 <getx@plt>
test   %rax,%rax
je     14ad <getRho+0x34d>
movsd  (%rsp),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%rsp)
mov    %r15,%rdi
mov    %r13d,%esi
call   1060 <sum@plt>
movsd  %xmm0,0x8(%rsp)
mov    %r12,%rdi
mov    0x20(%rsp),%rsi
mov    %r14d,%edx
call   1030 <dot@plt>
movsd  0x8(%rsp),%xmm1
subsd  %xmm0,%xmm1
movsd  (%rsp),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
mov    0x18(%rsp),%rbp
mov    %rbp,%rdi
mov    0x10(%rsp),%rsi
mov    %rbx,%rdx
mov    %r14d,%ecx
call   1080 <MatrixVectorMult@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r14d,%edx
call   1030 <dot@plt>
movsd  %xmm0,0x10(%rsp)
mov    0x28(%rsp),%rdi
mov    %rbx,%rsi
mov    %r14d,%edx
call   1030 <dot@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xb6f(%rip),%xmm1
subsd  %xmm0,%xmm1
movsd  (%rsp),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
jmp    14bf <getRho+0x35f>
movsd  0xb4b(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    0x18(%rsp),%rbp
mov    %r12,%rdi
call   1040 <free@plt>
mov    %r15,%rdi
call   1040 <free@plt>
mov    %rbp,%rdi
call   1040 <free@plt>
movsd  (%rsp),%xmm0
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %edx,%edx
test   $0x1,%sil
jne    139e <getRho+0x23e>
jmp    13cc <getRho+0x26c>

LLVM IR (-O0):
define double @getRho(double* %0, double* %1, double* %2, double* %3, double** %4, double* %5, double* %6, i32** %7, i32 %8, i32 %9) {
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double**
%16 = alloca double*
%17 = alloca double*
%18 = alloca i32**
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca double
%23 = alloca double*
%24 = alloca double*
%25 = alloca double*
%26 = alloca double
%27 = alloca double
%28 = alloca double
store double* %0, double** %11
store double* %1, double** %12
store double* %2, double** %13
store double* %3, double** %14
store double** %4, double*** %15
store double* %5, double** %16
store double* %6, double** %17
store i32** %7, i32*** %18
store i32 %8, i32* %19
store i32 %9, i32* %20
%29 = load i32, i32* %19
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 8
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 %32)
%34 = inttoptr i64 %33 to double*
store double* %34, double** %23
%35 = load i32, i32* %20
%36 = sext i32 %35 to i64
%37 = mul i64 %36, 8
%38 = trunc i64 %37 to i32
%39 = call i64 @malloc(i32 %38)
%40 = inttoptr i64 %39 to double*
store double* %40, double** %24
%41 = load i32, i32* %19
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 8
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to double*
store double* %46, double** %25
%47 = load double*, double** %14
%48 = load i32, i32* %20
%49 = call double @sum(double* %47, i32 %48)
store double %49, double* %26
%50 = load double*, double** %11
%51 = load double*, double** %16
%52 = load i32, i32* %19
%53 = call double @dot(double* %50, double* %51, i32 %52)
%54 = load double, double* %26
%55 = fsub double %54, %53
store double %55, double* %26
store i32 0, i32* %21
br label %56
56: ; preds = %76, %10
%57 = load i32, i32* %21
%58 = load i32, i32* %19
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %79
60: ; preds = %56
%61 = load double*, double** %11
%62 = load i32, i32* %21
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
%66 = load double*, double** %12
%67 = load i32, i32* %21
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
%70 = load double, double* %69
%71 = fadd double %65, %70
%72 = load double*, double** %23
%73 = load i32, i32* %21
%74 = sext i32 %73 to i64
%75 = getelementptr inbounds double, double* %72, i64 %74
store double %71, double* %75
br label %76
76: ; preds = %60
%77 = load i32, i32* %21
%78 = add nsw i32 %77, 1
store i32 %78, i32* %21
br label %56
79: ; preds = %56
%80 = load double*, double** %24
%81 = load double*, double** %23
%82 = load double*, double** %17
%83 = load i32**, i32*** %18
%84 = load i32, i32* %19
%85 = load i32, i32* %20
%86 = call i64 @getx(double* %80, double* %81, double* %82, i32** %83, i32 %84, i32 %85)
%87 = icmp ne i64 %86, 0
br i1 %87, label %88, label %119
88: ; preds = %79
%89 = load double*, double** %24
%90 = load i32, i32* %20
%91 = call double @sum(double* %89, i32 %90)
store double %91, double* %27
%92 = load double*, double** %23
%93 = load double*, double** %16
%94 = load i32, i32* %19
%95 = call double @dot(double* %92, double* %93, i32 %94)
%96 = load double, double* %27
%97 = fsub double %96, %95
store double %97, double* %27
%98 = load double*, double** %25
%99 = load double**, double*** %15
%100 = load double*, double** %12
%101 = load i32, i32* %19
%102 = call i32 @MatrixVectorMult(double* %98, double** %99, double* %100, i32 %101)
%103 = load double*, double** %12
%104 = load double*, double** %25
%105 = load i32, i32* %19
%106 = call double @dot(double* %103, double* %104, i32 %105)
store double %106, double* %28
%107 = load double, double* %26
%108 = load double, double* %27
%109 = fsub double %107, %108
%110 = load double*, double** %13
%111 = load double*, double** %12
%112 = load i32, i32* %19
%113 = call double @dot(double* %110, double* %111, i32 %112)
%114 = fneg double %113
%115 = load double, double* %28
%116 = fdiv double %115, 2.000000e+00
%117 = fsub double %114, %116
%118 = fdiv double %109, %117
store double %118, double* %22
br label %120
119: ; preds = %79
store double -1.000000e+00, double* %22
br label %120
120: ; preds = %119, %88
%121 = load double*, double** %23
%122 = call i32 @free(double* %121)
%123 = load double*, double** %24
%124 = call i32 @free(double* %123)
%125 = load double*, double** %25
%126 = call i32 @free(double* %125)
%127 = load double, double* %22
ret double %127
}

LLVM IR (-O2):
define double @getRho(double* %0, double* %1, double* %2, double* %3, double** %4, double* %5, double* %6, i32** %7, i32 %8, i32 %9) {
%11 = shl i32 %8, 3
%12 = tail call i64 @malloc(i32 %11)
%13 = inttoptr i64 %12 to double*
%14 = inttoptr i64 %12 to i8*
%15 = shl i32 %9, 3
%16 = tail call i64 @malloc(i32 %15)
%17 = inttoptr i64 %16 to double*
%18 = tail call i64 @malloc(i32 %11)
%19 = inttoptr i64 %18 to double*
%20 = tail call double @sum(double* %3, i32 %9)
%21 = tail call double @dot(double* %0, double* %5, i32 %8)
%22 = fsub double %20, %21
%23 = icmp sgt i32 %8, 0
br i1 %23, label %24, label %168
24: ; preds = %10
%25 = zext i32 %8 to i64
%26 = icmp ult i32 %8, 4
br i1 %26, label %116, label %27
27: ; preds = %24
%28 = getelementptr double, double* %13, i64 %25
%29 = getelementptr double, double* %0, i64 %25
%30 = bitcast double* %29 to i8*
%31 = getelementptr double, double* %1, i64 %25
%32 = bitcast double* %31 to i8*
%33 = icmp ult i8* %14, %30
%34 = icmp ugt double* %28, %0
%35 = and i1 %33, %34
%36 = icmp ult i8* %14, %32
%37 = icmp ugt double* %28, %1
%38 = and i1 %36, %37
%39 = or i1 %35, %38
br i1 %39, label %116, label %40
40: ; preds = %27
%41 = and i64 %25, 4294967292
%42 = add nsw i64 %41, -4
%43 = lshr exact i64 %42, 2
%44 = add nuw nsw i64 %43, 1
%45 = and i64 %44, 1
%46 = icmp eq i64 %42, 0
br i1 %46, label %92, label %47
47: ; preds = %40
%48 = and i64 %44, 9223372036854775806
br label %49
49: ; preds = %49, %47
%50 = phi i64 [ 0, %47 ], [ %89, %49 ]
%51 = phi i64 [ 0, %47 ], [ %90, %49 ]
%52 = getelementptr inbounds double, double* %0, i64 %50
%53 = bitcast double* %52 to <2 x double>*
%54 = load <2 x double>, <2 x double>* %53
%55 = getelementptr inbounds double, double* %52, i64 2
%56 = bitcast double* %55 to <2 x double>*
%57 = load <2 x double>, <2 x double>* %56
%58 = getelementptr inbounds double, double* %1, i64 %50
%59 = bitcast double* %58 to <2 x double>*
%60 = load <2 x double>, <2 x double>* %59
%61 = getelementptr inbounds double, double* %58, i64 2
%62 = bitcast double* %61 to <2 x double>*
%63 = load <2 x double>, <2 x double>* %62
%64 = fadd <2 x double> %54, %60
%65 = fadd <2 x double> %57, %63
%66 = getelementptr inbounds double, double* %13, i64 %50
%67 = bitcast double* %66 to <2 x double>*
store <2 x double> %64, <2 x double>* %67
%68 = getelementptr inbounds double, double* %66, i64 2
%69 = bitcast double* %68 to <2 x double>*
store <2 x double> %65, <2 x double>* %69
%70 = or i64 %50, 4
%71 = getelementptr inbounds double, double* %0, i64 %70
%72 = bitcast double* %71 to <2 x double>*
%73 = load <2 x double>, <2 x double>* %72
%74 = getelementptr inbounds double, double* %71, i64 2
%75 = bitcast double* %74 to <2 x double>*
%76 = load <2 x double>, <2 x double>* %75
%77 = getelementptr inbounds double, double* %1, i64 %70
%78 = bitcast double* %77 to <2 x double>*
%79 = load <2 x double>, <2 x double>* %78
%80 = getelementptr inbounds double, double* %77, i64 2
%81 = bitcast double* %80 to <2 x double>*
%82 = load <2 x double>, <2 x double>* %81
%83 = fadd <2 x double> %73, %79
%84 = fadd <2 x double> %76, %82
%85 = getelementptr inbounds double, double* %13, i64 %70
%86 = bitcast double* %85 to <2 x double>*
store <2 x double> %83, <2 x double>* %86
%87 = getelementptr inbounds double, double* %85, i64 2
%88 = bitcast double* %87 to <2 x double>*
store <2 x double> %84, <2 x double>* %88
%89 = add nuw i64 %50, 8
%90 = add i64 %51, 2
%91 = icmp eq i64 %90, %48
br i1 %91, label %92, label %49
92: ; preds = %49, %40
%93 = phi i64 [ 0, %40 ], [ %89, %49 ]
%94 = icmp eq i64 %45, 0
br i1 %94, label %114, label %95
95: ; preds = %92
%96 = getelementptr inbounds double, double* %0, i64 %93
%97 = bitcast double* %96 to <2 x double>*
%98 = load <2 x double>, <2 x double>* %97
%99 = getelementptr inbounds double, double* %96, i64 2
%100 = bitcast double* %99 to <2 x double>*
%101 = load <2 x double>, <2 x double>* %100
%102 = getelementptr inbounds double, double* %1, i64 %93
%103 = bitcast double* %102 to <2 x double>*
%104 = load <2 x double>, <2 x double>* %103
%105 = getelementptr inbounds double, double* %102, i64 2
%106 = bitcast double* %105 to <2 x double>*
%107 = load <2 x double>, <2 x double>* %106
%108 = fadd <2 x double> %98, %104
%109 = fadd <2 x double> %101, %107
%110 = getelementptr inbounds double, double* %13, i64 %93
%111 = bitcast double* %110 to <2 x double>*
store <2 x double> %108, <2 x double>* %111
%112 = getelementptr inbounds double, double* %110, i64 2
%113 = bitcast double* %112 to <2 x double>*
store <2 x double> %109, <2 x double>* %113
br label %114
114: ; preds = %92, %95
%115 = icmp eq i64 %41, %25
br i1 %115, label %168, label %116
116: ; preds = %27, %24, %114
%117 = phi i64 [ 0, %27 ], [ 0, %24 ], [ %41, %114 ]
%118 = xor i64 %117, -1
%119 = add nsw i64 %118, %25
%120 = and i64 %25, 3
%121 = icmp eq i64 %120, 0
br i1 %121, label %134, label %122
122: ; preds = %116, %122
%123 = phi i64 [ %131, %122 ], [ %117, %116 ]
%124 = phi i64 [ %132, %122 ], [ 0, %116 ]
%125 = getelementptr inbounds double, double* %0, i64 %123
%126 = load double, double* %125
%127 = getelementptr inbounds double, double* %1, i64 %123
%128 = load double, double* %127
%129 = fadd double %126, %128
%130 = getelementptr inbounds double, double* %13, i64 %123
store double %129, double* %130
%131 = add nuw nsw i64 %123, 1
%132 = add i64 %124, 1
%133 = icmp eq i64 %132, %120
br i1 %133, label %134, label %122
134: ; preds = %122, %116
%135 = phi i64 [ %117, %116 ], [ %131, %122 ]
%136 = icmp ult i64 %119, 3
br i1 %136, label %168, label %137
137: ; preds = %134, %137
%138 = phi i64 [ %166, %137 ], [ %135, %134 ]
%139 = getelementptr inbounds double, double* %0, i64 %138
%140 = load double, double* %139
%141 = getelementptr inbounds double, double* %1, i64 %138
%142 = load double, double* %141
%143 = fadd double %140, %142
%144 = getelementptr inbounds double, double* %13, i64 %138
store double %143, double* %144
%145 = add nuw nsw i64 %138, 1
%146 = getelementptr inbounds double, double* %0, i64 %145
%147 = load double, double* %146
%148 = getelementptr inbounds double, double* %1, i64 %145
%149 = load double, double* %148
%150 = fadd double %147, %149
%151 = getelementptr inbounds double, double* %13, i64 %145
store double %150, double* %151
%152 = add nuw nsw i64 %138, 2
%153 = getelementptr inbounds double, double* %0, i64 %152
%154 = load double, double* %153
%155 = getelementptr inbounds double, double* %1, i64 %152
%156 = load double, double* %155
%157 = fadd double %154, %156
%158 = getelementptr inbounds double, double* %13, i64 %152
store double %157, double* %158
%159 = add nuw nsw i64 %138, 3
%160 = getelementptr inbounds double, double* %0, i64 %159
%161 = load double, double* %160
%162 = getelementptr inbounds double, double* %1, i64 %159
%163 = load double, double* %162
%164 = fadd double %161, %163
%165 = getelementptr inbounds double, double* %13, i64 %159
store double %164, double* %165
%166 = add nuw nsw i64 %138, 4
%167 = icmp eq i64 %166, %25
br i1 %167, label %168, label %137
168: ; preds = %134, %137, %114, %10
%169 = tail call i64 @getx(double* %17, double* %13, double* %6, i32** %7, i32 %8, i32 %9)
%170 = icmp eq i64 %169, 0
br i1 %170, label %183, label %171
171: ; preds = %168
%172 = tail call double @sum(double* %17, i32 %9)
%173 = tail call double @dot(double* %13, double* %5, i32 %8)
%174 = fsub double %172, %173
%175 = tail call i32 @MatrixVectorMult(double* %19, double** %4, double* %1, i32 %8)
%176 = tail call double @dot(double* %1, double* %19, i32 %8)
%177 = fsub double %22, %174
%178 = tail call double @dot(double* %2, double* %1, i32 %8)
%179 = fneg double %178
%180 = fmul double %176, 5.000000e-01
%181 = fsub double %179, %180
%182 = fdiv double %177, %181
br label %183
183: ; preds = %168, %171
%184 = phi double [ %182, %171 ], [ -1.000000e+00, %168 ]
%185 = tail call i32 @free(double* %13)
%186 = tail call i32 @free(double* %17)
%187 = tail call i32 @free(double* %19)
ret double %184
}