#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 myhypot(double, double);
void QLalgo2(int n, double *d, double *e, double **V) {
  int i, k, l, m;
  double f = 0.0;
  double tst1 = 0.0;
  double eps = 2.22e-16;
  for (i = 1; i < n; i++) {
    e[i - 1] = e[i];
  }
  e[n - 1] = 0.0;
  for (l = 0; l < n; l++) {
    if (tst1 < fabs(d[l]) + fabs(e[l]))
      tst1 = fabs(d[l]) + fabs(e[l]);
    m = l;
    while (m < n) {
      if (fabs(e[m]) <= eps * tst1) {
        break;
      }
      m++;
    }
    if (m > l) {
      int iter = 0;
      do {
        double dl1, h;
        double g = d[l];
        double p = (d[l + 1] - g) / (2.0 * e[l]);
        double r = myhypot(p, 1.);
        iter = iter + 1;
        if (p < 0) {
          r = -r;
        }
        d[l] = e[l] / (p + r);
        d[l + 1] = e[l] * (p + r);
        dl1 = d[l + 1];
        h = g - d[l];
        for (i = l + 2; i < n; i++) {
          d[i] -= h;
        }
        f = f + h;
        p = d[m];
        {
          double c = 1.0;
          double c2 = c;
          double c3 = c;
          double el1 = e[l + 1];
          double s = 0.0;
          double s2 = 0.0;
          for (i = m - 1; i >= l; i--) {
            c3 = c2;
            c2 = c;
            s2 = s;
            g = c * e[i];
            h = c * p;
            r = myhypot(p, e[i]);
            e[i + 1] = s * r;
            s = e[i] / r;
            c = p / r;
            p = c * d[i] - s * g;
            d[i + 1] = h + s * (c * g + s * d[i]);
            for (k = 0; k < n; k++) {
              h = V[k][i + 1];
              V[k][i + 1] = s * V[k][i] + c * h;
              V[k][i] = c * V[k][i] - s * h;
            }
          }
          p = -s * s2 * c3 * el1 * e[l] / dl1;
          e[l] = s * p;
          d[l] = c * p;
        }
      } while (fabs(e[l]) > eps * tst1);
    }
    d[l] = d[l] + f;
    e[l] = 0.0;
  }
  {
    int j;
    double p;
    for (i = 0; i < n - 1; i++) {
      k = i;
      p = d[i];
      for (j = i + 1; j < n; j++) {
        if (d[j] < p) {
          k = j;
          p = d[j];
        }
      }
      if (k != i) {
        d[k] = d[i];
        d[i] = p;
        for (j = 0; j < n; j++) {
          p = V[j][i];
          V[j][i] = V[j][k];
          V[j][k] = p;
        }
      }
    }
  }
}


x86 assembly (clang, -O0):
<QLalgo2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xebe(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1187 <QLalgo2+0x77>
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    114e <QLalgo2+0x3e>
mov    -0x18(%rbp),%rax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    179f <QLalgo2+0x68f>
movsd  -0x40(%rbp),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe58(%rip),%xmm2
pand   %xmm2,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movaps 0xe40(%rip),%xmm3
pand   %xmm3,%xmm2
addsd  %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    122b <QLalgo2+0x11b>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe1a(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xe02(%rip),%xmm2
pand   %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    127c <QLalgo2+0x16c>
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xdcf(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     126e <QLalgo2+0x15e>
jmp    127c <QLalgo2+0x16c>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1231 <QLalgo2+0x121>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jle    1762 <QLalgo2+0x652>
movl   $0x0,-0x4c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  0xd48(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
movsd  0xd25(%rip),%xmm1
call   1030 <myhypot@plt>
movsd  %xmm0,-0x78(%rbp)
mov    -0x4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4c(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x70(%rbp),%xmm0
jbe    1325 <QLalgo2+0x215>
movsd  -0x78(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x70(%rbp),%xmm1
addsd  -0x78(%rbp),%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x70(%rbp),%xmm1
addsd  -0x78(%rbp),%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x2,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    13e6 <QLalgo2+0x2d6>
movsd  -0x60(%rbp),%xmm1
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    13b1 <QLalgo2+0x2a1>
movsd  -0x38(%rbp),%xmm0
addsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  0xbf9(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jl     16b2 <QLalgo2+0x5a2>
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0xa0(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0x80(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x80(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
call   1030 <myhypot@plt>
movsd  %xmm0,-0x78(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0x78(%rbp),%xmm0
mov    -0x18(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x70(%rbp),%xmm0
divsd  -0x78(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  -0x68(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x60(%rbp),%xmm1
movsd  -0xa0(%rbp),%xmm0
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0x68(%rbp),%xmm4
movsd  -0xa0(%rbp),%xmm3
ff
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm3
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    169f <QLalgo2+0x58f>
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x80(%rbp),%xmm1
mulsd  -0x60(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0xa0(%rbp),%xmm1
ff
mulsd  -0x60(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    15c2 <QLalgo2+0x4b2>
jmp    16a4 <QLalgo2+0x594>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    1467 <QLalgo2+0x357>
movsd  -0xa0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
mulsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x98(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0x70(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0x8db(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  -0x48(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
ucomisd %xmm1,%xmm0
ja     128f <QLalgo2+0x17f>
jmp    1762 <QLalgo2+0x652>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x38(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    11a3 <QLalgo2+0x93>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
mov    -0x4(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1939 <QLalgo2+0x829>
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
mov    -0xac(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1849 <QLalgo2+0x739>
mov    -0x10(%rbp),%rax
movslq -0xac(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0xb8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1830 <QLalgo2+0x720>
mov    -0xac(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0xac(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
jmp    1835 <QLalgo2+0x725>
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    17de <QLalgo2+0x6ce>
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
je     1926 <QLalgo2+0x816>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0xac(%rbp)
mov    -0xac(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1921 <QLalgo2+0x811>
mov    -0x20(%rbp),%rax
movslq -0xac(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x20(%rbp),%rax
movslq -0xac(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0xac(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xb8(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movslq -0xac(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
jmp    188e <QLalgo2+0x77e>
jmp    1926 <QLalgo2+0x816>
jmp    192b <QLalgo2+0x81b>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    17a6 <QLalgo2+0x696>
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<QLalgo2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x128,%rsp
mov    %rcx,%rbx
mov    %rdx,%r15
cmp    $0x2,%edi
mov    %rsi,0x20(%rsp)
jl     1172 <QLalgo2+0x52>
lea    0x8(%r15),%rsi
lea    -0x1(%rdi),%ebp
mov    %rdi,%r12
lea    0x0(,%rbp,8),%rdx
mov    %r15,%rdi
call   1040 <memmove@plt>
mov    0x20(%rsp),%rsi
mov    %r12,%rdi
mov    %rbp,0x30(%rsp)
movq   $0x0,(%r15,%rbp,8)
jmp    118e <QLalgo2+0x6e>
movslq %edi,%rax
movq   $0x0,-0x8(%r15,%rax,8)
cmp    $0x1,%edi
jne    18bd <QLalgo2+0x79d>
xor    %eax,%eax
mov    %rax,0x30(%rsp)
mov    %rdi,0x38(%rsp)
mov    %edi,%edx
lea    -0x2(%rdx),%rax
mov    %rax,0x70(%rsp)
lea    -0x1(%rdx),%rax
mov    %rax,0x10(%rsp)
mov    %edx,%ebp
and    $0xfffffffe,%ebp
lea    0x40(%rsi),%rcx
lea    -0x6(%rdx),%rdi
mov    $0x2,%eax
mov    %rax,0x8(%rsp)
xor    %r12d,%r12d
xorpd  %xmm1,%xmm1
xorpd  %xmm4,%xmm4
mov    %rdx,0x18(%rsp)
jmp    1213 <QLalgo2+0xf3>
movapd %xmm6,%xmm2
addsd  %xmm4,%xmm2
movsd  %xmm2,(%rsi,%r12,8)
movq   $0x0,(%r15,%r12,8)
addq   $0x1,0x8(%rsp)
mov    0x40(%rsp),%rcx
add    $0x8,%rcx
mov    0x78(%rsp),%rdi
add    $0xffffffffffffffff,%rdi
mov    %r14,%r12
cmp    %rdx,%r14
movapd 0xe0(%rsp),%xmm1
je     179f <QLalgo2+0x67f>
movsd  (%rsi,%r12,8),%xmm5
movapd %xmm5,%xmm6
movapd 0xddb(%rip),%xmm3
andpd  %xmm3,%xmm5
movsd  (%r15,%r12,8),%xmm7
movapd %xmm7,%xmm2
andpd  %xmm3,%xmm2
addsd  %xmm2,%xmm5
maxsd  %xmm1,%xmm5
movapd %xmm5,%xmm1
mulsd  0xdd5(%rip),%xmm1
ucomisd %xmm2,%xmm1
mov    %r12,%rax
jae    1295 <QLalgo2+0x175>
mov    %r12,%rax
nopw   0x0(%rax,%rax,1)
cmp    %rax,0x10(%rsp)
je     1290 <QLalgo2+0x170>
movsd  0x8(%r15,%rax,8),%xmm2
andpd  0xd8a(%rip),%xmm2
add    $0x1,%rax
ucomisd %xmm2,%xmm1
jb     1260 <QLalgo2+0x140>
jmp    1295 <QLalgo2+0x175>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x38(%rsp),%rax
mov    %eax,%r8d
lea    0x1(%r12),%r14
cmp    %r8,%r12
mov    %rcx,0x40(%rsp)
mov    %rdi,0x78(%rsp)
movapd %xmm5,0xe0(%rsp)
jae    11d0 <QLalgo2+0xb0>
mov    0x70(%rsp),%rax
sub    %r12,%rax
shr    $0x2,%rdi
lea    -0x4(%rax),%rcx
add    $0x1,%rdi
mov    %rcx,0xa0(%rsp)
shr    $0x2,%rcx
and    $0xfffffffffffffffe,%rdi
mov    %rdi,0x80(%rsp)
add    $0x1,%rcx
mov    %rcx,0x98(%rsp)
lea    0x2(%r12),%rcx
mov    %rcx,0xb0(%rsp)
mov    %r8,%rcx
mov    %r8,0xa8(%rsp)
movslq %r8d,%rcx
mov    %rcx,0x50(%rsp)
mulsd  0xd07(%rip),%xmm5
movapd %xmm5,0xf0(%rsp)
mov    %rax,0x48(%rsp)
mov    %rax,%rcx
and    $0xfffffffffffffffc,%rcx
mov    0x8(%rsp),%rax
mov    %rcx,0x90(%rsp)
add    %rcx,%rax
mov    %rax,0x88(%rsp)
mov    %r14,0xb8(%rsp)
jmp    13eb <QLalgo2+0x2cb>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0xc8(%rsp),%xmm4
addsd  0x60(%rsp),%xmm4
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
movapd %xmm0,%xmm2
xorpd  %xmm6,%xmm2
mulsd  %xmm8,%xmm2
mulsd  0x58(%rsp),%xmm2
movsd  0xc0(%rsp),%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm3,%xmm2
mulsd  (%r15,%r12,8),%xmm2
divsd  0x100(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,(%r15,%r12,8)
mulsd  %xmm1,%xmm2
movsd  %xmm2,(%rsi,%r12,8)
movsd  (%r15,%r12,8),%xmm7
movapd %xmm7,%xmm1
andpd  0xc30(%rip),%xmm1
ucomisd 0xf0(%rsp),%xmm1
movapd %xmm2,%xmm6
mov    0xb8(%rsp),%r14
jbe    11d4 <QLalgo2+0xb4>
movapd %xmm6,0x60(%rsp)
movsd  %xmm4,0xc8(%rsp)
movsd  (%rsi,%r14,8),%xmm0
subsd  %xmm6,%xmm0
addsd  %xmm7,%xmm7
divsd  %xmm7,%xmm0
movsd  %xmm0,0x28(%rsp)
movsd  0xc0e(%rip),%xmm1
call   1030 <myhypot@plt>
mov    0x20(%rsp),%rsi
movapd 0xbe4(%rip),%xmm6
mov    0x18(%rsp),%rdx
movsd  0x28(%rsp),%xmm3
movapd %xmm3,%xmm2
cmpltsd 0xbec(%rip),%xmm2
movapd %xmm2,%xmm1
andnpd %xmm0,%xmm1
xorpd  %xmm6,%xmm0
andpd  %xmm2,%xmm0
orpd   %xmm1,%xmm0
movapd 0x60(%rsp),%xmm5
movsd  (%r15,%r12,8),%xmm1
addsd  %xmm3,%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,(%rsi,%r12,8)
mulsd  (%r15,%r12,8),%xmm0
movapd %xmm0,0x100(%rsp)
movsd  %xmm0,(%rsi,%r14,8)
subsd  %xmm1,%xmm5
cmp    %rdx,0xb0(%rsp)
jae    1577 <QLalgo2+0x457>
mov    0x8(%rsp),%rax
cmpq   $0x4,0x48(%rsp)
jb     1560 <QLalgo2+0x440>
movapd %xmm5,%xmm0
unpcklpd %xmm5,%xmm0
cmpq   $0x4,0xa0(%rsp)
jae    14c1 <QLalgo2+0x3a1>
xor    %eax,%eax
jmp    1518 <QLalgo2+0x3f8>
mov    0x80(%rsp),%rcx
xor    %eax,%eax
mov    0x40(%rsp),%rdi
movupd -0x30(%rdi,%rax,8),%xmm1
movupd -0x20(%rdi,%rax,8),%xmm2
movupd -0x10(%rdi,%rax,8),%xmm3
movupd (%rdi,%rax,8),%xmm4
subpd  %xmm0,%xmm1
subpd  %xmm0,%xmm2
movupd %xmm1,-0x30(%rdi,%rax,8)
movupd %xmm2,-0x20(%rdi,%rax,8)
subpd  %xmm0,%xmm3
subpd  %xmm0,%xmm4
movupd %xmm3,-0x10(%rdi,%rax,8)
movupd %xmm4,(%rdi,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    14d0 <QLalgo2+0x3b0>
testb  $0x1,0x98(%rsp)
01
je     1545 <QLalgo2+0x425>
add    0x8(%rsp),%rax
movupd (%rsi,%rax,8),%xmm1
movupd 0x10(%rsi,%rax,8),%xmm2
subpd  %xmm0,%xmm1
subpd  %xmm0,%xmm2
movupd %xmm1,(%rsi,%rax,8)
movupd %xmm2,0x10(%rsi,%rax,8)
mov    0x88(%rsp),%rax
mov    0x90(%rsp),%rcx
cmp    %rcx,0x48(%rsp)
je     1577 <QLalgo2+0x457>
nopl   0x0(%rax)
movsd  (%rsi,%rax,8),%xmm0
subsd  %xmm5,%xmm0
movsd  %xmm0,(%rsi,%rax,8)
add    $0x1,%rax
cmp    %rax,%rdx
jne    1560 <QLalgo2+0x440>
movapd %xmm5,0x60(%rsp)
movsd  (%r15,%r14,8),%xmm0
movsd  %xmm0,0xc0(%rsp)
xorpd  %xmm8,%xmm8
movsd  0xa8f(%rip),%xmm0
movsd  %xmm0,0x58(%rsp)
movsd  0xa81(%rip),%xmm1
cmp    0x50(%rsp),%r12
jge    1360 <QLalgo2+0x240>
mov    0xa8(%rsp),%rax
movsd  (%rsi,%rax,8),%xmm0
xorpd  %xmm7,%xmm7
mov    0x50(%rsp),%r13
movsd  0xa58(%rip),%xmm1
movaps %xmm1,%xmm2
movaps %xmm1,%xmm3
jmp    1603 <QLalgo2+0x4e3>
nopl   0x0(%rax,%rax,1)
mulsd  %xmm7,%xmm10
mulsd  %xmm1,%xmm0
subsd  %xmm10,%xmm0
movapd %xmm9,%xmm2
movapd %xmm1,%xmm3
mov    %r14,%r12
cmp    %r14,%r13
jle    1360 <QLalgo2+0x240>
movapd %xmm0,0x110(%rsp)
movsd  %xmm3,0x28(%rsp)
mov    %r12,%r14
movsd  %xmm2,0x58(%rsp)
movsd  %xmm7,0xd8(%rsp)
mov    %r13,%r12
add    $0xffffffffffffffff,%r13
movsd  -0x8(%r15,%r12,8),%xmm1
movsd  %xmm1,0xd0(%rsp)
call   1030 <myhypot@plt>
movsd  0xd0(%rsp),%xmm10
movsd  0x28(%rsp),%xmm9
movsd  0xd8(%rsp),%xmm8
mov    0x20(%rsp),%rsi
movapd 0x9a8(%rip),%xmm6
mulsd  %xmm9,%xmm10
movapd 0x110(%rsp),%xmm2
movapd %xmm2,%xmm3
mulsd  %xmm9,%xmm3
movapd %xmm8,%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r15,%r12,8)
movhpd -0x8(%r15,%r12,8),%xmm2
movapd %xmm2,%xmm1
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm1
movsd  -0x8(%rsi,%r12,8),%xmm0
movapd %xmm1,%xmm7
unpckhpd %xmm1,%xmm7
movapd %xmm7,%xmm2
xorpd  %xmm6,%xmm2
movapd %xmm7,%xmm4
mulsd  %xmm0,%xmm4
movapd %xmm1,%xmm5
mulsd  %xmm10,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm7,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rsi,%r12,8)
unpcklpd %xmm1,%xmm2
cmpq   $0x0,0x10(%rsp)
je     1760 <QLalgo2+0x640>
xor    %eax,%eax
mov    0x18(%rsp),%rdx
xchg   %ax,%ax
mov    (%rbx,%rax,8),%rcx
movsd  (%rcx,%r12,8),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm2,%xmm3
movsd  (%rcx,%r13,8),%xmm4
unpcklpd %xmm4,%xmm4
mulpd  %xmm1,%xmm4
addpd  %xmm3,%xmm4
movupd %xmm4,(%rcx,%r13,8)
mov    0x8(%rbx,%rax,8),%rcx
movsd  (%rcx,%r12,8),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm2,%xmm3
movsd  (%rcx,%r13,8),%xmm4
unpcklpd %xmm4,%xmm4
mulpd  %xmm1,%xmm4
addpd  %xmm3,%xmm4
movupd %xmm4,(%rcx,%r13,8)
add    $0x2,%rax
cmp    %rax,%rbp
jne    16f0 <QLalgo2+0x5d0>
test   $0x1,%dl
je     15e0 <QLalgo2+0x4c0>
jmp    1770 <QLalgo2+0x650>
nopl   0x0(%rax)
xor    %eax,%eax
mov    0x18(%rsp),%rdx
test   $0x1,%dl
je     15e0 <QLalgo2+0x4c0>
mov    (%rbx,%rax,8),%rax
movsd  (%rax,%r12,8),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm2,%xmm3
movsd  (%rax,%r13,8),%xmm2
unpcklpd %xmm2,%xmm2
mulpd  %xmm1,%xmm2
addpd  %xmm3,%xmm2
movupd %xmm2,(%rax,%r13,8)
jmp    15e0 <QLalgo2+0x4c0>
cmpl   $0x2,0x38(%rsp)
mov    0x30(%rsp),%r9
jl     18bd <QLalgo2+0x79d>
mov    %edx,%r11d
and    $0xfffffffe,%r11d
mov    $0x1,%r10d
xor    %r8d,%r8d
jmp    17dd <QLalgo2+0x6bd>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
add    $0x1,%r10
cmp    %r9,%r8
je     18bd <QLalgo2+0x79d>
mov    %r8,%rax
movsd  (%rsi,%r8,8),%xmm0
add    $0x1,%r8
cmp    %rdx,%r8
jae    1820 <QLalgo2+0x700>
mov    %r10,%rcx
movapd %xmm0,%xmm2
mov    %eax,%edi
nopl   0x0(%rax,%rax,1)
movsd  (%rsi,%rcx,8),%xmm1
ucomisd %xmm1,%xmm2
cmova  %ecx,%edi
minsd  %xmm2,%xmm1
add    $0x1,%rcx
movapd %xmm1,%xmm2
cmp    %rcx,%rdx
jne    1800 <QLalgo2+0x6e0>
jmp    1826 <QLalgo2+0x706>
nop
mov    %eax,%edi
movapd %xmm0,%xmm1
mov    %edi,%ecx
cmp    %rcx,%rax
je     17d0 <QLalgo2+0x6b0>
movslq %edi,%rdi
movsd  %xmm0,(%rsi,%rdi,8)
movsd  %xmm1,(%rsi,%rax,8)
cmpq   $0x0,0x10(%rsp)
je     1895 <QLalgo2+0x775>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rbx,%rbp,8),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  (%rcx,%rdi,8),%xmm1
movsd  %xmm1,(%rcx,%rax,8)
movsd  %xmm0,(%rcx,%rdi,8)
mov    0x8(%rbx,%rbp,8),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  (%rcx,%rdi,8),%xmm1
movsd  %xmm1,(%rcx,%rax,8)
movsd  %xmm0,(%rcx,%rdi,8)
add    $0x2,%rbp
cmp    %rbp,%r11
jne    1850 <QLalgo2+0x730>
test   $0x1,%dl
je     17d0 <QLalgo2+0x6b0>
jmp    18a0 <QLalgo2+0x780>
xor    %ebp,%ebp
test   $0x1,%dl
je     17d0 <QLalgo2+0x6b0>
mov    (%rbx,%rbp,8),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  (%rcx,%rdi,8),%xmm1
movsd  %xmm1,(%rcx,%rax,8)
movsd  %xmm0,(%rcx,%rdi,8)
jmp    17d0 <QLalgo2+0x6b0>
add    $0x128,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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