#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 HDsidx(const double *lin, const double *mu, const double *H, double *p,
            int len, int *idx, int siz) {
  int mi, i, j, shift = 2 * len;
  const double *l;
  double pJ[8];
  const double *u;
  double r1, r2, a, b, c, d, e;
  for (mi = 0; mi < siz; mi++) {
    i = idx[mi];
    r1 = 0;
    r2 = 0;
    l = lin + 2 * i;
    u = mu + 6 * 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++;
  }
}


x86 assembly (clang, -O0):
<HDsidx>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8d,-0x24(%rbp)
mov    %r9,-0x30(%rbp)
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
mov    %eax,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    14b1 <HDsidx+0x3a1>
mov    -0x30(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x8(%rbp),%rax
mov    -0x38(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x10(%rbp),%rax
imul   $0x6,-0x38(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x98(%rbp)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x9,-0x3c(%rbp)
jge    1236 <HDsidx+0x126>
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm2
movsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x40(%rbp),%ecx
mov    -0x48(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    11ae <HDsidx+0x9e>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x98(%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,-0xb0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x98(%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,-0xb8(%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    -0x98(%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    -0x98(%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,-0xc0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0x98(%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,-0xc8(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0x98(%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,-0xd0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xb8(%rbp),%xmm1
ff
movsd  -0xc0(%rbp),%xmm2
ff
movsd  -0xc8(%rbp),%xmm3
ff
movsd  -0xd0(%rbp),%xmm4
ff
lea    -0x90(%rbp),%rdi
call   1030 <pinvJ@plt>
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x3c(%rbp)
cmpl   $0x4,-0x3c(%rbp)
jge    1497 <HDsidx+0x387>
movslq -0x3c(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
movsd  -0xa0(%rbp),%xmm2
ff
mov    -0x3c(%rbp),%eax
add    $0x4,%eax
cltq
movsd  -0x90(%rbp,%rax,8),%xmm1
ff ff
mulsd  -0xa8(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm2
ff
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    141d <HDsidx+0x30d>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1146 <HDsidx+0x36>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HDsidx>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    0xa0(%rsp),%eax
test   %eax,%eax
jle    13be <HDsidx+0x2ae>
mov    %r9,%r14
mov    %rdx,%rbx
mov    %rsi,%r12
mov    %rdi,%r13
add    %r8d,%r8d
movslq %r8d,%rbp
mov    %eax,%eax
mov    %rax,(%rsp)
xor    %r15d,%r15d
mov    %rcx,0x8(%rsp)
nopl   (%rax)
movslq (%r14,%r15,4),%rax
lea    (%rax,%rax,2),%rcx
shl    $0x4,%rax
lea    (%rax,%r13,1),%rdx
movsd  (%rbx),%xmm0
movsd  0x8(%rbx),%xmm3
movsd  0x0(%r13,%rax,1),%xmm1
mulsd  %xmm0,%xmm1
xorpd  %xmm4,%xmm4
addsd  %xmm4,%xmm1
movsd  0x8(%r13,%rax,1),%xmm2
mulsd  %xmm0,%xmm2
addsd  %xmm4,%xmm2
lea    (%rdx,%rbp,8),%rax
movsd  (%rdx,%rbp,8),%xmm4
mulsd  %xmm3,%xmm4
addsd  %xmm1,%xmm4
movsd  0x8(%rdx,%rbp,8),%xmm1
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
lea    (%rax,%rbp,8),%rdx
movsd  0x10(%rbx),%xmm8
movsd  (%rax,%rbp,8),%xmm2
mulsd  %xmm8,%xmm2
addsd  %xmm4,%xmm2
movsd  0x8(%rax,%rbp,8),%xmm4
mulsd  %xmm8,%xmm4
addsd  %xmm1,%xmm4
lea    (%rdx,%rbp,8),%rax
movsd  0x18(%rbx),%xmm1
movsd  (%rdx,%rbp,8),%xmm6
mulsd  %xmm1,%xmm6
addsd  %xmm2,%xmm6
movsd  0x8(%rdx,%rbp,8),%xmm2
mulsd  %xmm1,%xmm2
addsd  %xmm4,%xmm2
lea    (%rax,%rbp,8),%rdx
movsd  0x20(%rbx),%xmm4
movsd  (%rax,%rbp,8),%xmm7
mulsd  %xmm4,%xmm7
addsd  %xmm6,%xmm7
movsd  0x8(%rax,%rbp,8),%xmm6
mulsd  %xmm4,%xmm6
addsd  %xmm2,%xmm6
lea    (%rdx,%rbp,8),%rax
movsd  0x28(%rbx),%xmm9
movsd  (%rdx,%rbp,8),%xmm2
mulsd  %xmm9,%xmm2
addsd  %xmm7,%xmm2
movsd  0x8(%rdx,%rbp,8),%xmm7
mulsd  %xmm9,%xmm7
addsd  %xmm6,%xmm7
lea    (%rax,%rbp,8),%rdx
movsd  0x30(%rbx),%xmm6
movsd  (%rax,%rbp,8),%xmm5
mulsd  %xmm6,%xmm5
addsd  %xmm2,%xmm5
mulsd  0x8(%rax,%rbp,8),%xmm6
addsd  %xmm7,%xmm6
lea    (%rdx,%rbp,8),%rax
movsd  0x38(%rbx),%xmm2
movsd  (%rdx,%rbp,8),%xmm7
mulsd  %xmm2,%xmm7
addsd  %xmm5,%xmm7
mulsd  0x8(%rdx,%rbp,8),%xmm2
addsd  %xmm6,%xmm2
movsd  0x40(%rbx),%xmm5
movsd  (%rax,%rbp,8),%xmm6
mulsd  %xmm5,%xmm6
addsd  %xmm7,%xmm6
movsd  %xmm6,0x18(%rsp)
movsd  0x8(%rax,%rbp,8),%xmm6
mulsd  %xmm5,%xmm6
addsd  %xmm2,%xmm6
movsd  %xmm6,0x10(%rsp)
shl    $0x4,%rcx
movapd %xmm8,%xmm2
xorpd  0xd43(%rip),%xmm2
movsd  (%r12,%rcx,1),%xmm6
movsd  0x8(%r12,%rcx,1),%xmm10
movapd %xmm8,%xmm7
mulsd  %xmm6,%xmm7
subsd  %xmm7,%xmm0
mulsd  %xmm9,%xmm6
subsd  %xmm6,%xmm1
mulsd  0x18(%r12,%rcx,1),%xmm2
subsd  %xmm5,%xmm2
movsd  0x20(%r12,%rcx,1),%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),%xmm3
mulsd  %xmm3,%xmm0
movsd  0x20(%rsp),%xmm1
movsd  0x18(%rsp),%xmm4
mulsd  %xmm4,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm1
addsd  0xcc2(%rip),%xmm1
movsd  0x48(%rsp),%xmm0
mulsd  %xmm3,%xmm0
movsd  0x28(%rsp),%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
movsd  0x50(%rsp),%xmm0
mulsd  %xmm3,%xmm0
movsd  0x30(%rsp),%xmm1
mulsd  %xmm4,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm1,%xmm1
addsd  %xmm2,%xmm1
mulsd  0x58(%rsp),%xmm3
movapd %xmm4,%xmm0
mulsd  0x38(%rsp),%xmm0
addsd  %xmm3,%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rcx,%r15,8)
add    $0x1,%r15
cmp    %r15,(%rsp)
jne    1150 <HDsidx+0x40>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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