#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ assert(int);
double fabs(double);
double pythag(double, double);
void tqli(double *d, double *e, int n, int np, double *z) {
  int i = 0, iter = 0, k = 0, l = 0, m = 0;
  double b = 0, c = 0, dd = 0, f = 0, g = 0, p = 0, r = 0, s = 0;
  for (i = 2; i <= n; i++)
    e[i - 1 - 1] = e[i - 1];
  e[n - 1] = 0;
  for (l = 1; l <= n; l++) {
    iter = 0;
  labelExtra:
    for (m = l; (m < n); m++) {
      dd = fabs(d[m - 1]) + fabs(d[m + 1 - 1]);
      if (fabs(e[m - 1]) + dd == dd)
        break;
    }
    if (m != l) {
      assert(iter < 30);
      iter++;
      g = (d[l + 1 - 1] - d[l - 1]) / (2 * e[l - 1]);
      r = pythag(g, 1.);
      g = d[m - 1] - d[l - 1] + e[l - 1] / (g + (g < 0 ? -r : r));
      s = 1;
      c = 1;
      p = 0;
      for (i = m - 1; i >= l; i--) {
        f = s * e[i - 1];
        b = c * e[i - 1];
        r = pythag(f, g);
        e[i + 1 - 1] = r;
        if (r == 0) {
          d[i + 1 - 1] -= p;
          e[m - 1] = 0;
          goto labelExtra;
        }
        s = f / r;
        c = g / r;
        g = d[i + 1 - 1] - p;
        r = (d[i - 1] - g) * s + 2 * c * b;
        p = s * r;
        d[i + 1 - 1] = g + p;
        g = c * r - b;
        for (k = 1; k <= n; k++) {
          f = z[(i + 1 - 1) * np + (k - 1)];
          z[(i + 1 - 1) * np + (k - 1)] = s * z[(i - 1) * np + (k - 1)] + c * f;
          z[(i - 1) * np + (k - 1)] = c * z[(i - 1) * np + (k - 1)] - s * f;
        }
      }
      d[l - 1] -= p;
      e[l - 1] = g;
      e[m - 1] = 0;
      goto labelExtra;
    }
  }
  return;
}


x86 assembly (clang, -O0):
<tqli>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
movl   $0x2,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     11e8 <tqli+0xc8>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11a7 <tqli+0x87>
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     174c <tqli+0x62c>
movl   $0x0,-0x28(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12ba <tqli+0x19a>
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xdbe(%rip),%xmm1
pand   %xmm1,%xmm0
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xd9e(%rip),%xmm2
pand   %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xd78(%rip),%xmm1
pand   %xmm1,%xmm0
addsd  -0x50(%rbp),%xmm0
ucomisd -0x50(%rbp),%xmm0
jne    12a7 <tqli+0x187>
jp     12a7 <tqli+0x187>
jmp    12ba <tqli+0x19a>
jmp    12ac <tqli+0x18c>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    121d <tqli+0xfd>
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     1739 <tqli+0x619>
cmpl   $0x1e,-0x28(%rbp)
setl   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <assert@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  0xcfc(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  0xcd9(%rip),%xmm1
call   1040 <pythag@plt>
movsd  %xmm0,-0x70(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x60(%rbp),%xmm0
jbe    13c8 <tqli+0x2a8>
movsd  -0x70(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
jmp    13d5 <tqli+0x2b5>
movsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0x98(%rbp),%xmm3
ff
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  0xc05(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xbf8(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x30(%rbp),%eax
jl     16e8 <tqli+0x5c8>
movsd  -0x78(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x58(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
call   1040 <pythag@plt>
movsd  %xmm0,-0x70(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x70(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    14f5 <tqli+0x3d5>
jp     14f5 <tqli+0x3d5>
movsd  -0x68(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1217 <tqli+0xf7>
movsd  -0x58(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x60(%rbp),%xmm0
divsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x60(%rbp),%xmm0
movsd  -0x78(%rbp),%xmm2
movsd  0xac2(%rip),%xmm1
mulsd  -0x48(%rbp),%xmm1
mulsd  -0x40(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x78(%rbp),%xmm0
mulsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
addsd  -0x68(%rbp),%xmm0
mov    -0x8(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jg     16d5 <tqli+0x5b5>
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
mov    -0x2c(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x78(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
mov    -0x2c(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
add    $0x1,%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
mov    -0x2c(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
mov    -0x2c(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  -0x58(%rbp),%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x20(%rbp),%rax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x18(%rbp),%ecx
mov    -0x2c(%rbp),%edx
sub    $0x1,%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    15d5 <tqli+0x4b5>
jmp    16da <tqli+0x5ba>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    142e <tqli+0x30e>
movsd  -0x68(%rbp),%xmm1
mov    -0x8(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x60(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x30(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1217 <tqli+0xf7>
jmp    173e <tqli+0x61e>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1204 <tqli+0xe4>
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tqli>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %r8,0x8(%rsp)
mov    %ecx,%r12d
mov    %edx,%ebp
mov    %rsi,%r14
mov    %rdi,%r15
cmp    $0x2,%edx
jge    1179 <tqli+0x49>
movslq %ebp,%rax
movq   $0x0,-0x8(%r14,%rax,8)
cmp    $0x1,%ebp
je     1198 <tqli+0x68>
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0x8(%r14),%rsi
lea    -0x1(%rbp),%ebx
lea    0x0(,%rbx,8),%rdx
mov    %r14,%rdi
call   1050 <memmove@plt>
movq   $0x0,(%r14,%rbx,8)
mov    %ebp,%r9d
lea    0x1(%r9),%rsi
movslq %r12d,%rcx
lea    -0x2(%r9),%rax
mov    %rax,0x90(%rsp)
mov    %rax,%rdx
shr    %rdx
add    $0x1,%rdx
mov    %r9d,%eax
and    $0xfffffffe,%eax
mov    %rax,0x80(%rsp)
mov    %r9,%rax
or     $0x1,%rax
mov    %rax,0x78(%rsp)
mov    %rdx,%rax
mov    %rdx,0x88(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x70(%rsp)
mov    0x8(%rsp),%rax
lea    0x10(%rax),%rdx
mov    %rdx,0x68(%rsp)
mov    %rcx,0x20(%rsp)
lea    0x0(,%rcx,8),%rcx
neg    %rcx
mov    %rcx,0xb8(%rsp)
add    $0xfffffffffffffff8,%rax
mov    %rax,0x60(%rsp)
mov    $0x1,%r12d
movapd 0xddd(%rip),%xmm3
mov    %r14,0x38(%rsp)
mov    %r15,0x28(%rsp)
mov    %r9,0x18(%rsp)
mov    %rsi,0x10(%rsp)
jmp    124d <tqli+0x11d>
nopl   0x0(%rax)
add    $0x1,%r12
cmp    %rsi,%r12
je     1167 <tqli+0x37>
xor    %r13d,%r13d
mov    %r12,0x30(%rsp)
jmp    12a5 <tqli+0x175>
nopw   0x0(%rax,%rax,1)
mov    0x28(%rsp),%r15
movsd  (%r15,%rbp,8),%xmm0
subsd  0x50(%rsp),%xmm0
movsd  %xmm0,(%r15,%rbp,8)
mov    0x38(%rsp),%r14
mov    0x40(%rsp),%rax
movq   $0x0,(%r14,%rax,8)
mov    0x18(%rsp),%r9
mov    0x30(%rsp),%r12
movapd 0xd65(%rip),%xmm3
mov    0x4(%rsp),%r13d
mov    0x10(%rsp),%rsi
mov    %r12d,%ebx
cmp    %r9,%r12
jae    12fd <tqli+0x1cd>
movsd  -0x8(%r15,%r12,8),%xmm0
mov    %r12,%rbx
nopw   0x0(%rax,%rax,1)
movapd %xmm0,%xmm1
andpd  %xmm3,%xmm1
movsd  (%r15,%rbx,8),%xmm0
movapd %xmm0,%xmm2
andpd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
movsd  -0x8(%r14,%rbx,8),%xmm1
andpd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
ucomisd %xmm2,%xmm1
jne    12f1 <tqli+0x1c1>
jnp    12fd <tqli+0x1cd>
add    $0x1,%rbx
cmp    %rbx,%r9
jne    12c0 <tqli+0x190>
mov    %r9d,%ebx
mov    %ebx,%eax
cmp    %rax,%r12
je     1240 <tqli+0x110>
xor    %edi,%edi
cmp    $0x1e,%r13d
setb   %dil
call   1030 <assert@plt>
movsd  (%r15,%r12,8),%xmm0
subsd  -0x8(%r15,%r12,8),%xmm0
add    $0x1,%r13d
movsd  -0x8(%r14,%r12,8),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,0x50(%rsp)
movsd  0xcdb(%rip),%xmm1
call   1040 <pythag@plt>
movslq %ebx,%rdx
lea    -0x1(%rdx),%r8
movsd  -0x8(%r15,%rdx,8),%xmm2
movsd  -0x8(%r15,%r12,8),%xmm5
subsd  %xmm5,%xmm2
movsd  -0x8(%r14,%r12,8),%xmm1
xorpd  %xmm10,%xmm10
movsd  0x50(%rsp),%xmm6
movapd %xmm6,%xmm3
cmpltsd %xmm10,%xmm3
movapd %xmm3,%xmm4
andnpd %xmm0,%xmm4
xorpd  0xc81(%rip),%xmm0
andpd  %xmm3,%xmm0
orpd   %xmm4,%xmm0
addsd  %xmm6,%xmm0
divsd  %xmm0,%xmm1
addsd  %xmm2,%xmm1
cmp    %rdx,%r12
jge    1770 <tqli+0x640>
mov    %r13d,0x4(%rsp)
mov    %r8,%rsi
mov    0x20(%rsp),%rcx
imul   %rcx,%rsi
mov    0x18(%rsp),%rax
lea    (%rax,%rsi,1),%rdi
mov    %rdi,0x98(%rsp)
add    $0xfffffffffffffffe,%rdx
imul   %rcx,%rdx
add    %rdx,%rax
mov    %rax,0xa8(%rsp)
mov    0x68(%rsp),%rax
lea    (%rax,%rsi,8),%r13
lea    (%rax,%rdx,8),%r14
mov    0x60(%rsp),%rax
mov    %rsi,0xb0(%rsp)
lea    (%rax,%rsi,8),%r15
mov    %rdx,0xa0(%rsp)
lea    (%rax,%rdx,8),%r12
xorpd  %xmm10,%xmm10
xor    %r10d,%r10d
mov    %r8,0x40(%rsp)
movsd  0xbff(%rip),%xmm12
movapd %xmm12,%xmm0
cs nopw 0x0(%rax,%rax,1)
movsd  %xmm1,0xc0(%rsp)
movapd %xmm12,0xe0(%rsp)
mov    %r10,0x48(%rsp)
movapd %xmm10,0x50(%rsp)
mov    %r8,%rbp
mov    0x38(%rsp),%rbx
movsd  -0x8(%rbx,%r8,8),%xmm2
movsd  %xmm2,0xc8(%rsp)
mulsd  %xmm2,%xmm0
movapd %xmm0,0xd0(%rsp)
call   1040 <pythag@plt>
movsd  %xmm0,(%rbx,%rbp,8)
ucomisd 0xba2(%rip),%xmm0
jne    148e <tqli+0x35e>
jnp    1260 <tqli+0x130>
lea    -0x1(%rbp),%r8
movapd 0xe0(%rsp),%xmm8
mulsd  0xc8(%rsp),%xmm8
movapd 0xd0(%rsp),%xmm3
divsd  %xmm0,%xmm3
movsd  0xc0(%rsp),%xmm12
divsd  %xmm0,%xmm12
mov    0x28(%rsp),%rax
movsd  (%rax,%rbp,8),%xmm0
subsd  0x50(%rsp),%xmm0
movsd  (%rax,%r8,8),%xmm1
subsd  %xmm0,%xmm1
movapd %xmm12,%xmm2
addsd  %xmm12,%xmm2
mulsd  %xmm8,%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
movapd %xmm3,%xmm10
mulsd  %xmm1,%xmm10
addsd  %xmm10,%xmm0
movsd  %xmm0,(%rax,%rbp,8)
movapd %xmm3,%xmm11
xorpd  0xafb(%rip),%xmm11
mov    $0x1,%ecx
mov    0x18(%rsp),%r9
cmp    $0x2,%r9d
movapd %xmm3,%xmm0
mov    0x10(%rsp),%rbx
jae    1540 <tqli+0x410>
mov    0x48(%rsp),%r10
jmp    16d0 <tqli+0x5a0>
nopl   0x0(%rax,%rax,1)
mov    0x48(%rsp),%r10
mov    %r10,%rdx
imul   0x20(%rsp),%rdx
mov    0xb0(%rsp),%rsi
sub    %rdx,%rsi
mov    0x8(%rsp),%rax
lea    (%rax,%rsi,8),%rsi
mov    0xa8(%rsp),%rdi
sub    %rdx,%rdi
lea    (%rax,%rdi,8),%rdi
cmp    %rdi,%rsi
jae    15a2 <tqli+0x472>
mov    0x98(%rsp),%rsi
sub    %rdx,%rsi
mov    0x8(%rsp),%rax
lea    (%rax,%rsi,8),%rsi
mov    0xa0(%rsp),%rdi
sub    %rdx,%rdi
lea    (%rax,%rdi,8),%rdx
cmp    %rsi,%rdx
jb     16d0 <tqli+0x5a0>
movapd %xmm12,%xmm2
unpcklpd %xmm12,%xmm2
movapd %xmm0,%xmm3
unpcklpd %xmm0,%xmm3
movapd %xmm11,%xmm9
unpcklpd %xmm11,%xmm9
cmpq   $0x2,0x90(%rsp)
jae    15d0 <tqli+0x4a0>
xor    %ecx,%ecx
jmp    1666 <tqli+0x536>
mov    0x70(%rsp),%rdx
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movupd -0x10(%r13,%rcx,8),%xmm5
movupd -0x10(%r14,%rcx,8),%xmm6
movapd %xmm2,%xmm7
mulpd  %xmm5,%xmm7
movapd %xmm3,%xmm4
mulpd  %xmm6,%xmm4
addpd  %xmm7,%xmm4
movupd %xmm4,-0x10(%r13,%rcx,8)
mulpd  %xmm9,%xmm5
mulpd  %xmm2,%xmm6
addpd  %xmm5,%xmm6
movupd %xmm6,-0x10(%r14,%rcx,8)
movupd 0x0(%r13,%rcx,8),%xmm4
movupd (%r14,%rcx,8),%xmm5
movapd %xmm2,%xmm6
mulpd  %xmm4,%xmm6
movapd %xmm3,%xmm7
mulpd  %xmm5,%xmm7
addpd  %xmm6,%xmm7
movupd %xmm7,0x0(%r13,%rcx,8)
mulpd  %xmm9,%xmm4
mulpd  %xmm2,%xmm5
addpd  %xmm4,%xmm5
movupd %xmm5,(%r14,%rcx,8)
add    $0x4,%rcx
add    $0xfffffffffffffffe,%rdx
jne    15e0 <tqli+0x4b0>
testb  $0x1,0x88(%rsp)
01
je     16c0 <tqli+0x590>
mov    %rbp,%rdx
mov    0x20(%rsp),%rax
imul   %rax,%rdx
mov    %r8,%rsi
imul   %rax,%rsi
add    %rcx,%rdx
mov    0x8(%rsp),%rax
movupd (%rax,%rdx,8),%xmm4
add    %rcx,%rsi
movupd (%rax,%rsi,8),%xmm5
movapd %xmm2,%xmm6
mulpd  %xmm4,%xmm6
mulpd  %xmm5,%xmm3
addpd  %xmm6,%xmm3
movupd %xmm3,(%rax,%rdx,8)
mulpd  %xmm4,%xmm9
mulpd  %xmm5,%xmm2
addpd  %xmm9,%xmm2
movupd %xmm2,(%rax,%rsi,8)
mov    0x78(%rsp),%rcx
cmp    0x80(%rsp),%r9
je     1716 <tqli+0x5e6>
nop
movsd  (%r15,%rcx,8),%xmm4
movapd %xmm12,%xmm2
mulsd  %xmm4,%xmm2
movsd  (%r12,%rcx,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm2,%xmm3
movsd  %xmm3,(%r15,%rcx,8)
mulsd  %xmm11,%xmm4
movsd  (%r12,%rcx,8),%xmm2
mulsd  %xmm12,%xmm2
addsd  %xmm4,%xmm2
movsd  %xmm2,(%r12,%rcx,8)
add    $0x1,%rcx
cmp    %rcx,%rbx
jne    16d0 <tqli+0x5a0>
mulsd  %xmm12,%xmm1
subsd  %xmm8,%xmm1
add    $0x1,%r10
mov    0xb8(%rsp),%rax
add    %rax,%r13
add    %rax,%r14
add    %rax,%r15
add    %rax,%r12
cmp    0x30(%rsp),%rbp
jg     1430 <tqli+0x300>
mov    0x28(%rsp),%r15
mov    0x30(%rsp),%r12
movsd  -0x8(%r15,%r12,8),%xmm5
mov    0x38(%rsp),%r14
movapd 0x89f(%rip),%xmm3
mov    0x4(%rsp),%r13d
mov    0x40(%rsp),%r8
jmp    177d <tqli+0x64d>
nopl   (%rax)
mov    0x18(%rsp),%r9
movapd 0x883(%rip),%xmm3
mov    0x10(%rsp),%rsi
subsd  %xmm10,%xmm5
movsd  %xmm5,-0x8(%r15,%r12,8)
movsd  %xmm1,-0x8(%r14,%r12,8)
movq   $0x0,(%r14,%r8,8)
jmp    12a5 <tqli+0x175>

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

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