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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
scalar_t__ fabs(double);
double sqrt(double);
void eigenvalue_tred2(double **a, int n, double d[], double e[]) {
  register int l, k, j, i;
  double scale, hh, h, g, f;
  for (i = n; i >= 2; i--) {
    l = i - 1;
    h = scale = 0.0;
    if (l > 1) {
      for (k = 1; k <= l; k++)
        scale += fabs(a[i][k]);
      if (scale == 0.0)
        e[i] = a[i][l];
      else {
        for (k = 1; k <= l; k++) {
          a[i][k] /= scale;
          h += a[i][k] * a[i][k];
        }
        f = a[i][l];
        g = (f >= 0.0 ? -sqrt(h) : sqrt(h));
        e[i] = scale * g;
        h -= f * g;
        a[i][l] = f - g;
        f = 0.0;
        for (j = 1; j <= l; j++) {
          a[j][i] = a[i][j] / h;
          g = 0.0;
          for (k = 1; k <= j; k++)
            g += a[j][k] * a[i][k];
          for (k = j + 1; k <= l; k++)
            g += a[k][j] * a[i][k];
          e[j] = g / h;
          f += e[j] * a[i][j];
        }
        hh = f / (h + h);
        for (j = 1; j <= l; j++) {
          f = a[i][j];
          e[j] = g = e[j] - hh * f;
          for (k = 1; k <= j; k++)
            a[j][k] -= (f * e[k] + g * a[i][k]);
        }
      }
    } else
      e[i] = a[i][l];
    d[i] = h;
  }
  d[1] = 0.0;
  e[1] = 0.0;
  for (i = 1; i <= n; i++) {
    d[i] = a[i][i];
  }
}


x86 assembly (clang, -O0):
<eigenvalue_tred2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x2,-0x30(%rbp)
jl     1612 <eigenvalue_tred2+0x4f2>
mov    -0x30(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
cmpl   $0x1,-0x24(%rbp)
jle    15d0 <eigenvalue_tred2+0x4b0>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     11b4 <eigenvalue_tred2+0x94>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1030 <fabs@plt>
cvtsi2sd %rax,%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1171 <eigenvalue_tred2+0x51>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11f3 <eigenvalue_tred2+0xd3>
jp     11f3 <eigenvalue_tred2+0xd3>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
jmp    15cb <eigenvalue_tred2+0x4ab>
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     1273 <eigenvalue_tred2+0x153>
movsd  -0x38(%rbp),%xmm1
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    11fa <eigenvalue_tred2+0xda>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jb     12ca <eigenvalue_tred2+0x1aa>
movsd  -0x48(%rbp),%xmm0
call   1040 <sqrt@plt>
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x60(%rbp)
jmp    12d9 <eigenvalue_tred2+0x1b9>
movsd  -0x48(%rbp),%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x38(%rbp),%xmm0
mulsd  -0x50(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm2
movsd  -0x48(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x58(%rbp),%xmm0
subsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     14b3 <eigenvalue_tred2+0x393>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     13fb <eigenvalue_tred2+0x2db>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    13a5 <eigenvalue_tred2+0x285>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     145a <eigenvalue_tred2+0x33a>
mov    -0x8(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1404 <eigenvalue_tred2+0x2e4>
movsd  -0x50(%rbp),%xmm0
divsd  -0x48(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    135b <eigenvalue_tred2+0x23b>
movsd  -0x58(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
addsd  -0x48(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x1,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jg     15c6 <eigenvalue_tred2+0x4a6>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x40(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x1,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jg     15b3 <eigenvalue_tred2+0x493>
movsd  -0x58(%rbp),%xmm1
mov    -0x20(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x28(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1547 <eigenvalue_tred2+0x427>
jmp    15b8 <eigenvalue_tred2+0x498>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    14d2 <eigenvalue_tred2+0x3b2>
jmp    15cb <eigenvalue_tred2+0x4ab>
jmp    15f2 <eigenvalue_tred2+0x4d2>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x30(%rbp)
jmp    113d <eigenvalue_tred2+0x1d>
mov    -0x18(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,0x8(%rax)
movl   $0x1,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jg     166d <eigenvalue_tred2+0x54d>
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1631 <eigenvalue_tred2+0x511>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eigenvalue_tred2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%r14
mov    %rdx,%rbp
mov    %rdi,%r15
mov    %esi,%eax
mov    %rax,0x18(%rsp)
mov    %esi,0x14(%rsp)
cmp    $0x2,%esi
jl     1676 <eigenvalue_tred2+0x556>
movabs $0x100000000,%r12
lea    0x8(%r14),%rax
mov    %rax,0x40(%rsp)
lea    0x10(%r15),%rax
mov    %rax,0x30(%rsp)
mov    0x18(%rsp),%r13
mov    %rbp,0x38(%rsp)
jmp    11a8 <eigenvalue_tred2+0x88>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    (%rsp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%r13,8)
xorpd  %xmm9,%xmm9
movsd  %xmm9,0x0(%rbp,%r13,8)
cmp    $0x2,%r13
mov    %rcx,%r13
jle    1676 <eigenvalue_tred2+0x556>
cmp    $0x2,%r13
je     165e <eigenvalue_tred2+0x53e>
lea    -0x1(%r13),%rax
mov    %rax,(%rsp)
xorps  %xmm1,%xmm1
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  %xmm1,0x8(%rsp)
mov    (%r15,%r13,8),%rax
movsd  (%rax,%rbx,8),%xmm0
call   1030 <fabs@plt>
movsd  0x8(%rsp),%xmm1
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  %xmm0,%xmm1
add    $0x1,%rbx
cmp    %rbx,%r13
jne    11d0 <eigenvalue_tred2+0xb0>
ucomisd 0xe09(%rip),%xmm1
mov    (%r15,%r13,8),%rax
jne    1213 <eigenvalue_tred2+0xf3>
jnp    1180 <eigenvalue_tred2+0x60>
xorpd  %xmm9,%xmm9
mov    $0x1,%ecx
mov    (%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mulsd  %xmm0,%xmm0
addsd  %xmm0,%xmm9
add    $0x1,%rcx
cmp    %rcx,%r13
jne    1230 <eigenvalue_tred2+0x110>
movsd  (%rax,%rbx,8),%xmm4
ucomisd 0xdb2(%rip),%xmm9
jb     126a <eigenvalue_tred2+0x14a>
xorps  %xmm0,%xmm0
sqrtsd %xmm9,%xmm0
jmp    129a <eigenvalue_tred2+0x17a>
movapd %xmm9,%xmm0
movsd  %xmm9,0x28(%rsp)
movsd  %xmm1,0x8(%rsp)
movsd  %xmm4,0x20(%rsp)
call   1040 <sqrt@plt>
movsd  0x20(%rsp),%xmm4
movsd  0x8(%rsp),%xmm1
movsd  0x28(%rsp),%xmm9
xorpd  %xmm8,%xmm8
xorpd  %xmm2,%xmm2
cmpnlesd %xmm4,%xmm2
movapd %xmm2,%xmm3
andpd  %xmm0,%xmm3
xorpd  0xd48(%rip),%xmm0
andnpd %xmm0,%xmm2
orpd   %xmm3,%xmm2
mulsd  %xmm2,%xmm1
movsd  %xmm1,(%r14,%r13,8)
movapd %xmm4,%xmm0
mulsd  %xmm2,%xmm0
subsd  %xmm0,%xmm9
subsd  %xmm2,%xmm4
mov    (%r15,%r13,8),%rax
movsd  %xmm4,(%rax,%rbx,8)
lea    0x10(%rax),%r10
mov    $0x1,%ebx
movabs $0x300000000,%r9
mov    0x30(%rsp),%rsi
xor    %r8d,%r8d
jmp    133c <eigenvalue_tred2+0x21c>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
divsd  %xmm9,%xmm0
movsd  %xmm0,(%r14,%rbx,8)
mulsd  (%rax,%rbx,8),%xmm0
addsd  %xmm0,%xmm8
add    $0x8,%r10
add    $0x8,%rsi
add    %r12,%r9
mov    %rdx,%rbx
cmp    %r13,%rdx
je     1450 <eigenvalue_tred2+0x330>
mov    %r8,%rcx
add    $0x1,%r8
movsd  (%rax,%rbx,8),%xmm0
divsd  %xmm9,%xmm0
mov    (%r15,%rbx,8),%rbp
movsd  %xmm0,0x0(%rbp,%r13,8)
mov    $0x1,%edx
xorpd  %xmm0,%xmm0
cmp    $0x3,%rcx
jb     13cd <eigenvalue_tred2+0x2ad>
mov    %rbx,%rdi
and    $0xfffffffffffffffc,%rdi
xorpd  %xmm0,%xmm0
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  0x8(%rbp,%rdx,8),%xmm2
movsd  0x10(%rbp,%rdx,8),%xmm3
mulsd  0x8(%rax,%rdx,8),%xmm2
mulsd  0x10(%rax,%rdx,8),%xmm3
addsd  %xmm0,%xmm2
movsd  0x18(%rbp,%rdx,8),%xmm4
mulsd  0x18(%rax,%rdx,8),%xmm4
addsd  %xmm2,%xmm3
movsd  0x20(%rbp,%rdx,8),%xmm0
mulsd  0x20(%rax,%rdx,8),%xmm0
addsd  %xmm3,%xmm4
addsd  %xmm4,%xmm0
add    $0x4,%rdx
cmp    %rdx,%rdi
jne    1380 <eigenvalue_tred2+0x260>
add    $0x1,%rdx
test   $0x3,%r8b
je     1407 <eigenvalue_tred2+0x2e7>
mov    %ebx,%edi
and    $0x3,%edi
lea    (%rax,%rdx,8),%rcx
lea    0x0(,%rdx,8),%rdx
add    %rbp,%rdx
xor    %ebp,%ebp
nopl   0x0(%rax)
movsd  (%rdx,%rbp,8),%xmm2
mulsd  (%rcx,%rbp,8),%xmm2
addsd  %xmm2,%xmm0
add    $0x1,%rbp
cmp    %rbp,%rdi
jne    13f0 <eigenvalue_tred2+0x2d0>
lea    0x1(%rbx),%rdx
cmp    %r13,%rdx
jge    1310 <eigenvalue_tred2+0x1f0>
mov    %r9,%rdi
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    (%rsi,%rbp,1),%rcx
movsd  (%rcx,%rbx,8),%xmm2
mulsd  (%r10,%rbp,1),%xmm2
addsd  %xmm2,%xmm0
mov    %rdi,%rcx
sar    $0x20,%rcx
add    $0x8,%rbp
add    %r12,%rdi
cmp    %r13,%rcx
jl     1420 <eigenvalue_tred2+0x300>
jmp    1310 <eigenvalue_tred2+0x1f0>
nopl   0x0(%rax,%rax,1)
movapd %xmm9,%xmm0
addsd  %xmm9,%xmm0
xorpd  0xb9d(%rip),%xmm8
divsd  %xmm0,%xmm8
lea    0x8(%rax),%r8
mov    $0x2,%edx
mov    $0x1,%r10d
xor    %r9d,%r9d
jmp    1491 <eigenvalue_tred2+0x371>
nopl   0x0(%rax)
add    $0x1,%r10
add    $0x1,%rdx
cmp    %r13,%r10
je     1650 <eigenvalue_tred2+0x530>
mov    %r9,%rsi
add    $0x1,%r9
movsd  (%rax,%r10,8),%xmm0
movapd %xmm8,%xmm2
mulsd  %xmm0,%xmm2
addsd  (%r14,%r10,8),%xmm2
movsd  %xmm2,(%r14,%r10,8)
mov    (%r15,%r10,8),%rcx
mov    $0x1,%edi
cmp    $0x4,%r9
jb     15b0 <eigenvalue_tred2+0x490>
add    $0x2,%rsi
lea    (%rax,%rsi,8),%rdi
lea    (%r14,%rsi,8),%rbp
lea    0x8(%rcx),%rbx
lea    (%rcx,%rsi,8),%rsi
cmp    %rbp,%rbx
setb   %r11b
cmp    %rsi,0x40(%rsp)
setb   %bpl
cmp    %rdi,%rbx
setb   %bl
cmp    %rsi,%r8
setb   %sil
mov    $0x1,%edi
test   %bpl,%r11b
jne    15b0 <eigenvalue_tred2+0x490>
mov    $0x1,%edi
and    %sil,%bl
jne    15b0 <eigenvalue_tred2+0x490>
mov    %r10,%rsi
and    $0xfffffffffffffffc,%rsi
mov    %r9,%rbp
and    $0xfffffffffffffffc,%rbp
lea    0x1(%rbp),%rdi
movapd %xmm2,%xmm3
unpcklpd %xmm2,%xmm3
movapd %xmm0,%xmm4
unpcklpd %xmm0,%xmm4
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movupd 0x8(%r14,%rbx,8),%xmm5
movupd 0x18(%r14,%rbx,8),%xmm6
movupd 0x8(%rax,%rbx,8),%xmm7
movupd 0x18(%rax,%rbx,8),%xmm1
mulpd  %xmm3,%xmm7
mulpd  %xmm3,%xmm1
mulpd  %xmm4,%xmm5
addpd  %xmm7,%xmm5
mulpd  %xmm4,%xmm6
addpd  %xmm1,%xmm6
movupd 0x8(%rcx,%rbx,8),%xmm1
subpd  %xmm5,%xmm1
movupd 0x18(%rcx,%rbx,8),%xmm5
subpd  %xmm6,%xmm5
movupd %xmm1,0x8(%rcx,%rbx,8)
movupd %xmm5,0x18(%rcx,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%rsi
jne    1540 <eigenvalue_tred2+0x420>
cmp    %rbp,%r9
je     1480 <eigenvalue_tred2+0x360>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %rdi,%rbp
test   $0x1,%dl
jne    15e1 <eigenvalue_tred2+0x4c1>
movsd  (%rax,%rdi,8),%xmm1
mulsd  %xmm2,%xmm1
movsd  (%r14,%rdi,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm1,%xmm3
movsd  (%rcx,%rdi,8),%xmm1
subsd  %xmm3,%xmm1
movsd  %xmm1,(%rcx,%rdi,8)
lea    0x1(%rdi),%rbp
cmp    %rdi,%r9
je     1480 <eigenvalue_tred2+0x360>
nopw   0x0(%rax,%rax,1)
movsd  (%rax,%rbp,8),%xmm1
mulsd  %xmm2,%xmm1
movsd  (%r14,%rbp,8),%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm1,%xmm3
movsd  (%rcx,%rbp,8),%xmm1
subsd  %xmm3,%xmm1
movsd  0x8(%rcx,%rbp,8),%xmm3
movsd  %xmm1,(%rcx,%rbp,8)
movsd  0x8(%rax,%rbp,8),%xmm1
mulsd  %xmm2,%xmm1
movsd  0x8(%r14,%rbp,8),%xmm4
mulsd  %xmm0,%xmm4
addsd  %xmm1,%xmm4
subsd  %xmm4,%xmm3
movsd  %xmm3,0x8(%rcx,%rbp,8)
add    $0x2,%rbp
cmp    %rbp,%rdx
jne    15f0 <eigenvalue_tred2+0x4d0>
jmp    1480 <eigenvalue_tred2+0x360>
nopl   0x0(%rax)
mov    0x38(%rsp),%rbp
mov    (%rsp),%rcx
jmp    1194 <eigenvalue_tred2+0x74>
mov    0x10(%r15),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,0x10(%r14)
movq   $0x0,0x0(%rbp,%r13,8)
movq   $0x0,0x8(%rbp)
movq   $0x0,0x8(%r14)
cmpl   $0x0,0x14(%rsp)
jle    1729 <eigenvalue_tred2+0x609>
mov    0x18(%rsp),%rsi
lea    -0x1(%rsi),%rdx
mov    %esi,%eax
and    $0x3,%eax
mov    $0x1,%ecx
cmp    $0x3,%rdx
jb     1701 <eigenvalue_tred2+0x5e1>
and    $0xfffffffc,%esi
xor    %ecx,%ecx
nop
mov    0x8(%r15,%rcx,8),%rdx
movsd  0x8(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rcx,8)
mov    0x10(%r15,%rcx,8),%rdx
movsd  0x10(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rbp,%rcx,8)
mov    0x18(%r15,%rcx,8),%rdx
movsd  0x18(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rbp,%rcx,8)
mov    0x20(%r15,%rcx,8),%rdx
movsd  0x20(%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x20(%rbp,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rsi
jne    16b0 <eigenvalue_tred2+0x590>
add    $0x1,%rcx
test   %rax,%rax
je     1729 <eigenvalue_tred2+0x609>
cs nopw 0x0(%rax,%rax,1)
mov    (%r15,%rcx,8),%rdx
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rax
jne    1710 <eigenvalue_tred2+0x5f0>
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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