#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 */
scalar_t__ calloc(int, int);
double fabs(double);
int /*<<< orphan*/ free(double *);
int solv(double *a, double *b, int n) {
  int i, j, k, lc;
  double *ps, *p, *q, *pa, *pd;
  double *q0, s, t, tq = 0., zr = 1.e-15;
  q0 = (double *)calloc(n, sizeof(double));
  for (j = 0, pa = a, pd = a; j < n; ++j, ++pa, pd += n + 1) {
    if (j) {
      for (i = 0, q = q0, p = pa; i < n; ++i, p += n)
        *q++ = *p;
      for (i = 1; i < n; ++i) {
        lc = i < j ? i : j;
        for (k = 0, p = pa + i * n - j, q = q0, t = 0.; k < lc; ++k)
          t += *p++ * *q++;
        q0[i] -= t;
      }
      for (i = 0, q = q0, p = pa; i < n; ++i, p += n)
        *p = *q++;
    }
    s = fabs(*pd);
    lc = j;
    for (k = j + 1, ps = pd; k < n; ++k) {
      if ((t = fabs(*(ps += n))) > s) {
        s = t;
        lc = k;
      }
    }
    tq = tq > s ? tq : s;
    if (s < zr * tq) {
      free(q0);
      return -1;
    }
    if (lc != j) {
      t = b[j];
      b[j] = b[lc];
      b[lc] = t;
      for (k = 0, p = a + n * j, q = a + n * lc; k < n; ++k) {
        t = *p;
        *p++ = *q;
        *q++ = t;
      }
    }
    for (k = j + 1, ps = pd, t = 1. / *pd; k < n; ++k)
      *(ps += n) *= t;
  }
  for (j = 1, ps = b + 1; j < n; ++j) {
    for (k = 0, p = a + n * j, q = b, t = 0.; k < j; ++k)
      t += *p++ * *q++;
    *ps++ -= t;
  }
  for (j = n - 1, --ps, pd = a + n * n - 1; j >= 0; --j, pd -= n + 1) {
    for (k = j + 1, p = pd, q = b + j, t = 0.; k < n; ++k)
      t += *++p * *++q;
    *ps -= t;
    *ps-- /= *pd;
  }
  free(q0);
  return 0;
}


x86 assembly (clang, -O0):
<solv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xeba(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x1c(%rbp),%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,-0x60(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    15d0 <solv+0x4b0>
cmpl   $0x0,-0x24(%rbp)
je     134a <solv+0x22a>
movl   $0x0,-0x20(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11ea <solv+0xca>
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
jmp    11a0 <solv+0x80>
movl   $0x1,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12e4 <solv+0x1c4>
mov    -0x20(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1217 <solv+0xf7>
mov    -0x20(%rbp),%eax
mov    %eax,-0x84(%rbp)
jmp    1220 <solv+0x100>
mov    -0x24(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x84(%rbp),%eax
mov    %eax,-0x2c(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x50(%rbp),%rax
mov    -0x20(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
movslq -0x24(%rbp),%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12bb <solv+0x19b>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1269 <solv+0x149>
movsd  -0x70(%rbp),%xmm1
mov    -0x60(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11f1 <solv+0xd1>
movl   $0x0,-0x20(%rbp)
mov    -0x60(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1345 <solv+0x225>
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x1c(%rbp),%ecx
mov    -0x40(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
jmp    12fb <solv+0x1db>
jmp    134a <solv+0x22a>
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm0
movaps 0xcb7(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13e3 <solv+0x2c3>
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%rax
movslq %ecx,%rcx
mov    %rcx,%rsi
shl    $0x3,%rsi
mov    %rax,%rdx
add    %rsi,%rdx
mov    %rdx,-0x38(%rbp)
movsd  (%rax,%rcx,8),%xmm0
movaps 0xc64(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
ucomisd -0x68(%rbp),%xmm0
jbe    13d0 <solv+0x2b0>
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
jmp    13d5 <solv+0x2b5>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1379 <solv+0x259>
movsd  -0x78(%rbp),%xmm0
ucomisd -0x68(%rbp),%xmm0
jbe    1405 <solv+0x2e5>
movsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
jmp    1412 <solv+0x2f2>
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
movsd  -0x68(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  -0x78(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    144d <solv+0x32d>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    17ce <solv+0x6ae>
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     152f <solv+0x40f>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x70(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x24(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x2c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    152a <solv+0x40a>
mov    -0x40(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
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  -0x70(%rbp),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  %xmm0,(%rax)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14d0 <solv+0x3b0>
jmp    152f <solv+0x40f>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x38(%rbp)
mov    -0x58(%rbp),%rax
movsd  0xabc(%rip),%xmm0
divsd  (%rax),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1599 <solv+0x479>
movsd  -0x70(%rbp),%xmm0
mov    -0x1c(%rbp),%ecx
mov    -0x38(%rbp),%rax
movslq %ecx,%rcx
mov    %rcx,%rsi
shl    $0x3,%rsi
mov    %rax,%rdx
add    %rsi,%rdx
mov    %rdx,-0x38(%rbp)
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1555 <solv+0x435>
jmp    159e <solv+0x47e>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x50(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x50(%rbp)
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
jmp    1173 <solv+0x53>
movl   $0x1,-0x24(%rbp)
mov    -0x18(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    169f <solv+0x57f>
movl   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x24(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1671 <solv+0x551>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  (%rax),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  (%rax),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    161f <solv+0x4ff>
movsd  -0x70(%rbp),%xmm1
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x38(%rbp)
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    15e3 <solv+0x4c3>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x38(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x1c(%rbp),%ecx
imul   -0x1c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x58(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     17be <solv+0x69e>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    175b <solv+0x63b>
mov    -0x40(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x40(%rbp)
movsd  0x8(%rax),%xmm0
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x48(%rbp)
movsd  0x8(%rax),%xmm2
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1707 <solv+0x5e7>
movsd  -0x70(%rbp),%xmm1
mov    -0x38(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movsd  (%rax),%xmm1
mov    -0x38(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x38(%rbp)
movsd  (%rax),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
mov    -0x58(%rbp),%rax
movslq %ecx,%rdx
xor    %ecx,%ecx
sub    %rdx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
jmp    16d1 <solv+0x5b1>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<solv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    %edx,%ebp
mov    %rsi,0x38(%rsp)
mov    %rdi,%r15
mov    %edx,%edi
mov    $0x8,%esi
call   1040 <calloc@plt>
mov    %rax,%r8
test   %ebp,%ebp
jle    1c4d <solv+0xb2d>
mov    %ebp,%r14d
lea    -0x1(%rbp),%eax
lea    (%r15,%rax,8),%rcx
add    $0x8,%rcx
mov    %rcx,0x98(%rsp)
mov    %rax,0x10(%rsp)
add    $0x1,%rax
lea    -0x2(%rbp),%ecx
mov    %ecx,0x34(%rsp)
mov    %rax,0x50(%rsp)
and    $0xfffffffffffffffc,%rax
mov    %rax,0x48(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x90(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %ebp,%eax
and    $0xfffffff8,%eax
mov    %eax,0x30(%rsp)
mov    %rcx,%rax
mov    %rcx,0x88(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x80(%rsp)
mov    %r14,%rax
shl    $0x6,%rax
mov    %rax,0x58(%rsp)
lea    0x0(,%r14,8),%r10
mov    %ebp,%r13d
and    $0x7,%r13d
mov    %r14,%r11
shl    $0x4,%r11
mov    %r14,%rdi
shl    $0x5,%rdi
xorpd  %xmm0,%xmm0
movapd 0xe0e(%rip),%xmm1
movapd 0xe06(%rip),%xmm2
movsd  0xe0e(%rip),%xmm3
movsd  0xe0d(%rip),%xmm8
lea    (%r15,%r14,8),%rax
mov    %rax,0xa0(%rsp)
lea    0x30(%r15),%rax
lea    0x8(,%r14,8),%rcx
mov    %rcx,0xb0(%rsp)
lea    0x3(%rbp),%ebx
lea    (%r10,%r10,2),%rcx
mov    %rcx,0xa8(%rsp)
xor    %r9d,%r9d
mov    %r15,%rcx
mov    %rax,0x78(%rsp)
mov    %rax,0x60(%rsp)
xor    %r12d,%r12d
mov    %r15,0x20(%rsp)
mov    %r15,0x18(%rsp)
mov    %r14,0x70(%rsp)
mov    %r13,0x28(%rsp)
mov    %rbp,0x8(%rsp)
mov    %rdi,0xb8(%rsp)
jmp    1298 <solv+0x178>
addq   $0x8,0x18(%rsp)
add    0xb0(%rsp),%r15
add    $0x1,%r9d
add    %r10,0x60(%rsp)
add    $0x3,%bl
cmp    %r14,%r12
mov    0x8(%rsp),%rbp
je     19b7 <solv+0x897>
mov    %rbx,0xc0(%rsp)
mov    %r12,%rdx
test   %r12,%r12
mov    %r15,0x68(%rsp)
je     1455 <solv+0x335>
mov    %r8,%rsi
mov    0x18(%rsp),%rdi
cmpl   $0x7,0x10(%rsp)
jb     134e <solv+0x22e>
mov    0x30(%rsp),%ebx
mov    0x18(%rsp),%rax
mov    %r8,%rsi
mov    %rax,%rdi
movsd  (%rax),%xmm5
movsd  %xmm5,(%rsi)
add    %r10,%rax
movsd  (%rdi,%r10,1),%xmm5
movsd  %xmm5,0x8(%rsi)
movsd  (%r10,%rax,1),%xmm5
add    %r10,%rax
movsd  %xmm5,0x10(%rsi)
movsd  (%r10,%rax,1),%xmm5
add    %r10,%rax
movsd  %xmm5,0x18(%rsi)
movsd  (%r10,%rax,1),%xmm5
add    %r10,%rax
movsd  %xmm5,0x20(%rsi)
movsd  (%r10,%rax,1),%xmm5
add    %r10,%rax
movsd  %xmm5,0x28(%rsi)
movsd  (%r10,%rax,1),%xmm5
add    %r10,%rax
movsd  %xmm5,0x30(%rsi)
movsd  (%r10,%rax,1),%xmm5
add    %r10,%rax
movsd  %xmm5,0x38(%rsi)
add    $0x40,%rsi
add    %r10,%rax
add    $0xfffffff8,%ebx
jne    12d0 <solv+0x1b0>
add    0x58(%rsp),%rdi
test   $0x7,%bpl
je     1375 <solv+0x255>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rdi),%xmm5
movsd  %xmm5,(%rsi,%rax,8)
add    $0x1,%rax
add    %r10,%rdi
cmp    %eax,%r13d
jne    1360 <solv+0x240>
cmp    $0x1,%ebp
jne    14a0 <solv+0x380>
mov    %r8,%rsi
mov    0x18(%rsp),%rdi
cmpl   $0x7,0x10(%rsp)
mov    0x8(%rsp),%rbp
mov    0x28(%rsp),%r13
mov    0x68(%rsp),%r15
jb     142e <solv+0x30e>
mov    0x30(%rsp),%ebx
mov    0x18(%rsp),%rax
mov    %r8,%rsi
nopl   0x0(%rax)
mov    %rax,%rdi
movsd  (%rsi),%xmm5
movsd  %xmm5,(%rax)
movsd  0x8(%rsi),%xmm5
add    %r10,%rax
movsd  %xmm5,(%rdi,%r10,1)
movsd  0x10(%rsi),%xmm5
movsd  %xmm5,(%r10,%rax,1)
add    %r10,%rax
movsd  0x18(%rsi),%xmm5
movsd  %xmm5,(%r10,%rax,1)
add    %r10,%rax
movsd  0x20(%rsi),%xmm5
movsd  %xmm5,(%r10,%rax,1)
add    %r10,%rax
movsd  0x28(%rsi),%xmm5
movsd  %xmm5,(%r10,%rax,1)
add    %r10,%rax
movsd  0x30(%rsi),%xmm5
movsd  %xmm5,(%r10,%rax,1)
add    %r10,%rax
movsd  0x38(%rsi),%xmm5
add    $0x40,%rsi
movsd  %xmm5,(%r10,%rax,1)
add    %r10,%rax
add    %r10,%rax
add    $0xfffffff8,%ebx
jne    13b0 <solv+0x290>
add    0x58(%rsp),%rdi
test   $0x7,%bpl
je     1455 <solv+0x335>
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rsi,%rax,8),%xmm5
movsd  %xmm5,(%rdi)
add    $0x1,%rax
add    %r10,%rdi
cmp    %eax,%r13d
jne    1440 <solv+0x320>
mov    0x10(%rsp),%rax
mov    %eax,%ecx
sub    %edx,%ecx
movsd  (%r15),%xmm6
andpd  %xmm1,%xmm6
lea    0x1(%rdx),%r12
cmp    %r14,%r12
jae    1490 <solv+0x370>
test   $0x1,%cl
jne    15e0 <solv+0x4c0>
mov    %r15,%rdi
mov    %edx,%esi
mov    %r12d,%ebx
cmp    %edx,0x34(%rsp)
jne    160b <solv+0x4eb>
jmp    1647 <solv+0x527>
mov    %edx,%esi
movapd %xmm6,%xmm5
jmp    1647 <solv+0x527>
nopl   0x0(%rax,%rax,1)
lea    0x0(,%rdx,8),%rax
mov    0x18(%rsp),%r15
sub    %rax,%r15
mov    $0x1,%esi
xor    %ebx,%ebx
mov    0xa0(%rsp),%rdi
jmp    14f0 <solv+0x3d0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%r8,%rsi,8),%xmm6
subsd  %xmm5,%xmm6
movsd  %xmm6,(%r8,%rsi,8)
add    $0x1,%rsi
add    %r10,%rdi
cmp    %r14,%rsi
je     137e <solv+0x25e>
cmp    %esi,%r9d
mov    %esi,%ebp
cmovb  %r9d,%ebp
cmp    $0x2,%ebp
mov    $0x1,%eax
cmovl  %eax,%ebp
add    $0x1,%ebx
cmp    %ebx,%edx
mov    %ebx,%r13d
cmovb  %edx,%r13d
cmp    $0x2,%r13d
cmovl  %eax,%r13d
lea    -0x1(%r13),%eax
cmp    $0x3,%eax
jae    1540 <solv+0x420>
mov    %rsi,%rax
imul   %r14,%rax
lea    (%r15,%rax,8),%r12
xorpd  %xmm5,%xmm5
mov    %r8,%rax
test   $0x3,%r13b
jne    15b9 <solv+0x499>
jmp    14d0 <solv+0x3b0>
nop
mov    %ebp,%eax
and    $0x7ffffffc,%eax
xorpd  %xmm5,%xmm5
xor    %ecx,%ecx
xor    %r14d,%r14d
movsd  (%rdi,%rcx,8),%xmm6
mulsd  (%r8,%rcx,8),%xmm6
movsd  0x8(%rdi,%rcx,8),%xmm7
addsd  %xmm5,%xmm6
mulsd  0x8(%r8,%rcx,8),%xmm7
addsd  %xmm6,%xmm7
movsd  0x10(%rdi,%rcx,8),%xmm6
mulsd  0x10(%r8,%rcx,8),%xmm6
addsd  %xmm7,%xmm6
movsd  0x18(%rdi,%rcx,8),%xmm5
mulsd  0x18(%r8,%rcx,8),%xmm5
addsd  %xmm6,%xmm5
add    $0xffffffffffffffe0,%r14
add    $0x4,%rcx
cmp    %ecx,%eax
jne    1550 <solv+0x430>
mov    %r8,%rax
sub    %r14,%rax
mov    %rdi,%r12
sub    %r14,%r12
mov    0x70(%rsp),%r14
test   $0x3,%r13b
je     14d0 <solv+0x3b0>
and    $0x3,%ebp
xor    %ecx,%ecx
xchg   %ax,%ax
movsd  (%r12,%rcx,8),%xmm6
mulsd  (%rax,%rcx,8),%xmm6
addsd  %xmm6,%xmm5
add    $0x1,%rcx
cmp    %ecx,%ebp
jne    15c0 <solv+0x4a0>
jmp    14d0 <solv+0x3b0>
nopl   0x0(%rax)
movsd  (%r15,%r14,8),%xmm5
andpd  %xmm1,%xmm5
ucomisd %xmm6,%xmm5
mov    %edx,%esi
cmova  %r12d,%esi
lea    (%r15,%r14,8),%rdi
maxsd  %xmm6,%xmm5
lea    0x1(%r12),%ebx
movapd %xmm5,%xmm6
cmp    %edx,0x34(%rsp)
je     1647 <solv+0x527>
movapd %xmm6,%xmm5
nop
movsd  (%rdi,%r10,1),%xmm6
andpd  %xmm2,%xmm6
ucomisd %xmm5,%xmm6
cmova  %ebx,%esi
maxsd  %xmm5,%xmm6
movsd  (%rdi,%r11,1),%xmm5
add    %r11,%rdi
andpd  %xmm2,%xmm5
ucomisd %xmm6,%xmm5
lea    0x1(%rbx),%eax
cmova  %eax,%esi
maxsd  %xmm6,%xmm5
add    $0x2,%ebx
cmp    %ebp,%ebx
jne    1610 <solv+0x4f0>
maxsd  %xmm5,%xmm0
movapd %xmm0,%xmm6
mulsd  %xmm3,%xmm6
ucomisd %xmm5,%xmm6
ja     1adc <solv+0x9bc>
mov    %ecx,0x44(%rsp)
mov    %esi,%eax
cmp    %rax,%rdx
je     18a0 <solv+0x780>
mov    %rdx,%rax
imul   %r14,%rax
mov    %rbp,%rdi
mov    0x20(%rsp),%rbp
lea    0x0(,%rax,8),%r15
add    %rbp,%r15
movslq %esi,%rcx
imul   %edi,%esi
xor    %edi,%edi
mov    0x38(%rsp),%rbx
movsd  (%rbx,%rdx,8),%xmm5
movsd  (%rbx,%rcx,8),%xmm6
movsd  %xmm6,(%rbx,%rdx,8)
movsd  %xmm5,(%rbx,%rcx,8)
movslq %esi,%rcx
lea    0x0(,%rcx,8),%rsi
add    %rbp,%rsi
cmpl   $0x3,0x10(%rsp)
jb     16e8 <solv+0x5c8>
mov    0x98(%rsp),%rbx
lea    (%rbx,%rcx,8),%rbx
cmp    %rbx,%r15
jae    17b1 <solv+0x691>
add    0x50(%rsp),%rax
mov    0x20(%rsp),%rbx
lea    (%rbx,%rax,8),%rax
cmp    %rax,%rsi
jae    17b1 <solv+0x691>
mov    0x8(%rsp),%rbp
mov    %ebp,%eax
sub    %edi,%eax
mov    %edi,%ebx
not    %ebx
add    %ebp,%ebx
and    $0x3,%eax
je     1723 <solv+0x603>
neg    %eax
xor    %ecx,%ecx
movsd  (%r15),%xmm4
movsd  (%rsi),%xmm5
movsd  %xmm5,(%r15)
add    $0x8,%r15
movsd  %xmm4,(%rsi)
add    $0x8,%rsi
add    $0xffffffff,%ecx
cmp    %ecx,%eax
jne    1700 <solv+0x5e0>
sub    %ecx,%edi
mov    0x28(%rsp),%r13
cmp    $0x3,%ebx
jb     18a0 <solv+0x780>
mov    %ebp,%eax
sub    %edi,%eax
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movsd  (%r15,%rcx,8),%xmm4
movsd  (%rsi,%rcx,8),%xmm5
movsd  %xmm5,(%r15,%rcx,8)
movsd  %xmm4,(%rsi,%rcx,8)
movsd  0x8(%r15,%rcx,8),%xmm4
movsd  0x8(%rsi,%rcx,8),%xmm5
movsd  %xmm5,0x8(%r15,%rcx,8)
movsd  %xmm4,0x8(%rsi,%rcx,8)
movsd  0x10(%r15,%rcx,8),%xmm4
movsd  0x10(%rsi,%rcx,8),%xmm5
movsd  %xmm5,0x10(%r15,%rcx,8)
movsd  %xmm4,0x10(%rsi,%rcx,8)
movsd  0x18(%r15,%rcx,8),%xmm4
movsd  0x18(%rsi,%rcx,8),%xmm5
movsd  %xmm5,0x18(%r15,%rcx,8)
movsd  %xmm4,0x18(%rsi,%rcx,8)
add    $0x4,%rcx
cmp    %ecx,%eax
jne    1740 <solv+0x620>
jmp    18a0 <solv+0x780>
cmpq   $0x0,0x90(%rsp)
mov    0x8(%rsp),%rbp
je     199d <solv+0x87d>
mov    0x78(%rsp),%rax
lea    (%rax,%rcx,8),%rcx
mov    0x80(%rsp),%rdi
xor    %eax,%eax
mov    0x28(%rsp),%r13
mov    0x60(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movups -0x30(%rbx,%rax,8),%xmm5
movups -0x20(%rbx,%rax,8),%xmm6
movups -0x30(%rcx,%rax,8),%xmm7
movups -0x20(%rcx,%rax,8),%xmm4
movups %xmm7,-0x30(%rbx,%rax,8)
movups %xmm4,-0x20(%rbx,%rax,8)
movups %xmm5,-0x30(%rcx,%rax,8)
movups %xmm6,-0x20(%rcx,%rax,8)
movupd -0x10(%rbx,%rax,8),%xmm4
movupd (%rbx,%rax,8),%xmm5
movupd -0x10(%rcx,%rax,8),%xmm6
movupd (%rcx,%rax,8),%xmm7
movupd %xmm6,-0x10(%rbx,%rax,8)
movupd %xmm7,(%rbx,%rax,8)
movupd %xmm4,-0x10(%rcx,%rax,8)
movupd %xmm5,(%rcx,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rdi
jne    17f0 <solv+0x6d0>
testb  $0x1,0x88(%rsp)
01
je     1888 <solv+0x768>
movupd (%r15,%rax,8),%xmm4
movupd 0x10(%r15,%rax,8),%xmm5
movupd (%rsi,%rax,8),%xmm6
movupd 0x10(%rsi,%rax,8),%xmm7
movupd %xmm6,(%r15,%rax,8)
movupd %xmm7,0x10(%r15,%rax,8)
movupd %xmm4,(%rsi,%rax,8)
movupd %xmm5,0x10(%rsi,%rax,8)
mov    0x48(%rsp),%rax
cmp    %rax,0x50(%rsp)
jne    1989 <solv+0x869>
nopl   0x0(%rax,%rax,1)
mov    0xc0(%rsp),%rbx
movzbl %bl,%ebx
and    $0x3,%ebx
cmp    %r14,%r12
mov    0xb8(%rsp),%rdi
mov    0xa8(%rsp),%rbp
mov    0x68(%rsp),%r15
jae    1270 <solv+0x150>
mov    0x34(%rsp),%eax
sub    %edx,%eax
movapd %xmm8,%xmm5
divsd  (%r15),%xmm5
testb  $0x3,0x44(%rsp)
je     1922 <solv+0x802>
mov    $0xffffffff,%ecx
mov    %r15,%rdx
nopl   0x0(%rax,%rax,1)
movsd  (%rdx,%r10,1),%xmm4
mulsd  %xmm5,%xmm4
movsd  %xmm4,(%rdx,%r10,1)
add    %r10,%rdx
mov    %ecx,%esi
add    $0xffffffff,%ecx
add    %ebx,%esi
add    $0xffffffff,%esi
cmp    $0xffffffff,%esi
jne    18f0 <solv+0x7d0>
mov    %r9d,%esi
sub    %ecx,%esi
cmp    $0x3,%eax
jb     1270 <solv+0x150>
jmp    1931 <solv+0x811>
mov    %r15,%rdx
mov    %r12d,%esi
cmp    $0x3,%eax
jb     1270 <solv+0x150>
mov    0x8(%rsp),%rax
sub    %esi,%eax
nopl   0x0(%rax,%rax,1)
movsd  (%rdx,%r10,1),%xmm4
mulsd  %xmm5,%xmm4
movsd  %xmm4,(%rdx,%r10,1)
movsd  (%rdx,%r11,1),%xmm4
mulsd  %xmm5,%xmm4
movsd  %xmm4,(%rdx,%r11,1)
movsd  (%rdx,%rbp,1),%xmm4
mulsd  %xmm5,%xmm4
movsd  %xmm4,(%rdx,%rbp,1)
movsd  (%rdx,%rdi,1),%xmm4
mulsd  %xmm5,%xmm4
movsd  %xmm4,(%rdx,%rdi,1)
add    %rdi,%rdx
add    $0xfffffffc,%eax
jne    1940 <solv+0x820>
jmp    1270 <solv+0x150>
mov    0x48(%rsp),%rax
lea    (%rsi,%rax,8),%rsi
lea    (%r15,%rax,8),%r15
mov    %eax,%edi
jmp    16ed <solv+0x5cd>
xor    %eax,%eax
mov    0x28(%rsp),%r13
testb  $0x1,0x88(%rsp)
01
jne    1858 <solv+0x738>
jmp    1888 <solv+0x768>
mov    %rbp,%rax
mov    0x38(%rsp),%rbp
mov    %rbp,%rcx
cmp    $0x2,%eax
jl     1ae6 <solv+0x9c6>
mov    0x20(%rsp),%rax
lea    (%rax,%r14,8),%rdx
lea    0x0(,%r14,8),%r9
mov    $0x1,%edi
xor    %r11d,%r11d
mov    %rbp,%r10
jmp    1a1b <solv+0x8fb>
nopl   0x0(%rax)
lea    0x8(%r10),%rcx
movsd  0x8(%r10),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%r10)
add    $0x1,%rdi
add    $0x1,%r11
add    %r9,%rdx
mov    %rcx,%r10
cmp    %r14,%rdi
je     1ae6 <solv+0x9c6>
mov    %rdi,%rax
cmp    $0x3,%r11
jae    1a40 <solv+0x920>
imul   %r14,%rax
mov    0x20(%rsp),%rcx
lea    (%rcx,%rax,8),%rcx
xorpd  %xmm0,%xmm0
mov    %rbp,%rax
test   $0x3,%dil
jne    1ab2 <solv+0x992>
jmp    19f0 <solv+0x8d0>
and    $0xfffffffffffffffc,%rax
xorpd  %xmm0,%xmm0
xor    %esi,%esi
xor    %ecx,%ecx
nopl   0x0(%rax)
movsd  (%rdx,%rcx,8),%xmm1
mulsd  0x0(%rbp,%rcx,8),%xmm1
movsd  0x8(%rdx,%rcx,8),%xmm2
addsd  %xmm0,%xmm1
mulsd  0x8(%rbp,%rcx,8),%xmm2
addsd  %xmm1,%xmm2
movsd  0x10(%rdx,%rcx,8),%xmm1
mulsd  0x10(%rbp,%rcx,8),%xmm1
addsd  %xmm2,%xmm1
movsd  0x18(%rdx,%rcx,8),%xmm0
mulsd  0x18(%rbp,%rcx,8),%xmm0
addsd  %xmm1,%xmm0
add    $0x4,%rcx
add    $0xffffffffffffffe0,%rsi
cmp    %rcx,%rax
jne    1a50 <solv+0x930>
mov    %rbp,%rax
sub    %rsi,%rax
mov    %rdx,%rcx
sub    %rsi,%rcx
test   $0x3,%dil
je     19f0 <solv+0x8d0>
mov    %edi,%esi
and    $0x3,%esi
xor    %ebx,%ebx
nopl   0x0(%rax)
movsd  (%rcx,%rbx,8),%xmm1
mulsd  (%rax,%rbx,8),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rbx
cmp    %rbx,%rsi
jne    1ac0 <solv+0x9a0>
jmp    19f0 <solv+0x8d0>
mov    $0xffffffff,%ebx
jmp    1c4f <solv+0xb2f>
mov    0x8(%rsp),%rdi
test   %edi,%edi
jle    1c4d <solv+0xb2d>
mov    %edi,%eax
imul   %eax,%eax
mov    0x20(%rsp),%rsi
lea    (%rsi,%rax,8),%rdx
lea    (%rsi,%rax,8),%r12
add    $0xfffffffffffffff8,%r12
mov    %edi,%eax
not    %eax
movslq %eax,%r10
lea    0x0(,%r10,8),%r9
xor    %ebp,%ebp
mov    %r14,%r15
jmp    1b5b <solv+0xa3b>
nop
movsd  (%rcx),%xmm1
subsd  %xmm0,%xmm1
movsd  %xmm1,(%rcx)
divsd  (%r12),%xmm1
movsd  %xmm1,(%rcx)
lea    (%r12,%r10,8),%r12
add    $0xfffffffffffffff8,%rcx
add    $0x1,%ebp
mov    0x10(%rsp),%rax
add    $0xffffffff,%eax
mov    %rax,0x10(%rsp)
add    %r9,%rdx
cmp    $0x1,%r14
jle    1c4d <solv+0xb2d>
mov    %r15,%r14
add    $0xffffffffffffffff,%r15
xorpd  %xmm0,%xmm0
cmp    0x70(%rsp),%r14
jge    1b20 <solv+0xa00>
lea    -0x1(%rbp),%r11d
test   $0x3,%bpl
je     1bd1 <solv+0xab1>
mov    0x10(%rsp),%eax
mov    0x38(%rsp),%rsi
lea    (%rsi,%rax,8),%rbx
mov    %ebp,%esi
and    $0x3,%esi
shl    $0x3,%rsi
xorpd  %xmm0,%xmm0
xor    %edi,%edi
mov    %r14d,%eax
cs nopw 0x0(%rax,%rax,1)
movsd  (%rdx,%rdi,1),%xmm1
mulsd  0x8(%rbx,%rdi,1),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%eax
add    $0x8,%rdi
cmp    %edi,%esi
jne    1ba0 <solv+0xa80>
add    %rdi,%rbx
lea    (%rdx,%rdi,1),%rsi
add    $0xfffffffffffffff8,%rsi
cmp    $0x3,%r11d
jb     1b20 <solv+0xa00>
jmp    1bf1 <solv+0xad1>
mov    %r15d,%eax
mov    0x38(%rsp),%rsi
lea    (%rsi,%rax,8),%rbx
xorpd  %xmm0,%xmm0
mov    %r12,%rsi
mov    %r14d,%eax
cmp    $0x3,%r11d
jb     1b20 <solv+0xa00>
mov    0x8(%rsp),%rdi
sub    %eax,%edi
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movsd  0x8(%rsi,%rax,8),%xmm1
movsd  0x10(%rsi,%rax,8),%xmm2
mulsd  0x8(%rbx,%rax,8),%xmm1
mulsd  0x10(%rbx,%rax,8),%xmm2
addsd  %xmm0,%xmm1
movsd  0x18(%rsi,%rax,8),%xmm3
mulsd  0x18(%rbx,%rax,8),%xmm3
addsd  %xmm1,%xmm2
movsd  0x20(%rsi,%rax,8),%xmm0
mulsd  0x20(%rbx,%rax,8),%xmm0
addsd  %xmm2,%xmm3
addsd  %xmm3,%xmm0
add    $0x4,%rax
cmp    %eax,%edi
jne    1c00 <solv+0xae0>
jmp    1b20 <solv+0xa00>
xor    %ebx,%ebx
mov    %r8,%rdi
call   1030 <free@plt>
mov    %ebx,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @solv(double* %0, double* %1, i32 %2) {
%4 = alloca i32
%5 = alloca double*
%6 = alloca double*
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%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
store double* %0, double** %5
store double* %1, double** %6
store i32 %2, i32* %7
store double 0.000000e+00, double* %20
store double 1.000000e-15, double* %21
%22 = load i32, i32* %7
%23 = call i64 @calloc(i32 %22, i32 8)
%24 = inttoptr i64 %23 to double*
store double* %24, double** %17
store i32 0, i32* %9
%25 = load double*, double** %5
store double* %25, double** %15
%26 = load double*, double** %5
store double* %26, double** %16
br label %27
27: ; preds = %249, %3
%28 = load i32, i32* %9
%29 = load i32, i32* %7
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %259
31: ; preds = %27
%32 = load i32, i32* %9
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %126
34: ; preds = %31
store i32 0, i32* %8
%35 = load double*, double** %17
store double* %35, double** %14
%36 = load double*, double** %15
store double* %36, double** %13
br label %37
37: ; preds = %46, %34
%38 = load i32, i32* %8
%39 = load i32, i32* %7
%40 = icmp slt i32 %38, %39
br i1 %40, label %41, label %53
41: ; preds = %37
%42 = load double*, double** %13
%43 = load double, double* %42
%44 = load double*, double** %14
%45 = getelementptr inbounds double, double* %44, i32 1
store double* %45, double** %14
store double %43, double* %44
br label %46
46: ; preds = %41
%47 = load i32, i32* %8
%48 = add nsw i32 %47, 1
store i32 %48, i32* %8
%49 = load i32, i32* %7
%50 = load double*, double** %13
%51 = sext i32 %49 to i64
%52 = getelementptr inbounds double, double* %50, i64 %51
store double* %52, double** %13
br label %37
53: ; preds = %37
store i32 1, i32* %8
br label %54
54: ; preds = %103, %53
%55 = load i32, i32* %8
%56 = load i32, i32* %7
%57 = icmp slt i32 %55, %56
br i1 %57, label %58, label %106
58: ; preds = %54
%59 = load i32, i32* %8
%60 = load i32, i32* %9
%61 = icmp slt i32 %59, %60
br i1 %61, label %62, label %64
62: ; preds = %58
%63 = load i32, i32* %8
br label %66
64: ; preds = %58
%65 = load i32, i32* %9
br label %66
66: ; preds = %64, %62
%67 = phi i32 [ %63, %62 ], [ %65, %64 ]
store i32 %67, i32* %11
store i32 0, i32* %10
%68 = load double*, double** %15
%69 = load i32, i32* %8
%70 = load i32, i32* %7
%71 = mul nsw i32 %69, %70
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %68, i64 %72
%74 = load i32, i32* %9
%75 = sext i32 %74 to i64
%76 = sub i64 0, %75
%77 = getelementptr inbounds double, double* %73, i64 %76
store double* %77, double** %13
%78 = load double*, double** %17
store double* %78, double** %14
store double 0.000000e+00, double* %19
br label %79
79: ; preds = %92, %66
%80 = load i32, i32* %10
%81 = load i32, i32* %11
%82 = icmp slt i32 %80, %81
br i1 %82, label %83, label %95
83: ; preds = %79
%84 = load double*, double** %13
%85 = getelementptr inbounds double, double* %84, i32 1
store double* %85, double** %13
%86 = load double, double* %84
%87 = load double*, double** %14
%88 = getelementptr inbounds double, double* %87, i32 1
store double* %88, double** %14
%89 = load double, double* %87
%90 = load double, double* %19
%91 = call double @llvm.fmuladd.f64(double %86, double %89, double %90)
store double %91, double* %19
br label %92
92: ; preds = %83
%93 = load i32, i32* %10
%94 = add nsw i32 %93, 1
store i32 %94, i32* %10
br label %79
95: ; preds = %79
%96 = load double, double* %19
%97 = load double*, double** %17
%98 = load i32, i32* %8
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds double, double* %97, i64 %99
%101 = load double, double* %100
%102 = fsub double %101, %96
store double %102, double* %100
br label %103
103: ; preds = %95
%104 = load i32, i32* %8
%105 = add nsw i32 %104, 1
store i32 %105, i32* %8
br label %54
106: ; preds = %54
store i32 0, i32* %8
%107 = load double*, double** %17
store double* %107, double** %14
%108 = load double*, double** %15
store double* %108, double** %13
br label %109
109: ; preds = %118, %106
%110 = load i32, i32* %8
%111 = load i32, i32* %7
%112 = icmp slt i32 %110, %111
br i1 %112, label %113, label %125
113: ; preds = %109
%114 = load double*, double** %14
%115 = getelementptr inbounds double, double* %114, i32 1
store double* %115, double** %14
%116 = load double, double* %114
%117 = load double*, double** %13
store double %116, double* %117
br label %118
118: ; preds = %113
%119 = load i32, i32* %8
%120 = add nsw i32 %119, 1
store i32 %120, i32* %8
%121 = load i32, i32* %7
%122 = load double*, double** %13
%123 = sext i32 %121 to i64
%124 = getelementptr inbounds double, double* %122, i64 %123
store double* %124, double** %13
br label %109
125: ; preds = %109
br label %126
126: ; preds = %125, %31
%127 = load double*, double** %16
%128 = load double, double* %127
%129 = call double @llvm.fabs.f64(double %128)
store double %129, double* %18
%130 = load i32, i32* %9
store i32 %130, i32* %11
%131 = load i32, i32* %9
%132 = add nsw i32 %131, 1
store i32 %132, i32* %10
%133 = load double*, double** %16
store double* %133, double** %12
br label %134
134: ; preds = %151, %126
%135 = load i32, i32* %10
%136 = load i32, i32* %7
%137 = icmp slt i32 %135, %136
br i1 %137, label %138, label %154
138: ; preds = %134
%139 = load i32, i32* %7
%140 = load double*, double** %12
%141 = sext i32 %139 to i64
%142 = getelementptr inbounds double, double* %140, i64 %141
store double* %142, double** %12
%143 = load double, double* %142
%144 = call double @llvm.fabs.f64(double %143)
store double %144, double* %19
%145 = load double, double* %18
%146 = fcmp ogt double %144, %145
br i1 %146, label %147, label %150
147: ; preds = %138
%148 = load double, double* %19
store double %148, double* %18
%149 = load i32, i32* %10
store i32 %149, i32* %11
br label %150
150: ; preds = %147, %138
br label %151
151: ; preds = %150
%152 = load i32, i32* %10
%153 = add nsw i32 %152, 1
store i32 %153, i32* %10
br label %134
154: ; preds = %134
%155 = load double, double* %20
%156 = load double, double* %18
%157 = fcmp ogt double %155, %156
br i1 %157, label %158, label %160
158: ; preds = %154
%159 = load double, double* %20
br label %162
160: ; preds = %154
%161 = load double, double* %18
br label %162
162: ; preds = %160, %158
%163 = phi double [ %159, %158 ], [ %161, %160 ]
store double %163, double* %20
%164 = load double, double* %18
%165 = load double, double* %21
%166 = load double, double* %20
%167 = fmul double %165, %166
%168 = fcmp olt double %164, %167
br i1 %168, label %169, label %172
169: ; preds = %162
%170 = load double*, double** %17
%171 = call i32 @free(double* %170)
store i32 -1, i32* %4
br label %361
172: ; preds = %162
%173 = load i32, i32* %11
%174 = load i32, i32* %9
%175 = icmp ne i32 %173, %174
br i1 %175, label %176, label %226
176: ; preds = %172
%177 = load double*, double** %6
%178 = load i32, i32* %9
%179 = sext i32 %178 to i64
%180 = getelementptr inbounds double, double* %177, i64 %179
%181 = load double, double* %180
store double %181, double* %19
%182 = load double*, double** %6
%183 = load i32, i32* %11
%184 = sext i32 %183 to i64
%185 = getelementptr inbounds double, double* %182, i64 %184
%186 = load double, double* %185
%187 = load double*, double** %6
%188 = load i32, i32* %9
%189 = sext i32 %188 to i64
%190 = getelementptr inbounds double, double* %187, i64 %189
store double %186, double* %190
%191 = load double, double* %19
%192 = load double*, double** %6
%193 = load i32, i32* %11
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds double, double* %192, i64 %194
store double %191, double* %195
store i32 0, i32* %10
%196 = load double*, double** %5
%197 = load i32, i32* %7
%198 = load i32, i32* %9
%199 = mul nsw i32 %197, %198
%200 = sext i32 %199 to i64
%201 = getelementptr inbounds double, double* %196, i64 %200
store double* %201, double** %13
%202 = load double*, double** %5
%203 = load i32, i32* %7
%204 = load i32, i32* %11
%205 = mul nsw i32 %203, %204
%206 = sext i32 %205 to i64
%207 = getelementptr inbounds double, double* %202, i64 %206
store double* %207, double** %14
br label %208
208: ; preds = %222, %176
%209 = load i32, i32* %10
%210 = load i32, i32* %7
%211 = icmp slt i32 %209, %210
br i1 %211, label %212, label %225
212: ; preds = %208
%213 = load double*, double** %13
%214 = load double, double* %213
store double %214, double* %19
%215 = load double*, double** %14
%216 = load double, double* %215
%217 = load double*, double** %13
%218 = getelementptr inbounds double, double* %217, i32 1
store double* %218, double** %13
store double %216, double* %217
%219 = load double, double* %19
%220 = load double*, double** %14
%221 = getelementptr inbounds double, double* %220, i32 1
store double* %221, double** %14
store double %219, double* %220
br label %222
222: ; preds = %212
%223 = load i32, i32* %10
%224 = add nsw i32 %223, 1
store i32 %224, i32* %10
br label %208
225: ; preds = %208
br label %226
226: ; preds = %225, %172
%227 = load i32, i32* %9
%228 = add nsw i32 %227, 1
store i32 %228, i32* %10
%229 = load double*, double** %16
store double* %229, double** %12
%230 = load double*, double** %16
%231 = load double, double* %230
%232 = fdiv double 1.000000e+00, %231
store double %232, double* %19
br label %233
233: ; preds = %245, %226
%234 = load i32, i32* %10
%235 = load i32, i32* %7
%236 = icmp slt i32 %234, %235
br i1 %236, label %237, label %248
237: ; preds = %233
%238 = load double, double* %19
%239 = load i32, i32* %7
%240 = load double*, double** %12
%241 = sext i32 %239 to i64
%242 = getelementptr inbounds double, double* %240, i64 %241
store double* %242, double** %12
%243 = load double, double* %242
%244 = fmul double %243, %238
store double %244, double* %242
br label %245
245: ; preds = %237
%246 = load i32, i32* %10
%247 = add nsw i32 %246, 1
store i32 %247, i32* %10
br label %233
248: ; preds = %233
br label %249
249: ; preds = %248
%250 = load i32, i32* %9
%251 = add nsw i32 %250, 1
store i32 %251, i32* %9
%252 = load double*, double** %15
%253 = getelementptr inbounds double, double* %252, i32 1
store double* %253, double** %15
%254 = load i32, i32* %7
%255 = add nsw i32 %254, 1
%256 = load double*, double** %16
%257 = sext i32 %255 to i64
%258 = getelementptr inbounds double, double* %256, i64 %257
store double* %258, double** %16
br label %27
259: ; preds = %27
store i32 1, i32* %9
%260 = load double*, double** %6
%261 = getelementptr inbounds double, double* %260, i64 1
store double* %261, double** %12
br label %262
262: ; preds = %296, %259
%263 = load i32, i32* %9
%264 = load i32, i32* %7
%265 = icmp slt i32 %263, %264
br i1 %265, label %266, label %299
266: ; preds = %262
store i32 0, i32* %10
%267 = load double*, double** %5
%268 = load i32, i32* %7
%269 = load i32, i32* %9
%270 = mul nsw i32 %268, %269
%271 = sext i32 %270 to i64
%272 = getelementptr inbounds double, double* %267, i64 %271
store double* %272, double** %13
%273 = load double*, double** %6
store double* %273, double** %14
store double 0.000000e+00, double* %19
br label %274
274: ; preds = %287, %266
%275 = load i32, i32* %10
%276 = load i32, i32* %9
%277 = icmp slt i32 %275, %276
br i1 %277, label %278, label %290
278: ; preds = %274
%279 = load double*, double** %13
%280 = getelementptr inbounds double, double* %279, i32 1
store double* %280, double** %13
%281 = load double, double* %279
%282 = load double*, double** %14
%283 = getelementptr inbounds double, double* %282, i32 1
store double* %283, double** %14
%284 = load double, double* %282
%285 = load double, double* %19
%286 = call double @llvm.fmuladd.f64(double %281, double %284, double %285)
store double %286, double* %19
br label %287
287: ; preds = %278
%288 = load i32, i32* %10
%289 = add nsw i32 %288, 1
store i32 %289, i32* %10
br label %274
290: ; preds = %274
%291 = load double, double* %19
%292 = load double*, double** %12
%293 = getelementptr inbounds double, double* %292, i32 1
store double* %293, double** %12
%294 = load double, double* %292
%295 = fsub double %294, %291
store double %295, double* %292
br label %296
296: ; preds = %290
%297 = load i32, i32* %9
%298 = add nsw i32 %297, 1
store i32 %298, i32* %9
br label %262
299: ; preds = %262
%300 = load i32, i32* %7
%301 = sub nsw i32 %300, 1
store i32 %301, i32* %9
%302 = load double*, double** %12
%303 = getelementptr inbounds double, double* %302, i32 -1
store double* %303, double** %12
%304 = load double*, double** %5
%305 = load i32, i32* %7
%306 = load i32, i32* %7
%307 = mul nsw i32 %305, %306
%308 = sext i32 %307 to i64
%309 = getelementptr inbounds double, double* %304, i64 %308
%310 = getelementptr inbounds double, double* %309, i64 -1
store double* %310, double** %16
br label %311
311: ; preds = %349, %299
%312 = load i32, i32* %9
%313 = icmp sge i32 %312, 0
br i1 %313, label %314, label %358
314: ; preds = %311
%315 = load i32, i32* %9
%316 = add nsw i32 %315, 1
store i32 %316, i32* %10
%317 = load double*, double** %16
store double* %317, double** %13
%318 = load double*, double** %6
%319 = load i32, i32* %9
%320 = sext i32 %319 to i64
%321 = getelementptr inbounds double, double* %318, i64 %320
store double* %321, double** %14
store double 0.000000e+00, double* %19
br label %322
322: ; preds = %335, %314
%323 = load i32, i32* %10
%324 = load i32, i32* %7
%325 = icmp slt i32 %323, %324
br i1 %325, label %326, label %338
326: ; preds = %322
%327 = load double*, double** %13
%328 = getelementptr inbounds double, double* %327, i32 1
store double* %328, double** %13
%329 = load double, double* %328
%330 = load double*, double** %14
%331 = getelementptr inbounds double, double* %330, i32 1
store double* %331, double** %14
%332 = load double, double* %331
%333 = load double, double* %19
%334 = call double @llvm.fmuladd.f64(double %329, double %332, double %333)
store double %334, double* %19
br label %335
335: ; preds = %326
%336 = load i32, i32* %10
%337 = add nsw i32 %336, 1
store i32 %337, i32* %10
br label %322
338: ; preds = %322
%339 = load double, double* %19
%340 = load double*, double** %12
%341 = load double, double* %340
%342 = fsub double %341, %339
store double %342, double* %340
%343 = load double*, double** %16
%344 = load double, double* %343
%345 = load double*, double** %12
%346 = getelementptr inbounds double, double* %345, i32 -1
store double* %346, double** %12
%347 = load double, double* %345
%348 = fdiv double %347, %344
store double %348, double* %345
br label %349
349: ; preds = %338
%350 = load i32, i32* %9
%351 = add nsw i32 %350, -1
store i32 %351, i32* %9
%352 = load i32, i32* %7
%353 = add nsw i32 %352, 1
%354 = load double*, double** %16
%355 = sext i32 %353 to i64
%356 = sub i64 0, %355
%357 = getelementptr inbounds double, double* %354, i64 %356
store double* %357, double** %16
br label %311
358: ; preds = %311
%359 = load double*, double** %17
%360 = call i32 @free(double* %359)
store i32 0, i32* %4
br label %361
361: ; preds = %358, %169
%362 = load i32, i32* %4
ret i32 %362
}

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