#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*/ Free(int *);
double fabs(double);
scalar_t__ mCalloc(int, int);
int /*<<< orphan*/ printf(char *, ...);
int Matinv(double *x, int n, int m, double *space) {
  int i, j, k;
  int *irow;
  double ee, t, t1, xmax;
  double det;
  ee = 1.0E-10;
  det = 1.0;
  irow = (int *)mCalloc(n, sizeof(int));
  for (i = 0; i < n; i++) {
    xmax = 0.;
    for (j = i; j < n; j++)
      if (xmax < fabs(x[j * m + i])) {
        xmax = fabs(x[j * m + i]);
        irow[i] = j;
      }
    det *= xmax;
    if (xmax < ee) {
      Free(irow);
      printf("\n. Determinant becomes zero at %3d!\t\n", i + 1);
      printf("\n. Cannot invert the matrix of eigen vectors.\n");
      return (0);
    }
    if (irow[i] != i) {
      for (j = 0; j < m; j++) {
        t = x[i * m + j];
        x[i * m + j] = x[irow[i] * m + j];
        x[irow[i] * m + j] = t;
      }
    }
    t = 1. / x[i * m + i];
    for (j = 0; j < n; j++) {
      if (j == i)
        continue;
      t1 = t * x[j * m + i];
      for (k = 0; k < m; k++)
        x[j * m + k] -= t1 * x[i * m + k];
      x[j * m + i] = -t1;
    }
    for (j = 0; j < m; j++)
      x[i * m + j] *= t;
    x[i * m + i] = t;
  }
  for (i = n - 1; i >= 0; i--) {
    if (irow[i] == i)
      continue;
    for (j = 0; j < n; j++) {
      t = x[j * m + i];
      x[j * m + i] = x[j * m + irow[i]];
      x[j * m + irow[i]] = t;
    }
  }
  Free(irow);
  return (1);
}


x86 assembly (clang, -O0):
<Matinv>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %edx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movsd  0xeba(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xea5(%rip),%xmm0
movsd  %xmm0,-0x60(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x4,%esi
call   1050 <mCalloc@plt>
mov    %rax,-0x38(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    14a2 <Matinv+0x372>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1215 <Matinv+0xe5>
movsd  -0x58(%rbp),%xmm1
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe50(%rip),%xmm2
pand   %xmm2,%xmm0
ucomisd %xmm1,%xmm0
jbe    1202 <Matinv+0xd2>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe25(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x28(%rbp),%edx
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
jmp    1207 <Matinv+0xd7>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1192 <Matinv+0x62>
movsd  -0x58(%rbp),%xmm0
mulsd  -0x60(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x58(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jbe    126f <Matinv+0x13f>
mov    -0x38(%rbp),%rdi
call   1040 <Free@plt>
mov    -0x24(%rbp),%esi
add    $0x1,%esi
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1584 <Matinv+0x454>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x24(%rbp),%eax
je     131b <Matinv+0x1eb>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1316 <Matinv+0x1e6>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movslq -0x24(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
imul   -0x18(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x38(%rbp),%rcx
movslq -0x24(%rbp),%rdx
mov    (%rcx,%rdx,4),%ecx
imul   -0x18(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    128a <Matinv+0x15a>
jmp    131b <Matinv+0x1eb>
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  0xccc(%rip),%xmm0
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1438 <Matinv+0x308>
mov    -0x28(%rbp),%eax
cmp    -0x24(%rbp),%eax
jne    1362 <Matinv+0x232>
jmp    142a <Matinv+0x2fa>
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    13f8 <Matinv+0x2c8>
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x2c(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm1
movq   %xmm0,%rdx
movabs $0x8000000000000000,%rsi
xor    %rsi,%rdx
movq   %rdx,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1389 <Matinv+0x259>
movsd  -0x50(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1345 <Matinv+0x215>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    1479 <Matinv+0x349>
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x28(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    143f <Matinv+0x30f>
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x24(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1178 <Matinv+0x48>
mov    -0x14(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
jl     1574 <Matinv+0x444>
mov    -0x38(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x24(%rbp),%eax
jne    14ce <Matinv+0x39e>
jmp    1566 <Matinv+0x436>
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1561 <Matinv+0x431>
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
mov    -0x38(%rbp),%rdx
movslq -0x24(%rbp),%rsi
add    (%rdx,%rsi,4),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
add    -0x24(%rbp),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
mov    -0x28(%rbp),%ecx
imul   -0x18(%rbp),%ecx
mov    -0x38(%rbp),%rdx
movslq -0x24(%rbp),%rsi
add    (%rdx,%rsi,4),%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    14d5 <Matinv+0x3a5>
jmp    1566 <Matinv+0x436>
mov    -0x24(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x24(%rbp)
jmp    14ab <Matinv+0x37b>
mov    -0x38(%rbp),%rdi
call   1040 <Free@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Matinv>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %edx,%r13d
mov    %esi,%ebx
mov    %rdi,(%rsp)
mov    %esi,%edi
mov    $0x4,%esi
call   1060 <mCalloc@plt>
mov    %rax,%r11
test   %ebx,%ebx
jle    1934 <Matinv+0x7f4>
mov    %ebx,0x44(%rsp)
mov    %ebx,%r15d
movslq %r13d,%rbp
mov    %ebp,%esi
mov    (%rsp),%rcx
lea    (%rcx,%rsi,8),%rax
mov    %rax,0x70(%rsp)
mov    %esi,%eax
and    $0xfffffffc,%eax
mov    %rax,0x38(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x30(%rsp)
mov    %rax,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rsi,%rax
neg    %rax
mov    %rax,0x68(%rsp)
mov    %rdx,%rax
mov    %rdx,0x28(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x20(%rsp)
lea    0x0(,%rbp,8),%rdi
lea    0x8(,%rbp,8),%rax
mov    %rax,0x78(%rsp)
lea    0x30(%rcx),%r12
lea    0x8(%rcx),%rax
xor    %r14d,%r14d
movapd 0xe13(%rip),%xmm11
movsd  0xe2a(%rip),%xmm10
movsd  0xe29(%rip),%xmm9
movapd 0xe08(%rip),%xmm8
mov    %rcx,%rbx
mov    %rax,0x50(%rsp)
mov    %rax,%r8
mov    %r12,0x48(%rsp)
mov    %rcx,%r9
mov    %rbp,0x10(%rsp)
mov    %r11,0x80(%rsp)
mov    %r15,0xa0(%rsp)
mov    %r13d,0xc(%rsp)
jmp    1269 <Matinv+0x129>
nopw   0x0(%rax,%rax,1)
mov    0x88(%rsp),%rax
movsd  %xmm12,(%rcx,%rax,8)
add    $0x1,%r14
add    0x78(%rsp),%r9
add    %rdi,%r12
add    %rdi,%r8
add    %rdi,%rbx
cmp    %r15,%r14
je     185a <Matinv+0x71a>
mov    %r14,%rax
imul   0x10(%rsp),%rax
lea    (%rcx,%rax,8),%rdx
mov    %rdx,0x58(%rsp)
mov    %rax,0x18(%rsp)
add    %rsi,%rax
lea    (%rcx,%rax,8),%rax
mov    %rax,0x60(%rsp)
xorpd  %xmm4,%xmm4
mov    %r9,%rax
mov    %r14,%rdx
jmp    12ac <Matinv+0x16c>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rdx
add    %rdi,%rax
cmp    %rdx,%r15
je     12d0 <Matinv+0x190>
movsd  (%rax),%xmm5
andpd  %xmm11,%xmm5
ucomisd %xmm4,%xmm5
jbe    12a0 <Matinv+0x160>
mov    %edx,(%r11,%r14,4)
movapd %xmm5,%xmm4
jmp    12a0 <Matinv+0x160>
cs nopw 0x0(%rax,%rax,1)
nop
ucomisd %xmm4,%xmm10
ja     182a <Matinv+0x6ea>
mov    %r9,0x90(%rsp)
mov    (%r11,%r14,4),%eax
cmp    %rax,%r14
je     14a0 <Matinv+0x360>
test   %r13d,%r13d
jle    14a0 <Matinv+0x360>
imul   %r13d,%eax
movslq %eax,%r9
cmp    $0x4,%r13d
jb     132d <Matinv+0x1ed>
mov    0x70(%rsp),%rax
lea    (%rax,%r9,8),%rax
cmp    %rax,0x58(%rsp)
mov    (%rsp),%rax
jae    13be <Matinv+0x27e>
lea    (%rax,%r9,8),%rax
cmp    0x60(%rsp),%rax
jae    13be <Matinv+0x27e>
xor    %ecx,%ecx
mov    %rcx,%rax
test   $0x1,%sil
je     1366 <Matinv+0x226>
mov    0x18(%rsp),%rax
lea    (%rcx,%rax,1),%r10
mov    (%rsp),%rax
movsd  (%rax,%r10,8),%xmm4
lea    (%rcx,%r9,1),%rdx
movsd  (%rax,%rdx,8),%xmm5
movsd  %xmm5,(%rax,%r10,8)
movsd  %xmm4,(%rax,%rdx,8)
mov    %rcx,%rax
or     $0x1,%rax
not    %rcx
cmp    0x68(%rsp),%rcx
je     14a0 <Matinv+0x360>
mov    0x50(%rsp),%rcx
lea    (%rcx,%r9,8),%rcx
nopl   (%rax)
movsd  -0x8(%r8,%rax,8),%xmm4
movsd  -0x8(%rcx,%rax,8),%xmm5
movsd  %xmm5,-0x8(%r8,%rax,8)
movsd  %xmm4,-0x8(%rcx,%rax,8)
movsd  (%r8,%rax,8),%xmm4
movsd  (%rcx,%rax,8),%xmm5
movsd  %xmm5,(%r8,%rax,8)
movsd  %xmm4,(%rcx,%rax,8)
add    $0x2,%rax
cmp    %rax,%rsi
jne    1380 <Matinv+0x240>
jmp    14a0 <Matinv+0x360>
cmpq   $0x0,0x30(%rsp)
je     1818 <Matinv+0x6d8>
mov    0x48(%rsp),%rax
lea    (%rax,%r9,8),%rax
mov    0x20(%rsp),%rcx
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movups -0x30(%r12,%rdx,8),%xmm4
movups -0x20(%r12,%rdx,8),%xmm5
movups -0x30(%rax,%rdx,8),%xmm6
movups -0x20(%rax,%rdx,8),%xmm7
movups %xmm6,-0x30(%r12,%rdx,8)
movups %xmm7,-0x20(%r12,%rdx,8)
movups %xmm4,-0x30(%rax,%rdx,8)
movups %xmm5,-0x20(%rax,%rdx,8)
movupd -0x10(%r12,%rdx,8),%xmm4
movupd (%r12,%rdx,8),%xmm5
movupd -0x10(%rax,%rdx,8),%xmm6
movupd (%rax,%rdx,8),%xmm7
movupd %xmm6,-0x10(%r12,%rdx,8)
movupd %xmm7,(%r12,%rdx,8)
movupd %xmm4,-0x10(%rax,%rdx,8)
movupd %xmm5,(%rax,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rcx
jne    13e0 <Matinv+0x2a0>
testb  $0x1,0x28(%rsp)
je     1488 <Matinv+0x348>
mov    0x18(%rsp),%rax
add    %rdx,%rax
mov    (%rsp),%rcx
movupd (%rcx,%rax,8),%xmm4
movupd 0x10(%rcx,%rax,8),%xmm5
add    %r9,%rdx
movupd (%rcx,%rdx,8),%xmm6
movupd 0x10(%rcx,%rdx,8),%xmm7
movupd %xmm6,(%rcx,%rax,8)
movupd %xmm7,0x10(%rcx,%rax,8)
movupd %xmm4,(%rcx,%rdx,8)
movupd %xmm5,0x10(%rcx,%rdx,8)
mov    0x38(%rsp),%rax
mov    %rax,%rcx
cmp    %rsi,%rax
jne    132f <Matinv+0x1ef>
nopl   0x0(%rax)
mov    %r8,0x98(%rsp)
mov    0x18(%rsp),%rax
add    %r14,%rax
movapd %xmm9,%xmm12
mov    (%rsp),%rcx
mov    %rax,0x88(%rsp)
divsd  (%rcx,%rax,8),%xmm12
movapd %xmm12,%xmm5
xorpd  %xmm8,%xmm5
mov    0x50(%rsp),%r9
mov    0x48(%rsp),%r11
xor    %r13d,%r13d
mov    0x10(%rsp),%rbp
jmp    150d <Matinv+0x3cd>
cs nopw 0x0(%rax,%rax,1)
nop
mov    (%rsp),%rcx
movsd  %xmm6,(%rcx,%r10,8)
add    $0x1,%r13
add    %rdi,%r11
add    %rdi,%r9
cmp    %r15,%r13
je     1700 <Matinv+0x5c0>
cmp    %r14,%r13
je     14fa <Matinv+0x3ba>
mov    %r13,%rdx
imul   %rbp,%rdx
lea    (%rdx,%r14,1),%r10
movsd  (%rcx,%r10,8),%xmm6
mulsd  %xmm5,%xmm6
cmpl   $0x0,0xc(%rsp)
jle    14f0 <Matinv+0x3b0>
cmpl   $0x4,0xc(%rsp)
jb     155b <Matinv+0x41b>
mov    (%rsp),%rcx
lea    (%rcx,%rdx,8),%rax
cmp    0x60(%rsp),%rax
jae    15db <Matinv+0x49b>
lea    (%rdx,%rsi,1),%rax
lea    (%rcx,%rax,8),%rax
cmp    %rax,0x58(%rsp)
jae    15db <Matinv+0x49b>
xor    %ecx,%ecx
mov    %rcx,%rax
test   $0x1,%sil
je     1592 <Matinv+0x452>
mov    0x18(%rsp),%rax
add    %rcx,%rax
add    %rcx,%rdx
mov    (%rsp),%r8
movsd  (%r8,%rax,8),%xmm0
mulsd  %xmm6,%xmm0
addsd  (%r8,%rdx,8),%xmm0
movsd  %xmm0,(%r8,%rdx,8)
mov    %rcx,%rax
or     $0x1,%rax
not    %rcx
cmp    0x68(%rsp),%rcx
je     14f0 <Matinv+0x3b0>
movsd  (%rbx,%rax,8),%xmm0
mulsd  %xmm6,%xmm0
addsd  -0x8(%r9,%rax,8),%xmm0
movsd  %xmm0,-0x8(%r9,%rax,8)
movsd  0x8(%rbx,%rax,8),%xmm0
mulsd  %xmm6,%xmm0
addsd  (%r9,%rax,8),%xmm0
movsd  %xmm0,(%r9,%rax,8)
add    $0x2,%rax
cmp    %rax,%rsi
jne    15a0 <Matinv+0x460>
jmp    14f0 <Matinv+0x3b0>
movapd %xmm6,%xmm7
unpcklpd %xmm6,%xmm7
cmpq   $0x0,0x30(%rsp)
je     16e5 <Matinv+0x5a5>
mov    0x20(%rsp),%r8
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
movupd -0x30(%r12,%r15,8),%xmm2
movupd -0x20(%r12,%r15,8),%xmm3
mulpd  %xmm7,%xmm2
movupd -0x30(%r11,%r15,8),%xmm1
addpd  %xmm2,%xmm1
movupd -0x20(%r11,%r15,8),%xmm2
movupd -0x10(%r11,%r15,8),%xmm0
movupd (%r11,%r15,8),%xmm4
mulpd  %xmm7,%xmm3
addpd  %xmm2,%xmm3
movupd %xmm1,-0x30(%r11,%r15,8)
movupd %xmm3,-0x20(%r11,%r15,8)
movupd -0x10(%r12,%r15,8),%xmm1
movupd (%r12,%r15,8),%xmm2
mulpd  %xmm7,%xmm1
addpd  %xmm0,%xmm1
mulpd  %xmm7,%xmm2
addpd  %xmm4,%xmm2
movupd %xmm1,-0x10(%r11,%r15,8)
movupd %xmm2,(%r11,%r15,8)
add    $0x8,%r15
add    $0xfffffffffffffffe,%r8
jne    1600 <Matinv+0x4c0>
testb  $0x1,0x28(%rsp)
je     16c2 <Matinv+0x582>
mov    0x18(%rsp),%rax
add    %r15,%rax
movupd (%rcx,%rax,8),%xmm0
movupd 0x10(%rcx,%rax,8),%xmm1
add    %rdx,%r15
movupd (%rcx,%r15,8),%xmm2
movupd 0x10(%rcx,%r15,8),%xmm3
mulpd  %xmm7,%xmm0
addpd  %xmm2,%xmm0
mulpd  %xmm7,%xmm1
addpd  %xmm3,%xmm1
movupd %xmm0,(%rcx,%r15,8)
movupd %xmm1,0x10(%rcx,%r15,8)
mov    0x38(%rsp),%rax
mov    %rax,%rcx
cmp    %rsi,%rax
mov    0xa0(%rsp),%r15
mov    0x10(%rsp),%rbp
je     14f0 <Matinv+0x3b0>
jmp    155d <Matinv+0x41d>
xor    %r15d,%r15d
testb  $0x1,0x28(%rsp)
jne    1682 <Matinv+0x542>
jmp    16c2 <Matinv+0x582>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0xc(%rsp),%r13d
test   %r13d,%r13d
mov    0x80(%rsp),%r11
mov    0x98(%rsp),%r8
mov    0x90(%rsp),%r9
jle    1240 <Matinv+0x100>
cmp    $0x4,%r13d
jae    1740 <Matinv+0x600>
xor    %eax,%eax
jmp    17f0 <Matinv+0x6b0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movapd %xmm12,%xmm5
unpcklpd %xmm12,%xmm5
cmpq   $0x0,0x30(%rsp)
je     180d <Matinv+0x6cd>
mov    0x20(%rsp),%rax
xor    %edx,%edx
nopl   (%rax)
movupd -0x30(%r12,%rdx,8),%xmm6
movupd -0x20(%r12,%rdx,8),%xmm7
movupd -0x10(%r12,%rdx,8),%xmm3
movupd (%r12,%rdx,8),%xmm2
mulpd  %xmm5,%xmm6
mulpd  %xmm5,%xmm7
movupd %xmm6,-0x30(%r12,%rdx,8)
movupd %xmm7,-0x20(%r12,%rdx,8)
mulpd  %xmm5,%xmm3
mulpd  %xmm5,%xmm2
movupd %xmm3,-0x10(%r12,%rdx,8)
movupd %xmm2,(%r12,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rax
jne    1760 <Matinv+0x620>
testb  $0x1,0x28(%rsp)
je     17da <Matinv+0x69a>
add    0x18(%rsp),%rdx
movupd (%rcx,%rdx,8),%xmm2
movupd 0x10(%rcx,%rdx,8),%xmm3
mulpd  %xmm5,%xmm2
mulpd  %xmm5,%xmm3
movupd %xmm2,(%rcx,%rdx,8)
movupd %xmm3,0x10(%rcx,%rdx,8)
mov    0x38(%rsp),%rdx
mov    %rdx,%rax
cmp    %rsi,%rdx
je     1240 <Matinv+0x100>
nopl   0x0(%rax,%rax,1)
movsd  (%rbx,%rax,8),%xmm0
mulsd  %xmm12,%xmm0
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
cmp    %rax,%rsi
jne    17f0 <Matinv+0x6b0>
jmp    1240 <Matinv+0x100>
xor    %edx,%edx
testb  $0x1,0x28(%rsp)
jne    17b7 <Matinv+0x677>
jmp    17da <Matinv+0x69a>
xor    %edx,%edx
testb  $0x1,0x28(%rsp)
jne    144d <Matinv+0x30d>
jmp    1488 <Matinv+0x348>
mov    %r11,%rdi
call   1050 <Free@plt>
add    $0x1,%r14d
lea    0x7f3(%rip),%rdi
xor    %ebx,%ebx
mov    %r14d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x806(%rip),%rdi
call   1030 <puts@plt>
jmp    1941 <Matinv+0x801>
cmpl   $0x0,0x44(%rsp)
jle    1934 <Matinv+0x7f4>
mov    %r15d,%r10d
and    $0xfffffffe,%r10d
mov    0x10(%rsp),%rax
mov    %rax,%rsi
shl    $0x4,%rsi
add    %r15,%rax
lea    -0x8(,%rax,8),%rdi
ff
lea    -0x8(,%r15,8),%rbp
ff
mov    %r15,%r8
jmp    18a2 <Matinv+0x762>
add    $0xfffffffffffffff8,%rdi
add    $0xfffffffffffffff8,%rbp
cmp    $0x1,%r9
jle    1934 <Matinv+0x7f4>
mov    %r8,%r9
add    $0xffffffffffffffff,%r8
mov    -0x4(%r11,%r9,4),%eax
cmp    %rax,%r8
je     1890 <Matinv+0x750>
movslq %eax,%rbx
cmp    $0x1,%r15d
jne    18c0 <Matinv+0x780>
xor    %eax,%eax
jmp    1904 <Matinv+0x7c4>
mov    0x10(%rsp),%rax
lea    (%rax,%rbx,1),%rcx
mov    (%rsp),%rdx
xor    %eax,%eax
nop
movsd  (%rdx,%rbp,1),%xmm0
movsd  (%rdx,%rbx,8),%xmm1
movsd  %xmm1,(%rdx,%rbp,1)
movsd  %xmm0,(%rdx,%rbx,8)
movsd  (%rdx,%rdi,1),%xmm0
movsd  (%rdx,%rcx,8),%xmm1
movsd  %xmm1,(%rdx,%rdi,1)
movsd  %xmm0,(%rdx,%rcx,8)
add    $0x2,%rax
add    %rsi,%rdx
cmp    %rax,%r10
jne    18d0 <Matinv+0x790>
test   $0x1,%r15b
je     1890 <Matinv+0x750>
imul   0x10(%rsp),%rax
lea    (%rax,%r8,1),%rcx
mov    (%rsp),%rdx
movsd  (%rdx,%rcx,8),%xmm0
add    %rbx,%rax
movsd  (%rdx,%rax,8),%xmm1
movsd  %xmm1,(%rdx,%rcx,8)
movsd  %xmm0,(%rdx,%rax,8)
jmp    1890 <Matinv+0x750>
mov    %r11,%rdi
call   1050 <Free@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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