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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ eigen_symm_2d(double *, double **, double **);
int fabs(double);
int /*<<< orphan*/ free_matrix2(double **);
int /*<<< orphan*/ isfinite(double);
double **matrix_clone(double **, int, int);
int /*<<< orphan*/ matrix_copy(double **, double **, int, int);
int /*<<< orphan*/ matrix_mult(double **, double **, double **, int, int, int);
double **new_matrix2(int, int);
int /*<<< orphan*/ printf(char *, double, double);
int /*<<< orphan*/ reversei(int *, int *, int);
int /*<<< orphan*/ sort_indices(double *, int *, int);
int sqrt(int);
int /*<<< orphan*/ transpose(double **, double **, int, int);
void eigen_symm(double z[], double **V, double **X, int n) {
  if (n == 2) {
    eigen_symm_2d(z, V, X);
    return;
  }
  int i, j;
  double tolerance = 1e-10;
  double **A = matrix_clone(X, n, n);
  double **B = new_matrix2(n, n);
  double **G = new_matrix2(n, n);
  double **Gt = new_matrix2(n, n);
  int cnt = 1;
  for (i = 0; i < n; i++) {
    V[i][i] = 1;
    for (j = i + 1; j < n; j++)
      V[i][j] = V[j][i] = 0;
  }
  while (1) {
    double d_off = 0, d_diag = 0;
    for (i = 0; i < n; i++) {
      d_diag += A[i][i] * A[i][i];
      for (j = i + 1; j < n; j++)
        d_off = ((d_off) > (fabs(A[i][j])) ? (d_off) : (fabs(A[i][j])));
    }
    d_diag = sqrt(d_diag / (double)n);
    if (d_off < ((tolerance * d_diag) > (tolerance) ? (tolerance * d_diag)
                                                    : (tolerance)))
      break;
    if (cnt++ % 1000 == 0) {
      printf("d_off = %e, d_diag = %e\n", d_off, d_diag);
      if (!isfinite(d_off) || !isfinite(d_diag))
        return;
    }
    double pivot = 0;
    int ip = 0, jp = 0;
    for (i = 0; i < n; i++) {
      for (j = i + 1; j < n; j++) {
        double p = fabs(A[i][j]);
        if (p > pivot) {
          pivot = p;
          ip = i;
          jp = j;
        }
      }
    }
    double a = (A[jp][jp] - A[ip][ip]) / (2 * A[ip][jp]);
    double t = 1 / (fabs(a) + sqrt(1 + a * a));
    if (a < 0)
      t = -t;
    double c = 1 / sqrt(1 + t * t);
    double s = t * c;
    for (i = 0; i < n; i++) {
      G[i][i] = 1;
      for (j = i + 1; j < n; j++)
        G[i][j] = G[j][i] = 0;
    }
    G[ip][ip] = G[jp][jp] = c;
    G[ip][jp] = s;
    G[jp][ip] = -s;
    transpose(Gt, G, n, n);
    matrix_mult(B, A, G, n, n, n);
    matrix_mult(A, Gt, B, n, n, n);
    matrix_mult(B, Gt, V, n, n, n);
    matrix_copy(V, B, n, n);
  }
  int idx[n];
  double z2[n];
  for (i = 0; i < n; i++)
    z[i] = A[i][i];
  sort_indices(z, idx, n);
  if (z[idx[0]] < -tolerance) {
    reversei(idx, idx, n);
  }
  for (i = 0; i < n; i++)
    z2[i] = z[idx[i]];
  for (i = 0; i < n; i++)
    z[i] = z2[i];
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      B[i][j] = V[idx[i]][j];
  matrix_copy(V, B, n, n);
  free_matrix2(A);
  free_matrix2(B);
  free_matrix2(G);
  free_matrix2(Gt);
}


x86 assembly (clang, -O0):
<eigen_symm>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jne    120a <eigen_symm+0x3a>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   10f0 <eigen_symm_2d@plt>
jmp    1ab1 <eigen_symm+0x8e1>
movsd  0xdee(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%esi
mov    -0x1c(%rbp),%edx
call   1040 <matrix_clone@plt>
mov    %rax,-0x38(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10c0 <new_matrix2@plt>
mov    %rax,-0x40(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10c0 <new_matrix2@plt>
mov    %rax,-0x48(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x1c(%rbp),%esi
call   10c0 <new_matrix2@plt>
mov    %rax,-0x50(%rbp)
movl   $0x1,-0x54(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12f4 <eigen_symm+0x124>
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  0xd7f(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12e1 <eigen_symm+0x111>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1297 <eigen_symm+0xc7>
jmp    12e6 <eigen_symm+0x116>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1265 <eigen_symm+0x95>
jmp    12f9 <eigen_symm+0x129>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x68(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1410 <eigen_symm+0x240>
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x68(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13fd <eigen_symm+0x22d>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1060 <fabs@plt>
movsd  -0xc0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
ucomisd %xmm1,%xmm0
jbe    13bc <eigen_symm+0x1ec>
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
jmp    13e2 <eigen_symm+0x212>
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1060 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
movsd  -0xc8(%rbp),%xmm0
ff
movsd  %xmm0,-0x60(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1361 <eigen_symm+0x191>
jmp    1402 <eigen_symm+0x232>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1310 <eigen_symm+0x140>
movsd  -0x68(%rbp),%xmm0
cvtsi2sdl -0x1c(%rbp),%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   10e0 <sqrt@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  -0x30(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    1469 <eigen_symm+0x299>
movsd  -0x30(%rbp),%xmm0
mulsd  -0x68(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
jmp    1476 <eigen_symm+0x2a6>
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  -0xd0(%rbp),%xmm1
ff
movsd  -0xd8(%rbp),%xmm0
ff
ucomisd %xmm1,%xmm0
jbe    1495 <eigen_symm+0x2c5>
jmp    1876 <eigen_symm+0x6a6>
mov    -0x54(%rbp),%eax
mov    %eax,%ecx
add    $0x1,%ecx
mov    %ecx,-0x54(%rbp)
mov    $0x3e8,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    14f7 <eigen_symm+0x327>
movsd  -0x60(%rbp),%xmm0
movsd  -0x68(%rbp),%xmm1
lea    0xb56(%rip),%rdi
call   1030 <printf@plt>
movsd  -0x60(%rbp),%xmm0
call   10b0 <isfinite@plt>
cmp    $0x0,%eax
je     14ed <eigen_symm+0x31d>
movsd  -0x68(%rbp),%xmm0
call   10b0 <isfinite@plt>
cmp    $0x0,%eax
jne    14f2 <eigen_symm+0x322>
jmp    1ab1 <eigen_symm+0x8e1>
jmp    14f7 <eigen_symm+0x327>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x70(%rbp)
movl   $0x0,-0x74(%rbp)
movl   $0x0,-0x78(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    15a4 <eigen_symm+0x3d4>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1591 <eigen_symm+0x3c1>
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
call   1060 <fabs@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x80(%rbp),%xmm0
ucomisd -0x70(%rbp),%xmm0
jbe    157e <eigen_symm+0x3ae>
movsd  -0x80(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x78(%rbp)
jmp    1583 <eigen_symm+0x3b3>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1529 <eigen_symm+0x359>
jmp    1596 <eigen_symm+0x3c6>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1514 <eigen_symm+0x344>
mov    -0x38(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x78(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x74(%rbp),%rcx
subsd  (%rax,%rcx,8),%xmm0
mov    -0x38(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x78(%rbp),%rcx
movsd  0xa2a(%rip),%xmm1
mulsd  (%rax,%rcx,8),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x88(%rbp),%xmm0
ff
call   1060 <fabs@plt>
mov    %eax,-0xdc(%rbp)
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x88(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  0x9e2(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   10e0 <sqrt@plt>
mov    -0xdc(%rbp),%ecx
add    %eax,%ecx
mov    $0x1,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
xorps  %xmm0,%xmm0
ucomisd -0x88(%rbp),%xmm0
ff
jbe    1687 <eigen_symm+0x4b7>
movsd  -0x90(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
movsd  -0x90(%rbp),%xmm1
ff
mulsd  %xmm1,%xmm0
movsd  0x965(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   10e0 <sqrt@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x90(%rbp),%xmm0
ff
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0xa0(%rbp)
ff
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1774 <eigen_symm+0x5a4>
mov    -0x48(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  0x8ff(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1761 <eigen_symm+0x591>
mov    -0x48(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1717 <eigen_symm+0x547>
jmp    1766 <eigen_symm+0x596>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    16e5 <eigen_symm+0x515>
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x78(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x48(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x74(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
mov    -0x48(%rbp),%rax
movslq -0x74(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x78(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0xa0(%rbp),%xmm0
ff
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x48(%rbp),%rax
movslq -0x78(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x74(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x50(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x1c(%rbp),%ecx
call   1070 <transpose@plt>
mov    -0x40(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    -0x48(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
call   1080 <matrix_mult@plt>
mov    -0x38(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x40(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
call   1080 <matrix_mult@plt>
mov    -0x40(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    -0x10(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
mov    -0x1c(%rbp),%r8d
mov    -0x1c(%rbp),%r9d
call   1080 <matrix_mult@plt>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x1c(%rbp),%ecx
call   1050 <matrix_copy@plt>
jmp    12f9 <eigen_symm+0x129>
mov    -0x1c(%rbp),%eax
mov    %rsp,%rcx
mov    %rcx,-0xa8(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xf0(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xb0(%rbp)
mov    -0x1c(%rbp),%eax
lea    0xf(,%rax,8),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0xe8(%rbp)
mov    %rcx,%rsp
mov    %rax,-0xb8(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    190f <eigen_symm+0x73f>
mov    -0x38(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    18d3 <eigen_symm+0x703>
mov    -0xf0(%rbp),%rsi
mov    -0x8(%rbp),%rdi
mov    -0x1c(%rbp),%edx
call   10a0 <sort_indices@plt>
mov    -0xf0(%rbp),%rcx
mov    -0x8(%rbp),%rax
movslq (%rcx),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0x30(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
ucomisd %xmm1,%xmm0
jbe    196d <eigen_symm+0x79d>
mov    -0xf0(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    %rsi,%rdi
call   10d0 <reversei@plt>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    19b6 <eigen_symm+0x7e6>
mov    -0xe8(%rbp),%rax
mov    -0xf0(%rbp),%rdx
mov    -0x8(%rbp),%rcx
movslq -0x20(%rbp),%rsi
movslq (%rdx,%rsi,4),%rdx
movsd  (%rcx,%rdx,8),%xmm0
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1974 <eigen_symm+0x7a4>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    19f4 <eigen_symm+0x824>
mov    -0xe8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    19bd <eigen_symm+0x7ed>
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1a70 <eigen_symm+0x8a0>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1a5d <eigen_symm+0x88d>
mov    -0xf0(%rbp),%rcx
mov    -0x10(%rbp),%rax
movslq -0x20(%rbp),%rdx
movslq (%rcx,%rdx,4),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1a0e <eigen_symm+0x83e>
jmp    1a62 <eigen_symm+0x892>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    19fb <eigen_symm+0x82b>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x1c(%rbp),%ecx
call   1050 <matrix_copy@plt>
mov    -0x38(%rbp),%rdi
call   1090 <free_matrix2@plt>
mov    -0x40(%rbp),%rdi
call   1090 <free_matrix2@plt>
mov    -0x48(%rbp),%rdi
call   1090 <free_matrix2@plt>
mov    -0x50(%rbp),%rdi
call   1090 <free_matrix2@plt>
mov    -0xa8(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<eigen_symm>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x88,%rsp
mov    %rsi,%r14
cmp    $0x2,%ecx
jne    1212 <eigen_symm+0x32>
mov    %r14,%rsi
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1100 <eigen_symm_2d@plt>
mov    %ecx,%r13d
mov    %rdi,-0x60(%rbp)
mov    %rdx,%rdi
mov    %ecx,%esi
mov    %ecx,%edx
call   1040 <matrix_clone@plt>
mov    %rax,%r12
mov    %r13d,%edi
mov    %r13d,%esi
call   10d0 <new_matrix2@plt>
mov    %rax,-0x68(%rbp)
mov    %r13d,%edi
mov    %r13d,%esi
call   10d0 <new_matrix2@plt>
mov    %rax,-0xa0(%rbp)
mov    %r13d,%edi
mov    %r13d,%esi
call   10d0 <new_matrix2@plt>
mov    %rax,-0x98(%rbp)
mov    %r13d,%r9d
test   %r13d,%r13d
jle    12d5 <eigen_symm+0xf5>
xor    %r8d,%r8d
mov    %r9,%rax
mov    %r14,%rcx
jmp    127d <eigen_symm+0x9d>
xchg   %ax,%ax
add    $0x8,%rcx
add    $0xffffffffffffffff,%rax
cmp    %r9,%r8
je     12cf <eigen_symm+0xef>
mov    %r8,%rsi
mov    (%r14,%r8,8),%rdi
movabs $0x3ff0000000000000,%rdx
mov    %rdx,(%rdi,%r8,8)
add    $0x1,%r8
cmp    %r9,%r8
jae    1270 <eigen_symm+0x90>
lea    (%rdi,%rsi,8),%rdi
mov    $0x1,%ebx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rcx,%rbx,8),%rdx
movq   $0x0,(%rdx,%rsi,8)
movq   $0x0,(%rdi,%rbx,8)
add    $0x1,%rbx
cmp    %rbx,%rax
jne    12b0 <eigen_symm+0xd0>
jmp    1270 <eigen_symm+0x90>
mov    %r9,-0x58(%rbp)
jmp    12dc <eigen_symm+0xfc>
movslq %r13d,%rax
mov    %rax,-0x58(%rbp)
cvtsi2sd %r13d,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
lea    -0x2(%r9),%rax
mov    %rax,-0x88(%rbp)
movl   $0x1,-0x4c(%rbp)
mov    %r13d,-0x8c(%rbp)
mov    %r14,-0x70(%rbp)
mov    %r12,-0x78(%rbp)
mov    %r9,-0x30(%rbp)
jmp    13d8 <eigen_symm+0x1f8>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
addl   $0x1,-0x4c(%rbp)
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd -0x40(%rbp),%xmm1
mulsd  %xmm0,%xmm1
mov    (%rsi,%r15,8),%rax
movsd  %xmm0,(%rax,%r15,8)
mov    -0x48(%rbp),%rdx
mov    (%rsi,%rdx,8),%rcx
movsd  %xmm0,(%rcx,%rdx,8)
movsd  %xmm1,(%rcx,%r15,8)
xorpd  0xcc7(%rip),%xmm1
movlpd %xmm1,(%rax,%rdx,8)
mov    -0x98(%rbp),%r14
mov    %r14,%rdi
mov    %r13d,%edx
mov    %r13d,%ecx
mov    %rsi,%r15
call   1070 <transpose@plt>
mov    -0x68(%rbp),%rbx
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r13d,%ecx
mov    %r13d,%r8d
mov    %r13d,%r9d
call   1080 <matrix_mult@plt>
mov    %r12,%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
mov    %r13d,%ecx
mov    %r13d,%r8d
mov    %r13d,%r9d
call   1080 <matrix_mult@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    -0x70(%rbp),%r14
mov    %r14,%rdx
mov    %r13d,%ecx
mov    %r13d,%r8d
mov    %r13d,%r9d
call   1080 <matrix_mult@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r13d,%edx
mov    %r13d,%ecx
call   1050 <matrix_copy@plt>
mov    -0x30(%rbp),%r9
xorpd  %xmm1,%xmm1
xorpd  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
test   %r13d,%r13d
jle    1490 <eigen_symm+0x2b0>
xorpd  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xor    %r14d,%r14d
xorpd  %xmm1,%xmm1
jmp    141b <eigen_symm+0x23b>
mov    -0x30(%rbp),%r9
movsd  -0x48(%rbp),%xmm1
movsd  -0x80(%rbp),%xmm0
mulsd  %xmm0,%xmm0
addsd  %xmm0,%xmm1
cmp    %r9,%r14
je     1490 <eigen_symm+0x2b0>
mov    %r14,%r15
mov    (%r12,%r14,8),%rax
movsd  (%rax,%r14,8),%xmm0
add    $0x1,%r14
cmp    -0x58(%rbp),%r14
jge    140e <eigen_symm+0x22e>
movsd  %xmm0,-0x80(%rbp)
movsd  %xmm1,-0x48(%rbp)
mov    %r15,%rbx
nop
movsd  0x8(%rax,%rbx,8),%xmm0
call   1060 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  -0x40(%rbp),%xmm1
ucomisd %xmm0,%xmm1
ja     1478 <eigen_symm+0x298>
mov    (%r12,%r15,8),%rax
movsd  0x8(%rax,%rbx,8),%xmm0
call   1060 <fabs@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x40(%rbp)
cmp    %rbx,-0x88(%rbp)
je     1400 <eigen_symm+0x220>
mov    (%r12,%r15,8),%rax
add    $0x1,%rbx
jmp    1440 <eigen_symm+0x260>
nop
divsd  -0xa8(%rbp),%xmm1
ff
cvttsd2si %xmm1,%edi
call   10f0 <sqrt@plt>
cvtsi2sd %eax,%xmm2
movapd %xmm2,%xmm0
movsd  0xb4f(%rip),%xmm1
mulsd  %xmm1,%xmm0
maxsd  %xmm1,%xmm0
ucomisd -0x40(%rbp),%xmm0
ja     170f <eigen_symm+0x52f>
imul   $0x26e978d5,-0x4c(%rbp),%eax
ror    $0x3,%eax
cmp    $0x418937,%eax
ja     1513 <eigen_symm+0x333>
lea    0xb54(%rip),%rdi
movsd  -0x40(%rbp),%xmm0
movapd %xmm2,%xmm1
movsd  %xmm2,-0x48(%rbp)
call   1030 <printf@plt>
movsd  -0x40(%rbp),%xmm0
call   10c0 <isfinite@plt>
movsd  -0x48(%rbp),%xmm0
test   %eax,%eax
je     1b12 <eigen_symm+0x932>
call   10c0 <isfinite@plt>
test   %eax,%eax
je     1b12 <eigen_symm+0x932>
test   %r13d,%r13d
jle    15c0 <eigen_symm+0x3e0>
xor    %r13d,%r13d
xorpd  %xmm1,%xmm1
mov    $0x1,%r15d
xor    %r14d,%r14d
xor    %ebx,%ebx
mov    -0x30(%rbp),%rcx
jmp    1559 <eigen_symm+0x379>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movapd %xmm1,%xmm0
mov    -0x80(%rbp),%r15
add    $0x1,%r15
movapd %xmm0,%xmm1
mov    -0x48(%rbp),%r13
cmp    %rcx,%r13
je     15c5 <eigen_symm+0x3e5>
lea    0x1(%r13),%rax
cmp    -0x58(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    %r15,-0x80(%rbp)
jge    1540 <eigen_symm+0x360>
mov    -0x78(%rbp),%r12
nop
movsd  %xmm1,-0x40(%rbp)
mov    (%r12,%r13,8),%rax
movsd  (%rax,%r15,8),%xmm0
call   1060 <fabs@plt>
mov    -0x30(%rbp),%rcx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  -0x40(%rbp),%xmm1
ucomisd %xmm1,%xmm0
cmova  %r13d,%ebx
cmova  %r15d,%r14d
maxsd  %xmm1,%xmm0
add    $0x1,%r15
movapd %xmm0,%xmm1
cmp    %r15,%rcx
jne    1570 <eigen_symm+0x390>
jmp    1544 <eigen_symm+0x364>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %ebx,%ebx
xor    %r14d,%r14d
movslq %r14d,%r15
mov    -0x78(%rbp),%r12
mov    (%r12,%r15,8),%rax
movsd  (%rax,%r15,8),%xmm0
movslq %ebx,%rcx
mov    (%r12,%rcx,8),%rax
mov    %rcx,-0x48(%rbp)
subsd  (%rax,%rcx,8),%xmm0
movsd  (%rax,%r15,8),%xmm1
addsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
movapd %xmm0,-0x40(%rbp)
call   1060 <fabs@plt>
mov    %eax,%ebx
movapd -0x40(%rbp),%xmm0
mulsd  %xmm0,%xmm0
movsd  0x9f7(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   10f0 <sqrt@plt>
lea    (%rax,%rbx,1),%ecx
add    %ebx,%eax
add    $0x1,%eax
cmp    $0x3,%eax
mov    $0x0,%ebx
cmovae %ebx,%ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
movapd -0x40(%rbp),%xmm2
cmpltsd 0x9d2(%rip),%xmm2
movapd %xmm2,%xmm0
andnpd %xmm1,%xmm0
xorpd  0x9ca(%rip),%xmm1
andpd  %xmm2,%xmm1
orpd   %xmm0,%xmm1
movapd %xmm1,-0x40(%rbp)
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
addsd  0x995(%rip),%xmm0
cvttsd2si %xmm0,%edi
call   10f0 <sqrt@plt>
mov    -0x30(%rbp),%r11
lea    0x1(%rax),%ecx
cmp    $0x3,%ecx
cmovae %ebx,%eax
mov    -0x8c(%rbp),%ecx
mov    %ecx,%r13d
test   %ecx,%ecx
mov    -0xa0(%rbp),%rsi
movabs $0x3ff0000000000000,%r14
jle    1320 <eigen_symm+0x140>
mov    %r11,%r9
mov    %rsi,%r10
xor    %r8d,%r8d
jmp    16d1 <eigen_symm+0x4f1>
cs nopw 0x0(%rax,%rax,1)
add    $0x8,%r10
add    $0xffffffffffffffff,%r9
cmp    %r11,%r8
je     1320 <eigen_symm+0x140>
mov    %r8,%rdi
mov    (%rsi,%r8,8),%rcx
mov    %r14,(%rcx,%r8,8)
add    $0x1,%r8
cmp    -0x58(%rbp),%r8
jge    16c0 <eigen_symm+0x4e0>
lea    (%rcx,%rdi,8),%rbx
mov    $0x1,%edx
nop
mov    (%r10,%rdx,8),%rcx
movq   $0x0,(%rcx,%rdi,8)
movq   $0x0,(%rbx,%rdx,8)
add    $0x1,%rdx
cmp    %rdx,%r9
jne    16f0 <eigen_symm+0x510>
jmp    16c0 <eigen_symm+0x4e0>
mov    %rsp,-0x88(%rbp)
mov    %rsp,%r14
mov    -0x30(%rbp),%rdx
lea    0xf(,%rdx,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%r14
mov    %r14,%rsp
mov    %rsp,%rbx
lea    0xf(,%rdx,8),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rbx
mov    %rbx,%rsp
test   %r13d,%r13d
mov    -0x60(%rbp),%rdi
jle    17d8 <eigen_symm+0x5f8>
lea    -0x1(%rdx),%rcx
mov    %edx,%eax
and    $0x3,%eax
cmp    $0x3,%rcx
jae    1764 <eigen_symm+0x584>
xor    %ecx,%ecx
jmp    17ba <eigen_symm+0x5da>
and    $0xfffffffc,%edx
xor    %ecx,%ecx
nopl   0x0(%rax)
mov    (%r12,%rcx,8),%rsi
movsd  (%rsi,%rcx,8),%xmm0
movsd  %xmm0,(%rdi,%rcx,8)
mov    0x8(%r12,%rcx,8),%rsi
movsd  0x8(%rsi,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rdi,%rcx,8)
mov    0x10(%r12,%rcx,8),%rsi
movsd  0x10(%rsi,%rcx,8),%xmm0
movsd  %xmm0,0x10(%rdi,%rcx,8)
mov    0x18(%r12,%rcx,8),%rsi
movsd  0x18(%rsi,%rcx,8),%xmm0
movsd  %xmm0,0x18(%rdi,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    1770 <eigen_symm+0x590>
test   %rax,%rax
je     17d8 <eigen_symm+0x5f8>
nop
mov    (%r12,%rcx,8),%rdx
movsd  (%rdx,%rcx,8),%xmm0
movsd  %xmm0,(%rdi,%rcx,8)
add    $0x1,%rcx
add    $0xffffffffffffffff,%rax
jne    17c0 <eigen_symm+0x5e0>
mov    %r14,%rsi
mov    %r13d,%edx
call   10b0 <sort_indices@plt>
mov    -0x60(%rbp),%rdi
movslq (%r14),%rax
movsd  0x81e(%rip),%xmm0
ucomisd (%rdi,%rax,8),%xmm0
jbe    180b <eigen_symm+0x62b>
mov    %r14,%rdi
mov    %r14,%rsi
mov    %r13d,%edx
call   10e0 <reversei@plt>
mov    -0x60(%rbp),%rdi
mov    %r14,-0x40(%rbp)
mov    %r13d,%r15d
test   %r13d,%r13d
jle    1acc <eigen_symm+0x8ec>
mov    -0x30(%rbp),%rdx
lea    -0x1(%rdx),%rcx
mov    %edx,%r9d
and    $0x3,%r9d
cmp    $0x3,%rcx
jae    183b <eigen_symm+0x65b>
xor    %ecx,%ecx
mov    %r15d,%r8d
mov    -0x40(%rbp),%rax
jmp    1897 <eigen_symm+0x6b7>
and    $0xfffffffc,%edx
xor    %ecx,%ecx
mov    %r15d,%r8d
mov    -0x40(%rbp),%rax
nopw   0x0(%rax,%rax,1)
movslq (%rax,%rcx,4),%rsi
movsd  (%rdi,%rsi,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movslq 0x4(%rax,%rcx,4),%rsi
movsd  (%rdi,%rsi,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movslq 0x8(%rax,%rcx,4),%rsi
movsd  (%rdi,%rsi,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rcx,8)
movslq 0xc(%rax,%rcx,4),%rsi
movsd  (%rdi,%rsi,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rcx,8)
add    $0x4,%rcx
cmp    %rcx,%rdx
jne    1850 <eigen_symm+0x670>
test   %r9,%r9
je     18c7 <eigen_symm+0x6e7>
lea    (%rbx,%rcx,8),%rdx
lea    (%rax,%rcx,4),%rcx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movslq (%rcx,%rsi,4),%rax
movsd  (%rdi,%rax,8),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%r9
jne    18b0 <eigen_symm+0x6d0>
test   %r8d,%r8d
jle    1acc <eigen_symm+0x8ec>
mov    -0x30(%rbp),%r14
lea    0x0(,%r14,8),%rdx
mov    %rbx,%rsi
call   1090 <memcpy@plt>
mov    %r14d,%r10d
and    $0xfffffffc,%r10d
add    $0xfffffffffffffffc,%r10
mov    %r10,%r8
shr    $0x2,%r8
add    $0x1,%r8
mov    %r14d,%r11d
and    $0xfffffffc,%r11d
mov    %r8d,%r9d
and    $0x3,%r9d
and    $0xfffffffffffffffc,%r8
and    $0x3,%r14d
mov    %r9,%r12
shl    $0x5,%r12
xor    %r13d,%r13d
jmp    192d <eigen_symm+0x74d>
nopl   0x0(%rax)
add    $0x1,%r13
cmp    %rcx,%r13
je     1acc <eigen_symm+0x8ec>
mov    -0x40(%rbp),%rax
movslq (%rax,%r13,4),%rax
mov    -0x70(%rbp),%rdx
mov    (%rdx,%rax,8),%rax
mov    -0x68(%rbp),%rdx
mov    (%rdx,%r13,8),%rdx
cmp    $0x4,%r15d
jae    1960 <eigen_symm+0x780>
xor    %ebx,%ebx
mov    -0x30(%rbp),%rcx
jmp    1a40 <eigen_symm+0x860>
cs nopw 0x0(%rax,%rax,1)
mov    -0x30(%rbp),%rcx
lea    (%rax,%rcx,8),%rsi
cmp    %rsi,%rdx
jae    1980 <eigen_symm+0x7a0>
lea    (%rdx,%rcx,8),%rsi
cmp    %rsi,%rax
jae    1980 <eigen_symm+0x7a0>
xor    %ebx,%ebx
jmp    1a40 <eigen_symm+0x860>
nopl   (%rax)
cmp    $0xc,%r10
jae    198a <eigen_symm+0x7aa>
xor    %ebx,%ebx
jmp    19ec <eigen_symm+0x80c>
mov    %r8,%rdi
xor    %ebx,%ebx
nop
movups (%rax,%rbx,8),%xmm0
movups 0x10(%rax,%rbx,8),%xmm1
movups %xmm0,(%rdx,%rbx,8)
movups %xmm1,0x10(%rdx,%rbx,8)
movups 0x20(%rax,%rbx,8),%xmm0
movups 0x30(%rax,%rbx,8),%xmm1
movups %xmm0,0x20(%rdx,%rbx,8)
movups %xmm1,0x30(%rdx,%rbx,8)
movups 0x40(%rax,%rbx,8),%xmm0
movups 0x50(%rax,%rbx,8),%xmm1
movups %xmm0,0x40(%rdx,%rbx,8)
movups %xmm1,0x50(%rdx,%rbx,8)
movupd 0x60(%rax,%rbx,8),%xmm0
movupd 0x70(%rax,%rbx,8),%xmm1
movupd %xmm0,0x60(%rdx,%rbx,8)
movupd %xmm1,0x70(%rdx,%rbx,8)
add    $0x10,%rbx
add    $0xfffffffffffffffc,%rdi
jne    1990 <eigen_symm+0x7b0>
test   %r9,%r9
je     1a2f <eigen_symm+0x84f>
lea    (%rdx,%rbx,8),%rdi
add    $0x10,%rdi
lea    (%rax,%rbx,8),%rsi
add    $0x10,%rsi
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movupd -0x10(%rsi,%rbx,1),%xmm0
movupd (%rsi,%rbx,1),%xmm1
movupd %xmm0,-0x10(%rdi,%rbx,1)
movupd %xmm1,(%rdi,%rbx,1)
add    $0x20,%rbx
cmp    %rbx,%r12
jne    1a10 <eigen_symm+0x830>
mov    %r11,%rbx
mov    -0x30(%rbp),%rcx
cmp    %rcx,%r11
je     1920 <eigen_symm+0x740>
nop
mov    %rbx,%rdi
not    %rdi
add    %rcx,%rdi
test   %r14,%r14
je     1a74 <eigen_symm+0x894>
mov    %r14,%rsi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movsd  (%rax,%rbx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rsi
jne    1a60 <eigen_symm+0x880>
cmp    $0x3,%rdi
mov    -0x30(%rbp),%rcx
jb     1920 <eigen_symm+0x740>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%rax,%rbx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
movsd  0x8(%rax,%rbx,8),%xmm0
movsd  %xmm0,0x8(%rdx,%rbx,8)
movsd  0x10(%rax,%rbx,8),%xmm0
movsd  %xmm0,0x10(%rdx,%rbx,8)
movsd  0x18(%rax,%rbx,8),%xmm0
movsd  %xmm0,0x18(%rdx,%rbx,8)
add    $0x4,%rbx
cmp    %rbx,%rcx
jne    1a90 <eigen_symm+0x8b0>
jmp    1920 <eigen_symm+0x740>
mov    -0x70(%rbp),%rdi
mov    -0x68(%rbp),%rbx
mov    %rbx,%rsi
mov    %r15d,%edx
mov    %r15d,%ecx
call   1050 <matrix_copy@plt>
mov    -0x78(%rbp),%rdi
call   10a0 <free_matrix2@plt>
mov    %rbx,%rdi
call   10a0 <free_matrix2@plt>
mov    -0xa0(%rbp),%rdi
call   10a0 <free_matrix2@plt>
mov    -0x98(%rbp),%rdi
call   10a0 <free_matrix2@plt>
mov    -0x88(%rbp),%rsp
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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