#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*/ exit(int);
double fabs(double);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(char *);
scalar_t__ log10(double);
scalar_t__ malloc(int);
int /*<<< orphan*/ stderr;
void eliminate(const unsigned int M, const unsigned int N, double *const A,
               const unsigned int strideA) {
  unsigned int i, j;
  double *scale_startp, *scale_endp, *row_startp, *p, *q, *r;
  double *pivotpt, *pivotrow, *pivotcol, *A_endp, *pivotscale_p;
  double mx, t, pivot, pivotsign, pivotscale, logdet;
  double tpivot, tpivotsign, tscale, f;
  logdet = 0.0;
  A_endp = A + M * strideA;
  if ((scale_startp = (double *)malloc(sizeof(double) * M)) == NULL) {
    fprintf(stderr, "lsqsolve: out of heap space.\n");
    exit(-1);
  }
  scale_endp = scale_startp + M;
  row_startp = A;
  p = scale_startp;
  while (p != scale_endp) {
    mx = 0.0;
    q = row_startp;
    while (q != row_startp + M) {
      t = *q++;
      mx = ((mx > fabs(t)) ? mx : fabs(t));
    }
    row_startp += strideA;
    *p++ = mx;
  }
  pivotpt = A;
  pivotcol = A;
  for (i = 0; i < M; i++) {
    pivotrow = pivotpt;
    if ((pivot = *pivotpt) < 0.0) {
      pivot = -pivot;
      pivotsign = -1.0;
    } else {
      pivotsign = 1.0;
    }
    q = scale_startp + i;
    pivotscale_p = q;
    pivotscale = *q++;
    for (p = pivotpt + strideA; p < A_endp; p += strideA) {
      if ((tpivot = *p) < 0.0) {
        tpivot = -tpivot;
        tpivotsign = -1.0;
      } else {
        tpivotsign = 1.0;
      }
      tscale = *q;
      if (pivotscale * tpivot > tscale * pivot) {
        pivot = tpivot;
        pivotsign = tpivotsign;
        pivotscale = tscale;
        pivotscale_p = q;
        pivotrow = p;
      }
      q++;
    }
    if (pivot == 0.0) {
      fprintf(stderr, "lsqsolve: singular matrix\n");
      exit(-1);
    }
    logdet += log10(pivot);
    f = pivotsign / pivot;
    if (pivotrow != pivotpt) {
      *pivotrow = *pivotpt;
      *pivotpt = 1.0;
      p = pivotrow + 1;
      q = pivotpt + 1;
      for (j = i + 1; j < N; j++) {
        t = *p * f;
        *p++ = *q;
        *q++ = t;
      }
      t = *(scale_startp + i);
      *(scale_startp + i) = *pivotscale_p;
      *pivotscale_p = t;
    } else {
      *pivotpt = 1.0;
      q = pivotpt + 1;
      for (j = i + 1; j < N; j++) {
        *q++ *= f;
      }
    }
    p = pivotcol;
    while (p < A_endp) {
      if (p != pivotpt) {
        f = *p;
        *p = 0.0;
        q = p + 1;
        r = pivotpt + 1;
        for (j = i + 1; j < N; j++) {
          *q++ -= f * *r++;
        }
      }
      p += strideA;
    }
    pivotpt += (strideA + 1);
    pivotcol++;
  }
  free((char *)scale_startp);
  fprintf(stderr, "lsqsolve:  log10 | det A | = %g\n", logdet);
}


x86 assembly (clang, -O0):
<eliminate>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    -0x4(%rbp),%ecx
imul   -0x14(%rbp),%ecx
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x4(%rbp),%eax
shl    $0x3,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    11c8 <eliminate+0x78>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
lea    0xe69(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    -0x28(%rbp),%rax
mov    -0x4(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x30(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x30(%rbp),%rax
je     12d0 <eliminate+0x180>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    -0x38(%rbp),%rcx
mov    -0x4(%rbp),%edx
shl    $0x3,%rdx
add    %rdx,%rcx
cmp    %rcx,%rax
je     129f <eliminate+0x14f>
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm1
ff
movaps 0xdbe(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jbe    1272 <eliminate+0x122>
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
jmp    128d <eliminate+0x13d>
movsd  -0x88(%rbp),%xmm0
ff
movaps 0xd8f(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0xd0(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
jmp    1208 <eliminate+0xb8>
mov    -0x14(%rbp),%ecx
mov    -0x38(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
movsd  -0x80(%rbp),%xmm0
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  %xmm0,(%rax)
jmp    11ea <eliminate+0x9a>
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x68(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0x4(%rbp),%eax
jae    17a8 <eliminate+0x658>
mov    -0x58(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm1
movsd  %xmm1,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1354 <eliminate+0x204>
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xcc1(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    1364 <eliminate+0x214>
movsd  0xca4(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x58(%rbp),%rax
mov    -0x14(%rbp),%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x70(%rbp),%rax
jae    14c1 <eliminate+0x371>
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm1
movsd  %xmm1,-0xb0(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd %xmm1,%xmm0
jbe    1412 <eliminate+0x2c2>
movsd  -0xb0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0xc03(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
jmp    1422 <eliminate+0x2d2>
movsd  0xbe6(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  -0xc0(%rbp),%xmm1
ff
mulsd  -0x90(%rbp),%xmm1
ff
ucomisd %xmm1,%xmm0
jbe    149c <eliminate+0x34c>
movsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0xb8(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0xc0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x48(%rbp),%rax
mov    %rax,-0x78(%rbp)
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x48(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x14(%rbp),%ecx
mov    -0x40(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
jmp    13ab <eliminate+0x25b>
movsd  -0x90(%rbp),%xmm0
ff
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    14fd <eliminate+0x3ad>
jp     14fd <eliminate+0x3ad>
mov    0x2afd(%rip),%rax
mov    (%rax),%edi
lea    0xb52(%rip),%rsi
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
movsd  -0x90(%rbp),%xmm0
ff
call   1060 <log10@plt>
cvtsi2sd %rax,%xmm0
addsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
divsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x60(%rbp),%rax
cmp    -0x58(%rbp),%rax
je     162b <eliminate+0x4db>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x60(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movsd  0xa9f(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x40(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    15ee <eliminate+0x49e>
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
mulsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x48(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  %xmm0,(%rax)
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  %xmm0,(%rax)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1586 <eliminate+0x436>
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x78(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x28(%rbp),%rax
mov    -0x18(%rbp),%ecx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x78(%rbp),%rax
movsd  %xmm0,(%rax)
jmp    168e <eliminate+0x53e>
mov    -0x58(%rbp),%rax
movsd  0x9c9(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1689 <eliminate+0x539>
movsd  -0xc8(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
mulsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1650 <eliminate+0x500>
jmp    168e <eliminate+0x53e>
mov    -0x68(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
cmp    -0x70(%rbp),%rax
jae    1777 <eliminate+0x627>
mov    -0x40(%rbp),%rax
cmp    -0x58(%rbp),%rax
je     175e <eliminate+0x60e>
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
mov    -0x40(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x40(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x48(%rbp)
mov    -0x58(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jae    1759 <eliminate+0x609>
movsd  -0xc8(%rbp),%xmm0
ff
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x50(%rbp)
movsd  (%rax),%xmm2
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm1
movq   %xmm0,%rcx
movabs $0x8000000000000000,%rdx
xor    %rdx,%rcx
movq   %rcx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    16ee <eliminate+0x59e>
jmp    175e <eliminate+0x60e>
mov    -0x14(%rbp),%ecx
mov    -0x40(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
jmp    1696 <eliminate+0x546>
mov    -0x14(%rbp),%ecx
add    $0x1,%ecx
mov    -0x58(%rbp),%rax
mov    %ecx,%ecx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x68(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x68(%rbp)
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    12e7 <eliminate+0x197>
mov    -0x28(%rbp),%rdi
call   1030 <free@plt>
mov    0x2828(%rip),%rax
mov    (%rax),%edi
movsd  -0xa8(%rbp),%xmm0
ff
lea    0x890(%rip),%rsi
mov    $0x1,%al
call   1040 <fprintf@plt>
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eliminate>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %ecx,%r14d
mov    %rdx,0x18(%rsp)
mov    %rsi,0x8(%rsp)
mov    %edi,%ebx
lea    0x0(,%rbx,8),%edi
call   1050 <malloc@plt>
mov    %rax,0x28(%rsp)
test   %rax,%rax
je     1b83 <eliminate+0xa33>
test   %ebx,%ebx
je     1b20 <eliminate+0x9d0>
mov    %r14,%rcx
mov    %ecx,%eax
imul   %ebx,%eax
mov    0x18(%rsp),%rsi
lea    (%rsi,%rax,8),%r13
mov    %ebx,%edx
mov    0x28(%rsp),%rdi
lea    (%rdi,%rdx,8),%rax
mov    %ecx,%ecx
mov    %rcx,0x58(%rsp)
lea    0x0(,%rcx,8),%rcx
mov    %rdx,0xa8(%rsp)
lea    0x0(,%rdx,8),%rdx
movapd 0xe2b(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nop
xorpd  %xmm1,%xmm1
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movsd  (%rsi,%rbp,1),%xmm2
andpd  %xmm0,%xmm2
maxsd  %xmm2,%xmm1
add    $0x8,%rbp
cmp    %rbp,%rdx
jne    11f0 <eliminate+0xa0>
movsd  %xmm1,(%rdi)
add    $0x8,%rdi
add    %rcx,%rsi
cmp    %rax,%rdi
jne    11e0 <eliminate+0x90>
test   %ebx,%ebx
je     1b20 <eliminate+0x9d0>
add    $0x1,%r14d
mov    0x8(%rsp),%rax
mov    %eax,%ecx
mov    %rcx,0x60(%rsp)
lea    -0x2(%rax),%edx
mov    0x18(%rsp),%rcx
mov    0x58(%rsp),%rax
lea    (%rcx,%rax,8),%rsi
mov    %r14,0xa0(%rsp)
lea    0x0(,%r14,8),%rdi
mov    %rdi,0x98(%rsp)
lea    0x0(,%rax,8),%r14
mov    0x28(%rsp),%rax
lea    0x8(%rax),%rdi
xorpd  %xmm9,%xmm9
xor    %r8d,%r8d
movapd 0xd97(%rip),%xmm8
lea    0xda0(%rip),%rbp
mov    %edx,0x68(%rsp)
mov    %edx,%ebx
mov    %rcx,%r15
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %rcx,0x50(%rsp)
jmp    12ff <eliminate+0x1af>
nopw   0x0(%rax,%rax,1)
xorps  %xmm0,%xmm0
cvtsi2sd %r9,%xmm0
movsd  0x10(%rsp),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x10(%rsp)
mov    0x98(%rsp),%rax
add    %rax,%r15
addq   $0x8,0x50(%rsp)
mov    0xc8(%rsp),%rsi
add    %rax,%rsi
mov    0xc0(%rsp),%rdi
add    $0x8,%rdi
mov    0x6c(%rsp),%ebx
add    $0xffffffff,%ebx
mov    %r12,%r8
cmp    0xa8(%rsp),%r12
lea    0xd27(%rip),%rbp
je     1b2a <eliminate+0x9da>
movsd  (%r15),%xmm0
xor    %eax,%eax
ucomisd %xmm0,%xmm9
seta   %cl
jbe    1315 <eliminate+0x1c5>
xorpd  %xmm8,%xmm0
mov    %cl,%al
movsd  0x0(%rbp,%rax,8),%xmm6
mov    0x28(%rsp),%rax
lea    (%rax,%r8,8),%r9
mov    0x58(%rsp),%rax
lea    (%r15,%rax,8),%rax
cmp    %r13,%rax
jae    13c0 <eliminate+0x270>
movsd  (%r9),%xmm7
mov    %rdi,%rax
mov    %rsi,%rcx
mov    %r9,%rdx
mov    %r15,%r12
jmp    135c <eliminate+0x20c>
nopl   0x0(%rax,%rax,1)
add    %r14,%rcx
add    $0x8,%rax
cmp    %r13,%rcx
jae    13c6 <eliminate+0x276>
movsd  (%rcx),%xmm2
movapd %xmm2,%xmm3
xorpd  %xmm8,%xmm3
movapd %xmm2,%xmm1
cmpltsd %xmm9,%xmm1
andpd  %xmm1,%xmm3
andnpd %xmm2,%xmm1
orpd   %xmm3,%xmm1
movsd  (%rax),%xmm3
movapd %xmm7,%xmm4
mulsd  %xmm1,%xmm4
movapd %xmm0,%xmm5
mulsd  %xmm3,%xmm5
ucomisd %xmm5,%xmm4
jbe    1350 <eliminate+0x200>
xor    %edx,%edx
ucomisd %xmm2,%xmm9
seta   %dl
movsd  0x0(%rbp,%rdx,8),%xmm6
mov    %rcx,%r12
mov    %rax,%rdx
movapd %xmm1,%xmm0
movapd %xmm3,%xmm7
jmp    1350 <eliminate+0x200>
nopl   0x0(%rax)
mov    %r15,%r12
mov    %r9,%rdx
mov    %rdx,0xb0(%rsp)
mov    %r9,0xb8(%rsp)
movapd %xmm6,0x80(%rsp)
mov    %rdi,0xc0(%rsp)
mov    %rsi,0xc8(%rsp)
ucomisd %xmm9,%xmm0
jne    13fc <eliminate+0x2ac>
jnp    1b62 <eliminate+0xa12>
mov    %ebx,0x6c(%rsp)
mov    %ebx,%ecx
add    $0x1,%rcx
mov    0x68(%rsp),%eax
mov    %eax,%edx
sub    %r8d,%edx
and    $0xfffffffffffffffc,%rcx
lea    0x1(%rdx),%rax
add    $0xfffffffffffffffc,%rcx
mov    %rax,0x48(%rsp)
mov    %rax,%rsi
movabs $0x1fffffffc,%rax
and    %rax,%rsi
shr    $0x2,%rcx
mov    %rsi,(%rsp)
lea    -0x4(%rsi),%rax
add    $0x1,%rcx
mov    %rax,0x40(%rsp)
shr    $0x2,%rax
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x30(%rsp)
add    $0x1,%rax
mov    %rax,0x38(%rsp)
mov    %r8,%rax
imul   0xa0(%rsp),%rax
mov    0x18(%rsp),%rcx
lea    (%rcx,%rax,8),%rax
add    $0x8,%rax
mov    %rdx,0x20(%rsp)
mov    %rax,0x70(%rsp)
lea    0x8(%rax,%rdx,8),%rax
mov    %rax,0x78(%rsp)
lea    0x1(%r8),%rbx
mov    %r8,%rbp
movapd %xmm0,0xd0(%rsp)
call   1060 <log10@plt>
mov    %rax,%r9
movapd 0x80(%rsp),%xmm5
divsd  0xd0(%rsp),%xmm5
cmp    %r15,%r12
mov    %rbx,%r8
je     1610 <eliminate+0x4c0>
movsd  (%r15),%xmm0
movsd  %xmm0,(%r12)
movabs $0x3ff0000000000000,%rcx
mov    %rcx,(%r15)
cmp    0x60(%rsp),%rbx
xorpd  %xmm9,%xmm9
movapd 0xb27(%rip),%xmm8
mov    %rbp,%rbx
jae    1830 <eliminate+0x6e0>
cmpl   $0x3,0x20(%rsp)
jb     1521 <eliminate+0x3d1>
lea    0x8(%r12),%rcx
cmp    0x78(%rsp),%rcx
jae    172d <eliminate+0x5dd>
mov    0x20(%rsp),%rcx
lea    (%r12,%rcx,8),%rcx
add    $0x10,%rcx
cmp    %rcx,0x70(%rsp)
jae    172d <eliminate+0x5dd>
mov    %r8d,%edx
mov    %r15,%rcx
mov    0x8(%rsp),%rbp
mov    %ebp,%edi
sub    %edx,%edi
mov    %edx,%esi
not    %esi
add    %ebp,%esi
and    $0x3,%edi
je     156d <eliminate+0x41d>
neg    %edi
xor    %ebp,%ebp
nop
movsd  0x8(%r12),%xmm0
mulsd  %xmm5,%xmm0
movsd  0x8(%rcx),%xmm1
movsd  %xmm1,0x8(%r12)
movsd  %xmm0,0x8(%rcx)
add    $0x8,%rcx
add    $0x8,%r12
add    $0xffffffff,%ebp
cmp    %ebp,%edi
jne    1540 <eliminate+0x3f0>
sub    %ebp,%edx
cmp    $0x3,%esi
jb     1830 <eliminate+0x6e0>
mov    0x8(%rsp),%rsi
sub    %edx,%esi
xor    %edx,%edx
nop
movsd  0x8(%r12,%rdx,8),%xmm0
mulsd  %xmm5,%xmm0
movsd  0x8(%rcx,%rdx,8),%xmm1
movsd  %xmm1,0x8(%r12,%rdx,8)
movsd  %xmm0,0x8(%rcx,%rdx,8)
movsd  0x10(%r12,%rdx,8),%xmm0
mulsd  %xmm5,%xmm0
movsd  0x10(%rcx,%rdx,8),%xmm1
movsd  %xmm1,0x10(%r12,%rdx,8)
movsd  %xmm0,0x10(%rcx,%rdx,8)
movsd  0x18(%r12,%rdx,8),%xmm0
mulsd  %xmm5,%xmm0
movsd  0x18(%rcx,%rdx,8),%xmm1
movsd  %xmm1,0x18(%r12,%rdx,8)
movsd  %xmm0,0x18(%rcx,%rdx,8)
movsd  0x20(%r12,%rdx,8),%xmm0
mulsd  %xmm5,%xmm0
movsd  0x20(%rcx,%rdx,8),%xmm1
movsd  %xmm1,0x20(%r12,%rdx,8)
movsd  %xmm0,0x20(%rcx,%rdx,8)
add    $0x4,%rdx
cmp    %edx,%esi
jne    1580 <eliminate+0x430>
jmp    1830 <eliminate+0x6e0>
cs nopw 0x0(%rax,%rax,1)
nop
movabs $0x3ff0000000000000,%rcx
mov    %rcx,(%r15)
lea    0x1(%rbp),%rcx
cmp    0x60(%rsp),%rcx
xorpd  %xmm9,%xmm9
movapd 0x9dc(%rip),%xmm8
mov    %rbx,%r12
mov    %rbp,%rbx
jae    1853 <eliminate+0x703>
cmpl   $0x3,0x20(%rsp)
jae    164f <eliminate+0x4ff>
mov    %r15,%rdx
jmp    1706 <eliminate+0x5b6>
movapd %xmm5,%xmm0
unpcklpd %xmm5,%xmm0
cmpq   $0x0,0x40(%rsp)
je     1afc <eliminate+0x9ac>
mov    0x30(%rsp),%rsi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movupd 0x8(%r15,%rdx,8),%xmm1
movupd 0x18(%r15,%rdx,8),%xmm2
movupd 0x28(%r15,%rdx,8),%xmm3
movupd 0x38(%r15,%rdx,8),%xmm4
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,0x8(%r15,%rdx,8)
movupd %xmm2,0x18(%r15,%rdx,8)
mulpd  %xmm0,%xmm3
mulpd  %xmm0,%xmm4
movupd %xmm3,0x28(%r15,%rdx,8)
movupd %xmm4,0x38(%r15,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rsi
jne    1670 <eliminate+0x520>
testb  $0x1,0x38(%rsp)
je     16ed <eliminate+0x59d>
movupd 0x8(%r15,%rdx,8),%xmm1
movupd 0x18(%r15,%rdx,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd %xmm1,0x8(%r15,%rdx,8)
movupd %xmm2,0x18(%r15,%rdx,8)
mov    (%rsp),%rax
cmp    %rax,0x48(%rsp)
je     1853 <eliminate+0x703>
mov    (%rsp),%rax
add    %eax,%ecx
lea    (%r15,%rax,8),%rdx
mov    0x8(%rsp),%rsi
sub    %ecx,%esi
xor    %ecx,%ecx
nop
movsd  0x8(%rdx,%rcx,8),%xmm0
mulsd  %xmm5,%xmm0
movsd  %xmm0,0x8(%rdx,%rcx,8)
add    $0x1,%rcx
cmp    %ecx,%esi
jne    1710 <eliminate+0x5c0>
jmp    1853 <eliminate+0x703>
movapd %xmm5,%xmm0
unpcklpd %xmm5,%xmm0
cmpq   $0x0,0x40(%rsp)
je     1b0e <eliminate+0x9be>
mov    0x30(%rsp),%rdx
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd 0x8(%r12,%rcx,8),%xmm1
movupd 0x18(%r12,%rcx,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movups 0x8(%r15,%rcx,8),%xmm3
movups 0x18(%r15,%rcx,8),%xmm4
movups %xmm3,0x8(%r12,%rcx,8)
movups %xmm4,0x18(%r12,%rcx,8)
movupd %xmm1,0x8(%r15,%rcx,8)
movupd %xmm2,0x18(%r15,%rcx,8)
movupd 0x28(%r12,%rcx,8),%xmm1
movupd 0x38(%r12,%rcx,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd 0x28(%r15,%rcx,8),%xmm3
movupd 0x38(%r15,%rcx,8),%xmm4
movupd %xmm3,0x28(%r12,%rcx,8)
movupd %xmm4,0x38(%r12,%rcx,8)
movupd %xmm1,0x28(%r15,%rcx,8)
movupd %xmm2,0x38(%r15,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rdx
jne    1750 <eliminate+0x600>
testb  $0x1,0x38(%rsp)
je     1821 <eliminate+0x6d1>
movupd 0x8(%r12,%rcx,8),%xmm1
movupd 0x18(%r12,%rcx,8),%xmm2
mulpd  %xmm0,%xmm1
mulpd  %xmm0,%xmm2
movupd 0x8(%r15,%rcx,8),%xmm0
movupd 0x18(%r15,%rcx,8),%xmm3
movupd %xmm0,0x8(%r12,%rcx,8)
movupd %xmm3,0x18(%r12,%rcx,8)
movupd %xmm1,0x8(%r15,%rcx,8)
movupd %xmm2,0x18(%r15,%rcx,8)
mov    (%rsp),%rax
cmp    %rax,0x48(%rsp)
jne    1ae7 <eliminate+0x997>
mov    0xb8(%rsp),%rax
movsd  (%rax),%xmm0
mov    0xb0(%rsp),%rcx
movsd  (%rcx),%xmm1
movsd  %xmm1,(%rax)
movsd  %xmm0,(%rcx)
mov    %r8,%r12
cmp    %r13,0x50(%rsp)
jae    12a0 <eliminate+0x150>
mov    0x20(%rsp),%rcx
lea    (%rbx,%rcx,1),%r10
add    $0x2,%r10
mov    (%rsp),%rcx
lea    (%rcx,%r12,1),%eax
mov    %eax,0x80(%rsp)
lea    (%r15,%rcx,8),%rax
mov    0x50(%rsp),%rdx
xor    %ebx,%ebx
jmp    18a0 <eliminate+0x750>
nopw   0x0(%rax,%rax,1)
add    %r14,%rdx
add    $0x1,%rbx
cmp    %r13,%rdx
jae    12a0 <eliminate+0x150>
cmp    %r15,%rdx
je     1890 <eliminate+0x740>
movsd  (%rdx),%xmm0
movq   $0x0,(%rdx)
cmp    0x60(%rsp),%r12
jae    1890 <eliminate+0x740>
xorpd  %xmm8,%xmm0
mov    %r12d,%r11d
mov    %r15,%rsi
mov    %rdx,%rdi
cmpl   $0x3,0x20(%rsp)
jb     1a10 <eliminate+0x8c0>
mov    %rbx,%rcx
imul   0x58(%rsp),%rcx
lea    (%r12,%rcx,1),%rsi
mov    0x18(%rsp),%rdi
lea    (%rdi,%rsi,8),%rsi
cmp    0x78(%rsp),%rsi
jae    190d <eliminate+0x7bd>
add    %r10,%rcx
mov    0x18(%rsp),%rsi
lea    (%rsi,%rcx,8),%rcx
mov    %r12d,%r11d
mov    %r15,%rsi
mov    %rdx,%rdi
cmp    %rcx,0x70(%rsp)
jb     1a10 <eliminate+0x8c0>
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
cmpq   $0x0,0x40(%rsp)
je     1ad5 <eliminate+0x985>
mov    0x30(%rsp),%rsi
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd 0x8(%r15,%rcx,8),%xmm2
movupd 0x18(%r15,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
movupd 0x8(%rdx,%rcx,8),%xmm4
addpd  %xmm2,%xmm4
movupd 0x18(%rdx,%rcx,8),%xmm2
movupd 0x28(%rdx,%rcx,8),%xmm5
movupd 0x38(%rdx,%rcx,8),%xmm6
mulpd  %xmm1,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm4,0x8(%rdx,%rcx,8)
movupd %xmm3,0x18(%rdx,%rcx,8)
movupd 0x28(%r15,%rcx,8),%xmm2
movupd 0x38(%r15,%rcx,8),%xmm3
mulpd  %xmm1,%xmm2
addpd  %xmm5,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm6,%xmm3
movupd %xmm2,0x28(%rdx,%rcx,8)
movupd %xmm3,0x38(%rdx,%rcx,8)
add    $0x8,%rcx
add    $0xfffffffffffffffe,%rsi
jne    1930 <eliminate+0x7e0>
testb  $0x1,0x38(%rsp)
je     19e3 <eliminate+0x893>
movupd 0x8(%r15,%rcx,8),%xmm2
movupd 0x18(%r15,%rcx,8),%xmm3
movupd 0x8(%rdx,%rcx,8),%xmm4
movupd 0x18(%rdx,%rcx,8),%xmm5
mulpd  %xmm1,%xmm2
addpd  %xmm4,%xmm2
mulpd  %xmm1,%xmm3
addpd  %xmm5,%xmm3
movupd %xmm2,0x8(%rdx,%rcx,8)
movupd %xmm3,0x18(%rdx,%rcx,8)
mov    (%rsp),%rcx
cmp    %rcx,0x48(%rsp)
je     1890 <eliminate+0x740>
mov    (%rsp),%rcx
lea    (%rdx,%rcx,8),%rdi
mov    0x80(%rsp),%r11d
mov    %rax,%rsi
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x8(%rsp),%rcx
mov    %ecx,%ebp
sub    %r11d,%ebp
mov    %r11d,%r12d
not    %r12d
add    %ecx,%r12d
and    $0x3,%ebp
je     1a55 <eliminate+0x905>
neg    %ebp
xor    %ecx,%ecx
nopl   0x0(%rax)
movsd  0x8(%rsi),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rdi),%xmm1
movsd  %xmm1,0x8(%rdi)
add    $0x8,%rdi
add    $0x8,%rsi
add    $0xffffffff,%ecx
cmp    %ecx,%ebp
jne    1a30 <eliminate+0x8e0>
sub    %ecx,%r11d
cmp    $0x3,%r12d
mov    %r8,%r12
jb     1890 <eliminate+0x740>
mov    0x8(%rsp),%rcx
sub    %r11d,%ecx
xor    %ebp,%ebp
nopl   0x0(%rax)
movsd  0x8(%rsi,%rbp,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x8(%rdi,%rbp,8),%xmm1
movsd  %xmm1,0x8(%rdi,%rbp,8)
movsd  0x10(%rsi,%rbp,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x10(%rdi,%rbp,8),%xmm1
movsd  %xmm1,0x10(%rdi,%rbp,8)
movsd  0x18(%rsi,%rbp,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x18(%rdi,%rbp,8),%xmm1
movsd  %xmm1,0x18(%rdi,%rbp,8)
movsd  0x20(%rsi,%rbp,8),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x20(%rdi,%rbp,8),%xmm1
movsd  %xmm1,0x20(%rdi,%rbp,8)
add    $0x4,%rbp
cmp    %ebp,%ecx
jne    1a70 <eliminate+0x920>
jmp    1890 <eliminate+0x740>
xor    %ecx,%ecx
testb  $0x1,0x38(%rsp)
jne    19ad <eliminate+0x85d>
jmp    19e3 <eliminate+0x893>
mov    (%rsp),%rax
lea    (%r8,%rax,1),%edx
lea    (%r12,%rax,8),%r12
lea    (%r15,%rax,8),%rcx
jmp    1527 <eliminate+0x3d7>
xor    %edx,%edx
testb  $0x1,0x38(%rsp)
jne    16c9 <eliminate+0x579>
jmp    16ed <eliminate+0x59d>
xor    %ecx,%ecx
testb  $0x1,0x38(%rsp)
jne    17e1 <eliminate+0x691>
jmp    1821 <eliminate+0x6d1>
xorpd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
mov    0x28(%rsp),%rdi
call   1030 <free@plt>
mov    0x24a5(%rip),%rax
mov    (%rax),%edi
lea    0x525(%rip),%rsi
movsd  0x10(%rsp),%xmm0
mov    $0x1,%al
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <fprintf@plt>
mov    0x2477(%rip),%rax
mov    (%rax),%edi
lea    0x4dc(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    $0xffffffff,%edi
call   1070 <exit@plt>
mov    0x2456(%rip),%rax
mov    (%rax),%edi
lea    0x49d(%rip),%rsi
jmp    1b72 <eliminate+0xa22>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [30 x i8] c"lsqsolve: out of heap space.\0A\00"
@.str.1 = [27 x i8] c"lsqsolve: singular matrix\0A\00"
@.str.2 = [33 x i8] c"lsqsolve: log10 | det A | = %g\0A\00"
define void @eliminate(i32 %0, i32 %1, double* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca double*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double*
%12 = alloca double*
%13 = alloca double*
%14 = alloca double*
%15 = alloca double*
%16 = alloca double*
%17 = alloca 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
%27 = alloca double
%28 = alloca double
%29 = alloca double
%30 = alloca double
%31 = alloca double
store i32 %0, i32* %5
store i32 %1, i32* %6
store double* %2, double** %7
store i32 %3, i32* %8
store double 0.000000e+00, double* %27
%32 = load double*, double** %7
%33 = load i32, i32* %5
%34 = load i32, i32* %8
%35 = mul i32 %33, %34
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds double, double* %32, i64 %36
store double* %37, double** %20
%38 = load i32, i32* %5
%39 = zext i32 %38 to i64
%40 = mul i64 8, %39
%41 = trunc i64 %40 to i32
%42 = call i64 @malloc(i32 %41)
%43 = inttoptr i64 %42 to double*
store double* %43, double** %11
%44 = icmp eq double* %43, null
br i1 %44, label %45, label %49
45: ; preds = %4
%46 = load i32, i32* @stderr
%47 = call i32 (i32, i8*, ...) @fprintf(i32 %46, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%48 = call i32 @exit(i32 -1)
unreachable
49: ; preds = %4
%50 = load double*, double** %11
%51 = load i32, i32* %5
%52 = zext i32 %51 to i64
%53 = getelementptr inbounds double, double* %50, i64 %52
store double* %53, double** %12
%54 = load double*, double** %7
store double* %54, double** %13
%55 = load double*, double** %11
store double* %55, double** %14
br label %56
56: ; preds = %84, %49
%57 = load double*, double** %14
%58 = load double*, double** %12
%59 = icmp ne double* %57, %58
br i1 %59, label %60, label %92
60: ; preds = %56
store double 0.000000e+00, double* %22
%61 = load double*, double** %13
store double* %61, double** %15
br label %62
62: ; preds = %82, %60
%63 = load double*, double** %15
%64 = load double*, double** %13
%65 = load i32, i32* %5
%66 = zext i32 %65 to i64
%67 = getelementptr inbounds double, double* %64, i64 %66
%68 = icmp ne double* %63, %67
br i1 %68, label %69, label %84
69: ; preds = %62
%70 = load double*, double** %15
%71 = getelementptr inbounds double, double* %70, i32 1
store double* %71, double** %15
%72 = load double, double* %70
store double %72, double* %23
%73 = load double, double* %22
%74 = load double, double* %23
%75 = call double @llvm.fabs.f64(double %74)
%76 = fcmp ogt double %73, %75
br i1 %76, label %77, label %79
77: ; preds = %69
%78 = load double, double* %22
br label %82
79: ; preds = %69
%80 = load double, double* %23
%81 = call double @llvm.fabs.f64(double %80)
br label %82
82: ; preds = %79, %77
%83 = phi double [ %78, %77 ], [ %81, %79 ]
store double %83, double* %22
br label %62
84: ; preds = %62
%85 = load i32, i32* %8
%86 = load double*, double** %13
%87 = zext i32 %85 to i64
%88 = getelementptr inbounds double, double* %86, i64 %87
store double* %88, double** %13
%89 = load double, double* %22
%90 = load double*, double** %14
%91 = getelementptr inbounds double, double* %90, i32 1
store double* %91, double** %14
store double %89, double* %90
br label %56
92: ; preds = %56
%93 = load double*, double** %7
store double* %93, double** %17
%94 = load double*, double** %7
store double* %94, double** %19
store i32 0, i32* %9
br label %95
95: ; preds = %291, %92
%96 = load i32, i32* %9
%97 = load i32, i32* %5
%98 = icmp ult i32 %96, %97
br i1 %98, label %99, label %294
99: ; preds = %95
%100 = load double*, double** %17
store double* %100, double** %18
%101 = load double*, double** %17
%102 = load double, double* %101
store double %102, double* %24
%103 = fcmp olt double %102, 0.000000e+00
br i1 %103, label %104, label %107
104: ; preds = %99
%105 = load double, double* %24
%106 = fneg double %105
store double %106, double* %24
store double -1.000000e+00, double* %25
br label %108
107: ; preds = %99
store double 1.000000e+00, double* %25
br label %108
108: ; preds = %107, %104
%109 = load double*, double** %11
%110 = load i32, i32* %9
%111 = zext i32 %110 to i64
%112 = getelementptr inbounds double, double* %109, i64 %111
store double* %112, double** %15
%113 = load double*, double** %15
store double* %113, double** %21
%114 = load double*, double** %15
%115 = getelementptr inbounds double, double* %114, i32 1
store double* %115, double** %15
%116 = load double, double* %114
store double %116, double* %26
%117 = load double*, double** %17
%118 = load i32, i32* %8
%119 = zext i32 %118 to i64
%120 = getelementptr inbounds double, double* %117, i64 %119
store double* %120, double** %14
br label %121
121: ; preds = %152, %108
%122 = load double*, double** %14
%123 = load double*, double** %20
%124 = icmp ult double* %122, %123
br i1 %124, label %125, label %157
125: ; preds = %121
%126 = load double*, double** %14
%127 = load double, double* %126
store double %127, double* %28
%128 = fcmp olt double %127, 0.000000e+00
br i1 %128, label %129, label %132
129: ; preds = %125
%130 = load double, double* %28
%131 = fneg double %130
store double %131, double* %28
store double -1.000000e+00, double* %29
br label %133
132: ; preds = %125
store double 1.000000e+00, double* %29
br label %133
133: ; preds = %132, %129
%134 = load double*, double** %15
%135 = load double, double* %134
store double %135, double* %30
%136 = load double, double* %26
%137 = load double, double* %28
%138 = fmul double %136, %137
%139 = load double, double* %30
%140 = load double, double* %24
%141 = fmul double %139, %140
%142 = fcmp ogt double %138, %141
br i1 %142, label %143, label %149
143: ; preds = %133
%144 = load double, double* %28
store double %144, double* %24
%145 = load double, double* %29
store double %145, double* %25
%146 = load double, double* %30
store double %146, double* %26
%147 = load double*, double** %15
store double* %147, double** %21
%148 = load double*, double** %14
store double* %148, double** %18
br label %149
149: ; preds = %143, %133
%150 = load double*, double** %15
%151 = getelementptr inbounds double, double* %150, i32 1
store double* %151, double** %15
br label %152
152: ; preds = %149
%153 = load i32, i32* %8
%154 = load double*, double** %14
%155 = zext i32 %153 to i64
%156 = getelementptr inbounds double, double* %154, i64 %155
store double* %156, double** %14
br label %121
157: ; preds = %121
%158 = load double, double* %24
%159 = fcmp oeq double %158, 0.000000e+00
br i1 %159, label %160, label %164
160: ; preds = %157
%161 = load i32, i32* @stderr
%162 = call i32 (i32, i8*, ...) @fprintf(i32 %161, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%163 = call i32 @exit(i32 -1)
unreachable
164: ; preds = %157
%165 = load double, double* %24
%166 = call i64 @log10(double %165)
%167 = sitofp i64 %166 to double
%168 = load double, double* %27
%169 = fadd double %168, %167
store double %169, double* %27
%170 = load double, double* %25
%171 = load double, double* %24
%172 = fdiv double %170, %171
store double %172, double* %31
%173 = load double*, double** %18
%174 = load double*, double** %17
%175 = icmp ne double* %173, %174
br i1 %175, label %176, label %220
176: ; preds = %164
%177 = load double*, double** %17
%178 = load double, double* %177
%179 = load double*, double** %18
store double %178, double* %179
%180 = load double*, double** %17
store double 1.000000e+00, double* %180
%181 = load double*, double** %18
%182 = getelementptr inbounds double, double* %181, i64 1
store double* %182, double** %14
%183 = load double*, double** %17
%184 = getelementptr inbounds double, double* %183, i64 1
store double* %184, double** %15
%185 = load i32, i32* %9
%186 = add i32 %185, 1
store i32 %186, i32* %10
br label %187
187: ; preds = %203, %176
%188 = load i32, i32* %10
%189 = load i32, i32* %6
%190 = icmp ult i32 %188, %189
br i1 %190, label %191, label %206
191: ; preds = %187
%192 = load double*, double** %14
%193 = load double, double* %192
%194 = load double, double* %31
%195 = fmul double %193, %194
store double %195, double* %23
%196 = load double*, double** %15
%197 = load double, double* %196
%198 = load double*, double** %14
%199 = getelementptr inbounds double, double* %198, i32 1
store double* %199, double** %14
store double %197, double* %198
%200 = load double, double* %23
%201 = load double*, double** %15
%202 = getelementptr inbounds double, double* %201, i32 1
store double* %202, double** %15
store double %200, double* %201
br label %203
203: ; preds = %191
%204 = load i32, i32* %10
%205 = add i32 %204, 1
store i32 %205, i32* %10
br label %187
206: ; preds = %187
%207 = load double*, double** %11
%208 = load i32, i32* %9
%209 = zext i32 %208 to i64
%210 = getelementptr inbounds double, double* %207, i64 %209
%211 = load double, double* %210
store double %211, double* %23
%212 = load double*, double** %21
%213 = load double, double* %212
%214 = load double*, double** %11
%215 = load i32, i32* %9
%216 = zext i32 %215 to i64
%217 = getelementptr inbounds double, double* %214, i64 %216
store double %213, double* %217
%218 = load double, double* %23
%219 = load double*, double** %21
store double %218, double* %219
br label %240
220: ; preds = %164
%221 = load double*, double** %17
store double 1.000000e+00, double* %221
%222 = load double*, double** %17
%223 = getelementptr inbounds double, double* %222, i64 1
store double* %223, double** %15
%224 = load i32, i32* %9
%225 = add i32 %224, 1
store i32 %225, i32* %10
br label %226
226: ; preds = %236, %220
%227 = load i32, i32* %10
%228 = load i32, i32* %6
%229 = icmp ult i32 %227, %228
br i1 %229, label %230, label %239
230: ; preds = %226
%231 = load double, double* %31
%232 = load double*, double** %15
%233 = getelementptr inbounds double, double* %232, i32 1
store double* %233, double** %15
%234 = load double, double* %232
%235 = fmul double %234, %231
store double %235, double* %232
br label %236
236: ; preds = %230
%237 = load i32, i32* %10
%238 = add i32 %237, 1
store i32 %238, i32* %10
br label %226
239: ; preds = %226
br label %240
240: ; preds = %239, %206
%241 = load double*, double** %19
store double* %241, double** %14
br label %242
242: ; preds = %278, %240
%243 = load double*, double** %14
%244 = load double*, double** %20
%245 = icmp ult double* %243, %244
br i1 %245, label %246, label %283
246: ; preds = %242
%247 = load double*, double** %14
%248 = load double*, double** %17
%249 = icmp ne double* %247, %248
br i1 %249, label %250, label %278
250: ; preds = %246
%251 = load double*, double** %14
%252 = load double, double* %251
store double %252, double* %31
%253 = load double*, double** %14
store double 0.000000e+00, double* %253
%254 = load double*, double** %14
%255 = getelementptr inbounds double, double* %254, i64 1
store double* %255, double** %15
%256 = load double*, double** %17
%257 = getelementptr inbounds double, double* %256, i64 1
store double* %257, double** %16
%258 = load i32, i32* %9
%259 = add i32 %258, 1
store i32 %259, i32* %10
br label %260
260: ; preds = %274, %250
%261 = load i32, i32* %10
%262 = load i32, i32* %6
%263 = icmp ult i32 %261, %262
br i1 %263, label %264, label %277
264: ; preds = %260
%265 = load double, double* %31
%266 = load double*, double** %16
%267 = getelementptr inbounds double, double* %266, i32 1
store double* %267, double** %16
%268 = load double, double* %266
%269 = load double*, double** %15
%270 = getelementptr inbounds double, double* %269, i32 1
store double* %270, double** %15
%271 = load double, double* %269
%272 = fneg double %265
%273 = call double @llvm.fmuladd.f64(double %272, double %268, double %271)
store double %273, double* %269
br label %274
274: ; preds = %264
%275 = load i32, i32* %10
%276 = add i32 %275, 1
store i32 %276, i32* %10
br label %260
277: ; preds = %260
br label %278
278: ; preds = %277, %246
%279 = load i32, i32* %8
%280 = load double*, double** %14
%281 = zext i32 %279 to i64
%282 = getelementptr inbounds double, double* %280, i64 %281
store double* %282, double** %14
br label %242
283: ; preds = %242
%284 = load i32, i32* %8
%285 = add i32 %284, 1
%286 = load double*, double** %17
%287 = zext i32 %285 to i64
%288 = getelementptr inbounds double, double* %286, i64 %287
store double* %288, double** %17
%289 = load double*, double** %19
%290 = getelementptr inbounds double, double* %289, i32 1
store double* %290, double** %19
br label %291
291: ; preds = %283
%292 = load i32, i32* %9
%293 = add i32 %292, 1
store i32 %293, i32* %9
br label %95
294: ; preds = %95
%295 = load double*, double** %11
%296 = bitcast double* %295 to i8*
%297 = call i32 @free(i8* %296)
%298 = load i32, i32* @stderr
%299 = load double, double* %27
%300 = call i32 (i32, i8*, ...) @fprintf(i32 %298, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), double %299)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [30 x i8] c"lsqsolve: out of heap space.\0A\00"
@.str.1 = [27 x i8] c"lsqsolve: singular matrix\0A\00"
@.str.2 = [33 x i8] c"lsqsolve: log10 | det A | = %g\0A\00"
define void @eliminate(i32 %0, i32 %1, double* %2, i32 %3) {
%5 = mul i32 %3, %0
%6 = zext i32 %5 to i64
%7 = getelementptr inbounds double, double* %2, i64 %6
%8 = zext i32 %0 to i64
%9 = shl i32 %0, 3
%10 = tail call i64 @malloc(i32 %9)
%11 = inttoptr i64 %10 to double*
%12 = icmp eq i64 %10, 0
br i1 %12, label %13, label %17
13: ; preds = %4
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0))
%16 = tail call i32 @exit(i32 -1)
unreachable
17: ; preds = %4
%18 = getelementptr inbounds double, double* %11, i64 %8
%19 = icmp eq i32 %0, 0
br i1 %19, label %560, label %20
20: ; preds = %17
%21 = zext i32 %3 to i64
br label %22
22: ; preds = %42, %20
%23 = phi double* [ %11, %20 ], [ %44, %42 ]
%24 = phi double* [ %2, %20 ], [ %43, %42 ]
%25 = getelementptr inbounds double, double* %24, i64 %8
br label %33
26: ; preds = %42
br i1 %19, label %560, label %27
27: ; preds = %26
%28 = zext i32 %3 to i64
%29 = add i32 %3, 1
%30 = zext i32 %29 to i64
%31 = zext i32 %1 to i64
%32 = add i32 %1, -2
br label %46
33: ; preds = %22, %33
%34 = phi double [ %40, %33 ], [ 0.000000e+00, %22 ]
%35 = phi double* [ %36, %33 ], [ %24, %22 ]
%36 = getelementptr inbounds double, double* %35, i64 1
%37 = load double, double* %35
%38 = tail call double @llvm.fabs.f64(double %37)
%39 = fcmp ogt double %34, %38
%40 = select i1 %39, double %34, double %38
%41 = icmp eq double* %36, %25
br i1 %41, label %42, label %33
42: ; preds = %33
%43 = getelementptr inbounds double, double* %24, i64 %21
%44 = getelementptr inbounds double, double* %23, i64 1
store double %40, double* %23
%45 = icmp eq double* %44, %18
br i1 %45, label %26, label %22
46: ; preds = %27, %556
%47 = phi i64 [ 0, %27 ], [ %396, %556 ]
%48 = phi double [ 0.000000e+00, %27 ], [ %158, %556 ]
%49 = phi double* [ %2, %27 ], [ %558, %556 ]
%50 = phi double* [ %2, %27 ], [ %557, %556 ]
%51 = trunc i64 %47 to i32
%52 = sub i32 %32, %51
%53 = zext i32 %52 to i64
%54 = add nuw nsw i64 %53, 1
%55 = and i64 %54, 8589934588
%56 = add nsw i64 %55, -4
%57 = lshr exact i64 %56, 2
%58 = add nuw nsw i64 %57, 1
%59 = trunc i64 %47 to i32
%60 = sub i32 %32, %59
%61 = zext i32 %60 to i64
%62 = add nuw nsw i64 %61, 1
%63 = and i64 %62, 8589934588
%64 = add nsw i64 %63, -4
%65 = lshr exact i64 %64, 2
%66 = add nuw nsw i64 %65, 1
%67 = trunc i64 %47 to i32
%68 = sub i32 %32, %67
%69 = zext i32 %68 to i64
%70 = add nuw nsw i64 %69, 1
%71 = and i64 %70, 8589934588
%72 = add nsw i64 %71, -4
%73 = lshr exact i64 %72, 2
%74 = add nuw nsw i64 %73, 1
%75 = trunc i64 %47 to i32
%76 = sub i32 %32, %75
%77 = zext i32 %76 to i64
%78 = add nuw nsw i64 %77, 1
%79 = trunc i64 %47 to i32
%80 = sub i32 %32, %79
%81 = zext i32 %80 to i64
%82 = mul i64 %47, %30
%83 = add i64 %82, 1
%84 = getelementptr double, double* %2, i64 %83
%85 = add i64 %82, 2
%86 = getelementptr double, double* %2, i64 %85
%87 = getelementptr double, double* %86, i64 %81
%88 = trunc i64 %47 to i32
%89 = sub i32 %32, %88
%90 = zext i32 %89 to i64
%91 = add nuw nsw i64 %90, 1
%92 = trunc i64 %47 to i32
%93 = sub i32 %32, %92
%94 = zext i32 %93 to i64
%95 = add nuw nsw i64 %94, 1
%96 = add nuw i64 %47, 1
%97 = add nuw i64 %47, 2
%98 = trunc i64 %47 to i32
%99 = sub i32 %32, %98
%100 = zext i32 %99 to i64
%101 = add i64 %97, %100
%102 = mul i64 %47, %30
%103 = add i64 %102, 1
%104 = getelementptr double, double* %2, i64 %103
%105 = add i64 %102, 2
%106 = getelementptr double, double* %2, i64 %105
%107 = getelementptr double, double* %106, i64 %100
%108 = load double, double* %50
%109 = fcmp olt double %108, 0.000000e+00
%110 = fneg double %108
%111 = select i1 %109, double %110, double %108
%112 = select i1 %109, double -1.000000e+00, double 1.000000e+00
%113 = getelementptr inbounds double, double* %11, i64 %47
%114 = getelementptr inbounds double, double* %50, i64 %28
%115 = icmp ult double* %114, %7
br i1 %115, label %116, label %145
116: ; preds = %46
%117 = load double, double* %113
br label %118
118: ; preds = %116, %137
%119 = phi double* [ %143, %137 ], [ %114, %116 ]
%120 = phi double* [ %126, %137 ], [ %113, %116 ]
%121 = phi double [ %142, %137 ], [ %117, %116 ]
%122 = phi double [ %141, %137 ], [ %112, %116 ]
%123 = phi double [ %140, %137 ], [ %111, %116 ]
%124 = phi double* [ %139, %137 ], [ %113, %116 ]
%125 = phi double* [ %138, %137 ], [ %50, %116 ]
%126 = getelementptr inbounds double, double* %120, i64 1
%127 = load double, double* %119
%128 = fcmp olt double %127, 0.000000e+00
%129 = fneg double %127
%130 = select i1 %128, double %129, double %127
%131 = load double, double* %126
%132 = fmul double %121, %130
%133 = fmul double %123, %131
%134 = fcmp ogt double %132, %133
br i1 %134, label %135, label %137
135: ; preds = %118
%136 = select i1 %128, double -1.000000e+00, double 1.000000e+00
br label %137
137: ; preds = %135, %118
%138 = phi double* [ %119, %135 ], [ %125, %118 ]
%139 = phi double* [ %126, %135 ], [ %124, %118 ]
%140 = phi double [ %130, %135 ], [ %123, %118 ]
%141 = phi double [ %136, %135 ], [ %122, %118 ]
%142 = phi double [ %131, %135 ], [ %121, %118 ]
%143 = getelementptr inbounds double, double* %119, i64 %28
%144 = icmp ult double* %143, %7
br i1 %144, label %118, label %145
145: ; preds = %137, %46
%146 = phi double* [ %50, %46 ], [ %138, %137 ]
%147 = phi double* [ %113, %46 ], [ %139, %137 ]
%148 = phi double [ %111, %46 ], [ %140, %137 ]
%149 = phi double [ %112, %46 ], [ %141, %137 ]
%150 = fcmp oeq double %148, 0.000000e+00
br i1 %150, label %151, label %155
151: ; preds = %145
%152 = load i32, i32* @stderr
%153 = tail call i32 (i32, i8*, ...) @fprintf(i32 %152, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0))
%154 = tail call i32 @exit(i32 -1)
unreachable
155: ; preds = %145
%156 = tail call i64 @log10(double %148)
%157 = sitofp i64 %156 to double
%158 = fadd double %48, %157
%159 = fdiv double %149, %148
%160 = icmp eq double* %146, %50
br i1 %160, label %318, label %161
161: ; preds = %155
%162 = load double, double* %50
store double %162, double* %146
store double 1.000000e+00, double* %50
%163 = add nuw nsw i64 %47, 1
%164 = icmp ult i64 %163, %31
br i1 %164, label %165, label %315
165: ; preds = %161
%166 = trunc i64 %163 to i32
%167 = icmp ult i32 %76, 3
br i1 %167, label %262, label %168
168: ; preds = %165
%169 = getelementptr double, double* %146, i64 1
%170 = getelementptr double, double* %146, i64 2
%171 = getelementptr double, double* %170, i64 %81
%172 = icmp ult double* %169, %87
%173 = icmp ult double* %84, %171
%174 = and i1 %172, %173
br i1 %174, label %262, label %175
175: ; preds = %168
%176 = and i64 %78, 8589934588
%177 = trunc i64 %176 to i32
%178 = add i32 %166, %177
%179 = getelementptr double, double* %146, i64 %176
%180 = getelementptr double, double* %50, i64 %176
%181 = insertelement <2 x double> poison, double %159, i64 0
%182 = shufflevector <2 x double> %181, <2 x double> poison, <2 x i32> zeroinitializer
%183 = insertelement <2 x double> poison, double %159, i64 0
%184 = shufflevector <2 x double> %183, <2 x double> poison, <2 x i32> zeroinitializer
%185 = and i64 %74, 1
%186 = icmp eq i64 %72, 0
br i1 %186, label %236, label %187
187: ; preds = %175
%188 = and i64 %74, 9223372036854775806
%189 = getelementptr double, double* %146, i64 1
%190 = getelementptr double, double* %50, i64 1
%191 = getelementptr double, double* %146, i64 1
%192 = getelementptr double, double* %50, i64 1
br label %193
193: ; preds = %193, %187
%194 = phi i64 [ 0, %187 ], [ %233, %193 ]
%195 = phi i64 [ 0, %187 ], [ %234, %193 ]
%196 = getelementptr inbounds double, double* %190, i64 %194
%197 = getelementptr inbounds double, double* %189, i64 %194
%198 = bitcast double* %197 to <2 x double>*
%199 = load <2 x double>, <2 x double>* %198
%200 = getelementptr inbounds double, double* %197, i64 2
%201 = bitcast double* %200 to <2 x double>*
%202 = load <2 x double>, <2 x double>* %201
%203 = fmul <2 x double> %182, %199
%204 = fmul <2 x double> %184, %202
%205 = bitcast double* %196 to <2 x double>*
%206 = load <2 x double>, <2 x double>* %205
%207 = getelementptr inbounds double, double* %196, i64 2
%208 = bitcast double* %207 to <2 x double>*
%209 = load <2 x double>, <2 x double>* %208
%210 = bitcast double* %197 to <2 x double>*
store <2 x double> %206, <2 x double>* %210
%211 = bitcast double* %200 to <2 x double>*
store <2 x double> %209, <2 x double>* %211
%212 = bitcast double* %196 to <2 x double>*
store <2 x double> %203, <2 x double>* %212
%213 = bitcast double* %207 to <2 x double>*
store <2 x double> %204, <2 x double>* %213
%214 = or i64 %194, 4
%215 = getelementptr inbounds double, double* %192, i64 %214
%216 = getelementptr inbounds double, double* %191, i64 %214
%217 = bitcast double* %216 to <2 x double>*
%218 = load <2 x double>, <2 x double>* %217
%219 = getelementptr inbounds double, double* %216, i64 2
%220 = bitcast double* %219 to <2 x double>*
%221 = load <2 x double>, <2 x double>* %220
%222 = fmul <2 x double> %182, %218
%223 = fmul <2 x double> %184, %221
%224 = bitcast double* %215 to <2 x double>*
%225 = load <2 x double>, <2 x double>* %224
%226 = getelementptr inbounds double, double* %215, i64 2
%227 = bitcast double* %226 to <2 x double>*
%228 = load <2 x double>, <2 x double>* %227
%229 = bitcast double* %216 to <2 x double>*
store <2 x double> %225, <2 x double>* %229
%230 = bitcast double* %219 to <2 x double>*
store <2 x double> %228, <2 x double>* %230
%231 = bitcast double* %215 to <2 x double>*
store <2 x double> %222, <2 x double>* %231
%232 = bitcast double* %226 to <2 x double>*
store <2 x double> %223, <2 x double>* %232
%233 = add nuw i64 %194, 8
%234 = add i64 %195, 2
%235 = icmp eq i64 %234, %188
br i1 %235, label %236, label %193
236: ; preds = %193, %175
%237 = phi i64 [ 0, %175 ], [ %233, %193 ]
%238 = icmp eq i64 %185, 0
br i1 %238, label %260, label %239
239: ; preds = %236
%240 = getelementptr double, double* %146, i64 1
%241 = getelementptr double, double* %50, i64 1
%242 = getelementptr inbounds double, double* %241, i64 %237
%243 = getelementptr inbounds double, double* %240, i64 %237
%244 = bitcast double* %243 to <2 x double>*
%245 = load <2 x double>, <2 x double>* %244
%246 = getelementptr inbounds double, double* %243, i64 2
%247 = bitcast double* %246 to <2 x double>*
%248 = load <2 x double>, <2 x double>* %247
%249 = fmul <2 x double> %182, %245
%250 = fmul <2 x double> %184, %248
%251 = bitcast double* %242 to <2 x double>*
%252 = load <2 x double>, <2 x double>* %251
%253 = getelementptr inbounds double, double* %242, i64 2
%254 = bitcast double* %253 to <2 x double>*
%255 = load <2 x double>, <2 x double>* %254
%256 = bitcast double* %243 to <2 x double>*
store <2 x double> %252, <2 x double>* %256
%257 = bitcast double* %246 to <2 x double>*
store <2 x double> %255, <2 x double>* %257
%258 = bitcast double* %242 to <2 x double>*
store <2 x double> %249, <2 x double>* %258
%259 = bitcast double* %253 to <2 x double>*
store <2 x double> %250, <2 x double>* %259
br label %260
260: ; preds = %236, %239
%261 = icmp eq i64 %78, %176
br i1 %261, label %315, label %262
262: ; preds = %168, %165, %260
%263 = phi i32 [ %166, %168 ], [ %166, %165 ], [ %178, %260 ]
%264 = phi double* [ %146, %168 ], [ %146, %165 ], [ %179, %260 ]
%265 = phi double* [ %50, %168 ], [ %50, %165 ], [ %180, %260 ]
%266 = sub i32 %1, %263
%267 = xor i32 %263, -1
%268 = add i32 %267, %1
%269 = and i32 %266, 3
%270 = icmp eq i32 %269, 0
br i1 %270, label %284, label %271
271: ; preds = %262, %271
%272 = phi i32 [ %281, %271 ], [ %263, %262 ]
%273 = phi double* [ %277, %271 ], [ %264, %262 ]
%274 = phi double* [ %276, %271 ], [ %265, %262 ]
%275 = phi i32 [ %282, %271 ], [ 0, %262 ]
%276 = getelementptr inbounds double, double* %274, i64 1
%277 = getelementptr inbounds double, double* %273, i64 1
%278 = load double, double* %277
%279 = fmul double %159, %278
%280 = load double, double* %276
store double %280, double* %277
store double %279, double* %276
%281 = add i32 %272, 1
%282 = add i32 %275, 1
%283 = icmp eq i32 %282, %269
br i1 %283, label %284, label %271
284: ; preds = %271, %262
%285 = phi i32 [ %263, %262 ], [ %281, %271 ]
%286 = phi double* [ %264, %262 ], [ %277, %271 ]
%287 = phi double* [ %265, %262 ], [ %276, %271 ]
%288 = icmp ult i32 %268, 3
br i1 %288, label %315, label %289
289: ; preds = %284, %289
%290 = phi i32 [ %313, %289 ], [ %285, %284 ]
%291 = phi double* [ %309, %289 ], [ %286, %284 ]
%292 = phi double* [ %308, %289 ], [ %287, %284 ]
%293 = getelementptr inbounds double, double* %292, i64 1
%294 = getelementptr inbounds double, double* %291, i64 1
%295 = load double, double* %294
%296 = fmul double %159, %295
%297 = load double, double* %293
store double %297, double* %294
store double %296, double* %293
%298 = getelementptr inbounds double, double* %292, i64 2
%299 = getelementptr inbounds double, double* %291, i64 2
%300 = load double, double* %299
%301 = fmul double %159, %300
%302 = load double, double* %298
store double %302, double* %299
store double %301, double* %298
%303 = getelementptr inbounds double, double* %292, i64 3
%304 = getelementptr inbounds double, double* %291, i64 3
%305 = load double, double* %304
%306 = fmul double %159, %305
%307 = load double, double* %303
store double %307, double* %304
store double %306, double* %303
%308 = getelementptr inbounds double, double* %292, i64 4
%309 = getelementptr inbounds double, double* %291, i64 4
%310 = load double, double* %309
%311 = fmul double %159, %310
%312 = load double, double* %308
store double %312, double* %309
store double %311, double* %308
%313 = add i32 %290, 4
%314 = icmp eq i32 %313, %1
br i1 %314, label %315, label %289
315: ; preds = %284, %289, %260, %161
%316 = load double, double* %113
%317 = load double, double* %147
store double %317, double* %113
store double %316, double* %147
br label %394
318: ; preds = %155
store double 1.000000e+00, double* %50
%319 = add nuw nsw i64 %47, 1
%320 = icmp ult i64 %319, %31
br i1 %320, label %321, label %394
321: ; preds = %318
%322 = trunc i64 %319 to i32
%323 = icmp ult i32 %89, 3
br i1 %323, label %383, label %324
324: ; preds = %321
%325 = and i64 %91, 8589934588
%326 = trunc i64 %325 to i32
%327 = add i32 %322, %326
%328 = getelementptr double, double* %50, i64 %325
%329 = insertelement <2 x double> poison, double %159, i64 0
%330 = shufflevector <2 x double> %329, <2 x double> poison, <2 x i32> zeroinitializer
%331 = insertelement <2 x double> poison, double %159, i64 0
%332 = shufflevector <2 x double> %331, <2 x double> poison, <2 x i32> zeroinitializer
%333 = and i64 %66, 1
%334 = icmp eq i64 %64, 0
br i1 %334, label %366, label %335
335: ; preds = %324
%336 = and i64 %66, 9223372036854775806
%337 = getelementptr double, double* %50, i64 1
%338 = getelementptr double, double* %50, i64 1
br label %339
339: ; preds = %339, %335
%340 = phi i64 [ 0, %335 ], [ %363, %339 ]
%341 = phi i64 [ 0, %335 ], [ %364, %339 ]
%342 = getelementptr inbounds double, double* %337, i64 %340
%343 = bitcast double* %342 to <2 x double>*
%344 = load <2 x double>, <2 x double>* %343
%345 = getelementptr inbounds double, double* %342, i64 2
%346 = bitcast double* %345 to <2 x double>*
%347 = load <2 x double>, <2 x double>* %346
%348 = fmul <2 x double> %330, %344
%349 = fmul <2 x double> %332, %347
%350 = bitcast double* %342 to <2 x double>*
store <2 x double> %348, <2 x double>* %350
%351 = bitcast double* %345 to <2 x double>*
store <2 x double> %349, <2 x double>* %351
%352 = or i64 %340, 4
%353 = getelementptr inbounds double, double* %338, i64 %352
%354 = bitcast double* %353 to <2 x double>*
%355 = load <2 x double>, <2 x double>* %354
%356 = getelementptr inbounds double, double* %353, i64 2
%357 = bitcast double* %356 to <2 x double>*
%358 = load <2 x double>, <2 x double>* %357
%359 = fmul <2 x double> %330, %355
%360 = fmul <2 x double> %332, %358
%361 = bitcast double* %353 to <2 x double>*
store <2 x double> %359, <2 x double>* %361
%362 = bitcast double* %356 to <2 x double>*
store <2 x double> %360, <2 x double>* %362
%363 = add nuw i64 %340, 8
%364 = add i64 %341, 2
%365 = icmp eq i64 %364, %336
br i1 %365, label %366, label %339
366: ; preds = %339, %324
%367 = phi i64 [ 0, %324 ], [ %363, %339 ]
%368 = icmp eq i64 %333, 0
br i1 %368, label %381, label %369
369: ; preds = %366
%370 = getelementptr double, double* %50, i64 1
%371 = getelementptr inbounds double, double* %370, i64 %367
%372 = bitcast double* %371 to <2 x double>*
%373 = load <2 x double>, <2 x double>* %372
%374 = getelementptr inbounds double, double* %371, i64 2
%375 = bitcast double* %374 to <2 x double>*
%376 = load <2 x double>, <2 x double>* %375
%377 = fmul <2 x double> %330, %373
%378 = fmul <2 x double> %332, %376
%379 = bitcast double* %371 to <2 x double>*
store <2 x double> %377, <2 x double>* %379
%380 = bitcast double* %374 to <2 x double>*
store <2 x double> %378, <2 x double>* %380
br label %381
381: ; preds = %366, %369
%382 = icmp eq i64 %91, %325
br i1 %382, label %394, label %383
383: ; preds = %321, %381
%384 = phi i32 [ %322, %321 ], [ %327, %381 ]
%385 = phi double* [ %50, %321 ], [ %328, %381 ]
br label %386
386: ; preds = %383, %386
%387 = phi i32 [ %392, %386 ], [ %384, %383 ]
%388 = phi double* [ %389, %386 ], [ %385, %383 ]
%389 = getelementptr inbounds double, double* %388, i64 1
%390 = load double, double* %389
%391 = fmul double %159, %390
store double %391, double* %389
%392 = add i32 %387, 1
%393 = icmp eq i32 %392, %1
br i1 %393, label %394, label %386
394: ; preds = %386, %381, %318, %315
%395 = icmp ult double* %49, %7
%396 = add nuw nsw i64 %47, 1
br i1 %395, label %397, label %556
397: ; preds = %394
%398 = icmp ult i64 %396, %31
%399 = trunc i64 %396 to i32
%400 = icmp ult i32 %93, 3
%401 = and i64 %95, 8589934588
%402 = trunc i64 %401 to i32
%403 = add i32 %399, %402
%404 = getelementptr double, double* %50, i64 %401
%405 = and i64 %58, 1
%406 = icmp eq i64 %56, 0
%407 = and i64 %58, 9223372036854775806
%408 = getelementptr double, double* %50, i64 1
%409 = getelementptr double, double* %50, i64 1
%410 = icmp eq i64 %405, 0
%411 = getelementptr double, double* %50, i64 1
%412 = icmp eq i64 %95, %401
br label %413
413: ; preds = %397, %552
%414 = phi i64 [ 0, %397 ], [ %555, %552 ]
%415 = phi double* [ %49, %397 ], [ %553, %552 ]
%416 = mul i64 %414, %21
%417 = add i64 %96, %416
%418 = getelementptr double, double* %2, i64 %417
%419 = add i64 %101, %416
%420 = getelementptr double, double* %2, i64 %419
%421 = icmp eq double* %415, %50
br i1 %421, label %552, label %422
422: ; preds = %413
%423 = load double, double* %415
store double 0.000000e+00, double* %415
br i1 %398, label %424, label %552
424: ; preds = %422
%425 = fneg double %423
br i1 %400, label %499, label %426
426: ; preds = %424
%427 = icmp ult double* %418, %107
%428 = icmp ult double* %104, %420
%429 = and i1 %427, %428
br i1 %429, label %499, label %430
430: ; preds = %426
%431 = getelementptr double, double* %415, i64 %401
%432 = insertelement <2 x double> poison, double %425, i64 0
%433 = shufflevector <2 x double> %432, <2 x double> poison, <2 x i32> zeroinitializer
%434 = insertelement <2 x double> poison, double %425, i64 0
%435 = shufflevector <2 x double> %434, <2 x double> poison, <2 x i32> zeroinitializer
br i1 %406, label %478, label %436
436: ; preds = %430
%437 = getelementptr double, double* %415, i64 1
%438 = getelementptr double, double* %415, i64 1
br label %439
439: ; preds = %439, %436
%440 = phi i64 [ 0, %436 ], [ %475, %439 ]
%441 = phi i64 [ 0, %436 ], [ %476, %439 ]
%442 = getelementptr inbounds double, double* %437, i64 %440
%443 = getelementptr inbounds double, double* %408, i64 %440
%444 = bitcast double* %443 to <2 x double>*
%445 = load <2 x double>, <2 x double>* %444
%446 = getelementptr inbounds double, double* %443, i64 2
%447 = bitcast double* %446 to <2 x double>*
%448 = load <2 x double>, <2 x double>* %447
%449 = bitcast double* %442 to <2 x double>*
%450 = load <2 x double>, <2 x double>* %449
%451 = getelementptr inbounds double, double* %442, i64 2
%452 = bitcast double* %451 to <2 x double>*
%453 = load <2 x double>, <2 x double>* %452
%454 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %433, <2 x double> %445, <2 x double> %450)
%455 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %435, <2 x double> %448, <2 x double> %453)
%456 = bitcast double* %442 to <2 x double>*
store <2 x double> %454, <2 x double>* %456
%457 = bitcast double* %451 to <2 x double>*
store <2 x double> %455, <2 x double>* %457
%458 = or i64 %440, 4
%459 = getelementptr inbounds double, double* %438, i64 %458
%460 = getelementptr inbounds double, double* %409, i64 %458
%461 = bitcast double* %460 to <2 x double>*
%462 = load <2 x double>, <2 x double>* %461
%463 = getelementptr inbounds double, double* %460, i64 2
%464 = bitcast double* %463 to <2 x double>*
%465 = load <2 x double>, <2 x double>* %464
%466 = bitcast double* %459 to <2 x double>*
%467 = load <2 x double>, <2 x double>* %466
%468 = getelementptr inbounds double, double* %459, i64 2
%469 = bitcast double* %468 to <2 x double>*
%470 = load <2 x double>, <2 x double>* %469
%471 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %433, <2 x double> %462, <2 x double> %467)
%472 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %435, <2 x double> %465, <2 x double> %470)
%473 = bitcast double* %459 to <2 x double>*
store <2 x double> %471, <2 x double>* %473
%474 = bitcast double* %468 to <2 x double>*
store <2 x double> %472, <2 x double>* %474
%475 = add nuw i64 %440, 8
%476 = add i64 %441, 2
%477 = icmp eq i64 %476, %407
br i1 %477, label %478, label %439
478: ; preds = %439, %430
%479 = phi i64 [ 0, %430 ], [ %475, %439 ]
br i1 %410, label %498, label %480
480: ; preds = %478
%481 = getelementptr double, double* %415, i64 1
%482 = getelementptr inbounds double, double* %481, i64 %479
%483 = getelementptr inbounds double, double* %411, i64 %479
%484 = bitcast double* %483 to <2 x double>*
%485 = load <2 x double>, <2 x double>* %484
%486 = getelementptr inbounds double, double* %483, i64 2
%487 = bitcast double* %486 to <2 x double>*
%488 = load <2 x double>, <2 x double>* %487
%489 = bitcast double* %482 to <2 x double>*
%490 = load <2 x double>, <2 x double>* %489
%491 = getelementptr inbounds double, double* %482, i64 2
%492 = bitcast double* %491 to <2 x double>*
%493 = load <2 x double>, <2 x double>* %492
%494 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %433, <2 x double> %485, <2 x double> %490)
%495 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %435, <2 x double> %488, <2 x double> %493)
%496 = bitcast double* %482 to <2 x double>*
store <2 x double> %494, <2 x double>* %496
%497 = bitcast double* %491 to <2 x double>*
store <2 x double> %495, <2 x double>* %497
br label %498
498: ; preds = %478, %480
br i1 %412, label %552, label %499
499: ; preds = %426, %424, %498
%500 = phi i32 [ %399, %426 ], [ %399, %424 ], [ %403, %498 ]
%501 = phi double* [ %50, %426 ], [ %50, %424 ], [ %404, %498 ]
%502 = phi double* [ %415, %426 ], [ %415, %424 ], [ %431, %498 ]
%503 = sub i32 %1, %500
%504 = xor i32 %500, -1
%505 = add i32 %504, %1
%506 = and i32 %503, 3
%507 = icmp eq i32 %506, 0
br i1 %507, label %521, label %508
508: ; preds = %499, %508
%509 = phi i32 [ %518, %508 ], [ %500, %499 ]
%510 = phi double* [ %514, %508 ], [ %501, %499 ]
%511 = phi double* [ %513, %508 ], [ %502, %499 ]
%512 = phi i32 [ %519, %508 ], [ 0, %499 ]
%513 = getelementptr inbounds double, double* %511, i64 1
%514 = getelementptr inbounds double, double* %510, i64 1
%515 = load double, double* %514
%516 = load double, double* %513
%517 = tail call double @llvm.fmuladd.f64(double %425, double %515, double %516)
store double %517, double* %513
%518 = add i32 %509, 1
%519 = add i32 %512, 1
%520 = icmp eq i32 %519, %506
br i1 %520, label %521, label %508
521: ; preds = %508, %499
%522 = phi i32 [ %500, %499 ], [ %518, %508 ]
%523 = phi double* [ %501, %499 ], [ %514, %508 ]
%524 = phi double* [ %502, %499 ], [ %513, %508 ]
%525 = icmp ult i32 %505, 3
br i1 %525, label %552, label %526
526: ; preds = %521, %526
%527 = phi i32 [ %550, %526 ], [ %522, %521 ]
%528 = phi double* [ %546, %526 ], [ %523, %521 ]
%529 = phi double* [ %545, %526 ], [ %524, %521 ]
%530 = getelementptr inbounds double, double* %529, i64 1
%531 = getelementptr inbounds double, double* %528, i64 1
%532 = load double, double* %531
%533 = load double, double* %530
%534 = tail call double @llvm.fmuladd.f64(double %425, double %532, double %533)
store double %534, double* %530
%535 = getelementptr inbounds double, double* %529, i64 2
%536 = getelementptr inbounds double, double* %528, i64 2
%537 = load double, double* %536
%538 = load double, double* %535
%539 = tail call double @llvm.fmuladd.f64(double %425, double %537, double %538)
store double %539, double* %535
%540 = getelementptr inbounds double, double* %529, i64 3
%541 = getelementptr inbounds double, double* %528, i64 3
%542 = load double, double* %541
%543 = load double, double* %540
%544 = tail call double @llvm.fmuladd.f64(double %425, double %542, double %543)
store double %544, double* %540
%545 = getelementptr inbounds double, double* %529, i64 4
%546 = getelementptr inbounds double, double* %528, i64 4
%547 = load double, double* %546
%548 = load double, double* %545
%549 = tail call double @llvm.fmuladd.f64(double %425, double %547, double %548)
store double %549, double* %545
%550 = add i32 %527, 4
%551 = icmp eq i32 %550, %1
br i1 %551, label %552, label %526
552: ; preds = %521, %526, %498, %422, %413
%553 = getelementptr inbounds double, double* %415, i64 %28
%554 = icmp ult double* %553, %7
%555 = add i64 %414, 1
br i1 %554, label %413, label %556
556: ; preds = %552, %394
%557 = getelementptr inbounds double, double* %50, i64 %30
%558 = getelementptr inbounds double, double* %49, i64 1
%559 = icmp eq i64 %396, %8
br i1 %559, label %560, label %46
560: ; preds = %556, %17, %26
%561 = phi double [ 0.000000e+00, %26 ], [ 0.000000e+00, %17 ], [ %158, %556 ]
%562 = inttoptr i64 %10 to i8*
%563 = tail call i32 @free(i8* %562)
%564 = load i32, i32* @stderr
%565 = tail call i32 (i32, i8*, ...) @fprintf(i32 %564, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), double %561)
ret void
}