#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*/ pinvJ(double, double, double, double, double, double *);
void HDs(const double *lin, const double *u, const double *H, double *p,
         int len) {
  int i, j, shift = 2 * len;
  const double *l;
  double pJ[8];
  double r1, r2, a, b, c, d, e;
  for (i = 0; i < len; i++) {
    r1 = 0;
    r2 = 0;
    l = lin + 2 * i;
    for (j = 0; j < 9; j++) {
      r1 += H[j] * *l;
      r2 += H[j] * l[1];
      l += shift;
    }
    a = H[0] - H[2] * u[0];
    b = H[3] - H[5] * u[0];
    c = -H[8] - H[2] * u[3] - H[5] * u[4];
    d = H[1] - H[2] * u[1];
    e = H[4] - H[5] * u[1];
    pinvJ(a, b, c, d, e, pJ);
    *p = 0;
    for (j = 0; j < 4; j++) {
      a = pJ[j] * r1 + pJ[j + 4] * r2;
      *p += a * a;
    }
    p++;
    u += 6;
  }
}


x86 assembly (clang, -O0):
<HDs>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1474 <HDs+0x364>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x8(%rbp),%rax
mov    -0x28(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x9,-0x2c(%rbp)
jge    1208 <HDs+0xf8>
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movsd  0x8(%rax),%xmm2
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x30(%rbp),%ecx
mov    -0x38(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1180 <HDs+0x70>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x40(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0x10(%rbp),%rax
movsd  0x18(%rax),%xmm2
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x20(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x10(%rbp),%rax
movsd  0x8(%rax),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0xa0(%rbp),%xmm1
ff
movsd  -0xa8(%rbp),%xmm2
ff
movsd  -0xb0(%rbp),%xmm3
ff
movsd  -0xb8(%rbp),%xmm4
ff
lea    -0x80(%rbp),%rdi
call   1030 <pinvJ@plt>
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x2c(%rbp)
cmpl   $0x4,-0x2c(%rbp)
jge    144e <HDs+0x33e>
movslq -0x2c(%rbp),%rax
movsd  -0x80(%rbp,%rax,8),%xmm0
movsd  -0x88(%rbp),%xmm2
ff
mov    -0x2c(%rbp),%eax
add    $0x4,%eax
cltq
movsd  -0x80(%rbp,%rax,8),%xmm1
mulsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0x98(%rbp),%xmm2
ff
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    13da <HDs+0x2ca>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x10(%rbp),%rax
add    $0x30,%rax
mov    %rax,-0x10(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    113f <HDs+0x2f>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HDs>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
test   %r8d,%r8d
jle    13c5 <HDs+0x2b5>
mov    %rdx,%r15
mov    %rsi,%rbx
mov    %rdi,%r12
lea    (%r8,%r8,1),%eax
movslq %eax,%rbp
mov    %r8d,%eax
shl    $0x3,%rax
mov    %rax,(%rsp)
lea    0x0(,%rbp,8),%r14
xor    %r13d,%r13d
mov    %rcx,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
lea    (%r12,%r13,2),%rax
movsd  (%r15),%xmm0
movsd  0x8(%r15),%xmm3
movsd  (%r12,%r13,2),%xmm1
mulsd  %xmm0,%xmm1
xorpd  %xmm4,%xmm4
addsd  %xmm4,%xmm1
movsd  0x8(%r12,%r13,2),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm4,%xmm2
lea    (%rax,%r14,1),%rcx
movsd  (%rax,%rbp,8),%xmm4
mulsd  %xmm3,%xmm4
addsd  %xmm1,%xmm4
movsd  0x8(%rax,%rbp,8),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movsd  0x10(%r15),%xmm8
lea    (%rcx,%r14,1),%rax
movsd  (%rcx,%rbp,8),%xmm2
mulsd  %xmm8,%xmm2
addsd  %xmm4,%xmm2
movsd  0x8(%rcx,%rbp,8),%xmm4
mulsd  %xmm8,%xmm4
addsd  %xmm1,%xmm4
movsd  0x18(%r15),%xmm1
lea    (%rax,%r14,1),%rcx
movsd  (%rax,%rbp,8),%xmm6
mulsd  %xmm1,%xmm6
addsd  %xmm2,%xmm6
movsd  0x8(%rax,%rbp,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm4,%xmm2
movsd  0x20(%r15),%xmm4
lea    (%rcx,%r14,1),%rax
movsd  (%rcx,%rbp,8),%xmm7
mulsd  %xmm4,%xmm7
addsd  %xmm6,%xmm7
movsd  0x8(%rcx,%rbp,8),%xmm5
mulsd  %xmm4,%xmm5
addsd  %xmm2,%xmm5
movsd  0x28(%r15),%xmm9
lea    (%rax,%r14,1),%rcx
movsd  (%rax,%rbp,8),%xmm2
mulsd  %xmm9,%xmm2
addsd  %xmm7,%xmm2
movsd  0x8(%rax,%rbp,8),%xmm7
mulsd  %xmm9,%xmm7
addsd  %xmm5,%xmm7
movsd  0x30(%r15),%xmm5
lea    (%rcx,%r14,1),%rax
movsd  (%rcx,%rbp,8),%xmm6
mulsd  %xmm5,%xmm6
addsd  %xmm2,%xmm6
mulsd  0x8(%rcx,%rbp,8),%xmm5
addsd  %xmm7,%xmm5
movsd  0x38(%r15),%xmm2
lea    (%rax,%r14,1),%rcx
movsd  (%rax,%rbp,8),%xmm7
mulsd  %xmm2,%xmm7
addsd  %xmm6,%xmm7
mulsd  0x8(%rax,%rbp,8),%xmm2
addsd  %xmm5,%xmm2
movsd  0x40(%r15),%xmm5
movsd  (%rcx,%rbp,8),%xmm6
mulsd  %xmm5,%xmm6
addsd  %xmm7,%xmm6
movsd  %xmm6,0x18(%rsp)
movsd  0x8(%rcx,%rbp,8),%xmm6
mulsd  %xmm5,%xmm6
addsd  %xmm2,%xmm6
movsd  %xmm6,0x10(%rsp)
movapd %xmm8,%xmm2
xorpd  0xd3d(%rip),%xmm2
movsd  (%rbx),%xmm6
movsd  0x8(%rbx),%xmm10
movapd %xmm8,%xmm7
mulsd  %xmm6,%xmm7
subsd  %xmm7,%xmm0
mulsd  %xmm9,%xmm6
subsd  %xmm6,%xmm1
mulsd  0x18(%rbx),%xmm2
subsd  %xmm5,%xmm2
movsd  0x20(%rbx),%xmm5
mulsd  %xmm9,%xmm5
subsd  %xmm5,%xmm2
mulsd  %xmm10,%xmm8
subsd  %xmm8,%xmm3
mulsd  %xmm10,%xmm9
subsd  %xmm9,%xmm4
lea    0x20(%rsp),%rdi
call   1030 <pinvJ@plt>
mov    0x8(%rsp),%rcx
movsd  0x40(%rsp),%xmm0
movsd  0x10(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm1
addsd  0xcc3(%rip),%xmm1
movsd  0x48(%rsp),%xmm0
mulsd  %xmm2,%xmm0
movapd %xmm2,%xmm4
movsd  0x28(%rsp),%xmm2
mulsd  %xmm3,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  0x50(%rsp),%xmm0
mulsd  %xmm4,%xmm0
movsd  0x30(%rsp),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm1
mulsd  0x58(%rsp),%xmm4
movapd %xmm3,%xmm0
mulsd  0x38(%rsp),%xmm0
addsd  %xmm2,%xmm1
addsd  %xmm4,%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rcx,%r13,1)
add    $0x8,%r13
add    $0x30,%rbx
cmp    %r13,(%rsp)
jne    1160 <HDs+0x50>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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