#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*/ minv(double *, int);
void HDsiSym(const double *lin, const double *u6, const double *H, double *p,
             int len, int *pts, int ni) {
  int i;
  double Hinv[9], H1[9];
  const double *u;
  double a, b, xa, ya, d1, d2, xdiff, ydiff;
  Hinv[0] = H[0];
  Hinv[1] = H[3];
  Hinv[2] = H[6];
  Hinv[3] = H[1];
  Hinv[4] = H[4];
  Hinv[5] = H[7];
  Hinv[6] = H[2];
  Hinv[7] = H[5];
  Hinv[8] = H[8];
  for (i = 0; i < 9; i++)
    H1[i] = Hinv[i];
  minv(H1, 3);
  for (i = 0; i < ni; i++) {
    u = u6 + 6 * pts[i];
    a = H1[6] * u[0] + H1[7] * u[1] + H1[8];
    b = Hinv[6] * u[3] + Hinv[7] * u[4] + Hinv[8];
    xa = (H1[0] * u[0] + H1[1] * u[1] + H1[2]) / a;
    ya = (H1[3] * u[0] + H1[4] * u[1] + H1[5]) / a;
    xdiff = u[3] - xa;
    ydiff = u[4] - ya;
    d1 = xdiff * xdiff + ydiff * ydiff;
    xa = (Hinv[0] * u[3] + Hinv[1] * u[4] + Hinv[2]) / b;
    ya = (Hinv[3] * u[3] + Hinv[4] * u[4] + Hinv[5]) / b;
    xdiff = u[0] - xa;
    ydiff = u[1] - ya;
    d2 = xdiff * xdiff + ydiff * ydiff;
    *p = d1 + d2;
    p++;
    u += 6;
  }
}


x86 assembly (clang, -O0):
<HDsiSym>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%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    -0x18(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x30(%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x20(%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x38(%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x28(%rax),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x18(%rbp),%rax
movsd  0x40(%rax),%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
cmpl   $0x9,-0x34(%rbp)
jge    11e9 <HDsiSym+0xd9>
movslq -0x34(%rbp),%rax
movsd  -0x80(%rbp,%rax,8),%xmm0
movslq -0x34(%rbp),%rax
movsd  %xmm0,-0xd0(%rbp,%rax,8)
ff ff
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11ba <HDsiSym+0xaa>
lea    -0xd0(%rbp),%rdi
mov    $0x3,%esi
call   1030 <minv@plt>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    0x10(%rbp),%eax
jge    14c3 <HDsiSym+0x3b3>
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,-0xd8(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0xd8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mov    -0xd8(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xe0(%rbp)
ff
movsd  -0x50(%rbp),%xmm0
mov    -0xd8(%rbp),%rax
movsd  0x18(%rax),%xmm2
movsd  -0x48(%rbp),%xmm1
mov    -0xd8(%rbp),%rax
mulsd  0x20(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
mov    -0xd8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xc8(%rbp),%xmm1
ff
mov    -0xd8(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xc0(%rbp),%xmm0
ff
divsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
mov    -0xd8(%rbp),%rax
movsd  (%rax),%xmm2
movsd  -0xb0(%rbp),%xmm1
ff
mov    -0xd8(%rbp),%rax
mulsd  0x8(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0xa8(%rbp),%xmm0
ff
divsd  -0xe0(%rbp),%xmm0
ff
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0xd8(%rbp),%rax
movsd  0x18(%rax),%xmm0
subsd  -0xf0(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
mov    -0xd8(%rbp),%rax
movsd  0x20(%rax),%xmm0
subsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  -0x110(%rbp),%xmm2
ff
movsd  -0x118(%rbp),%xmm1
ff
mulsd  -0x118(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x100(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mov    -0xd8(%rbp),%rax
movsd  0x18(%rax),%xmm2
movsd  -0x78(%rbp),%xmm1
mov    -0xd8(%rbp),%rax
mulsd  0x20(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x70(%rbp),%xmm0
divsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf0(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
mov    -0xd8(%rbp),%rax
movsd  0x18(%rax),%xmm2
movsd  -0x60(%rbp),%xmm1
mov    -0xd8(%rbp),%rax
mulsd  0x20(%rax),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x58(%rbp),%xmm0
divsd  -0xe8(%rbp),%xmm0
ff
movsd  %xmm0,-0xf8(%rbp)
ff
mov    -0xd8(%rbp),%rax
movsd  (%rax),%xmm0
subsd  -0xf0(%rbp),%xmm0
ff
movsd  %xmm0,-0x110(%rbp)
ff
mov    -0xd8(%rbp),%rax
movsd  0x8(%rax),%xmm0
subsd  -0xf8(%rbp),%xmm0
ff
movsd  %xmm0,-0x118(%rbp)
ff
movsd  -0x110(%rbp),%xmm0
ff
movsd  -0x110(%rbp),%xmm2
ff
movsd  -0x118(%rbp),%xmm1
ff
mulsd  -0x118(%rbp),%xmm1
ff
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x108(%rbp)
ff
movsd  -0x100(%rbp),%xmm0
ff
addsd  -0x108(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x20(%rbp)
mov    -0xd8(%rbp),%rax
add    $0x30,%rax
mov    %rax,-0xd8(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1201 <HDsiSym+0xf1>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<HDsiSym>:
push   %rbp
push   %r15
push   %r14
push   %rbx
sub    $0xa8,%rsp
mov    %r9,%r14
mov    %rcx,%r15
mov    %rsi,%rbx
mov    0xd0(%rsp),%ebp
movsd  (%rdx),%xmm0
movsd  0x8(%rdx),%xmm8
movsd  0x18(%rdx),%xmm2
movsd  0x30(%rdx),%xmm3
movsd  0x20(%rdx),%xmm4
movsd  0x38(%rdx),%xmm5
movsd  0x10(%rdx),%xmm6
movsd  0x28(%rdx),%xmm7
movsd  0x40(%rdx),%xmm1
movsd  %xmm0,0xa0(%rsp)
movsd  %xmm0,(%rsp)
movsd  %xmm2,0x90(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm3,0x88(%rsp)
movsd  %xmm3,0x10(%rsp)
movsd  %xmm8,0x98(%rsp)
movsd  %xmm8,0x18(%rsp)
movsd  %xmm4,0x80(%rsp)
movsd  %xmm4,0x20(%rsp)
movsd  %xmm5,0x78(%rsp)
movsd  %xmm5,0x28(%rsp)
movsd  %xmm6,0x70(%rsp)
movsd  %xmm6,0x30(%rsp)
movsd  %xmm7,0x68(%rsp)
movsd  %xmm7,0x38(%rsp)
movsd  %xmm1,0x60(%rsp)
movsd  %xmm1,0x40(%rsp)
mov    %rsp,%rdi
mov    $0x3,%esi
call   1030 <minv@plt>
test   %ebp,%ebp
jle    1377 <HDsiSym+0x267>
movsd  0x30(%rsp),%xmm0
movsd  %xmm0,0x58(%rsp)
movsd  0x38(%rsp),%xmm0
movsd  %xmm0,0x50(%rsp)
movsd  0x40(%rsp),%xmm0
movsd  %xmm0,0x48(%rsp)
movsd  (%rsp),%xmm8
movsd  0x8(%rsp),%xmm11
movsd  0x10(%rsp),%xmm13
movsd  0x18(%rsp),%xmm9
movsd  0x20(%rsp),%xmm14
movsd  0x28(%rsp),%xmm10
mov    %ebp,%eax
xor    %ecx,%ecx
nopl   0x0(%rax)
movslq (%r14,%rcx,4),%rdx
lea    (%rdx,%rdx,2),%rdx
shl    $0x4,%rdx
movsd  (%rbx,%rdx,1),%xmm2
movsd  0x8(%rbx,%rdx,1),%xmm1
movsd  0x50(%rsp),%xmm3
mulsd  %xmm1,%xmm3
movsd  0x58(%rsp),%xmm7
mulsd  %xmm2,%xmm7
addsd  %xmm3,%xmm7
movsd  0x18(%rbx,%rdx,1),%xmm4
movsd  0x20(%rbx,%rdx,1),%xmm5
movsd  0x68(%rsp),%xmm6
mulsd  %xmm5,%xmm6
movsd  0x70(%rsp),%xmm3
mulsd  %xmm4,%xmm3
addsd  %xmm6,%xmm3
movapd %xmm1,%xmm6
mulsd  %xmm11,%xmm6
movapd %xmm8,%xmm12
mulsd  %xmm2,%xmm12
addsd  %xmm6,%xmm12
movapd %xmm1,%xmm6
mulsd  %xmm14,%xmm6
movapd %xmm9,%xmm15
mulsd  %xmm2,%xmm15
addsd  %xmm6,%xmm15
addsd  0x48(%rsp),%xmm7
addsd  %xmm13,%xmm12
divsd  %xmm7,%xmm12
addsd  %xmm10,%xmm15
divsd  %xmm7,%xmm15
movapd %xmm4,%xmm7
subsd  %xmm12,%xmm7
movapd %xmm5,%xmm6
subsd  %xmm15,%xmm6
mulsd  %xmm6,%xmm6
mulsd  %xmm7,%xmm7
addsd  %xmm6,%xmm7
movsd  0x90(%rsp),%xmm6
mulsd  %xmm5,%xmm6
movsd  0xa0(%rsp),%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm6,%xmm0
mulsd  0x80(%rsp),%xmm5
mulsd  0x98(%rsp),%xmm4
addsd  %xmm5,%xmm4
addsd  0x60(%rsp),%xmm3
addsd  0x88(%rsp),%xmm0
divsd  %xmm3,%xmm0
addsd  0x78(%rsp),%xmm4
divsd  %xmm3,%xmm4
subsd  %xmm0,%xmm2
subsd  %xmm4,%xmm1
mulsd  %xmm1,%xmm1
mulsd  %xmm2,%xmm2
addsd  %xmm1,%xmm2
addsd  %xmm7,%xmm2
movsd  %xmm2,(%r15,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rax
jne    1240 <HDsiSym+0x130>
add    $0xa8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @HDsiSym(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 [9 x double]
%17 = alloca [9 x double]
%18 = alloca double*
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%23 = alloca double
%24 = alloca double
%25 = alloca double
%26 = 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
%27 = load double*, double** %10
%28 = getelementptr inbounds double, double* %27, i64 0
%29 = load double, double* %28
%30 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 0
store double %29, double* %30
%31 = load double*, double** %10
%32 = getelementptr inbounds double, double* %31, i64 3
%33 = load double, double* %32
%34 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 1
store double %33, double* %34
%35 = load double*, double** %10
%36 = getelementptr inbounds double, double* %35, i64 6
%37 = load double, double* %36
%38 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 2
store double %37, double* %38
%39 = load double*, double** %10
%40 = getelementptr inbounds double, double* %39, i64 1
%41 = load double, double* %40
%42 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 3
store double %41, double* %42
%43 = load double*, double** %10
%44 = getelementptr inbounds double, double* %43, i64 4
%45 = load double, double* %44
%46 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 4
store double %45, double* %46
%47 = load double*, double** %10
%48 = getelementptr inbounds double, double* %47, i64 7
%49 = load double, double* %48
%50 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 5
store double %49, double* %50
%51 = load double*, double** %10
%52 = getelementptr inbounds double, double* %51, i64 2
%53 = load double, double* %52
%54 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 6
store double %53, double* %54
%55 = load double*, double** %10
%56 = getelementptr inbounds double, double* %55, i64 5
%57 = load double, double* %56
%58 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 7
store double %57, double* %58
%59 = load double*, double** %10
%60 = getelementptr inbounds double, double* %59, i64 8
%61 = load double, double* %60
%62 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 8
store double %61, double* %62
store i32 0, i32* %15
br label %63
63: ; preds = %74, %7
%64 = load i32, i32* %15
%65 = icmp slt i32 %64, 9
br i1 %65, label %66, label %77
66: ; preds = %63
%67 = load i32, i32* %15
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 %68
%70 = load double, double* %69
%71 = load i32, i32* %15
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 %72
store double %70, double* %73
br label %74
74: ; preds = %66
%75 = load i32, i32* %15
%76 = add nsw i32 %75, 1
store i32 %76, i32* %15
br label %63
77: ; preds = %63
%78 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 0
%79 = call i32 @minv(double* %78, i32 3)
store i32 0, i32* %15
br label %80
80: ; preds = %232, %77
%81 = load i32, i32* %15
%82 = load i32, i32* %14
%83 = icmp slt i32 %81, %82
br i1 %83, label %84, label %235
84: ; preds = %80
%85 = load double*, double** %9
%86 = load i32*, i32** %13
%87 = load i32, i32* %15
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds i32, i32* %86, i64 %88
%90 = load i32, i32* %89
%91 = mul nsw i32 6, %90
%92 = sext i32 %91 to i64
%93 = getelementptr inbounds double, double* %85, i64 %92
store double* %93, double** %18
%94 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 6
%95 = load double, double* %94
%96 = load double*, double** %18
%97 = getelementptr inbounds double, double* %96, i64 0
%98 = load double, double* %97
%99 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 7
%100 = load double, double* %99
%101 = load double*, double** %18
%102 = getelementptr inbounds double, double* %101, i64 1
%103 = load double, double* %102
%104 = fmul double %100, %103
%105 = call double @llvm.fmuladd.f64(double %95, double %98, double %104)
%106 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 8
%107 = load double, double* %106
%108 = fadd double %105, %107
store double %108, double* %19
%109 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 6
%110 = load double, double* %109
%111 = load double*, double** %18
%112 = getelementptr inbounds double, double* %111, i64 3
%113 = load double, double* %112
%114 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 7
%115 = load double, double* %114
%116 = load double*, double** %18
%117 = getelementptr inbounds double, double* %116, i64 4
%118 = load double, double* %117
%119 = fmul double %115, %118
%120 = call double @llvm.fmuladd.f64(double %110, double %113, double %119)
%121 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 8
%122 = load double, double* %121
%123 = fadd double %120, %122
store double %123, double* %20
%124 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 0
%125 = load double, double* %124
%126 = load double*, double** %18
%127 = getelementptr inbounds double, double* %126, i64 0
%128 = load double, double* %127
%129 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 1
%130 = load double, double* %129
%131 = load double*, double** %18
%132 = getelementptr inbounds double, double* %131, i64 1
%133 = load double, double* %132
%134 = fmul double %130, %133
%135 = call double @llvm.fmuladd.f64(double %125, double %128, double %134)
%136 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 2
%137 = load double, double* %136
%138 = fadd double %135, %137
%139 = load double, double* %19
%140 = fdiv double %138, %139
store double %140, double* %21
%141 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 3
%142 = load double, double* %141
%143 = load double*, double** %18
%144 = getelementptr inbounds double, double* %143, i64 0
%145 = load double, double* %144
%146 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 4
%147 = load double, double* %146
%148 = load double*, double** %18
%149 = getelementptr inbounds double, double* %148, i64 1
%150 = load double, double* %149
%151 = fmul double %147, %150
%152 = call double @llvm.fmuladd.f64(double %142, double %145, double %151)
%153 = getelementptr inbounds [9 x double], [9 x double]* %17, i64 0, i64 5
%154 = load double, double* %153
%155 = fadd double %152, %154
%156 = load double, double* %19
%157 = fdiv double %155, %156
store double %157, double* %22
%158 = load double*, double** %18
%159 = getelementptr inbounds double, double* %158, i64 3
%160 = load double, double* %159
%161 = load double, double* %21
%162 = fsub double %160, %161
store double %162, double* %25
%163 = load double*, double** %18
%164 = getelementptr inbounds double, double* %163, i64 4
%165 = load double, double* %164
%166 = load double, double* %22
%167 = fsub double %165, %166
store double %167, double* %26
%168 = load double, double* %25
%169 = load double, double* %25
%170 = load double, double* %26
%171 = load double, double* %26
%172 = fmul double %170, %171
%173 = call double @llvm.fmuladd.f64(double %168, double %169, double %172)
store double %173, double* %23
%174 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 0
%175 = load double, double* %174
%176 = load double*, double** %18
%177 = getelementptr inbounds double, double* %176, i64 3
%178 = load double, double* %177
%179 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 1
%180 = load double, double* %179
%181 = load double*, double** %18
%182 = getelementptr inbounds double, double* %181, i64 4
%183 = load double, double* %182
%184 = fmul double %180, %183
%185 = call double @llvm.fmuladd.f64(double %175, double %178, double %184)
%186 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 2
%187 = load double, double* %186
%188 = fadd double %185, %187
%189 = load double, double* %20
%190 = fdiv double %188, %189
store double %190, double* %21
%191 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 3
%192 = load double, double* %191
%193 = load double*, double** %18
%194 = getelementptr inbounds double, double* %193, i64 3
%195 = load double, double* %194
%196 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 4
%197 = load double, double* %196
%198 = load double*, double** %18
%199 = getelementptr inbounds double, double* %198, i64 4
%200 = load double, double* %199
%201 = fmul double %197, %200
%202 = call double @llvm.fmuladd.f64(double %192, double %195, double %201)
%203 = getelementptr inbounds [9 x double], [9 x double]* %16, i64 0, i64 5
%204 = load double, double* %203
%205 = fadd double %202, %204
%206 = load double, double* %20
%207 = fdiv double %205, %206
store double %207, double* %22
%208 = load double*, double** %18
%209 = getelementptr inbounds double, double* %208, i64 0
%210 = load double, double* %209
%211 = load double, double* %21
%212 = fsub double %210, %211
store double %212, double* %25
%213 = load double*, double** %18
%214 = getelementptr inbounds double, double* %213, i64 1
%215 = load double, double* %214
%216 = load double, double* %22
%217 = fsub double %215, %216
store double %217, double* %26
%218 = load double, double* %25
%219 = load double, double* %25
%220 = load double, double* %26
%221 = load double, double* %26
%222 = fmul double %220, %221
%223 = call double @llvm.fmuladd.f64(double %218, double %219, double %222)
store double %223, double* %24
%224 = load double, double* %23
%225 = load double, double* %24
%226 = fadd double %224, %225
%227 = load double*, double** %11
store double %226, double* %227
%228 = load double*, double** %11
%229 = getelementptr inbounds double, double* %228, i32 1
store double* %229, double** %11
%230 = load double*, double** %18
%231 = getelementptr inbounds double, double* %230, i64 6
store double* %231, double** %18
br label %232
232: ; preds = %84
%233 = load i32, i32* %15
%234 = add nsw i32 %233, 1
store i32 %234, i32* %15
br label %80
235: ; preds = %80
ret void
}

LLVM IR (-O2):
define void @HDsiSym(double* nocapture readnone %0, double* nocapture %1, double* nocapture %2, double* nocapture writeonly %3, i32 %4, i32* nocapture %5, i32 %6) {
%8 = alloca [9 x double]
%9 = bitcast [9 x double]* %8 to i8*
%10 = load double, double* %2
%11 = getelementptr inbounds double, double* %2, i64 3
%12 = load double, double* %11
%13 = getelementptr inbounds double, double* %2, i64 6
%14 = load double, double* %13
%15 = getelementptr inbounds double, double* %2, i64 1
%16 = load double, double* %15
%17 = getelementptr inbounds double, double* %2, i64 4
%18 = load double, double* %17
%19 = getelementptr inbounds double, double* %2, i64 7
%20 = load double, double* %19
%21 = getelementptr inbounds double, double* %2, i64 2
%22 = load double, double* %21
%23 = getelementptr inbounds double, double* %2, i64 5
%24 = load double, double* %23
%25 = getelementptr inbounds double, double* %2, i64 8
%26 = load double, double* %25
%27 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 0
store double %10, double* %27
%28 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 1
store double %12, double* %28
%29 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 2
store double %14, double* %29
%30 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 3
store double %16, double* %30
%31 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 4
store double %18, double* %31
%32 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 5
store double %20, double* %32
%33 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 6
store double %22, double* %33
%34 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 7
store double %24, double* %34
%35 = getelementptr inbounds [9 x double], [9 x double]* %8, i64 0, i64 8
store double %26, double* %35
%36 = call i32 @minv(double* %27, i32 3)
%37 = icmp sgt i32 %6, 0
br i1 %37, label %38, label %98
38: ; preds = %7
%39 = load double, double* %33
%40 = load double, double* %34
%41 = load double, double* %35
%42 = load double, double* %27
%43 = load double, double* %28
%44 = load double, double* %29
%45 = load double, double* %30
%46 = load double, double* %31
%47 = load double, double* %32
%48 = zext i32 %6 to i64
br label %49
49: ; preds = %38, %49
%50 = phi i64 [ 0, %38 ], [ %96, %49 ]
%51 = phi double* [ %3, %38 ], [ %95, %49 ]
%52 = getelementptr inbounds i32, i32* %5, i64 %50
%53 = load i32, i32* %52
%54 = mul nsw i32 %53, 6
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %1, i64 %55
%57 = load double, double* %56
%58 = getelementptr inbounds double, double* %56, i64 1
%59 = load double, double* %58
%60 = fmul double %40, %59
%61 = call double @llvm.fmuladd.f64(double %39, double %57, double %60)
%62 = fadd double %41, %61
%63 = getelementptr inbounds double, double* %56, i64 3
%64 = load double, double* %63
%65 = getelementptr inbounds double, double* %56, i64 4
%66 = load double, double* %65
%67 = fmul double %24, %66
%68 = call double @llvm.fmuladd.f64(double %22, double %64, double %67)
%69 = fadd double %26, %68
%70 = fmul double %59, %43
%71 = call double @llvm.fmuladd.f64(double %42, double %57, double %70)
%72 = fadd double %44, %71
%73 = fdiv double %72, %62
%74 = fmul double %59, %46
%75 = call double @llvm.fmuladd.f64(double %45, double %57, double %74)
%76 = fadd double %47, %75
%77 = fdiv double %76, %62
%78 = fsub double %64, %73
%79 = fsub double %66, %77
%80 = fmul double %79, %79
%81 = call double @llvm.fmuladd.f64(double %78, double %78, double %80)
%82 = fmul double %12, %66
%83 = call double @llvm.fmuladd.f64(double %10, double %64, double %82)
%84 = fadd double %14, %83
%85 = fdiv double %84, %69
%86 = fmul double %18, %66
%87 = call double @llvm.fmuladd.f64(double %16, double %64, double %86)
%88 = fadd double %20, %87
%89 = fdiv double %88, %69
%90 = fsub double %57, %85
%91 = fsub double %59, %89
%92 = fmul double %91, %91
%93 = call double @llvm.fmuladd.f64(double %90, double %90, double %92)
%94 = fadd double %93, %81
store double %94, double* %51
%95 = getelementptr inbounds double, double* %51, i64 1
%96 = add nuw nsw i64 %50, 1
%97 = icmp eq i64 %96, %48
br i1 %97, label %98, label %49
98: ; preds = %49, %7
ret void
}