#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 HDsi(const double *lin, const double *u6, const double *H, double *p,
          int len, int *pts, int ni) {
  int i, j, shift = 2 * len;
  const double *l;
  double pJ[8];
  double r1, r2, a, b, c, d, e;
  const double *u;
  for (i = 0; i < ni; i++) {
    u = u6 + 6 * pts[i];
    r1 = 0;
    r2 = 0;
    l = lin + 2 * pts[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):
<HDsi>:
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,-0x3c(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    14b3 <HDsi+0x3a3>
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%rcx
movslq -0x34(%rbp),%rdx
imul   $0x6,(%rcx,%rdx,4),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xd0(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%rcx
movslq -0x34(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x38(%rbp)
cmpl   $0x9,-0x38(%rbp)
jge    1238 <HDsi+0x128>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x48(%rbp),%rax
movsd  0x8(%rax),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x3c(%rbp),%ecx
mov    -0x48(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11b0 <HDsi+0xa0>
mov    -0x18(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0xd0(%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,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0xd0(%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  0x40(%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm1
mov    -0xd0(%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    -0xd0(%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,-0xb8(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
mov    -0xd0(%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,-0xc0(%rbp)
ff
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm1
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
mov    -0xd0(%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
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xb0(%rbp),%xmm1
ff
movsd  -0xb8(%rbp),%xmm2
ff
movsd  -0xc0(%rbp),%xmm3
ff
movsd  -0xc8(%rbp),%xmm4
lea    -0x90(%rbp),%rdi
call   1030 <pinvJ@plt>
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x38(%rbp)
cmpl   $0x4,-0x38(%rbp)
jge    1499 <HDsi+0x389>
movslq -0x38(%rbp),%rax
movsd  -0x90(%rbp,%rax,8),%xmm0
ff ff
movsd  -0x98(%rbp),%xmm2
ff
mov    -0x38(%rbp),%eax
add    $0x4,%eax
cltq
movsd  -0x90(%rbp,%rax,8),%xmm1
ff ff
mulsd  -0xa0(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
movsd  -0xa8(%rbp),%xmm2
ff
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    141f <HDsi+0x30f>
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1146 <HDsi+0x36>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HDsi>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    0xa0(%rsp),%eax
test   %eax,%eax
jle    13be <HDsi+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 <HDsi+0x40>
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
define void @HDsi(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 = mul nsw i32 %35, 6
%37 = sext i32 %36 to i64
%38 = shl nsw i32 %35, 1
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds double, double* %0, i64 %39
%41 = load double, double* %2
%42 = load double, double* %40
%43 = call double @llvm.fmuladd.f64(double %41, double %42, double 0.000000e+00)
%44 = getelementptr inbounds double, double* %40, 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* %40, 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 %37
%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
}