#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 */
double fabs(double);
double sqrt(double);
int qrevec(double *ev, double *evec, double *dp, int n) {
  double cc, sc, d, x, y, h, tzr = 1.e-15;
  int i, j, k, m, mqr = 8 * n;
  double *p;
  for (j = 0, m = n - 1;; ++j) {
    while (1) {
      if (m < 1)
        return 0;
      k = m - 1;
      if (fabs(dp[k]) <= fabs(ev[m]) * tzr)
        --m;
      else {
        x = (ev[k] - ev[m]) / 2.;
        h = sqrt(x * x + dp[k] * dp[k]);
        if (m > 1 && fabs(dp[m - 2]) > fabs(ev[k]) * tzr)
          break;
        if ((cc = sqrt((1. + x / h) / 2.)) != 0.)
          sc = dp[k] / (2. * cc * h);
        else
          sc = 1.;
        x += ev[m];
        ev[m--] = x - h;
        ev[m--] = x + h;
        for (i = 0, p = evec + n * (m + 1); i < n; ++i, ++p) {
          h = p[0];
          p[0] = cc * h + sc * p[n];
          p[n] = cc * p[n] - sc * h;
        }
      }
    }
    if (j > mqr)
      return -1;
    if (x > 0.)
      d = ev[m] + x - h;
    else
      d = ev[m] + x + h;
    cc = 1.;
    y = 0.;
    ev[0] -= d;
    for (k = 0; k < m; ++k) {
      x = ev[k] * cc - y;
      y = dp[k] * cc;
      h = sqrt(x * x + dp[k] * dp[k]);
      if (k > 0)
        dp[k - 1] = sc * h;
      ev[k] = cc * h;
      cc = x / h;
      sc = dp[k] / h;
      ev[k + 1] -= d;
      y *= sc;
      ev[k] = cc * (ev[k] + y) + ev[k + 1] * sc * sc + d;
      for (i = 0, p = evec + n * k; i < n; ++i, ++p) {
        h = p[0];
        p[0] = cc * h + sc * p[n];
        p[n] = cc * p[n] - sc * h;
      }
    }
    ev[k] = ev[k] * cc - y;
    dp[k - 1] = ev[k] * sc;
    ev[k] = ev[k] * cc + d;
  }
  return 0;
}


x86 assembly (clang, -O0):
<qrevec>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movsd  0xece(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x24(%rbp),%eax
shl    $0x3,%eax
mov    %eax,-0x74(%rbp)
movl   $0x0,-0x68(%rbp)
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    1155 <qrevec+0x45>
cmpl   $0x1,-0x70(%rbp)
jge    116b <qrevec+0x5b>
movl   $0x0,-0x4(%rbp)
jmp    17a8 <qrevec+0x698>
mov    -0x70(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xe98(%rip),%xmm0
pand   %xmm0,%xmm1
mov    -0x10(%rbp),%rax
movslq -0x70(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe80(%rip),%xmm2
pand   %xmm2,%xmm0
mulsd  -0x60(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     11c1 <qrevec+0xb1>
mov    -0x70(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x70(%rbp)
jmp    141d <qrevec+0x30d>
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x70(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  0xe25(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x58(%rbp)
cmpl   $0x1,-0x70(%rbp)
jle    1275 <qrevec+0x165>
mov    -0x20(%rbp),%rax
mov    -0x70(%rbp),%ecx
sub    $0x2,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xddb(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xdc3(%rip),%xmm2
pand   %xmm2,%xmm1
mulsd  -0x60(%rbp),%xmm1
ucomisd %xmm1,%xmm0
jbe    1275 <qrevec+0x165>
jmp    1422 <qrevec+0x312>
movsd  -0x48(%rbp),%xmm1
divsd  -0x58(%rbp),%xmm1
movsd  0xd89(%rip),%xmm0
addsd  %xmm1,%xmm0
movsd  0xd75(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12b9 <qrevec+0x1a9>
jp     12b9 <qrevec+0x1a9>
jmp    12e6 <qrevec+0x1d6>
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  0xd3a(%rip),%xmm1
mulsd  -0x30(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    12f3 <qrevec+0x1e3>
movsd  0xd22(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x70(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x70(%rbp),%ecx
mov    %ecx,%edx
add    $0xffffffff,%edx
mov    %edx,-0x70(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x70(%rbp),%ecx
mov    %ecx,%edx
add    $0xffffffff,%edx
mov    %edx,-0x70(%rbp)
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x64(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
mov    -0x70(%rbp),%edx
add    $0x1,%edx
imul   %edx,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1418 <qrevec+0x308>
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mov    -0x80(%rbp),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x80(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x80(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x80(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
mov    -0x80(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x80(%rbp)
jmp    1371 <qrevec+0x261>
jmp    141d <qrevec+0x30d>
jmp    1155 <qrevec+0x45>
mov    -0x68(%rbp),%eax
cmp    -0x74(%rbp),%eax
jle    143a <qrevec+0x32a>
movl   $0xffffffff,-0x4(%rbp)
jmp    17a8 <qrevec+0x698>
movsd  -0x48(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jbe    146d <qrevec+0x35d>
mov    -0x10(%rbp),%rax
movslq -0x70(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x48(%rbp),%xmm0
subsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    1489 <qrevec+0x379>
mov    -0x10(%rbp),%rax
movslq -0x70(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x48(%rbp),%xmm0
addsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xb7f(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x40(%rbp),%xmm1
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x6c(%rbp)
mov    -0x6c(%rbp),%eax
cmp    -0x70(%rbp),%eax
jge    1707 <qrevec+0x5f7>
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x30(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm2
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1030 <sqrt@plt>
movsd  %xmm0,-0x58(%rbp)
cmpl   $0x0,-0x6c(%rbp)
jle    1574 <qrevec+0x464>
movsd  -0x38(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x6c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x30(%rbp),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x40(%rbp),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x6c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x30(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
addsd  -0x50(%rbp),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x6c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  -0x38(%rbp),%xmm1
mulsd  -0x38(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
addsd  -0x40(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x64(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x6c(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    16f4 <qrevec+0x5e4>
mov    -0x80(%rbp),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
mov    -0x80(%rbp),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x80(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x30(%rbp),%xmm0
mov    -0x80(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x38(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x80(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
mov    -0x80(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x80(%rbp)
jmp    164d <qrevec+0x53d>
jmp    16f9 <qrevec+0x5e9>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    14ba <qrevec+0x3aa>
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x30(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x38(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x6c(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x30(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x6c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x68(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x68(%rbp)
jmp    1150 <qrevec+0x40>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<qrevec>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xe8,%rsp
mov    %rsi,%r8
xor    %esi,%esi
cmp    $0x2,%ecx
jl     1b05 <qrevec+0x9f5>
mov    %ecx,%r13d
mov    %rdi,%r12
lea    -0x1(%r13),%r14d
lea    0x1(,%r13,8),%eax
xor    %esi,%esi
test   %eax,%eax
mov    $0x0,%ecx
mov    %rcx,0x28(%rsp)
cmovle %esi,%eax
mov    %eax,0x5c(%rsp)
mov    %r13d,%edi
lea    0x1(%r14),%rbp
lea    (%rdi,%r14,1),%rax
lea    0x1(%rdi,%r14,1),%rcx
mov    %rcx,0xa8(%rsp)
lea    0x8(%r8,%r14,8),%rcx
lea    (%r8,%rdi,8),%rsi
lea    (%r8,%rax,8),%rax
add    $0x8,%rax
mov    %rbp,0x38(%rsp)
mov    %rbp,%r9
and    $0xfffffffffffffffe,%r9
lea    -0x2(%r9),%rbp
mov    %rbp,0x98(%rsp)
shr    %rbp
add    $0x1,%rbp
cmp    %r8,%rax
seta   %al
cmp    %rcx,%rsi
setb   %cl
and    %al,%cl
mov    %cl,0xf(%rsp)
mov    %rbp,%rax
mov    %rbp,0x90(%rsp)
and    $0xfffffffffffffffe,%rbp
mov    %rbp,0x80(%rsp)
mov    %r13d,%eax
neg    %eax
mov    %eax,0x24(%rsp)
lea    0x10(%r8),%rax
mov    %rax,0x78(%rsp)
lea    0x0(,%rdi,8),%rax
mov    %rax,0x30(%rsp)
mov    %rdi,0x10(%rsp)
lea    0x1(%rdi),%rax
mov    %rax,0x88(%rsp)
movapd 0xe00(%rip),%xmm9
movsd  0xe17(%rip),%xmm10
xorpd  %xmm11,%xmm11
mov    %r14,0xa0(%rsp)
mov    %rdx,0x50(%rsp)
mov    %r8,0x48(%rsp)
mov    %r9,0x40(%rsp)
jmp    123e <qrevec+0x12e>
nopw   0x0(%rax,%rax,1)
mov    %r14d,%ebp
mov    %ebp,%r14d
test   %ebp,%ebp
jle    1b03 <qrevec+0x9f3>
lea    -0x1(%r14),%ebp
movsd  (%rdx,%rbp,8),%xmm1
movapd %xmm1,%xmm2
andpd  %xmm9,%xmm2
mov    %r14d,%r15d
movsd  (%r12,%r15,8),%xmm0
movapd %xmm0,%xmm3
andpd  %xmm9,%xmm3
mulsd  %xmm10,%xmm3
ucomisd %xmm2,%xmm3
jae    1233 <qrevec+0x123>
movsd  (%r12,%rbp,8),%xmm2
subsd  %xmm0,%xmm2
mulsd  0xda9(%rip),%xmm2
mulsd  %xmm1,%xmm1
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
ucomisd %xmm11,%xmm0
movsd  %xmm2,0x18(%rsp)
jb     12b0 <qrevec+0x1a0>
xorps  %xmm3,%xmm3
sqrtsd %xmm0,%xmm3
cmp    $0x2,%r14d
jae    12f8 <qrevec+0x1e8>
jmp    1320 <qrevec+0x210>
nopl   0x0(%rax,%rax,1)
movaps %xmm12,0x60(%rsp)
call   1030 <sqrt@plt>
movsd  0x18(%rsp),%xmm2
movapd 0x60(%rsp),%xmm12
xorpd  %xmm11,%xmm11
movsd  0xd4a(%rip),%xmm10
movapd 0xd21(%rip),%xmm9
mov    0x40(%rsp),%r9
mov    0x48(%rsp),%r8
mov    0x50(%rsp),%rdx
movapd %xmm0,%xmm3
cmp    $0x2,%r14d
jb     1320 <qrevec+0x210>
lea    -0x2(%r14),%eax
movsd  (%rdx,%rax,8),%xmm0
andpd  %xmm9,%xmm0
movsd  (%r12,%rbp,8),%xmm1
andpd  %xmm9,%xmm1
mulsd  %xmm10,%xmm1
ucomisd %xmm1,%xmm0
ja     1622 <qrevec+0x512>
movapd %xmm2,%xmm0
divsd  %xmm3,%xmm0
addsd  0xd00(%rip),%xmm0
mulsd  0xcf0(%rip),%xmm0
ucomisd %xmm11,%xmm0
jb     1350 <qrevec+0x240>
sqrtsd %xmm0,%xmm0
jmp    138d <qrevec+0x27d>
cs nopw 0x0(%rax,%rax,1)
nop
movapd %xmm3,0x60(%rsp)
call   1030 <sqrt@plt>
movapd 0x60(%rsp),%xmm3
movsd  0x18(%rsp),%xmm2
xorpd  %xmm11,%xmm11
movsd  0xcab(%rip),%xmm10
movapd 0xc82(%rip),%xmm9
mov    0x40(%rsp),%r9
mov    0x48(%rsp),%r8
mov    0x50(%rsp),%rdx
ucomisd %xmm11,%xmm0
movsd  0xc95(%rip),%xmm12
jne    139f <qrevec+0x28f>
jnp    13b6 <qrevec+0x2a6>
movsd  (%rdx,%rbp,8),%xmm12
movapd %xmm0,%xmm1
addsd  %xmm0,%xmm1
mulsd  %xmm3,%xmm1
divsd  %xmm1,%xmm12
cmpl   $0x0,0xa0(%rsp)
addsd  (%r12,%r15,8),%xmm2
sete   %bl
movapd %xmm2,%xmm1
subsd  %xmm3,%xmm1
movsd  %xmm1,(%r12,%r15,8)
addsd  %xmm3,%xmm2
add    $0xfffffffe,%r14d
movsd  %xmm2,(%r12,%rbp,8)
imul   %r13d,%ebp
movslq %ebp,%rsi
lea    (%r8,%rsi,8),%rax
movapd %xmm12,%xmm8
xorpd  0xc14(%rip),%xmm8
xor    %ecx,%ecx
or     0xf(%rsp),%bl
jne    151d <qrevec+0x40d>
movapd %xmm12,%xmm4
unpcklpd %xmm12,%xmm4
movapd %xmm0,%xmm1
unpcklpd %xmm0,%xmm1
movapd %xmm8,%xmm3
unpcklpd %xmm8,%xmm3
cmpq   $0x0,0x98(%rsp)
je     160d <qrevec+0x4fd>
mov    0x78(%rsp),%rcx
lea    (%rcx,%rsi,8),%rbp
mov    0x30(%rsp),%rcx
lea    (%rcx,%rbp,1),%rsi
mov    0x80(%rsp),%rdi
xor    %ecx,%ecx
nop
movupd -0x10(%rbp,%rcx,8),%xmm5
movupd -0x10(%rsi,%rcx,8),%xmm6
movapd %xmm4,%xmm7
mulpd  %xmm6,%xmm7
movapd %xmm1,%xmm2
mulpd  %xmm5,%xmm2
addpd  %xmm7,%xmm2
movupd %xmm2,-0x10(%rbp,%rcx,8)
mulpd  %xmm3,%xmm5
mulpd  %xmm1,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm6,-0x10(%rsi,%rcx,8)
movupd 0x0(%rbp,%rcx,8),%xmm2
movupd (%rsi,%rcx,8),%xmm5
movapd %xmm4,%xmm6
mulpd  %xmm5,%xmm6
movapd %xmm1,%xmm7
mulpd  %xmm2,%xmm7
addpd  %xmm6,%xmm7
movupd %xmm7,0x0(%rbp,%rcx,8)
mulpd  %xmm3,%xmm2
mulpd  %xmm1,%xmm5
addpd  %xmm2,%xmm5
movupd %xmm5,(%rsi,%rcx,8)
add    $0x4,%rcx
add    $0xfffffffffffffffe,%rdi
jne    1450 <qrevec+0x340>
testb  $0x1,0x90(%rsp)
01
je     150b <qrevec+0x3fb>
lea    (%rax,%rcx,8),%rsi
movupd (%rax,%rcx,8),%xmm2
mov    0x10(%rsp),%rdi
movupd (%rsi,%rdi,8),%xmm5
mulpd  %xmm5,%xmm4
movapd %xmm1,%xmm6
mulpd  %xmm2,%xmm6
addpd  %xmm4,%xmm6
movupd %xmm6,(%rax,%rcx,8)
mulpd  %xmm2,%xmm3
mulpd  %xmm5,%xmm1
addpd  %xmm3,%xmm1
movupd %xmm1,(%rsi,%rdi,8)
cmp    %r9,0x38(%rsp)
je     1230 <qrevec+0x120>
lea    (%rax,%r9,8),%rax
mov    %r9d,%ecx
mov    %r13d,%esi
sub    %ecx,%esi
test   $0x1,%sil
jne    152c <qrevec+0x41c>
mov    %ecx,%esi
jmp    156c <qrevec+0x45c>
movsd  (%rax),%xmm1
mov    0x10(%rsp),%rsi
movsd  (%rax,%rsi,8),%xmm2
movapd %xmm12,%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm0,%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,(%rax)
mulsd  %xmm8,%xmm1
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rax,%rsi,8)
lea    0x1(%rcx),%esi
add    $0x8,%rax
not    %ecx
cmp    0x24(%rsp),%ecx
je     1230 <qrevec+0x120>
mov    0x88(%rsp),%rcx
lea    (%rax,%rcx,8),%rcx
mov    %r13d,%edi
sub    %esi,%edi
xor    %esi,%esi
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rsi,8),%xmm1
movsd  -0x8(%rcx,%rsi,8),%xmm2
movapd %xmm12,%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm0,%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,(%rax,%rsi,8)
mulsd  %xmm8,%xmm1
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,-0x8(%rcx,%rsi,8)
movsd  0x8(%rax,%rsi,8),%xmm1
movsd  (%rcx,%rsi,8),%xmm2
movapd %xmm12,%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm0,%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,0x8(%rax,%rsi,8)
mulsd  %xmm8,%xmm1
mulsd  %xmm0,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rcx,%rsi,8)
add    $0x2,%rsi
cmp    %esi,%edi
jne    1590 <qrevec+0x480>
jmp    1230 <qrevec+0x120>
xor    %ecx,%ecx
testb  $0x1,0x90(%rsp)
01
jne    14d2 <qrevec+0x3c2>
jmp    150b <qrevec+0x3fb>
mov    0x28(%rsp),%rax
cmp    0x5c(%rsp),%eax
je     1b19 <qrevec+0xa09>
movsd  (%r12,%r15,8),%xmm0
addsd  %xmm2,%xmm0
movapd %xmm3,%xmm1
xorpd  0x9c9(%rip),%xmm1
xorpd  %xmm13,%xmm13
xorpd  %xmm8,%xmm8
cmpltsd %xmm2,%xmm8
andpd  %xmm8,%xmm1
andnpd %xmm3,%xmm8
orpd   %xmm1,%xmm8
addsd  %xmm0,%xmm8
movsd  (%r12),%xmm0
subsd  %xmm8,%xmm0
movsd  %xmm0,(%r12)
xor    %esi,%esi
test   %r14d,%r14d
jle    1ab0 <qrevec+0x9a0>
mov    %r13,0x18(%rsp)
xorpd  %xmm13,%xmm13
mov    0x78(%rsp),%r13
xor    %ebp,%ebp
movsd  0x990(%rip),%xmm2
movapd %xmm8,0xc0(%rsp)
nopw   0x0(%rax,%rax,1)
mulsd  %xmm2,%xmm0
movapd %xmm0,%xmm14
subsd  %xmm13,%xmm14
movsd  (%rdx,%rbp,8),%xmm13
movapd %xmm13,%xmm1
mulsd  %xmm13,%xmm1
movapd %xmm14,%xmm0
mulsd  %xmm14,%xmm0
addsd  %xmm1,%xmm0
ucomisd %xmm11,%xmm0
jb     16f0 <qrevec+0x5e0>
sqrtsd %xmm0,%xmm0
jmp    176d <qrevec+0x65d>
nopl   0x0(%rax)
movapd %xmm12,0x60(%rsp)
movsd  %xmm13,0xb8(%rsp)
movapd %xmm14,0xd0(%rsp)
movsd  %xmm2,0xb0(%rsp)
call   1030 <sqrt@plt>
movsd  0xb0(%rsp),%xmm2
movapd 0xd0(%rsp),%xmm14
movsd  0xb8(%rsp),%xmm13
movapd 0xc0(%rsp),%xmm8
movapd 0x60(%rsp),%xmm12
xorpd  %xmm11,%xmm11
movsd  0x8cb(%rip),%xmm10
movapd 0x8a2(%rip),%xmm9
mov    0x40(%rsp),%r9
mov    0x48(%rsp),%r8
mov    0x50(%rsp),%rdx
mov    %rbp,%rsi
imul   0x10(%rsp),%rsi
test   %rbp,%rbp
je     1789 <qrevec+0x679>
mulsd  %xmm0,%xmm12
lea    -0x1(%rbp),%eax
movsd  %xmm12,(%rdx,%rax,8)
lea    (%r8,%rsi,8),%rcx
mulsd  %xmm2,%xmm13
lea    0x1(%rbp),%rax
xor    %ebx,%ebx
mulsd  %xmm0,%xmm2
movsd  %xmm2,(%r12,%rbp,8)
divsd  %xmm0,%xmm14
movsd  (%rdx,%rbp,8),%xmm12
divsd  %xmm0,%xmm12
movsd  0x8(%r12,%rbp,8),%xmm0
subsd  %xmm8,%xmm0
movsd  %xmm0,0x8(%r12,%rbp,8)
mulsd  %xmm12,%xmm13
addsd  %xmm13,%xmm2
mulsd  %xmm12,%xmm0
mulsd  %xmm12,%xmm0
mulsd  %xmm14,%xmm2
addsd  %xmm0,%xmm2
addsd  %xmm8,%xmm2
movsd  %xmm2,(%r12,%rbp,8)
movapd %xmm12,%xmm0
xorpd  0x816(%rip),%xmm0
cmpl   $0x0,0xa0(%rsp)
je     1960 <qrevec+0x850>
mov    0xa8(%rsp),%rdi
add    %rsi,%rdi
lea    (%r8,%rdi,8),%rdi
cmp    %rdi,%rcx
jae    183a <qrevec+0x72a>
mov    0x38(%rsp),%rdi
add    %rsi,%rdi
add    0x10(%rsp),%rsi
lea    (%r8,%rdi,8),%rdi
lea    (%r8,%rsi,8),%rsi
cmp    %rdi,%rsi
jb     1960 <qrevec+0x850>
movapd %xmm12,%xmm3
unpcklpd %xmm12,%xmm3
movapd %xmm14,%xmm1
unpcklpd %xmm14,%xmm1
movapd %xmm0,%xmm2
unpcklpd %xmm0,%xmm2
cmpq   $0x0,0x98(%rsp)
je     1a89 <qrevec+0x979>
mov    0x30(%rsp),%rsi
add    %r13,%rsi
mov    0x80(%rsp),%rdi
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movupd -0x10(%r13,%rbp,8),%xmm4
movupd -0x10(%rsi,%rbp,8),%xmm5
movapd %xmm3,%xmm6
mulpd  %xmm5,%xmm6
movapd %xmm1,%xmm7
mulpd  %xmm4,%xmm7
addpd  %xmm6,%xmm7
movupd %xmm7,-0x10(%r13,%rbp,8)
mulpd  %xmm2,%xmm4
mulpd  %xmm1,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm5,-0x10(%rsi,%rbp,8)
movupd 0x0(%r13,%rbp,8),%xmm4
movupd (%rsi,%rbp,8),%xmm5
movapd %xmm3,%xmm6
mulpd  %xmm5,%xmm6
movapd %xmm1,%xmm7
mulpd  %xmm4,%xmm7
addpd  %xmm6,%xmm7
movupd %xmm7,0x0(%r13,%rbp,8)
mulpd  %xmm2,%xmm4
mulpd  %xmm1,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm5,(%rsi,%rbp,8)
add    $0x4,%rbp
add    $0xfffffffffffffffe,%rdi
jne    1880 <qrevec+0x770>
testb  $0x1,0x90(%rsp)
01
je     193f <qrevec+0x82f>
lea    (%rcx,%rbp,8),%rsi
movupd (%rcx,%rbp,8),%xmm4
mov    0x10(%rsp),%rdi
movupd (%rsi,%rdi,8),%xmm5
mulpd  %xmm5,%xmm3
movapd %xmm1,%xmm6
mulpd  %xmm4,%xmm6
addpd  %xmm3,%xmm6
movupd %xmm6,(%rcx,%rbp,8)
mulpd  %xmm4,%xmm2
mulpd  %xmm5,%xmm1
addpd  %xmm2,%xmm1
movupd %xmm1,(%rsi,%rdi,8)
cmp    %r9,0x38(%rsp)
je     1a6c <qrevec+0x95c>
lea    (%rcx,%r9,8),%rcx
mov    %r9d,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rsi
sub    %ebx,%esi
test   $0x1,%sil
jne    1980 <qrevec+0x870>
mov    %ebx,%edi
jmp    19c1 <qrevec+0x8b1>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rcx),%xmm1
mov    0x10(%rsp),%rsi
movsd  (%rcx,%rsi,8),%xmm2
movapd %xmm12,%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm14,%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,(%rcx)
mulsd  %xmm0,%xmm1
mulsd  %xmm14,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,(%rcx,%rsi,8)
lea    0x1(%rbx),%edi
add    $0x8,%rcx
not    %ebx
cmp    0x24(%rsp),%ebx
je     1a6c <qrevec+0x95c>
mov    0x88(%rsp),%rsi
lea    (%rcx,%rsi,8),%rbp
mov    0x18(%rsp),%rsi
sub    %edi,%esi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rcx,%rdi,8),%xmm1
movsd  -0x8(%rbp,%rdi,8),%xmm2
movapd %xmm12,%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm14,%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,(%rcx,%rdi,8)
mulsd  %xmm0,%xmm1
mulsd  %xmm14,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,-0x8(%rbp,%rdi,8)
movsd  0x8(%rcx,%rdi,8),%xmm1
movsd  0x0(%rbp,%rdi,8),%xmm2
movapd %xmm12,%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm14,%xmm4
mulsd  %xmm1,%xmm4
addsd  %xmm3,%xmm4
movsd  %xmm4,0x8(%rcx,%rdi,8)
mulsd  %xmm0,%xmm1
mulsd  %xmm14,%xmm2
addsd  %xmm1,%xmm2
movsd  %xmm2,0x0(%rbp,%rdi,8)
add    $0x2,%rdi
cmp    %edi,%esi
jne    19f0 <qrevec+0x8e0>
cmp    %r15,%rax
je     1a9e <qrevec+0x98e>
movsd  (%r12,%rax,8),%xmm0
add    0x30(%rsp),%r13
mov    %rax,%rbp
movapd %xmm14,%xmm2
jmp    16b0 <qrevec+0x5a0>
xor    %ebp,%ebp
testb  $0x1,0x90(%rsp)
01
jne    1906 <qrevec+0x7f6>
jmp    193f <qrevec+0x82f>
movsd  (%r12,%r15,8),%xmm0
mov    %r14d,%eax
mov    0x18(%rsp),%r13
xor    %esi,%esi
jmp    1abb <qrevec+0x9ab>
movsd  0x577(%rip),%xmm14
xor    %eax,%eax
mov    %eax,%ecx
mulsd  %xmm14,%xmm0
subsd  %xmm13,%xmm0
movsd  %xmm0,(%r12,%rcx,8)
mulsd  %xmm12,%xmm0
add    $0xffffffff,%eax
movsd  %xmm0,(%rdx,%rax,8)
mulsd  (%r12,%rcx,8),%xmm14
addsd  %xmm8,%xmm14
movsd  %xmm14,(%r12,%rcx,8)
mov    0x28(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x28(%rsp)
test   %r14d,%r14d
jg     123e <qrevec+0x12e>
jmp    1b05 <qrevec+0x9f5>
xor    %esi,%esi
mov    %esi,%eax
add    $0xe8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0xffffffff,%esi
jmp    1b05 <qrevec+0x9f5>

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

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