int eigen(a, n, d, v, nr)
double *a;
int n;
double *d;
double *v;
int *nr;
{
  int nrot;
  int j, iq, ip, i;
  double tresh, theta, tau, t, sm, s, h, g, c;
  double b[256], z[256];
  for (ip = 0; ip < n; ip++) {
    for (iq = 0; iq < n; iq++) {
      v[ip * n + iq] = 0.0;
    }
    v[ip * n + ip] = 1.0;
  }
  for (ip = 0; ip < n; ip++) {
    b[ip] = a[ip * n + ip];
    d[ip] = b[ip];
    z[ip] = 0.0;
  }
  nrot = 0;
  for (i = 1; i < 50; i++) {
    sm = 0.0;
    for (ip = 0; ip < n - 1; ip++) {
      for (iq = ip + 1; iq < n; iq++) {
        sm += fabs(a[ip * n + iq]);
      }
    }
    if (sm == 0.0) {
      *nr = nrot;
      return 0;
    }
    if (i < 6) {
      tresh = (double)0.2 * sm / (double)(n * n);
    } else {
      tresh = 0.0;
    }
    for (ip = 0; ip < n - 1; ip++) {
      for (iq = ip + 1; iq < n; iq++) {
        g = 100.0 * fabs(a[ip * n + iq]);
        if ((i > 6) && ((fabs(d[ip]) + g) == fabs(d[ip])) &&
            ((fabs(d[iq]) + g) == fabs(d[iq]))) {
          a[ip * n + iq] = 0.0;
        } else if (fabs(a[ip * n + iq]) > tresh) {
          h = d[iq] - d[ip];
          if ((fabs(h) + g) == fabs(h)) {
            t = a[ip * n + iq] / h;
          } else {
            theta = 0.5 * h / a[ip * n + iq];
            t = 1.0 / (fabs(theta) + sqrt(1.0 + theta * theta));
            if (theta < 0.0)
              t = -t;
          }
          c = 1.0 / sqrt(1 + t * t);
          s = t * c;
          tau = s / (1.0 + c);
          h = t * a[ip * n + iq];
          z[ip] = z[ip] - h;
          z[iq] = z[iq] + h;
          d[ip] = d[ip] - h;
          d[iq] = d[iq] + h;
          a[ip * n + iq] = 0.0;
          for (j = 0; j <= ip - 1; j++) {
            g = a[j * n + ip];
            h = a[j * n + iq];
            a[j * n + ip] = g - s * (h + g * tau);
            a[j * n + iq] = h + s * (g - h * tau);
          }
          for (j = ip + 1; j <= iq - 1; j++) {
            g = a[ip * n + j];
            h = a[j * n + iq];
            a[ip * n + j] = g - s * (h + g * tau);
            a[j * n + iq] = h + s * (g - h * tau);
          }
          for (j = iq + 1; j < n; j++) {
            g = a[ip * n + j];
            h = a[iq * n + j];
            a[ip * n + j] = g - s * (h + g * tau);
            a[iq * n + j] = h + s * (g - h * tau);
          }
          for (j = 0; j < n; j++) {
            g = v[j * n + ip];
            h = v[j * n + iq];
            v[j * n + ip] = g - s * (h + g * tau);
            v[j * n + iq] = h + s * (g - h * tau);
          }
          nrot++;
        }
      }
    }
    for (ip = 0; ip < n; ip++) {
      b[ip] = b[ip] + z[ip];
      d[ip] = b[ip];
      z[ip] = 0.0;
    }
  }
  printf("routine JACOBI: 50 iterations should not happen\n");
  *nr = nrot;
  return -1;
}


x86 assembly (clang, -O0):
<eigen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10a0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11b7 <eigen+0x97>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    118b <eigen+0x6b>
mov    -0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1158 <eigen+0x38>
mov    -0x28(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xe6c(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1145 <eigen+0x25>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1225 <eigen+0x105>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x890(%rbp,%rax,8)
ff ff
movslq -0x40(%rbp),%rax
movsd  -0x890(%rbp,%rax,8),%xmm0
ff ff
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x40(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1090(%rbp,%rax,8)
ff ff
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    11be <eigen+0x9e>
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x44(%rbp)
cmpl   $0x32,-0x44(%rbp)
jge    1bb3 <eigen+0xa93>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    12be <eigen+0x19e>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    12ab <eigen+0x18b>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xd91(%rip),%xmm1
pand   %xmm1,%xmm0
addsd  -0x70(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1266 <eigen+0x146>
jmp    12b0 <eigen+0x190>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    124c <eigen+0x12c>
movsd  -0x70(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    12eb <eigen+0x1cb>
jp     12eb <eigen+0x1cb>
mov    -0x34(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    1bd1 <eigen+0xab1>
cmpl   $0x6,-0x44(%rbp)
jge    131b <eigen+0x1fb>
movsd  0xd03(%rip),%xmm0
mulsd  -0x70(%rbp),%xmm0
mov    -0x14(%rbp),%eax
imul   -0x14(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1323 <eigen+0x203>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1b2e <eigen+0xa0e>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1b1b <eigen+0x9fb>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xcb3(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  0xc8f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
cmpl   $0x6,-0x44(%rbp)
jle    143d <eigen+0x31d>
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xc7d(%rip),%xmm1
pand   %xmm1,%xmm0
addsd  -0x88(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xc5d(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jne    143d <eigen+0x31d>
jp     143d <eigen+0x31d>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xc35(%rip),%xmm1
pand   %xmm1,%xmm0
addsd  -0x88(%rbp),%xmm0
ff
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xc15(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jne    143d <eigen+0x31d>
jp     143d <eigen+0x31d>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1b08 <eigen+0x9e8>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xbc6(%rip),%xmm1
pand   %xmm1,%xmm0
ucomisd -0x50(%rbp),%xmm0
jbe    1b03 <eigen+0x9e3>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
movaps 0xb8c(%rip),%xmm1
pand   %xmm1,%xmm0
addsd  -0x88(%rbp),%xmm0
ff
movsd  -0x80(%rbp),%xmm1
movaps 0xb74(%rip),%xmm2
pand   %xmm2,%xmm1
ucomisd %xmm1,%xmm0
jne    14e5 <eigen+0x3c5>
jp     14e5 <eigen+0x3c5>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    1595 <eigen+0x475>
movsd  0xb2b(%rip),%xmm0
mulsd  -0x80(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
movaps 0xb07(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x1098(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xad5(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movsd  -0x1098(%rbp),%xmm1
ff
addsd  %xmm0,%xmm1
movsd  0xab8(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x58(%rbp),%xmm0
jbe    1590 <eigen+0x470>
movsd  -0x68(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x68(%rbp)
jmp    1595 <eigen+0x475>
movsd  -0x68(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa65(%rip),%xmm1
addsd  %xmm1,%xmm0
call   1040 <sqrt@plt>
movaps %xmm0,%xmm1
movsd  0xa51(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x68(%rbp),%xmm0
mulsd  -0x90(%rbp),%xmm0
ff
movsd  %xmm0,-0x78(%rbp)
movsd  -0x78(%rbp),%xmm0
movsd  0xa26(%rip),%xmm1
addsd  -0x90(%rbp),%xmm1
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x68(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movslq -0x40(%rbp),%rax
movsd  -0x1090(%rbp,%rax,8),%xmm0
ff ff
subsd  -0x80(%rbp),%xmm0
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x1090(%rbp,%rax,8)
ff ff
movslq -0x3c(%rbp),%rax
movsd  -0x1090(%rbp,%rax,8),%xmm0
ff ff
addsd  -0x80(%rbp),%xmm0
movslq -0x3c(%rbp),%rax
movsd  %xmm0,-0x1090(%rbp,%rax,8)
ff ff
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  -0x80(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
addsd  -0x80(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x40(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     17c4 <eigen+0x6a4>
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm3
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x60(%rbp),%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm4
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    16b7 <eigen+0x597>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
mov    -0x3c(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     18da <eigen+0x7ba>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm3
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x60(%rbp),%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm4
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    17cd <eigen+0x6ad>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    19eb <eigen+0x8cb>
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm3
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x60(%rbp),%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x40(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm4
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x3c(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x38(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    18e3 <eigen+0x7c3>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1afa <eigen+0x9da>
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x88(%rbp),%xmm1
ff
movsd  -0x78(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm3
movsd  -0x88(%rbp),%xmm2
ff
movsd  -0x60(%rbp),%xmm4
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x40(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x80(%rbp),%xmm1
movsd  -0x78(%rbp),%xmm0
movsd  -0x88(%rbp),%xmm3
ff
movsd  -0x80(%rbp),%xmm2
movsd  -0x60(%rbp),%xmm4
movq   %xmm2,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm2
mulsd  %xmm4,%xmm2
addsd  %xmm3,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
mov    -0x28(%rbp),%rax
mov    -0x38(%rbp),%ecx
imul   -0x14(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    19f2 <eigen+0x8d2>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1b08 <eigen+0x9e8>
jmp    1b0d <eigen+0x9ed>
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1344 <eigen+0x224>
jmp    1b20 <eigen+0xa00>
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    132a <eigen+0x20a>
movl   $0x0,-0x40(%rbp)
mov    -0x40(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1ba0 <eigen+0xa80>
movslq -0x40(%rbp),%rax
movsd  -0x890(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
addsd  -0x1090(%rbp,%rax,8),%xmm0
ff ff
movslq -0x40(%rbp),%rax
movsd  %xmm0,-0x890(%rbp,%rax,8)
ff ff
movslq -0x40(%rbp),%rax
movsd  -0x890(%rbp,%rax,8),%xmm0
ff ff
mov    -0x20(%rbp),%rax
movslq -0x40(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movslq -0x40(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x1090(%rbp,%rax,8)
ff ff
mov    -0x40(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x40(%rbp)
jmp    1b35 <eigen+0xa15>
jmp    1ba5 <eigen+0xa85>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    1233 <eigen+0x113>
lea    0x476(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x34(%rbp),%ecx
mov    -0x30(%rbp),%rax
mov    %ecx,(%rax)
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eigen>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1188,%rsp
mov    %r8,0xe0(%rsp)
mov    %rcx,%r13
mov    %esi,%ecx
test   %esi,%esi
mov    %rdx,0x38(%rsp)
mov    %rsi,0x10(%rsp)
mov    %rdi,0x30(%rsp)
mov    %rcx,(%rsp)
jle    1349 <eigen+0x219>
lea    0x0(,%rcx,8),%r12
xor    %ebp,%ebp
mov    %rcx,%rax
movabs $0x3ff0000000000000,%r15
add    $0xffffffffffffffff,%rax
mov    %rax,0x18(%rsp)
je     12fb <eigen+0x1cb>
mov    %ecx,%eax
and    $0xfffffffe,%eax
mov    %rax,0x28(%rsp)
lea    (%rsi,%rsi,1),%eax
mov    %eax,0x20(%rsp)
shl    $0x4,%rcx
add    $0x10,%rcx
mov    %rcx,0x50(%rsp)
mov    %r13,%r14
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movslq %ebp,%rbp
lea    0x0(,%rbp,8),%rdi
add    %r13,%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
mov    %r15,(%r14)
mov    0x10(%rsp),%rax
add    %ebp,%eax
cltq
lea    0x0(,%rax,8),%rdi
add    %r13,%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
mov    (%rsp),%rcx
mov    %r15,0x8(%r14,%rcx,8)
add    $0x2,%rbx
add    0x20(%rsp),%ebp
add    0x50(%rsp),%r14
cmp    %rbx,0x28(%rsp)
jne    11c0 <eigen+0x90>
test   $0x1,%cl
je     124c <eigen+0x11c>
mov    %ebx,%eax
imul   0x10(%rsp),%eax
cltq
lea    0x0(,%rax,8),%rdi
add    %r13,%rdi
xor    %esi,%esi
mov    %r12,%rdx
call   1040 <memset@plt>
mov    (%rsp),%rcx
mov    %rcx,%rax
imul   %rbx,%rax
add    %rbx,%rax
mov    %r15,0x0(%r13,%rax,8)
mov    0x10(%rsp),%rsi
test   %esi,%esi
mov    0x38(%rsp),%rdx
mov    0x30(%rsp),%rdi
jle    1349 <eigen+0x219>
lea    0x0(,%rcx,8),%rdx
lea    0x180(%rsp),%rdi
xor    %ebx,%ebx
xor    %esi,%esi
mov    %rcx,%rbp
call   1040 <memset@plt>
cmpq   $0x0,0x18(%rsp)
je     130b <eigen+0x1db>
mov    %ebp,%r8d
and    $0xfffffffe,%r8d
mov    0x10(%rsp),%rsi
lea    (%rsi,%rsi,1),%r9d
mov    $0x1,%r11d
mov    %esi,%ebp
xor    %eax,%eax
mov    0x38(%rsp),%rdx
mov    0x30(%rsp),%rdi
nop
movslq %ebp,%rbp
lea    (%r11,%rbp,1),%r10
movslq %ebx,%rbx
lea    (%rax,%rbx,1),%rcx
movsd  (%rdi,%rcx,8),%xmm0
movsd  %xmm0,0x980(%rsp,%rax,8)
movsd  %xmm0,(%rdx,%rax,8)
movsd  (%rdi,%r10,8),%xmm0
movsd  %xmm0,0x988(%rsp,%rax,8)
movsd  %xmm0,0x8(%rdx,%rax,8)
add    $0x2,%rax
add    %r9d,%ebx
add    $0x2,%r11
add    %r9d,%ebp
cmp    %rax,%r8
jne    12b0 <eigen+0x180>
jmp    131c <eigen+0x1ec>
xor    %ebx,%ebx
test   $0x1,%cl
jne    121b <eigen+0xeb>
jmp    124c <eigen+0x11c>
xor    %eax,%eax
mov    0x38(%rsp),%rdx
mov    0x10(%rsp),%rsi
mov    0x30(%rsp),%rdi
mov    (%rsp),%rcx
test   $0x1,%cl
je     1349 <eigen+0x219>
mov    %rcx,%rbp
mov    %eax,%ecx
imul   %esi,%ecx
movslq %ecx,%rcx
add    %rax,%rcx
movsd  (%rdi,%rcx,8),%xmm0
mov    %rbp,%rcx
movsd  %xmm0,0x980(%rsp,%rax,8)
movsd  %xmm0,(%rdx,%rax,8)
mov    %r13,0x168(%rsp)
lea    -0x1(%rsi),%r9d
mov    %esi,%eax
imul   %esi,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x128(%rsp)
movslq %esi,%r10
lea    0x0(,%r10,8),%r15
lea    0x8(,%r10,8),%rax
mov    %rax,0x20(%rsp)
lea    0x10(%rdi,%r10,8),%rax
mov    %rax,0x88(%rsp)
lea    (%r10,%r10,1),%rax
mov    %rax,0x130(%rsp)
lea    -0x2(%r10),%rax
mov    %rax,0xb0(%rsp)
mov    %ecx,%eax
and    $0xfffffffc,%eax
mov    %rax,0x100(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0xf8(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0xf0(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0xe8(%rsp)
lea    (%rdi,%r10,8),%rax
add    $0x8,%rax
mov    %rax,0x120(%rsp)
lea    0x8(%rdi),%rax
mov    %rax,0x118(%rsp)
lea    0x10(%rdi),%rax
mov    %rax,0x110(%rsp)
lea    (%rdi,%r10,8),%rax
mov    %rax,0x108(%rsp)
movapd 0xbe1(%rip),%xmm9
xorpd  %xmm10,%xmm10
movsd  0xbfb(%rip),%xmm11
movsd  0xc02(%rip),%xmm12
movapd 0xbd1(%rip),%xmm13
movl   $0x1,0xc(%rsp)
movl   $0x0,0x8(%rsp)
mov    %r10,0x58(%rsp)
mov    %r9,0x138(%rsp)
jmp    1474 <eigen+0x344>
xchg   %ax,%ax
mov    0xc(%rsp),%eax
add    $0x1,%eax
mov    %eax,0xc(%rsp)
cmp    $0x32,%eax
je     1e54 <eigen+0xd24>
cmp    $0x2,%esi
jl     1e4c <eigen+0xd1c>
xorpd  %xmm0,%xmm0
mov    (%rsp),%rax
mov    %rdi,%rcx
xor    %ebx,%ebx
jmp    149e <eigen+0x36e>
nopl   0x0(%rax)
add    0x20(%rsp),%rcx
add    $0xffffffffffffffff,%rax
cmp    %r9,%rbx
je     14d0 <eigen+0x3a0>
add    $0x1,%rbx
cmp    %r10,%rbx
jge    1490 <eigen+0x360>
mov    $0x1,%ebp
nopl   0x0(%rax)
movsd  (%rcx,%rbp,8),%xmm1
andpd  %xmm9,%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rbp
cmp    %rbp,%rax
jne    14b0 <eigen+0x380>
jmp    1490 <eigen+0x360>
nopl   0x0(%rax)
ucomisd %xmm10,%xmm0
jne    14dd <eigen+0x3ad>
jnp    1e4c <eigen+0xd1c>
xorpd  %xmm14,%xmm14
cmpl   $0x5,0xc(%rsp)
ja     14ff <eigen+0x3cf>
mulsd  0xb2f(%rip),%xmm0
divsd  0x128(%rsp),%xmm0
movapd %xmm0,%xmm14
cmp    $0x2,%esi
jl     1c80 <eigen+0xb50>
mov    $0x1,%eax
mov    %rax,0xa8(%rsp)
mov    $0x2,%ecx
mov    $0x8,%r13d
mov    0x108(%rsp),%r12
mov    %rdi,0x40(%rsp)
mov    0x88(%rsp),%rbx
mov    0x110(%rsp),%rax
mov    %rax,0xa0(%rsp)
mov    0xb0(%rsp),%rax
mov    %rax,0x98(%rsp)
mov    0x118(%rsp),%rax
mov    %rax,0xc8(%rsp)
mov    0x120(%rsp),%rax
mov    %rax,0x90(%rsp)
xor    %r14d,%r14d
xor    %r11d,%r11d
movsd  %xmm14,0xc0(%rsp)
jmp    160d <eigen+0x4dd>
nopw   0x0(%rax,%rax,1)
mov    %rdi,%r8
addq   $0x1,0xa8(%rsp)
mov    0x6c(%rsp),%ecx
add    $0x1,%ecx
mov    0x158(%rsp),%r13
add    $0x8,%r13
add    $0x8,%r14
mov    0x20(%rsp),%rax
add    %rax,0x90(%rsp)
add    %rax,0xc8(%rsp)
addq   $0xffffffffffffffff,0x98(%rsp)
add    %rax,0xa0(%rsp)
mov    0x148(%rsp),%rbx
add    %rax,%rbx
add    %r15,0x40(%rsp)
mov    0x150(%rsp),%r12
add    %r15,%r12
mov    0x138(%rsp),%r9
mov    0x60(%rsp),%r11
cmp    %r9,%r11
mov    %r8,%rdi
je     1c80 <eigen+0xb50>
lea    0x1(%r11),%rax
mov    %rax,0x60(%rsp)
cmp    %r10,%rax
mov    %ecx,0x6c(%rsp)
mov    %r13,0x158(%rsp)
mov    %r12,0x150(%rsp)
mov    %rbx,0x148(%rsp)
jge    1590 <eigen+0x460>
mov    0x20(%rsp),%rax
imul   %r11,%rax
mov    %rax,0xb8(%rsp)
mov    %r11,%rsi
imul   %r10,%rsi
lea    (%rsi,%r10,1),%rax
mov    %rdi,%r8
lea    (%rdi,%rax,8),%rax
mov    %rax,0x140(%rsp)
mov    0x130(%rsp),%rax
add    %rsi,%rax
mov    %rax,0x160(%rsp)
mov    %rsi,%rax
movslq %ecx,%rcx
mov    %rbx,0xd8(%rsp)
mov    0xa0(%rsp),%rsi
mov    %rsi,0xd0(%rsp)
mov    0x98(%rsp),%rbp
mov    0x90(%rsp),%rsi
mov    %rsi,0x50(%rsp)
mov    %r13,%rbx
xor    %r13d,%r13d
mov    0xa8(%rsp),%r9
mov    %r11,0x18(%rsp)
mov    (%rsp),%rsi
mov    %rax,0x170(%rsp)
jmp    172d <eigen+0x5fd>
nopl   (%rax)
addl   $0x1,0x8(%rsp)
mov    0x18(%rsp),%r11
mov    0x170(%rsp),%rax
mov    0x48(%rsp),%rcx
mov    0x70(%rsp),%rbp
mov    0x28(%rsp),%r9
add    $0x1,%r9
add    $0x1,%rcx
add    $0x1,%r13
add    $0x8,%rbx
addq   $0x8,0x50(%rsp)
add    $0xffffffffffffffff,%rbp
addq   $0x8,0xd0(%rsp)
mov    0x20(%rsp),%rdi
add    %rdi,0xd8(%rsp)
add    %r15,%r12
cmp    %rsi,%r9
je     1593 <eigen+0x463>
mov    %r9,%rdi
mov    %r9,0x28(%rsp)
add    %rax,%r9
mov    %r8,%rdi
movsd  (%r8,%r9,8),%xmm4
movapd %xmm4,%xmm1
andpd  %xmm9,%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm11,%xmm0
cmpl   $0x7,0xc(%rsp)
jb     17b0 <eigen+0x680>
movsd  (%rdx,%r11,8),%xmm2
andpd  %xmm9,%xmm2
movapd %xmm0,%xmm3
addsd  %xmm2,%xmm3
ucomisd %xmm2,%xmm3
jne    17b0 <eigen+0x680>
jp     17b0 <eigen+0x680>
mov    0x28(%rsp),%rdi
movsd  (%rdx,%rdi,8),%xmm2
mov    %r8,%rdi
andpd  %xmm9,%xmm2
movapd %xmm0,%xmm3
addsd  %xmm2,%xmm3
ucomisd %xmm2,%xmm3
jne    17b0 <eigen+0x680>
jp     17b0 <eigen+0x680>
movq   $0x0,(%rdi,%r9,8)
jmp    16ec <eigen+0x5bc>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
ucomisd %xmm14,%xmm1
jbe    16ec <eigen+0x5bc>
mov    0x28(%rsp),%rax
movsd  (%rdx,%rax,8),%xmm2
subsd  (%rdx,%r11,8),%xmm2
movapd %xmm2,%xmm1
andpd  %xmm9,%xmm1
addsd  %xmm1,%xmm0
ucomisd %xmm1,%xmm0
mov    %rcx,0x48(%rsp)
mov    %r9,0x178(%rsp)
jne    17f6 <eigen+0x6c6>
jp     17f6 <eigen+0x6c6>
divsd  %xmm2,%xmm4
jmp    18a0 <eigen+0x770>
mulsd  0x832(%rip),%xmm2
divsd  %xmm4,%xmm2
movapd %xmm2,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm12,%xmm0
ucomisd %xmm10,%xmm0
jb     181c <eigen+0x6ec>
sqrtsd %xmm0,%xmm0
jmp    1878 <eigen+0x748>
movapd %xmm2,0x70(%rsp)
call   1050 <sqrt@plt>
movapd 0x70(%rsp),%xmm2
mov    0x18(%rsp),%r11
movsd  0xc0(%rsp),%xmm14
movapd 0x7cb(%rip),%xmm13
movsd  0x7ea(%rip),%xmm12
movsd  0x7d1(%rip),%xmm11
xorpd  %xmm10,%xmm10
movapd 0x79b(%rip),%xmm9
mov    0x58(%rsp),%r10
mov    (%rsp),%rsi
mov    0x30(%rsp),%rdi
mov    0x38(%rsp),%rdx
ucomisd %xmm2,%xmm10
andpd  %xmm9,%xmm2
addsd  %xmm0,%xmm2
movapd %xmm12,%xmm4
divsd  %xmm2,%xmm4
jbe    18a0 <eigen+0x770>
xorpd  %xmm13,%xmm4
cs nopw 0x0(%rax,%rax,1)
movapd %xmm4,%xmm0
mulsd  %xmm4,%xmm0
addsd  %xmm12,%xmm0
ucomisd %xmm10,%xmm0
jb     18c0 <eigen+0x790>
sqrtsd %xmm0,%xmm0
jmp    191c <eigen+0x7ec>
nopw   0x0(%rax,%rax,1)
movapd %xmm4,0x70(%rsp)
call   1050 <sqrt@plt>
movapd 0x70(%rsp),%xmm4
mov    0x18(%rsp),%r11
movsd  0xc0(%rsp),%xmm14
movapd 0x727(%rip),%xmm13
movsd  0x746(%rip),%xmm12
movsd  0x72d(%rip),%xmm11
xorpd  %xmm10,%xmm10
movapd 0x6f7(%rip),%xmm9
mov    0x58(%rsp),%r10
mov    (%rsp),%rsi
mov    0x30(%rsp),%rdi
mov    0x38(%rsp),%rdx
mov    0x60(%rsp),%r9
mov    %rbp,0x70(%rsp)
movapd %xmm12,%xmm2
divsd  %xmm0,%xmm2
movapd %xmm4,%xmm0
mulsd  %xmm2,%xmm0
mov    0x178(%rsp),%rcx
mulsd  (%rdi,%rcx,8),%xmm4
addsd  %xmm12,%xmm2
movsd  0x180(%rsp,%r11,8),%xmm1
subsd  %xmm4,%xmm1
movsd  %xmm1,0x180(%rsp,%r11,8)
mov    0x28(%rsp),%rax
movsd  0x180(%rsp,%rax,8),%xmm1
addsd  %xmm4,%xmm1
movsd  %xmm1,0x180(%rsp,%rax,8)
movsd  (%rdx,%r11,8),%xmm1
subsd  %xmm4,%xmm1
movsd  %xmm1,(%rdx,%r11,8)
movapd %xmm0,%xmm1
addsd  (%rdx,%rax,8),%xmm4
divsd  %xmm2,%xmm1
movsd  %xmm4,(%rdx,%rax,8)
movq   $0x0,(%rdi,%rcx,8)
test   %r11,%r11
je     1a07 <eigen+0x8d7>
movapd %xmm0,%xmm2
xorpd  %xmm13,%xmm2
mov    0x18(%rsp),%rax
mov    %rdi,%rcx
nopl   0x0(%rax)
movsd  (%rcx,%r14,1),%xmm3
movsd  (%rcx,%rbx,1),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rcx,%r14,1)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rcx,%rbx,1)
add    %r15,%rcx
add    $0xffffffffffffffff,%rax
jne    19c0 <eigen+0x890>
mov    %rdi,%r8
mov    0x28(%rsp),%rdi
cmp    %rdi,%r9
mov    0xc8(%rsp),%rbp
jae    1a78 <eigen+0x948>
movapd %xmm0,%xmm2
xorpd  %xmm13,%xmm2
xor    %eax,%eax
mov    0x50(%rsp),%rcx
nopl   0x0(%rax)
movsd  0x0(%rbp,%rax,8),%xmm3
movsd  (%rcx),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,0x0(%rbp,%rax,8)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rcx)
add    %r15,%rcx
add    $0x1,%rax
cmp    %rax,%r13
jne    1a30 <eigen+0x900>
lea    0x1(%rdi),%rax
cmp    %r10,%rax
mov    0x40(%rsp),%rcx
jge    1c07 <eigen+0xad7>
mov    0x18(%rsp),%rax
add    %r13,%rax
mov    0xb0(%rsp),%r9
sub    %rax,%r9
movapd %xmm0,%xmm2
xorpd  %xmm13,%xmm2
mov    0x48(%rsp),%rax
cmp    $0x2,%r9
jb     1bc0 <eigen+0xa90>
mov    %r8,%rdi
mov    %r13,%r11
imul   %r10,%r11
add    0x160(%rsp),%r11
lea    (%r8,%r13,8),%rcx
mov    0xb8(%rsp),%rax
add    %rax,%rcx
add    $0x10,%rcx
lea    (%r8,%r11,8),%rax
mov    0xd0(%rsp),%r11
mov    0xd8(%rsp),%rbp
cmp    %rax,%rcx
jae    1b24 <eigen+0x9f4>
mov    0x20(%rsp),%rcx
imul   %r13,%rcx
add    0xb8(%rsp),%rcx
add    0x88(%rsp),%rcx
mov    0x48(%rsp),%rax
cmp    0x140(%rsp),%rcx
mov    0x40(%rsp),%rcx
jb     1bc0 <eigen+0xa90>
mov    0x70(%rsp),%r10
and    $0xfffffffffffffffe,%r10
mov    %r9,%rdi
and    $0xfffffffffffffffe,%rdi
mov    0x48(%rsp),%rax
add    %rdi,%rax
movapd %xmm1,%xmm3
unpcklpd %xmm1,%xmm3
movapd %xmm2,%xmm8
unpcklpd %xmm2,%xmm8
movapd %xmm0,%xmm5
unpcklpd %xmm0,%xmm5
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movupd (%r11,%rcx,8),%xmm4
movupd 0x0(%rbp,%rcx,8),%xmm7
movapd %xmm4,%xmm6
mulpd  %xmm3,%xmm6
addpd  %xmm7,%xmm6
mulpd  %xmm8,%xmm6
addpd  %xmm4,%xmm6
movupd %xmm6,(%r11,%rcx,8)
movapd %xmm7,%xmm6
mulpd  %xmm3,%xmm6
subpd  %xmm6,%xmm4
mulpd  %xmm5,%xmm4
addpd  %xmm7,%xmm4
movupd %xmm4,0x0(%rbp,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r10
jne    1b60 <eigen+0xa30>
cmp    %rdi,%r9
mov    0x58(%rsp),%r10
mov    0x40(%rsp),%rcx
je     1c07 <eigen+0xad7>
nopl   0x0(%rax)
movsd  (%rcx,%rax,8),%xmm3
movsd  (%r12,%rax,8),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rcx,%rax,8)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%r12,%rax,8)
add    $0x1,%rax
cmp    %r10,%rax
jl     1bc0 <eigen+0xa90>
cmpl   $0x0,0x10(%rsp)
jle    16d0 <eigen+0x5a0>
movapd %xmm0,%xmm2
xorpd  %xmm13,%xmm2
mov    %rsi,%rax
mov    0x168(%rsp),%rcx
cs nopw 0x0(%rax,%rax,1)
movsd  (%rcx,%r14,1),%xmm3
movsd  (%rcx,%rbx,1),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rcx,%r14,1)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rcx,%rbx,1)
add    %r15,%rcx
add    $0xffffffffffffffff,%rax
jne    1c30 <eigen+0xb00>
jmp    16d0 <eigen+0x5a0>
nopl   0x0(%rax)
mov    0x10(%rsp),%rsi
test   %esi,%esi
mov    (%rsp),%rcx
jle    1460 <eigen+0x330>
cmp    $0x4,%esi
jae    1ca0 <eigen+0xb70>
xor    %eax,%eax
jmp    1e00 <eigen+0xcd0>
nopl   (%rax)
cmpq   $0x0,0xf8(%rsp)
je     1e3a <eigen+0xd0a>
mov    0xe8(%rsp),%rcx
xor    %eax,%eax
xorpd  %xmm2,%xmm2
nopl   (%rax)
movapd 0x980(%rsp,%rax,8),%xmm0
movapd 0x990(%rsp,%rax,8),%xmm1
addpd  0x180(%rsp,%rax,8),%xmm0
addpd  0x190(%rsp,%rax,8),%xmm1
movapd %xmm0,0x980(%rsp,%rax,8)
movapd %xmm1,0x990(%rsp,%rax,8)
movupd %xmm0,(%rdx,%rax,8)
movupd %xmm1,0x10(%rdx,%rax,8)
movapd %xmm2,0x180(%rsp,%rax,8)
movapd %xmm2,0x190(%rsp,%rax,8)
movapd 0x9a0(%rsp,%rax,8),%xmm0
movapd 0x9b0(%rsp,%rax,8),%xmm1
addpd  0x1a0(%rsp,%rax,8),%xmm0
addpd  0x1b0(%rsp,%rax,8),%xmm1
movapd %xmm0,0x9a0(%rsp,%rax,8)
movapd %xmm1,0x9b0(%rsp,%rax,8)
movupd %xmm0,0x20(%rdx,%rax,8)
movupd %xmm1,0x30(%rdx,%rax,8)
movapd %xmm2,0x1a0(%rsp,%rax,8)
movapd %xmm2,0x1b0(%rsp,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1cc0 <eigen+0xb90>
testb  $0x1,0xf0(%rsp)
01
je     1dd6 <eigen+0xca6>
movapd 0x980(%rsp,%rax,8),%xmm0
movapd 0x990(%rsp,%rax,8),%xmm1
addpd  0x180(%rsp,%rax,8),%xmm0
addpd  0x190(%rsp,%rax,8),%xmm1
movapd %xmm0,0x980(%rsp,%rax,8)
movapd %xmm1,0x990(%rsp,%rax,8)
movupd %xmm0,(%rdx,%rax,8)
movupd %xmm1,0x10(%rdx,%rax,8)
xorpd  %xmm0,%xmm0
movapd %xmm0,0x180(%rsp,%rax,8)
movapd %xmm0,0x190(%rsp,%rax,8)
mov    0x100(%rsp),%rcx
mov    %rcx,%rax
mov    (%rsp),%rbp
cmp    %rbp,%rcx
mov    %rbp,%rcx
je     1460 <eigen+0x330>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  0x980(%rsp,%rax,8),%xmm0
addsd  0x180(%rsp,%rax,8),%xmm0
movsd  %xmm0,0x980(%rsp,%rax,8)
movsd  %xmm0,(%rdx,%rax,8)
movq   $0x0,0x180(%rsp,%rax,8)
add    $0x1,%rax
cmp    %rax,%rcx
jne    1e00 <eigen+0xcd0>
jmp    1460 <eigen+0x330>
xor    %eax,%eax
testb  $0x1,0xf0(%rsp)
01
jne    1d7f <eigen+0xc4f>
jmp    1dd6 <eigen+0xca6>
mov    0x8(%rsp),%ecx
xor    %edx,%edx
jmp    1e69 <eigen+0xd39>
lea    0x1e5(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edx
mov    0x8(%rsp),%ecx
mov    0xe0(%rsp),%rax
mov    %ecx,(%rax)
mov    %edx,%eax
add    $0x1188,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [49 x i8] c"routine JACOBI: 50 iterations should not happen\0A\00"
define i32 @eigen(double* %0, i32 %1, double* %2, double* %3, i32* %4) {
%6 = alloca i32
%7 = alloca double*
%8 = alloca i32
%9 = alloca double*
%10 = alloca double*
%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 [256 x double]
%27 = alloca [256 x double]
store double* %0, double** %7
store i32 %1, i32* %8
store double* %2, double** %9
store double* %3, double** %10
store i32* %4, i32** %11
store i32 0, i32* %15
br label %28
28: ; preds = %58, %5
%29 = load i32, i32* %15
%30 = load i32, i32* %8
%31 = icmp slt i32 %29, %30
br i1 %31, label %32, label %61
32: ; preds = %28
store i32 0, i32* %14
br label %33
33: ; preds = %46, %32
%34 = load i32, i32* %14
%35 = load i32, i32* %8
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %49
37: ; preds = %33
%38 = load double*, double** %10
%39 = load i32, i32* %15
%40 = load i32, i32* %8
%41 = mul nsw i32 %39, %40
%42 = load i32, i32* %14
%43 = add nsw i32 %41, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %38, i64 %44
store double 0.000000e+00, double* %45
br label %46
46: ; preds = %37
%47 = load i32, i32* %14
%48 = add nsw i32 %47, 1
store i32 %48, i32* %14
br label %33
49: ; preds = %33
%50 = load double*, double** %10
%51 = load i32, i32* %15
%52 = load i32, i32* %8
%53 = mul nsw i32 %51, %52
%54 = load i32, i32* %15
%55 = add nsw i32 %53, %54
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds double, double* %50, i64 %56
store double 1.000000e+00, double* %57
br label %58
58: ; preds = %49
%59 = load i32, i32* %15
%60 = add nsw i32 %59, 1
store i32 %60, i32* %15
br label %28
61: ; preds = %28
store i32 0, i32* %15
br label %62
62: ; preds = %90, %61
%63 = load i32, i32* %15
%64 = load i32, i32* %8
%65 = icmp slt i32 %63, %64
br i1 %65, label %66, label %93
66: ; preds = %62
%67 = load double*, double** %7
%68 = load i32, i32* %15
%69 = load i32, i32* %8
%70 = mul nsw i32 %68, %69
%71 = load i32, i32* %15
%72 = add nsw i32 %70, %71
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds double, double* %67, i64 %73
%75 = load double, double* %74
%76 = load i32, i32* %15
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds [256 x double], [256 x double]* %26, i64 0, i64 %77
store double %75, double* %78
%79 = load i32, i32* %15
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [256 x double], [256 x double]* %26, i64 0, i64 %80
%82 = load double, double* %81
%83 = load double*, double** %9
%84 = load i32, i32* %15
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds double, double* %83, i64 %85
store double %82, double* %86
%87 = load i32, i32* %15
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [256 x double], [256 x double]* %27, i64 0, i64 %88
store double 0.000000e+00, double* %89
br label %90
90: ; preds = %66
%91 = load i32, i32* %15
%92 = add nsw i32 %91, 1
store i32 %92, i32* %15
br label %62
93: ; preds = %62
store i32 0, i32* %12
store i32 1, i32* %16
br label %94
94: ; preds = %645, %93
%95 = load i32, i32* %16
%96 = icmp slt i32 %95, 50
br i1 %96, label %97, label %648
97: ; preds = %94
store double 0.000000e+00, double* %21
store i32 0, i32* %15
br label %98
98: ; preds = %127, %97
%99 = load i32, i32* %15
%100 = load i32, i32* %8
%101 = sub nsw i32 %100, 1
%102 = icmp slt i32 %99, %101
br i1 %102, label %103, label %130
103: ; preds = %98
%104 = load i32, i32* %15
%105 = add nsw i32 %104, 1
store i32 %105, i32* %14
br label %106
106: ; preds = %123, %103
%107 = load i32, i32* %14
%108 = load i32, i32* %8
%109 = icmp slt i32 %107, %108
br i1 %109, label %110, label %126
110: ; preds = %106
%111 = load double*, double** %7
%112 = load i32, i32* %15
%113 = load i32, i32* %8
%114 = mul nsw i32 %112, %113
%115 = load i32, i32* %14
%116 = add nsw i32 %114, %115
%117 = sext i32 %116 to i64
%118 = getelementptr inbounds double, double* %111, i64 %117
%119 = load double, double* %118
%120 = call double @llvm.fabs.f64(double %119)
%121 = load double, double* %21
%122 = fadd double %121, %120
store double %122, double* %21
br label %123
123: ; preds = %110
%124 = load i32, i32* %14
%125 = add nsw i32 %124, 1
store i32 %125, i32* %14
br label %106
126: ; preds = %106
br label %127
127: ; preds = %126
%128 = load i32, i32* %15
%129 = add nsw i32 %128, 1
store i32 %129, i32* %15
br label %98
130: ; preds = %98
%131 = load double, double* %21
%132 = fcmp oeq double %131, 0.000000e+00
br i1 %132, label %133, label %136
133: ; preds = %130
%134 = load i32, i32* %12
%135 = load i32*, i32** %11
store i32 %134, i32* %135
store i32 0, i32* %6
br label %652
136: ; preds = %130
%137 = load i32, i32* %16
%138 = icmp slt i32 %137, 6
br i1 %138, label %139, label %147
139: ; preds = %136
%140 = load double, double* %21
%141 = fmul double 2.000000e-01, %140
%142 = load i32, i32* %8
%143 = load i32, i32* %8
%144 = mul nsw i32 %142, %143
%145 = sitofp i32 %144 to double
%146 = fdiv double %141, %145
store double %146, double* %17
br label %148
147: ; preds = %136
store double 0.000000e+00, double* %17
br label %148
148: ; preds = %147, %139
store i32 0, i32* %15
br label %149
149: ; preds = %609, %148
%150 = load i32, i32* %15
%151 = load i32, i32* %8
%152 = sub nsw i32 %151, 1
%153 = icmp slt i32 %150, %152
br i1 %153, label %154, label %612
154: ; preds = %149
%155 = load i32, i32* %15
%156 = add nsw i32 %155, 1
store i32 %156, i32* %14
br label %157
157: ; preds = %605, %154
%158 = load i32, i32* %14
%159 = load i32, i32* %8
%160 = icmp slt i32 %158, %159
br i1 %160, label %161, label %608
161: ; preds = %157
%162 = load double*, double** %7
%163 = load i32, i32* %15
%164 = load i32, i32* %8
%165 = mul nsw i32 %163, %164
%166 = load i32, i32* %14
%167 = add nsw i32 %165, %166
%168 = sext i32 %167 to i64
%169 = getelementptr inbounds double, double* %162, i64 %168
%170 = load double, double* %169
%171 = call double @llvm.fabs.f64(double %170)
%172 = fmul double 1.000000e+02, %171
store double %172, double* %24
%173 = load i32, i32* %16
%174 = icmp sgt i32 %173, 6
br i1 %174, label %175, label %216
175: ; preds = %161
%176 = load double*, double** %9
%177 = load i32, i32* %15
%178 = sext i32 %177 to i64
%179 = getelementptr inbounds double, double* %176, i64 %178
%180 = load double, double* %179
%181 = call double @llvm.fabs.f64(double %180)
%182 = load double, double* %24
%183 = fadd double %181, %182
%184 = load double*, double** %9
%185 = load i32, i32* %15
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, double* %184, i64 %186
%188 = load double, double* %187
%189 = call double @llvm.fabs.f64(double %188)
%190 = fcmp oeq double %183, %189
br i1 %190, label %191, label %216
191: ; preds = %175
%192 = load double*, double** %9
%193 = load i32, i32* %14
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds double, double* %192, i64 %194
%196 = load double, double* %195
%197 = call double @llvm.fabs.f64(double %196)
%198 = load double, double* %24
%199 = fadd double %197, %198
%200 = load double*, double** %9
%201 = load i32, i32* %14
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, double* %200, i64 %202
%204 = load double, double* %203
%205 = call double @llvm.fabs.f64(double %204)
%206 = fcmp oeq double %199, %205
br i1 %206, label %207, label %216
207: ; preds = %191
%208 = load double*, double** %7
%209 = load i32, i32* %15
%210 = load i32, i32* %8
%211 = mul nsw i32 %209, %210
%212 = load i32, i32* %14
%213 = add nsw i32 %211, %212
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds double, double* %208, i64 %214
store double 0.000000e+00, double* %215
br label %604
216: ; preds = %191, %175, %161
%217 = load double*, double** %7
%218 = load i32, i32* %15
%219 = load i32, i32* %8
%220 = mul nsw i32 %218, %219
%221 = load i32, i32* %14
%222 = add nsw i32 %220, %221
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds double, double* %217, i64 %223
%225 = load double, double* %224
%226 = call double @llvm.fabs.f64(double %225)
%227 = load double, double* %17
%228 = fcmp ogt double %226, %227
br i1 %228, label %229, label %603
229: ; preds = %216
%230 = load double*, double** %9
%231 = load i32, i32* %14
%232 = sext i32 %231 to i64
%233 = getelementptr inbounds double, double* %230, i64 %232
%234 = load double, double* %233
%235 = load double*, double** %9
%236 = load i32, i32* %15
%237 = sext i32 %236 to i64
%238 = getelementptr inbounds double, double* %235, i64 %237
%239 = load double, double* %238
%240 = fsub double %234, %239
store double %240, double* %23
%241 = load double, double* %23
%242 = call double @llvm.fabs.f64(double %241)
%243 = load double, double* %24
%244 = fadd double %242, %243
%245 = load double, double* %23
%246 = call double @llvm.fabs.f64(double %245)
%247 = fcmp oeq double %244, %246
br i1 %247, label %248, label %260
248: ; preds = %229
%249 = load double*, double** %7
%250 = load i32, i32* %15
%251 = load i32, i32* %8
%252 = mul nsw i32 %250, %251
%253 = load i32, i32* %14
%254 = add nsw i32 %252, %253
%255 = sext i32 %254 to i64
%256 = getelementptr inbounds double, double* %249, i64 %255
%257 = load double, double* %256
%258 = load double, double* %23
%259 = fdiv double %257, %258
store double %259, double* %20
br label %287
260: ; preds = %229
%261 = load double, double* %23
%262 = fmul double 5.000000e-01, %261
%263 = load double*, double** %7
%264 = load i32, i32* %15
%265 = load i32, i32* %8
%266 = mul nsw i32 %264, %265
%267 = load i32, i32* %14
%268 = add nsw i32 %266, %267
%269 = sext i32 %268 to i64
%270 = getelementptr inbounds double, double* %263, i64 %269
%271 = load double, double* %270
%272 = fdiv double %262, %271
store double %272, double* %18
%273 = load double, double* %18
%274 = call double @llvm.fabs.f64(double %273)
%275 = load double, double* %18
%276 = load double, double* %18
%277 = call double @llvm.fmuladd.f64(double %275, double %276, double 1.000000e+00)
%278 = call double @sqrt(double %277)
%279 = fadd double %274, %278
%280 = fdiv double 1.000000e+00, %279
store double %280, double* %20
%281 = load double, double* %18
%282 = fcmp olt double %281, 0.000000e+00
br i1 %282, label %283, label %286
283: ; preds = %260
%284 = load double, double* %20
%285 = fneg double %284
store double %285, double* %20
br label %286
286: ; preds = %283, %260
br label %287
287: ; preds = %286, %248
%288 = load double, double* %20
%289 = load double, double* %20
%290 = call double @llvm.fmuladd.f64(double %288, double %289, double 1.000000e+00)
%291 = call double @sqrt(double %290)
%292 = fdiv double 1.000000e+00, %291
store double %292, double* %25
%293 = load double, double* %20
%294 = load double, double* %25
%295 = fmul double %293, %294
store double %295, double* %22
%296 = load double, double* %22
%297 = load double, double* %25
%298 = fadd double 1.000000e+00, %297
%299 = fdiv double %296, %298
store double %299, double* %19
%300 = load double, double* %20
%301 = load double*, double** %7
%302 = load i32, i32* %15
%303 = load i32, i32* %8
%304 = mul nsw i32 %302, %303
%305 = load i32, i32* %14
%306 = add nsw i32 %304, %305
%307 = sext i32 %306 to i64
%308 = getelementptr inbounds double, double* %301, i64 %307
%309 = load double, double* %308
%310 = fmul double %300, %309
store double %310, double* %23
%311 = load i32, i32* %15
%312 = sext i32 %311 to i64
%313 = getelementptr inbounds [256 x double], [256 x double]* %27, i64 0, i64 %312
%314 = load double, double* %313
%315 = load double, double* %23
%316 = fsub double %314, %315
%317 = load i32, i32* %15
%318 = sext i32 %317 to i64
%319 = getelementptr inbounds [256 x double], [256 x double]* %27, i64 0, i64 %318
store double %316, double* %319
%320 = load i32, i32* %14
%321 = sext i32 %320 to i64
%322 = getelementptr inbounds [256 x double], [256 x double]* %27, i64 0, i64 %321
%323 = load double, double* %322
%324 = load double, double* %23
%325 = fadd double %323, %324
%326 = load i32, i32* %14
%327 = sext i32 %326 to i64
%328 = getelementptr inbounds [256 x double], [256 x double]* %27, i64 0, i64 %327
store double %325, double* %328
%329 = load double*, double** %9
%330 = load i32, i32* %15
%331 = sext i32 %330 to i64
%332 = getelementptr inbounds double, double* %329, i64 %331
%333 = load double, double* %332
%334 = load double, double* %23
%335 = fsub double %333, %334
%336 = load double*, double** %9
%337 = load i32, i32* %15
%338 = sext i32 %337 to i64
%339 = getelementptr inbounds double, double* %336, i64 %338
store double %335, double* %339
%340 = load double*, double** %9
%341 = load i32, i32* %14
%342 = sext i32 %341 to i64
%343 = getelementptr inbounds double, double* %340, i64 %342
%344 = load double, double* %343
%345 = load double, double* %23
%346 = fadd double %344, %345
%347 = load double*, double** %9
%348 = load i32, i32* %14
%349 = sext i32 %348 to i64
%350 = getelementptr inbounds double, double* %347, i64 %349
store double %346, double* %350
%351 = load double*, double** %7
%352 = load i32, i32* %15
%353 = load i32, i32* %8
%354 = mul nsw i32 %352, %353
%355 = load i32, i32* %14
%356 = add nsw i32 %354, %355
%357 = sext i32 %356 to i64
%358 = getelementptr inbounds double, double* %351, i64 %357
store double 0.000000e+00, double* %358
store i32 0, i32* %13
br label %359
359: ; preds = %415, %287
%360 = load i32, i32* %13
%361 = load i32, i32* %15
%362 = sub nsw i32 %361, 1
%363 = icmp sle i32 %360, %362
br i1 %363, label %364, label %418
364: ; preds = %359
%365 = load double*, double** %7
%366 = load i32, i32* %13
%367 = load i32, i32* %8
%368 = mul nsw i32 %366, %367
%369 = load i32, i32* %15
%370 = add nsw i32 %368, %369
%371 = sext i32 %370 to i64
%372 = getelementptr inbounds double, double* %365, i64 %371
%373 = load double, double* %372
store double %373, double* %24
%374 = load double*, double** %7
%375 = load i32, i32* %13
%376 = load i32, i32* %8
%377 = mul nsw i32 %375, %376
%378 = load i32, i32* %14
%379 = add nsw i32 %377, %378
%380 = sext i32 %379 to i64
%381 = getelementptr inbounds double, double* %374, i64 %380
%382 = load double, double* %381
store double %382, double* %23
%383 = load double, double* %24
%384 = load double, double* %22
%385 = load double, double* %23
%386 = load double, double* %24
%387 = load double, double* %19
%388 = call double @llvm.fmuladd.f64(double %386, double %387, double %385)
%389 = fneg double %384
%390 = call double @llvm.fmuladd.f64(double %389, double %388, double %383)
%391 = load double*, double** %7
%392 = load i32, i32* %13
%393 = load i32, i32* %8
%394 = mul nsw i32 %392, %393
%395 = load i32, i32* %15
%396 = add nsw i32 %394, %395
%397 = sext i32 %396 to i64
%398 = getelementptr inbounds double, double* %391, i64 %397
store double %390, double* %398
%399 = load double, double* %23
%400 = load double, double* %22
%401 = load double, double* %24
%402 = load double, double* %23
%403 = load double, double* %19
%404 = fneg double %402
%405 = call double @llvm.fmuladd.f64(double %404, double %403, double %401)
%406 = call double @llvm.fmuladd.f64(double %400, double %405, double %399)
%407 = load double*, double** %7
%408 = load i32, i32* %13
%409 = load i32, i32* %8
%410 = mul nsw i32 %408, %409
%411 = load i32, i32* %14
%412 = add nsw i32 %410, %411
%413 = sext i32 %412 to i64
%414 = getelementptr inbounds double, double* %407, i64 %413
store double %406, double* %414
br label %415
415: ; preds = %364
%416 = load i32, i32* %13
%417 = add nsw i32 %416, 1
store i32 %417, i32* %13
br label %359
418: ; preds = %359
%419 = load i32, i32* %15
%420 = add nsw i32 %419, 1
store i32 %420, i32* %13
br label %421
421: ; preds = %477, %418
%422 = load i32, i32* %13
%423 = load i32, i32* %14
%424 = sub nsw i32 %423, 1
%425 = icmp sle i32 %422, %424
br i1 %425, label %426, label %480
426: ; preds = %421
%427 = load double*, double** %7
%428 = load i32, i32* %15
%429 = load i32, i32* %8
%430 = mul nsw i32 %428, %429
%431 = load i32, i32* %13
%432 = add nsw i32 %430, %431
%433 = sext i32 %432 to i64
%434 = getelementptr inbounds double, double* %427, i64 %433
%435 = load double, double* %434
store double %435, double* %24
%436 = load double*, double** %7
%437 = load i32, i32* %13
%438 = load i32, i32* %8
%439 = mul nsw i32 %437, %438
%440 = load i32, i32* %14
%441 = add nsw i32 %439, %440
%442 = sext i32 %441 to i64
%443 = getelementptr inbounds double, double* %436, i64 %442
%444 = load double, double* %443
store double %444, double* %23
%445 = load double, double* %24
%446 = load double, double* %22
%447 = load double, double* %23
%448 = load double, double* %24
%449 = load double, double* %19
%450 = call double @llvm.fmuladd.f64(double %448, double %449, double %447)
%451 = fneg double %446
%452 = call double @llvm.fmuladd.f64(double %451, double %450, double %445)
%453 = load double*, double** %7
%454 = load i32, i32* %15
%455 = load i32, i32* %8
%456 = mul nsw i32 %454, %455
%457 = load i32, i32* %13
%458 = add nsw i32 %456, %457
%459 = sext i32 %458 to i64
%460 = getelementptr inbounds double, double* %453, i64 %459
store double %452, double* %460
%461 = load double, double* %23
%462 = load double, double* %22
%463 = load double, double* %24
%464 = load double, double* %23
%465 = load double, double* %19
%466 = fneg double %464
%467 = call double @llvm.fmuladd.f64(double %466, double %465, double %463)
%468 = call double @llvm.fmuladd.f64(double %462, double %467, double %461)
%469 = load double*, double** %7
%470 = load i32, i32* %13
%471 = load i32, i32* %8
%472 = mul nsw i32 %470, %471
%473 = load i32, i32* %14
%474 = add nsw i32 %472, %473
%475 = sext i32 %474 to i64
%476 = getelementptr inbounds double, double* %469, i64 %475
store double %468, double* %476
br label %477
477: ; preds = %426
%478 = load i32, i32* %13
%479 = add nsw i32 %478, 1
store i32 %479, i32* %13
br label %421
480: ; preds = %421
%481 = load i32, i32* %14
%482 = add nsw i32 %481, 1
store i32 %482, i32* %13
br label %483
483: ; preds = %538, %480
%484 = load i32, i32* %13
%485 = load i32, i32* %8
%486 = icmp slt i32 %484, %485
br i1 %486, label %487, label %541
487: ; preds = %483
%488 = load double*, double** %7
%489 = load i32, i32* %15
%490 = load i32, i32* %8
%491 = mul nsw i32 %489, %490
%492 = load i32, i32* %13
%493 = add nsw i32 %491, %492
%494 = sext i32 %493 to i64
%495 = getelementptr inbounds double, double* %488, i64 %494
%496 = load double, double* %495
store double %496, double* %24
%497 = load double*, double** %7
%498 = load i32, i32* %14
%499 = load i32, i32* %8
%500 = mul nsw i32 %498, %499
%501 = load i32, i32* %13
%502 = add nsw i32 %500, %501
%503 = sext i32 %502 to i64
%504 = getelementptr inbounds double, double* %497, i64 %503
%505 = load double, double* %504
store double %505, double* %23
%506 = load double, double* %24
%507 = load double, double* %22
%508 = load double, double* %23
%509 = load double, double* %24
%510 = load double, double* %19
%511 = call double @llvm.fmuladd.f64(double %509, double %510, double %508)
%512 = fneg double %507
%513 = call double @llvm.fmuladd.f64(double %512, double %511, double %506)
%514 = load double*, double** %7
%515 = load i32, i32* %15
%516 = load i32, i32* %8
%517 = mul nsw i32 %515, %516
%518 = load i32, i32* %13
%519 = add nsw i32 %517, %518
%520 = sext i32 %519 to i64
%521 = getelementptr inbounds double, double* %514, i64 %520
store double %513, double* %521
%522 = load double, double* %23
%523 = load double, double* %22
%524 = load double, double* %24
%525 = load double, double* %23
%526 = load double, double* %19
%527 = fneg double %525
%528 = call double @llvm.fmuladd.f64(double %527, double %526, double %524)
%529 = call double @llvm.fmuladd.f64(double %523, double %528, double %522)
%530 = load double*, double** %7
%531 = load i32, i32* %14
%532 = load i32, i32* %8
%533 = mul nsw i32 %531, %532
%534 = load i32, i32* %13
%535 = add nsw i32 %533, %534
%536 = sext i32 %535 to i64
%537 = getelementptr inbounds double, double* %530, i64 %536
store double %529, double* %537
br label %538
538: ; preds = %487
%539 = load i32, i32* %13
%540 = add nsw i32 %539, 1
store i32 %540, i32* %13
br label %483
541: ; preds = %483
store i32 0, i32* %13
br label %542
542: ; preds = %597, %541
%543 = load i32, i32* %13
%544 = load i32, i32* %8
%545 = icmp slt i32 %543, %544
br i1 %545, label %546, label %600
546: ; preds = %542
%547 = load double*, double** %10
%548 = load i32, i32* %13
%549 = load i32, i32* %8
%550 = mul nsw i32 %548, %549
%551 = load i32, i32* %15
%552 = add nsw i32 %550, %551
%553 = sext i32 %552 to i64
%554 = getelementptr inbounds double, double* %547, i64 %553
%555 = load double, double* %554
store double %555, double* %24
%556 = load double*, double** %10
%557 = load i32, i32* %13
%558 = load i32, i32* %8
%559 = mul nsw i32 %557, %558
%560 = load i32, i32* %14
%561 = add nsw i32 %559, %560
%562 = sext i32 %561 to i64
%563 = getelementptr inbounds double, double* %556, i64 %562
%564 = load double, double* %563
store double %564, double* %23
%565 = load double, double* %24
%566 = load double, double* %22
%567 = load double, double* %23
%568 = load double, double* %24
%569 = load double, double* %19
%570 = call double @llvm.fmuladd.f64(double %568, double %569, double %567)
%571 = fneg double %566
%572 = call double @llvm.fmuladd.f64(double %571, double %570, double %565)
%573 = load double*, double** %10
%574 = load i32, i32* %13
%575 = load i32, i32* %8
%576 = mul nsw i32 %574, %575
%577 = load i32, i32* %15
%578 = add nsw i32 %576, %577
%579 = sext i32 %578 to i64
%580 = getelementptr inbounds double, double* %573, i64 %579
store double %572, double* %580
%581 = load double, double* %23
%582 = load double, double* %22
%583 = load double, double* %24
%584 = load double, double* %23
%585 = load double, double* %19
%586 = fneg double %584
%587 = call double @llvm.fmuladd.f64(double %586, double %585, double %583)
%588 = call double @llvm.fmuladd.f64(double %582, double %587, double %581)
%589 = load double*, double** %10
%590 = load i32, i32* %13
%591 = load i32, i32* %8
%592 = mul nsw i32 %590, %591
%593 = load i32, i32* %14
%594 = add nsw i32 %592, %593
%595 = sext i32 %594 to i64
%596 = getelementptr inbounds double, double* %589, i64 %595
store double %588, double* %596
br label %597
597: ; preds = %546
%598 = load i32, i32* %13
%599 = add nsw i32 %598, 1
store i32 %599, i32* %13
br label %542
600: ; preds = %542
%601 = load i32, i32* %12
%602 = add nsw i32 %601, 1
store i32 %602, i32* %12
br label %603
603: ; preds = %600, %216
br label %604
604: ; preds = %603, %207
br label %605
605: ; preds = %604
%606 = load i32, i32* %14
%607 = add nsw i32 %606, 1
store i32 %607, i32* %14
br label %157
608: ; preds = %157
br label %609
609: ; preds = %608
%610 = load i32, i32* %15
%611 = add nsw i32 %610, 1
store i32 %611, i32* %15
br label %149
612: ; preds = %149
store i32 0, i32* %15
br label %613
613: ; preds = %641, %612
%614 = load i32, i32* %15
%615 = load i32, i32* %8
%616 = icmp slt i32 %614, %615
br i1 %616, label %617, label %644
617: ; preds = %613
%618 = load i32, i32* %15
%619 = sext i32 %618 to i64
%620 = getelementptr inbounds [256 x double], [256 x double]* %26, i64 0, i64 %619
%621 = load double, double* %620
%622 = load i32, i32* %15
%623 = sext i32 %622 to i64
%624 = getelementptr inbounds [256 x double], [256 x double]* %27, i64 0, i64 %623
%625 = load double, double* %624
%626 = fadd double %621, %625
%627 = load i32, i32* %15
%628 = sext i32 %627 to i64
%629 = getelementptr inbounds [256 x double], [256 x double]* %26, i64 0, i64 %628
store double %626, double* %629
%630 = load i32, i32* %15
%631 = sext i32 %630 to i64
%632 = getelementptr inbounds [256 x double], [256 x double]* %26, i64 0, i64 %631
%633 = load double, double* %632
%634 = load double*, double** %9
%635 = load i32, i32* %15
%636 = sext i32 %635 to i64
%637 = getelementptr inbounds double, double* %634, i64 %636
store double %633, double* %637
%638 = load i32, i32* %15
%639 = sext i32 %638 to i64
%640 = getelementptr inbounds [256 x double], [256 x double]* %27, i64 0, i64 %639
store double 0.000000e+00, double* %640
br label %641
641: ; preds = %617
%642 = load i32, i32* %15
%643 = add nsw i32 %642, 1
store i32 %643, i32* %15
br label %613
644: ; preds = %613
br label %645
645: ; preds = %644
%646 = load i32, i32* %16
%647 = add nsw i32 %646, 1
store i32 %647, i32* %16
br label %94
648: ; preds = %94
%649 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str, i64 0, i64 0))
%650 = load i32, i32* %12
%651 = load i32*, i32** %11
store i32 %650, i32* %651
store i32 -1, i32* %6
br label %652
652: ; preds = %648, %133
%653 = load i32, i32* %6
ret i32 %653
}

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