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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double *double_alloc(int);
double *double_calloc(int);
int fabs(double);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ free(void *);
int sqrt(int);
int /*<<< orphan*/ stderr;
void jacobi(double **a, int n, int np, double *d, double **v, int *nrot) {
  int NMAX = 500, i, ip, iq, j;
  double c, g, h, s, sm, t, tau, theta, tresh, *b, *z;
  b = double_alloc(NMAX);
  z = double_calloc(NMAX);
  for (ip = 0; ip < n; ip++) {
    for (iq = 0; iq < n; iq++)
      v[ip][iq] = 0.;
    v[ip][ip] = 1.;
  }
  for (ip = 0; ip < n; ip++) {
    b[ip] = d[ip] = a[ip][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 = sm + fabs(a[ip][iq]);
    if (sm == 0.0) {
      free((void *)z);
      free((void *)b);
      return;
    }
    if (i < 4)
      tresh = 0.2 * sm / (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][iq]);
        if ((i > 4) && (float)(fabs(d[ip]) + g) == (float)(fabs(d[ip])) &&
            (float)(fabs(d[iq]) + g) == (float)(fabs(d[iq])))
          a[ip][iq] = 0.0;
        else if (fabs(a[ip][iq]) > tresh) {
          h = d[iq] - d[ip];
          if ((float)(fabs(h) + g) == (float)(fabs(h)))
            t = a[ip][iq] / h;
          else {
            theta = 0.5 * h / (a[ip][iq]);
            t = 1. / (fabs(theta) + sqrt(1.0 + theta * theta));
            if (theta < 0.)
              t = -t;
          }
          c = 1. / sqrt(1 + t * t);
          s = t * c;
          tau = s / (1.0 + c);
          h = t * a[ip][iq];
          z[ip] -= h;
          z[iq] += h;
          d[ip] -= h;
          d[iq] += h;
          a[ip][iq] = 0.0;
          for (j = 0; j <= ip - 1; j++) {
            g = a[j][ip];
            h = a[j][iq];
            a[j][ip] = g - s * (h + g * tau);
            a[j][iq] = h + s * (g - h * tau);
          }
          for (j = ip + 1; j <= iq - 1; j++) {
            g = a[ip][j];
            h = a[j][iq];
            a[ip][j] = g - s * (h + g * tau);
            a[j][iq] = h + s * (g - h * tau);
          }
          for (j = iq + 1; j < n; j++) {
            g = a[ip][j];
            h = a[iq][j];
            a[ip][j] = g - s * (h + g * tau);
            a[iq][j] = h + s * (g - h * tau);
          }
          for (j = 0; j < n; j++) {
            g = v[j][ip];
            h = v[j][iq];
            v[j][ip] = g - s * (h + g * tau);
            v[j][iq] = h + s * (g - h * tau);
          }
          ++(*nrot);
        }
      }
    }
    for (ip = 0; ip < n; ip++) {
      b[ip] += z[ip];
      d[ip] = b[ip];
      z[ip] = 0.0;
    }
  }
  fprintf(stderr, "too many iterations in jacobi\n");
}


x86 assembly (clang, -O0):
<jacobi>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
mov    %r9,-0x28(%rbp)
movl   $0x1f4,-0x2c(%rbp)
mov    -0x2c(%rbp),%edi
call   1060 <double_alloc@plt>
mov    %rax,-0x90(%rbp)
mov    -0x2c(%rbp),%edi
call   1070 <double_calloc@plt>
mov    %rax,-0x98(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    121d <jacobi+0xbd>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11f2 <jacobi+0x92>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    11c0 <jacobi+0x60>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  0xe06(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    11ad <jacobi+0x4d>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1283 <jacobi+0x123>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x90(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x98(%rbp),%rax
movslq -0x34(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1224 <jacobi+0xc4>
mov    -0x28(%rbp),%rax
movl   $0x0,(%rax)
movl   $0x1,-0x30(%rbp)
cmpl   $0x32,-0x30(%rbp)
jg     1bfa <jacobi+0xa9a>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1330 <jacobi+0x1d0>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    131d <jacobi+0x1bd>
movsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <fabs@plt>
movsd  -0xa0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    12c7 <jacobi+0x167>
jmp    1322 <jacobi+0x1c2>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12ad <jacobi+0x14d>
movsd  -0x68(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1365 <jacobi+0x205>
jp     1365 <jacobi+0x205>
mov    -0x98(%rbp),%rdi
call   1030 <free@plt>
mov    -0x90(%rbp),%rdi
call   1030 <free@plt>
jmp    1c0f <jacobi+0xaaf>
cmpl   $0x4,-0x30(%rbp)
jge    1398 <jacobi+0x238>
movsd  0xc89(%rip),%xmm0
mulsd  -0x68(%rbp),%xmm0
mov    -0xc(%rbp),%eax
imul   -0xc(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
jmp    13a3 <jacobi+0x243>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jge    1b71 <jacobi+0xa11>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1b5e <jacobi+0x9fe>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm1
movsd  0xc12(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
cmpl   $0x4,-0x30(%rbp)
jle    14ce <jacobi+0x36e>
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm0
addsd  -0x50(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa4(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <fabs@plt>
movss  -0xa4(%rbp),%xmm0
ff
cvtsi2ss %eax,%xmm1
ucomiss %xmm1,%xmm0
jne    14ce <jacobi+0x36e>
jp     14ce <jacobi+0x36e>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm0
addsd  -0x50(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xa8(%rbp)
ff
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <fabs@plt>
movss  -0xa8(%rbp),%xmm0
ff
cvtsi2ss %eax,%xmm1
ucomiss %xmm1,%xmm0
jne    14ce <jacobi+0x36e>
jp     14ce <jacobi+0x36e>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
jmp    1b4b <jacobi+0x9eb>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm0
ucomisd -0x88(%rbp),%xmm0
ff
jbe    1b46 <jacobi+0x9e6>
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm0
call   1040 <fabs@plt>
cvtsi2sd %eax,%xmm0
addsd  -0x50(%rbp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xac(%rbp)
ff
movsd  -0x58(%rbp),%xmm0
call   1040 <fabs@plt>
movss  -0xac(%rbp),%xmm0
ff
cvtsi2ss %eax,%xmm1
ucomiss %xmm1,%xmm0
jne    1581 <jacobi+0x421>
jp     1581 <jacobi+0x421>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    162e <jacobi+0x4ce>
movsd  0xa8f(%rip),%xmm0
mulsd  -0x58(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
call   1040 <fabs@plt>
mov    %eax,-0xb0(%rbp)
movsd  -0x80(%rbp),%xmm0
movsd  -0x80(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xa42(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <sqrt@plt>
mov    %eax,%ecx
mov    -0xb0(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm1
movsd  0xa1f(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
xorps  %xmm0,%xmm0
ucomisd -0x80(%rbp),%xmm0
jbe    1629 <jacobi+0x4c9>
movsd  -0x70(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x70(%rbp)
jmp    162e <jacobi+0x4ce>
movsd  -0x70(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x9cc(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1080 <sqrt@plt>
cvtsi2sd %eax,%xmm1
movsd  0x9b3(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x70(%rbp),%xmm0
mulsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  0x98e(%rip),%xmm1
addsd  -0x48(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x70(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x58(%rbp),%xmm1
mov    -0x98(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
mov    -0x98(%rbp),%rax
movslq -0x38(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm1
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x38(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x34(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     1835 <jacobi+0x6d5>
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%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    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm3
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%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    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1738 <jacobi+0x5d8>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x38(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
jg     193b <jacobi+0x7db>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%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    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm3
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%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    -0x8(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    183e <jacobi+0x6de>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1a3c <jacobi+0x8dc>
mov    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%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    -0x8(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm3
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%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    -0x8(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1944 <jacobi+0x7e4>
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1b3b <jacobi+0x9db>
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x50(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm3
movsd  -0x50(%rbp),%xmm2
movsd  -0x78(%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    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x58(%rbp),%xmm1
movsd  -0x60(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm3
movsd  -0x58(%rbp),%xmm2
movsd  -0x78(%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    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1a43 <jacobi+0x8e3>
mov    -0x28(%rbp),%rax
mov    (%rax),%ecx
add    $0x1,%ecx
mov    %ecx,(%rax)
jmp    1b4b <jacobi+0x9eb>
jmp    1b50 <jacobi+0x9f0>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    13c4 <jacobi+0x264>
jmp    1b63 <jacobi+0xa03>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    13aa <jacobi+0x24a>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1be7 <jacobi+0xa87>
mov    -0x98(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x90(%rbp),%rax
movslq -0x34(%rbp),%rcx
addsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x90(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x98(%rbp),%rax
movslq -0x34(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1b78 <jacobi+0xa18>
jmp    1bec <jacobi+0xa8c>
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1294 <jacobi+0x134>
mov    0x23df(%rip),%rax
mov    (%rax),%edi
lea    0x416(%rip),%rsi
call   1050 <fprintf@plt>
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<jacobi>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %r9,%r14
mov    %r8,0x70(%rsp)
mov    %rcx,%rbp
mov    %esi,%r15d
mov    %rdi,%r12
mov    $0x1f4,%edi
call   1070 <double_alloc@plt>
mov    %rax,%rbx
mov    $0x1f4,%edi
call   1080 <double_calloc@plt>
mov    %r12,%r11
mov    %r15,%r10
mov    %rbx,%rsi
mov    %rax,%r13
mov    %r10d,%edi
test   %r10d,%r10d
mov    %r14,0x98(%rsp)
mov    %rbp,0x58(%rsp)
mov    %r15,0x40(%rsp)
mov    %r12,0x20(%rsp)
mov    %rbx,0x60(%rsp)
mov    %rax,0x78(%rsp)
mov    %rdi,0x28(%rsp)
jle    1369 <jacobi+0x1f9>
lea    0x0(,%rdi,8),%rcx
lea    -0x1(%rdi),%rax
mov    %rdi,%r14
mov    %r14d,%ebx
and    $0x3,%ebx
movabs $0x3ff0000000000000,%r12
mov    %rax,0x10(%rsp)
cmp    $0x3,%rax
jae    121d <jacobi+0xad>
xor    %ebp,%ebp
mov    0x70(%rsp),%r15
mov    %rcx,%r14
jmp    1296 <jacobi+0x126>
and    $0xfffffffc,%r14d
mov    %r14,0x30(%rsp)
xor    %ebp,%ebp
mov    0x70(%rsp),%r15
mov    %rcx,%r14
mov    (%r15,%rbp,8),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1040 <memset@plt>
mov    %r12,0x0(%r13,%rbp,8)
mov    0x8(%r15,%rbp,8),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1040 <memset@plt>
mov    %r12,0x8(%r13,%rbp,8)
mov    0x10(%r15,%rbp,8),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1040 <memset@plt>
mov    %r12,0x10(%r13,%rbp,8)
mov    0x18(%r15,%rbp,8),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1040 <memset@plt>
mov    %r12,0x18(%r13,%rbp,8)
add    $0x4,%rbp
cmp    %rbp,0x30(%rsp)
jne    1230 <jacobi+0xc0>
test   %rbx,%rbx
je     12c0 <jacobi+0x150>
nopl   0x0(%rax,%rax,1)
mov    (%r15,%rbp,8),%r13
mov    %r13,%rdi
xor    %esi,%esi
mov    %r14,%rdx
call   1040 <memset@plt>
mov    %r12,0x0(%r13,%rbp,8)
add    $0x1,%rbp
add    $0xffffffffffffffff,%rbx
jne    12a0 <jacobi+0x130>
mov    0x40(%rsp),%r10
test   %r10d,%r10d
mov    0x98(%rsp),%r14
mov    0x58(%rsp),%rbp
mov    0x20(%rsp),%r11
mov    0x60(%rsp),%rsi
mov    0x78(%rsp),%r13
mov    0x28(%rsp),%rdi
jle    1369 <jacobi+0x1f9>
cmpq   $0x0,0x10(%rsp)
je     1dce <jacobi+0xc5e>
mov    %edi,%ecx
and    $0xfffffffe,%ecx
xor    %eax,%eax
xchg   %ax,%ax
mov    (%r11,%rax,8),%rdx
movsd  (%rdx,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  %xmm0,(%rsi,%rax,8)
movq   $0x0,0x0(%r13,%rax,8)
mov    0x8(%r11,%rax,8),%rdx
movsd  0x8(%rdx,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbp,%rax,8)
movsd  %xmm0,0x8(%rsi,%rax,8)
movq   $0x0,0x8(%r13,%rax,8)
add    $0x2,%rax
cmp    %rax,%rcx
jne    1300 <jacobi+0x190>
test   $0x1,%dil
je     1369 <jacobi+0x1f9>
mov    (%r11,%rax,8),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp,%rax,8)
movsd  %xmm0,(%rsi,%rax,8)
movq   $0x0,0x0(%r13,%rax,8)
movl   $0x0,(%r14)
mov    %r10d,%eax
imul   %r10d,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0xe8(%rsp)
lea    -0x1(%r10),%eax
mov    %rax,0x90(%rsp)
movslq %r10d,%rax
mov    %rax,0x88(%rsp)
lea    (%rsi,%rdi,8),%rax
lea    0x0(,%rdi,8),%r8
add    %rbp,%r8
lea    0x0(,%rdi,8),%rdx
add    %r13,%rdx
and    $0xfffffffc,%edi
mov    %rdi,0xd0(%rsp)
lea    -0x4(%rdi),%rcx
mov    %rcx,0xc8(%rsp)
mov    %rcx,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
cmp    %r8,%rsi
setb   %bl
cmp    %rbp,%rax
seta   %cl
and    %bl,%cl
cmp    %rdx,%rsi
setb   %bl
cmp    %rax,%r13
setb   %al
and    %bl,%al
or     %cl,%al
cmp    %rbp,%rdx
seta   %cl
lea    -0x3(%r10),%edx
mov    %edx,0x50(%rsp)
cmp    %r8,%r13
setb   %dl
and    %cl,%dl
or     %al,%dl
mov    %dl,0xf(%rsp)
mov    %rdi,%rax
mov    %rdi,0xc0(%rsp)
and    $0xfffffffffffffffe,%rdi
mov    %rdi,0xb8(%rsp)
mov    0x28(%rsp),%rax
neg    %rax
mov    %rax,0xd8(%rsp)
lea    0x8(%r11),%rax
mov    %rax,0xe0(%rsp)
movl   $0x1,0x1c(%rsp)
jmp    1474 <jacobi+0x304>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x1c(%rsp),%eax
add    $0x1,%eax
mov    %eax,0x1c(%rsp)
cmp    $0x33,%eax
je     1da8 <jacobi+0xc38>
cmp    $0x2,%r10d
jl     1d85 <jacobi+0xc15>
xorpd  %xmm1,%xmm1
mov    $0x1,%r15d
xor    %r14d,%r14d
jmp    14a8 <jacobi+0x338>
nopl   (%rax)
add    $0x1,%r15
cmp    0x90(%rsp),%r14
mov    0x58(%rsp),%rbp
mov    0x40(%rsp),%r10
je     1510 <jacobi+0x3a0>
mov    %r14,%rbx
add    $0x1,%r14
cmp    0x88(%rsp),%r14
jge    1490 <jacobi+0x320>
mov    %r15,%rbp
mov    0x28(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  %xmm1,0x30(%rsp)
mov    (%r11,%rbx,8),%rax
movsd  (%rax,%rbp,8),%xmm0
call   1050 <fabs@plt>
movsd  0x30(%rsp),%xmm1
mov    0x20(%rsp),%r11
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  %xmm0,%xmm1
add    $0x1,%rbp
cmp    %rbp,%r12
jne    14d0 <jacobi+0x360>
jmp    1490 <jacobi+0x320>
cs nopw 0x0(%rax,%rax,1)
nop
ucomisd 0xb08(%rip),%xmm1
mov    0x28(%rsp),%rbx
jne    1525 <jacobi+0x3b5>
jnp    1d85 <jacobi+0xc15>
xorpd  %xmm0,%xmm0
movsd  %xmm0,0xb0(%rsp)
cmpl   $0x3,0x1c(%rsp)
ja     1553 <jacobi+0x3e3>
mulsd  0xabf(%rip),%xmm1
divsd  0xe8(%rsp),%xmm1
movsd  %xmm1,0xb0(%rsp)
cmp    $0x2,%r10d
jl     1b90 <jacobi+0xa20>
mov    $0x1,%eax
mov    %rax,0x68(%rsp)
mov    $0x2,%eax
mov    %rax,0x80(%rsp)
mov    0x50(%rsp),%eax
mov    %eax,0x4c(%rsp)
mov    0xe0(%rsp),%rax
xor    %r12d,%r12d
jmp    15c6 <jacobi+0x456>
nopl   0x0(%rax)
addq   $0x1,0x68(%rsp)
addq   $0x1,0x80(%rsp)
mov    0xa8(%rsp),%rax
add    $0x8,%rax
addl   $0xffffffff,0x4c(%rsp)
mov    0xa0(%rsp),%r12
cmp    0x90(%rsp),%r12
je     1b90 <jacobi+0xa20>
mov    %rax,0xa8(%rsp)
lea    0x1(%r12),%rax
mov    %rax,0xa0(%rsp)
cmp    0x88(%rsp),%rax
jge    1590 <jacobi+0x420>
lea    0x3(%r12),%rax
mov    %rax,0xf0(%rsp)
mov    0x4c(%rsp),%eax
mov    %eax,0x54(%rsp)
xor    %r13d,%r13d
mov    0x68(%rsp),%r14
mov    0x80(%rsp),%r15
jmp    1635 <jacobi+0x4c5>
nopl   0x0(%rax)
mov    0x98(%rsp),%rax
addl   $0x1,(%rax)
add    $0x1,%r14
add    $0x1,%r15
add    $0x1,%r13
addl   $0xffffffff,0x54(%rsp)
cmp    %rbx,%r14
je     1590 <jacobi+0x420>
mov    (%r11,%r12,8),%rax
movsd  (%rax,%r14,8),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x9b5(%rip),%xmm0
movsd  %xmm0,0x30(%rsp)
cmpl   $0x5,0x1c(%rsp)
jb     1710 <jacobi+0x5a0>
movsd  0x0(%rbp,%r12,8),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x30(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x0(%rbp,%r12,8),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x10(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jne    1710 <jacobi+0x5a0>
jp     1710 <jacobi+0x5a0>
movsd  0x0(%rbp,%r14,8),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x30(%rsp),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0x0(%rbp,%r14,8),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x10(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jne    1710 <jacobi+0x5a0>
jp     1710 <jacobi+0x5a0>
mov    0x20(%rsp),%r11
mov    (%r11,%r12,8),%rax
movq   $0x0,(%rax,%r14,8)
mov    0x40(%rsp),%r10
jmp    161b <jacobi+0x4ab>
cs nopw 0x0(%rax,%rax,1)
nop
mov    0x20(%rsp),%rbx
mov    (%rbx,%r12,8),%rax
movsd  (%rax,%r14,8),%xmm0
call   1050 <fabs@plt>
mov    %rbx,%r11
mov    0x28(%rsp),%rbx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
ucomisd 0xb0(%rsp),%xmm0
mov    0x40(%rsp),%r10
jbe    161b <jacobi+0x4ab>
movsd  0x0(%rbp,%r14,8),%xmm0
subsd  0x0(%rbp,%r12,8),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x30(%rsp),%xmm1
addsd  %xmm0,%xmm1
xorps  %xmm0,%xmm0
cvtsd2ss %xmm1,%xmm0
movss  %xmm0,0x30(%rsp)
movsd  0x10(%rsp),%xmm0
call   1050 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %eax,%xmm0
movss  0x30(%rsp),%xmm1
ucomiss %xmm0,%xmm1
jne    17b4 <jacobi+0x644>
jp     17b4 <jacobi+0x644>
mov    0x20(%rsp),%rbx
mov    (%rbx,%r12,8),%rax
movsd  (%rax,%r14,8),%xmm1
divsd  0x10(%rsp),%xmm1
jmp    182b <jacobi+0x6bb>
movsd  0x10(%rsp),%xmm0
mulsd  0x84e(%rip),%xmm0
mov    0x20(%rsp),%rax
mov    (%rax,%r12,8),%rax
divsd  (%rax,%r14,8),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1050 <fabs@plt>
mov    %eax,%ebx
movsd  0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x828(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1090 <sqrt@plt>
add    %ebx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x80a(%rip),%xmm1
divsd  %xmm0,%xmm1
xorpd  %xmm0,%xmm0
ucomisd 0x10(%rsp),%xmm0
jbe    1826 <jacobi+0x6b6>
xorpd  0x80a(%rip),%xmm1
mov    0x20(%rsp),%rbx
movapd %xmm1,0x30(%rsp)
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movsd  0x7d7(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1090 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x7bb(%rip),%xmm1
movapd %xmm1,%xmm2
divsd  %xmm0,%xmm2
movapd 0x30(%rsp),%xmm3
movapd %xmm3,%xmm0
mulsd  %xmm2,%xmm0
mov    (%rbx,%r12,8),%rax
mulsd  (%rax,%r14,8),%xmm3
addsd  %xmm1,%xmm2
mov    0x78(%rsp),%rcx
movsd  (%rcx,%r12,8),%xmm1
subsd  %xmm3,%xmm1
movsd  %xmm1,(%rcx,%r12,8)
movsd  (%rcx,%r14,8),%xmm1
addsd  %xmm3,%xmm1
movsd  %xmm1,(%rcx,%r14,8)
movsd  0x0(%rbp,%r12,8),%xmm1
subsd  %xmm3,%xmm1
movsd  %xmm1,0x0(%rbp,%r12,8)
movapd %xmm0,%xmm1
addsd  0x0(%rbp,%r14,8),%xmm3
divsd  %xmm2,%xmm1
movsd  %xmm3,0x0(%rbp,%r14,8)
movq   $0x0,(%rax,%r14,8)
test   %r12,%r12
mov    %rbx,%r11
je     193d <jacobi+0x7cd>
movapd %xmm0,%xmm2
xorpd  0x746(%rip),%xmm2
xor    %ecx,%ecx
nopl   0x0(%rax)
mov    (%r11,%rcx,8),%rdx
movsd  (%rdx,%r12,8),%xmm3
movsd  (%rdx,%r14,8),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rdx,%r12,8)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rdx,%r14,8)
add    $0x1,%rcx
cmp    %rcx,%r12
jne    18f0 <jacobi+0x780>
cmp    %r14,0xa0(%rsp)
mov    0x40(%rsp),%r10
mov    0x28(%rsp),%rbx
mov    0xa8(%rsp),%rdi
jae    19bb <jacobi+0x84b>
movapd %xmm0,%xmm2
xorpd  0x6cb(%rip),%xmm2
mov    0x68(%rsp),%rcx
lea    (%rax,%rcx,8),%rcx
xor    %edx,%edx
movsd  (%rcx,%rdx,8),%xmm3
mov    (%rdi,%rdx,8),%rsi
movsd  (%rsi,%r14,8),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rcx,%rdx,8)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rsi,%r14,8)
add    $0x1,%rdx
cmp    %rdx,%r13
jne    1970 <jacobi+0x800>
lea    0x1(%r14),%ecx
cmp    %r10d,%ecx
jge    1b05 <jacobi+0x995>
lea    (%r12,%r13,1),%esi
mov    0x50(%rsp),%ecx
mov    %ecx,%r8d
mov    (%r11,%r14,8),%rcx
movapd %xmm0,%xmm2
xorpd  0x64d(%rip),%xmm2
mov    %r15,%rdx
sub    %esi,%r8d
je     1ac0 <jacobi+0x950>
mov    0xf0(%rsp),%rdx
add    %r13,%rdx
add    %r8,%rdx
lea    (%rax,%r15,8),%rdi
lea    (%rcx,%r15,8),%rsi
lea    (%rcx,%rdx,8),%rbp
cmp    %rbp,%rdi
jae    1a23 <jacobi+0x8b3>
lea    (%rax,%rdx,8),%rbp
mov    %r15,%rdx
cmp    %rbp,%rsi
mov    0x58(%rsp),%rbp
jb     1ac0 <jacobi+0x950>
mov    0x54(%rsp),%ebx
add    $0x1,%rbx
and    $0xfffffffffffffffe,%rbx
add    $0x1,%r8
mov    %r8,%r9
and    $0xfffffffffffffffe,%r9
lea    (%r15,%r9,1),%rdx
movapd %xmm1,%xmm3
unpcklpd %xmm1,%xmm3
movapd %xmm2,%xmm8
unpcklpd %xmm2,%xmm8
movapd %xmm0,%xmm5
unpcklpd %xmm0,%xmm5
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movupd (%rdi,%rbp,8),%xmm4
movupd (%rsi,%rbp,8),%xmm7
movapd %xmm4,%xmm6
mulpd  %xmm3,%xmm6
addpd  %xmm7,%xmm6
mulpd  %xmm8,%xmm6
addpd  %xmm4,%xmm6
movupd %xmm6,(%rdi,%rbp,8)
movapd %xmm7,%xmm6
mulpd  %xmm3,%xmm6
subpd  %xmm6,%xmm4
mulpd  %xmm5,%xmm4
addpd  %xmm7,%xmm4
movupd %xmm4,(%rsi,%rbp,8)
add    $0x2,%rbp
cmp    %rbp,%rbx
jne    1a60 <jacobi+0x8f0>
cmp    %r9,%r8
mov    0x58(%rsp),%rbp
mov    0x28(%rsp),%rbx
je     1b05 <jacobi+0x995>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  (%rax,%rdx,8),%xmm3
movsd  (%rcx,%rdx,8),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rax,%rdx,8)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rcx,%rdx,8)
add    $0x1,%rdx
cmp    %r10d,%edx
jl     1ac0 <jacobi+0x950>
test   %r10d,%r10d
mov    0x70(%rsp),%rdx
jle    1610 <jacobi+0x4a0>
movapd %xmm0,%xmm2
xorpd  0x511(%rip),%xmm2
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    (%rdx,%rax,8),%rcx
movsd  (%rcx,%r12,8),%xmm3
movsd  (%rcx,%r14,8),%xmm4
movapd %xmm3,%xmm5
mulsd  %xmm1,%xmm5
addsd  %xmm4,%xmm5
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
movsd  %xmm5,(%rcx,%r12,8)
movapd %xmm4,%xmm5
mulsd  %xmm1,%xmm5
subsd  %xmm5,%xmm3
mulsd  %xmm0,%xmm3
addsd  %xmm4,%xmm3
movsd  %xmm3,(%rcx,%r14,8)
add    $0x1,%rax
cmp    %rax,%rbx
jne    1b30 <jacobi+0x9c0>
jmp    1610 <jacobi+0x4a0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
test   %r10d,%r10d
mov    0x60(%rsp),%rsi
mov    0x78(%rsp),%r13
xorpd  %xmm3,%xmm3
jle    1460 <jacobi+0x2f0>
cmp    $0x4,%r10d
setb   %al
or     0xf(%rsp),%al
je     1bc0 <jacobi+0xa50>
xor    %ecx,%ecx
jmp    1ce0 <jacobi+0xb70>
nopl   0x0(%rax,%rax,1)
cmpq   $0x0,0xc8(%rsp)
je     1d70 <jacobi+0xc00>
mov    0xb8(%rsp),%rcx
xor    %eax,%eax
nopl   0x0(%rax)
movupd 0x0(%r13,%rax,8),%xmm0
movupd 0x10(%r13,%rax,8),%xmm1
movupd (%rsi,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rsi,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rsi,%rax,8)
movupd %xmm0,0x10(%rsi,%rax,8)
movupd %xmm2,0x0(%rbp,%rax,8)
movupd %xmm0,0x10(%rbp,%rax,8)
movupd %xmm3,0x0(%r13,%rax,8)
movupd %xmm3,0x10(%r13,%rax,8)
movupd 0x20(%r13,%rax,8),%xmm0
movupd 0x30(%r13,%rax,8),%xmm1
movupd 0x20(%rsi,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x30(%rsi,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,0x20(%rsi,%rax,8)
movupd %xmm0,0x30(%rsi,%rax,8)
movupd %xmm2,0x20(%rbp,%rax,8)
movupd %xmm0,0x30(%rbp,%rax,8)
movupd %xmm3,0x20(%r13,%rax,8)
movupd %xmm3,0x30(%r13,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    1be0 <jacobi+0xa70>
testb  $0x1,0xc0(%rsp)
01
je     1ccc <jacobi+0xb5c>
movupd 0x0(%r13,%rax,8),%xmm0
movupd 0x10(%r13,%rax,8),%xmm1
movupd (%rsi,%rax,8),%xmm2
addpd  %xmm0,%xmm2
movupd 0x10(%rsi,%rax,8),%xmm0
addpd  %xmm1,%xmm0
movupd %xmm2,(%rsi,%rax,8)
movupd %xmm0,0x10(%rsi,%rax,8)
movupd %xmm2,0x0(%rbp,%rax,8)
movupd %xmm0,0x10(%rbp,%rax,8)
movupd %xmm3,0x0(%r13,%rax,8)
movupd %xmm3,0x10(%r13,%rax,8)
mov    0xd0(%rsp),%rax
mov    %rax,%rcx
cmp    %rbx,%rax
je     1460 <jacobi+0x2f0>
mov    %rcx,%rax
test   $0x1,%bl
je     1d0f <jacobi+0xb9f>
movsd  0x0(%r13,%rcx,8),%xmm0
addsd  (%rsi,%rcx,8),%xmm0
movsd  %xmm0,(%rsi,%rcx,8)
movsd  %xmm0,0x0(%rbp,%rcx,8)
movq   $0x0,0x0(%r13,%rcx,8)
mov    %rcx,%rax
or     $0x1,%rax
not    %rcx
cmp    0xd8(%rsp),%rcx
je     1460 <jacobi+0x2f0>
movsd  0x0(%r13,%rax,8),%xmm0
addsd  (%rsi,%rax,8),%xmm0
movsd  %xmm0,(%rsi,%rax,8)
movsd  %xmm0,0x0(%rbp,%rax,8)
movq   $0x0,0x0(%r13,%rax,8)
movsd  0x8(%r13,%rax,8),%xmm0
addsd  0x8(%rsi,%rax,8),%xmm0
movsd  %xmm0,0x8(%rsi,%rax,8)
movsd  %xmm0,0x8(%rbp,%rax,8)
movq   $0x0,0x8(%r13,%rax,8)
add    $0x2,%rax
cmp    %rax,%rbx
jne    1d20 <jacobi+0xbb0>
jmp    1460 <jacobi+0x2f0>
xor    %eax,%eax
testb  $0x1,0xc0(%rsp)
01
jne    1c86 <jacobi+0xb16>
jmp    1ccc <jacobi+0xb5c>
mov    %r13,%rdi
call   1030 <free@plt>
mov    0x60(%rsp),%rdi
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>
mov    0x2231(%rip),%rax
mov    (%rax),%edi
lea    0x288(%rip),%rsi
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <fprintf@plt>
xor    %eax,%eax
test   $0x1,%dil
jne    134c <jacobi+0x1dc>
jmp    1369 <jacobi+0x1f9>

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

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