#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 Pythag(double, double);
double Sign(double, double);
double fabs(double);
int Tql2(int n, double *d, double *e, double **z) {
  int i, j, k, l, m, l1, l2;
  double c, c2, c3 = 0, dl1, el1, f, g, h, p, r, s, s2 = 0, tst1, tst2;
  if (n == 1)
    return 0;
  for (i = 1; i < n; i++)
    e[i - 1] = e[i];
  f = 0.0;
  tst1 = 0.0;
  e[n - 1] = 0.0;
  for (l = 0; l < n; l++) {
    j = 0;
    h = fabs(d[l]) + fabs(e[l]);
    if (tst1 < h)
      tst1 = h;
    for (m = l; m < n; m++) {
      tst2 = tst1 + fabs(e[m]);
      if (tst2 == tst1)
        break;
    }
    if (m != l) {
      do {
        if (j == 30) {
          return l;
        }
        j = j + 1;
        l1 = l + 1;
        l2 = l1 + 1;
        g = d[l];
        p = (d[l1] - g) / (2.0 * e[l]);
        r = Pythag(p, 1.0);
        d[l] = e[l] / (p + Sign(r, p));
        d[l1] = e[l] * (p + Sign(r, p));
        dl1 = d[l1];
        h = g - d[l];
        for (i = l2; i < n; i++)
          d[i] -= h;
        f += h;
        p = d[m];
        c = 1.0;
        c2 = c;
        el1 = e[l1];
        s = 0.0;
        for (i = m - 1; i >= l; i--) {
          c3 = c2;
          c2 = c;
          s2 = s;
          g = c * e[i];
          h = c * p;
          r = Pythag(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 = z[k][i + 1];
            z[k][i + 1] = s * z[k][i] + c * h;
            z[k][i] = c * z[k][i] - s * h;
          }
        }
        p = -s * s2 * c3 * el1 * e[l] / dl1;
        e[l] = s * p;
        d[l] = c * p;
        tst2 = tst1 + fabs(e[l]);
      } while (tst2 > tst1);
    }
    d[l] += f;
  }
  return 0;
}


x86 assembly (clang, -O0):
<Tql2>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
cmpl   $0x1,-0x8(%rbp)
jne    1163 <Tql2+0x43>
movl   $0x0,-0x4(%rbp)
jmp    182f <Tql2+0x70f>
movl   $0x1,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11a3 <Tql2+0x83>
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    116a <Tql2+0x4a>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
mov    -0x8(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1828 <Tql2+0x708>
movl   $0x0,-0x28(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe07(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xdef(%rip),%xmm2
pand   %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0xa8(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    1242 <Tql2+0x122>
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    12b4 <Tql2+0x194>
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xd90(%rip),%xmm2
pand   %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
ucomisd -0xa8(%rbp),%xmm0
ff
jne    12a1 <Tql2+0x181>
jp     12a1 <Tql2+0x181>
jmp    12b4 <Tql2+0x194>
jmp    12a6 <Tql2+0x186>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1248 <Tql2+0x128>
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     1803 <Tql2+0x6e3>
jmp    12c5 <Tql2+0x1a5>
cmpl   $0x1e,-0x28(%rbp)
jne    12da <Tql2+0x1ba>
mov    -0x30(%rbp),%eax
mov    %eax,-0x4(%rbp)
jmp    182f <Tql2+0x70f>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x78(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  0xcef(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  0xcc6(%rip),%xmm1
call   1030 <Pythag@plt>
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
call   1040 <Sign@plt>
movsd  -0xd0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xc8(%rbp),%xmm0
ff
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
call   1040 <Sign@plt>
movsd  -0xc0(%rbp),%xmm1
ff
movaps %xmm0,%xmm2
movsd  -0xb8(%rbp),%xmm0
ff
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    -0x3c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    147f <Tql2+0x35f>
movsd  -0x80(%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    144a <Tql2+0x32a>
movsd  -0x80(%rbp),%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xb65(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x30(%rbp),%eax
jl     173a <Tql2+0x61a>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
movsd  %xmm0,-0x80(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
call   1030 <Pythag@plt>
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x90(%rbp),%xmm0
ff
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  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
divsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x48(%rbp)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x78(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x80(%rbp),%xmm1
movsd  -0x98(%rbp),%xmm0
ff
movsd  -0x48(%rbp),%xmm2
movsd  -0x78(%rbp),%xmm4
movsd  -0x98(%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,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1727 <Tql2+0x607>
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x80(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x98(%rbp),%xmm1
ff
mulsd  -0x80(%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 -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    164a <Tql2+0x52a>
jmp    172c <Tql2+0x60c>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    14e0 <Tql2+0x3c0>
movsd  -0x98(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0xa0(%rbp),%xmm0
ff
mulsd  -0x58(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
divsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mulsd  -0x88(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mulsd  -0x88(%rbp),%xmm0
ff
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0x828(%rip),%xmm2
pand   %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
ucomisd -0xa8(%rbp),%xmm0
ff
ja     12c5 <Tql2+0x1a5>
jmp    1803 <Tql2+0x6e3>
movsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    11d2 <Tql2+0xb2>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Tql2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x138,%rsp
mov    %rdx,0x8(%rsp)
xor    %eax,%eax
mov    %rdi,0x30(%rsp)
cmp    $0x1,%edi
je     180c <Tql2+0x6dc>
jle    17f4 <Tql2+0x6c4>
mov    %rcx,%rbx
mov    %rsi,%r12
mov    0x8(%rsp),%rbp
lea    0x8(%rbp),%rsi
mov    0x30(%rsp),%r15
lea    -0x1(%r15),%r14d
lea    0x0(,%r14,8),%rdx
mov    %rbp,%rdi
call   1050 <memmove@plt>
movq   $0x0,0x0(%rbp,%r14,8)
mov    %r15d,%edx
lea    -0x2(%rdx),%rax
mov    %rax,0x98(%rsp)
mov    %edx,%r13d
and    $0xfffffffe,%r13d
lea    -0x1(%rdx),%rax
mov    %rax,0xd0(%rsp)
lea    0x40(%r12),%rbp
lea    -0x6(%rdx),%rax
mov    %rax,0x48(%rsp)
xorpd  %xmm4,%xmm4
mov    $0x2,%eax
mov    %rax,0x20(%rsp)
xor    %r15d,%r15d
xorpd  %xmm0,%xmm0
movapd %xmm0,0x80(%rsp)
xorpd  %xmm5,%xmm5
xorpd  %xmm0,%xmm0
movapd %xmm0,0x100(%rsp)
mov    %rdx,0x38(%rsp)
movapd %xmm4,%xmm1
movsd  (%r12,%r15,8),%xmm4
movapd %xmm4,%xmm6
movapd 0xdf9(%rip),%xmm3
andpd  %xmm3,%xmm4
mov    0x8(%rsp),%rax
movsd  (%rax,%r15,8),%xmm7
movapd %xmm7,%xmm2
andpd  %xmm3,%xmm2
addsd  %xmm2,%xmm4
maxsd  %xmm1,%xmm4
addsd  %xmm4,%xmm2
ucomisd %xmm4,%xmm2
mov    %r15,%rax
jne    1235 <Tql2+0x105>
jnp    1280 <Tql2+0x150>
mov    %r15,%rax
nopl   0x0(%rax,%rax,1)
cmp    %rax,0xd0(%rsp)
je     126f <Tql2+0x13f>
mov    0x8(%rsp),%rcx
movsd  0x8(%rcx,%rax,8),%xmm1
andpd  0xda3(%rip),%xmm1
addsd  %xmm4,%xmm1
add    $0x1,%rax
ucomisd %xmm4,%xmm1
jne    1240 <Tql2+0x110>
jp     1240 <Tql2+0x110>
jmp    1280 <Tql2+0x150>
mov    0x30(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movapd %xmm6,%xmm1
mov    %eax,%ecx
lea    0x1(%r15),%rax
mov    %rax,0x28(%rsp)
cmp    %rcx,%r15
jne    12d0 <Tql2+0x1a0>
movapd %xmm1,%xmm2
addsd  %xmm5,%xmm2
movsd  %xmm2,(%r12,%r15,8)
addq   $0x1,0x20(%rsp)
add    $0x8,%rbp
addq   $0xffffffffffffffff,0x48(%rsp)
xor    %eax,%eax
mov    0x28(%rsp),%rcx
mov    %rcx,%r15
cmp    %rdx,%rcx
jne    11f1 <Tql2+0xc1>
jmp    180c <Tql2+0x6dc>
nopw   0x0(%rax,%rax,1)
mov    %rcx,%rax
mov    0x98(%rsp),%rsi
sub    %r15,%rsi
mov    0x48(%rsp),%rcx
shr    $0x2,%rcx
lea    -0x4(%rsi),%rdi
add    $0x1,%rcx
mov    %rdi,0xc0(%rsp)
shr    $0x2,%rdi
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0xa0(%rsp)
add    $0x1,%rdi
mov    %rdi,0xb8(%rsp)
lea    0x2(%r15),%rcx
mov    %rcx,0xd8(%rsp)
mov    %rax,%rcx
mov    %rax,0xc8(%rsp)
cltq
mov    %rax,0x58(%rsp)
mov    %rsi,0x50(%rsp)
and    $0xfffffffffffffffc,%rsi
mov    0x20(%rsp),%rax
mov    %rsi,0xb0(%rsp)
add    %rsi,%rax
mov    %rax,0xa8(%rsp)
xor    %ecx,%ecx
mov    %rbp,0xe0(%rsp)
movapd %xmm4,0x110(%rsp)
mov    %r15,0xf8(%rsp)
jmp    142a <Tql2+0x2fa>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x44(%rsp),%ecx
add    $0x1,%ecx
movapd 0x120(%rsp),%xmm5
addsd  0x60(%rsp),%xmm5
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
movapd %xmm0,%xmm2
xorpd  0xc66(%rip),%xmm2
mulsd  0x80(%rsp),%xmm2
mulsd  0x100(%rsp),%xmm2
movsd  0xe8(%rsp),%xmm3
mulsd  %xmm2,%xmm3
movapd %xmm3,%xmm2
mov    0x8(%rsp),%rax
mulsd  (%rax,%r15,8),%xmm2
divsd  0xf0(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  %xmm0,(%rax,%r15,8)
mulsd  %xmm1,%xmm2
movsd  %xmm2,(%r12,%r15,8)
movsd  (%rax,%r15,8),%xmm7
movapd %xmm7,%xmm1
andpd  0xbf9(%rip),%xmm1
movapd 0x110(%rsp),%xmm4
addsd  %xmm4,%xmm1
ucomisd %xmm4,%xmm1
movapd %xmm2,%xmm1
mov    0xe0(%rsp),%rbp
jbe    1298 <Tql2+0x168>
cmp    $0x1e,%ecx
je     1809 <Tql2+0x6d9>
mov    %ecx,0x44(%rsp)
movapd %xmm5,0x120(%rsp)
mov    0x28(%rsp),%rax
movsd  (%r12,%rax,8),%xmm0
subsd  %xmm1,%xmm0
addsd  %xmm7,%xmm7
divsd  %xmm7,%xmm0
movsd  %xmm0,0x18(%rsp)
movapd %xmm1,0x60(%rsp)
movsd  0xbb5(%rip),%xmm1
call   1030 <Pythag@plt>
movsd  %xmm0,0x70(%rsp)
mov    0x8(%rsp),%r14
movsd  (%r14,%r15,8),%xmm1
movsd  %xmm1,0x10(%rsp)
movsd  0x18(%rsp),%xmm1
call   1040 <Sign@plt>
movsd  0x18(%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  0x10(%rsp),%xmm2
divsd  %xmm0,%xmm2
movsd  %xmm2,(%r12,%r15,8)
movsd  (%r14,%r15,8),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x70(%rsp),%xmm0
call   1040 <Sign@plt>
movapd 0x60(%rsp),%xmm1
mov    0x38(%rsp),%rdx
addsd  0x18(%rsp),%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  %xmm0,0xf0(%rsp)
mov    0x28(%rsp),%rax
movsd  %xmm0,(%r12,%rax,8)
subsd  (%r12,%r15,8),%xmm1
cmp    %rdx,0xd8(%rsp)
movapd %xmm1,0x60(%rsp)
jae    15f9 <Tql2+0x4c9>
mov    0x20(%rsp),%rax
cmpq   $0x4,0x50(%rsp)
jb     15e0 <Tql2+0x4b0>
movapd %xmm1,%xmm0
unpcklpd %xmm1,%xmm0
cmpq   $0x4,0xc0(%rsp)
jae    1530 <Tql2+0x400>
xor    %eax,%eax
jmp    158a <Tql2+0x45a>
mov    0xa0(%rsp),%rcx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
movupd -0x30(%rbp,%rax,8),%xmm1
movupd -0x20(%rbp,%rax,8),%xmm2
movupd -0x10(%rbp,%rax,8),%xmm3
movupd 0x0(%rbp,%rax,8),%xmm4
subpd  %xmm0,%xmm1
subpd  %xmm0,%xmm2
movupd %xmm1,-0x30(%rbp,%rax,8)
movupd %xmm2,-0x20(%rbp,%rax,8)
subpd  %xmm0,%xmm3
subpd  %xmm0,%xmm4
movupd %xmm3,-0x10(%rbp,%rax,8)
movupd %xmm4,0x0(%rbp,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1540 <Tql2+0x410>
testb  $0x1,0xb8(%rsp)
01
je     15bb <Tql2+0x48b>
add    0x20(%rsp),%rax
movupd (%r12,%rax,8),%xmm1
movupd 0x10(%r12,%rax,8),%xmm2
subpd  %xmm0,%xmm1
subpd  %xmm0,%xmm2
movupd %xmm1,(%r12,%rax,8)
movupd %xmm2,0x10(%r12,%rax,8)
mov    0xa8(%rsp),%rax
mov    0xb0(%rsp),%rcx
cmp    %rcx,0x50(%rsp)
movapd 0x60(%rsp),%xmm1
je     15f9 <Tql2+0x4c9>
nopl   0x0(%rax,%rax,1)
movsd  (%r12,%rax,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%r12,%rax,8)
add    $0x1,%rax
cmp    %rax,%rdx
jne    15e0 <Tql2+0x4b0>
mov    0x8(%rsp),%rax
mov    0x28(%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,0xe8(%rsp)
movsd  0xa07(%rip),%xmm1
cmp    0x58(%rsp),%r15
jge    1380 <Tql2+0x250>
mov    0xc8(%rsp),%rax
movsd  (%r12,%rax,8),%xmm0
xorpd  %xmm6,%xmm6
mov    0x58(%rsp),%rbp
movsd  0x9dd(%rip),%xmm1
movaps %xmm1,%xmm2
movaps %xmm1,%xmm3
jmp    1676 <Tql2+0x546>
nopl   0x0(%rax,%rax,1)
mulsd  %xmm6,%xmm7
mulsd  %xmm1,%xmm0
subsd  %xmm7,%xmm0
movapd %xmm8,%xmm2
movapd %xmm1,%xmm3
mov    0xf8(%rsp),%r15
cmp    %r15,%rbp
jle    1380 <Tql2+0x250>
movapd %xmm0,0x70(%rsp)
movsd  %xmm3,0x18(%rsp)
movaps %xmm2,0x100(%rsp)
movapd %xmm6,0x80(%rsp)
mov    %rbp,%r15
add    $0xffffffffffffffff,%rbp
mov    %r12,%r14
mov    0x8(%rsp),%r12
movsd  -0x8(%r12,%r15,8),%xmm1
movsd  %xmm1,0x10(%rsp)
call   1030 <Pythag@plt>
movsd  0x10(%rsp),%xmm7
movsd  0x18(%rsp),%xmm8
mulsd  %xmm8,%xmm7
movapd %xmm8,%xmm3
movapd 0x70(%rsp),%xmm2
mulsd  %xmm2,%xmm3
movapd 0x80(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movsd  %xmm1,(%r12,%r15,8)
movhpd -0x8(%r12,%r15,8),%xmm2
movapd %xmm2,%xmm1
mov    %r14,%r12
unpcklpd %xmm0,%xmm0
divpd  %xmm0,%xmm1
movsd  -0x8(%r14,%r15,8),%xmm0
movapd %xmm1,%xmm6
unpckhpd %xmm1,%xmm6
movapd %xmm6,%xmm2
xorpd  0x8f7(%rip),%xmm2
movapd %xmm6,%xmm4
mulsd  %xmm0,%xmm4
movapd %xmm1,%xmm5
mulsd  %xmm7,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm6,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%r14,%r15,8)
cmpl   $0x1,0x30(%rsp)
jne    1750 <Tql2+0x620>
xor    %eax,%eax
mov    0x38(%rsp),%rdx
jmp    17ba <Tql2+0x68a>
nopl   0x0(%rax,%rax,1)
movapd %xmm2,%xmm3
unpcklpd %xmm1,%xmm3
xor    %eax,%eax
mov    0x38(%rsp),%rdx
nop
mov    (%rbx,%rax,8),%rcx
movsd  (%rcx,%r15,8),%xmm4
unpcklpd %xmm4,%xmm4
mulpd  %xmm3,%xmm4
movsd  (%rcx,%rbp,8),%xmm5
unpcklpd %xmm5,%xmm5
mulpd  %xmm1,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm5,(%rcx,%rbp,8)
mov    0x8(%rbx,%rax,8),%rcx
movsd  (%rcx,%r15,8),%xmm4
unpcklpd %xmm4,%xmm4
mulpd  %xmm3,%xmm4
movsd  (%rcx,%rbp,8),%xmm5
unpcklpd %xmm5,%xmm5
mulpd  %xmm1,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm5,(%rcx,%rbp,8)
add    $0x2,%rax
cmp    %rax,%r13
jne    1760 <Tql2+0x630>
test   $0x1,%dl
je     1650 <Tql2+0x520>
mov    (%rbx,%rax,8),%rax
movsd  (%rax,%r15,8),%xmm3
unpcklpd %xmm3,%xmm3
unpcklpd %xmm1,%xmm2
mulpd  %xmm3,%xmm2
movsd  (%rax,%rbp,8),%xmm3
unpcklpd %xmm3,%xmm3
mulpd  %xmm1,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm3,(%rax,%rbp,8)
jmp    1650 <Tql2+0x520>
movslq 0x30(%rsp),%rcx
mov    0x8(%rsp),%rdx
movq   $0x0,-0x8(%rdx,%rcx,8)
jmp    180c <Tql2+0x6dc>
mov    %r15d,%eax
add    $0x138,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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