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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double *dvector(int);
int /*<<< orphan*/ error(char *);
double fabs(double);
int /*<<< orphan*/ free(double *);
void ludcmp(double **a, int n, int *indx, double *d) {
  int i, imax, j, k;
  double big, dum, sum, temp;
  double *vv;
  imax = 0;
  vv = dvector(n);
  *d = 1.0;
  for (i = 0; i < n; i++) {
    big = 0.0;
    for (j = 0; j < n; j++)
      if ((temp = fabs(a[i][j])) > big)
        big = temp;
    if (big == 0.0)
      error("Singular matrix in routine ludcmp");
    vv[i] = 1.0 / big;
  }
  for (j = 0; j < n; j++) {
    for (i = 0; i < j; i++) {
      sum = a[i][j];
      for (k = 0; k < i; k++)
        sum -= a[i][k] * a[k][j];
      a[i][j] = sum;
    }
    big = 0.0;
    for (i = j; i < n; i++) {
      sum = a[i][j];
      for (k = 0; k < j; k++)
        sum -= a[i][k] * a[k][j];
      a[i][j] = sum;
      if ((dum = vv[i] * fabs(sum)) >= big) {
        big = dum;
        imax = i;
      }
    }
    if (j != imax) {
      for (k = 0; k < n; k++) {
        dum = a[imax][k];
        a[imax][k] = a[j][k];
        a[j][k] = dum;
      }
      *d = -(*d);
      vv[imax] = vv[j];
    }
    indx[j] = imax;
    if (a[j][j] == 0.0)
      a[j][j] = 1.0e-20;
    if (j != n - 1) {
      dum = 1.0 / (a[j][j]);
      for (i = j + 1; i < n; i++)
        a[i][j] *= dum;
    }
  }
  free(vv);
}


x86 assembly (clang, -O0):
<ludcmp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0xc(%rbp),%edi
call   1040 <dvector@plt>
mov    %rax,-0x58(%rbp)
mov    -0x20(%rbp),%rax
movsd  0xe9a(%rip),%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1231 <ludcmp+0x101>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11e5 <ludcmp+0xb5>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe5c(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
ucomisd -0x38(%rbp),%xmm0
jbe    11d2 <ludcmp+0xa2>
movsd  -0x50(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
jmp    11d7 <ludcmp+0xa7>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    118c <ludcmp+0x5c>
movsd  -0x38(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1209 <ludcmp+0xd9>
jp     1209 <ludcmp+0xd9>
lea    0xe1c(%rip),%rdi
call   1050 <error@plt>
movsd  0xdef(%rip),%xmm0
divsd  -0x38(%rbp),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1171 <ludcmp+0x41>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    15cf <ludcmp+0x49f>
movl   $0x0,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    130d <ludcmp+0x1dd>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12e5 <ludcmp+0x1b5>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1278 <ludcmp+0x148>
movsd  -0x48(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    124b <ludcmp+0x11b>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1423 <ludcmp+0x2f3>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    13b5 <ludcmp+0x285>
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x48(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1348 <ludcmp+0x218>
movsd  -0x48(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
movslq -0x24(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x48(%rbp),%xmm1
movaps 0xc28(%rip),%xmm2
pand   %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
ucomisd -0x38(%rbp),%xmm0
jb     1410 <ludcmp+0x2e0>
movsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x28(%rbp)
jmp    1415 <ludcmp+0x2e5>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    131b <ludcmp+0x1eb>
mov    -0x2c(%rbp),%eax
cmp    -0x28(%rbp),%eax
je     14ef <ludcmp+0x3bf>
movl   $0x0,-0x30(%rbp)
mov    -0x30(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    14ae <ludcmp+0x37e>
mov    -0x8(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x30(%rbp)
jmp    1436 <ludcmp+0x306>
mov    -0x20(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x20(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x58(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
movslq -0x28(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x28(%rbp),%edx
mov    -0x18(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1542 <ludcmp+0x412>
jp     1542 <ludcmp+0x412>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  0xacb(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
mov    -0xc(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     15bc <ludcmp+0x48c>
mov    -0x8(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
movsd  0xa95(%rip),%xmm0
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    15b7 <ludcmp+0x487>
movsd  -0x40(%rbp),%xmm0
mov    -0x8(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x2c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    157e <ludcmp+0x44e>
jmp    15bc <ludcmp+0x48c>
jmp    15c1 <ludcmp+0x491>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1238 <ludcmp+0x108>
mov    -0x58(%rbp),%rdi
call   1030 <free@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ludcmp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x48,%rsp
mov    %rcx,%r14
mov    %rdx,0x40(%rsp)
mov    %esi,%ebp
mov    %rdi,%rbx
mov    %esi,%edi
call   1040 <dvector@plt>
mov    %rax,%r13
movabs $0x3ff0000000000000,%rax
mov    %r14,0x38(%rsp)
mov    %rax,(%r14)
mov    %rbp,(%rsp)
test   %ebp,%ebp
jle    1714 <ludcmp+0x5e4>
mov    (%rsp),%r14d
lea    -0x1(%r14),%rax
mov    %rax,0x8(%rsp)
mov    %r14d,%r15d
and    $0x3,%r15d
mov    %r14d,%ebp
and    $0xfffffffc,%ebp
xor    %r12d,%r12d
movapd 0xe68(%rip),%xmm7
movapd 0xe60(%rip),%xmm5
jmp    11d0 <ludcmp+0xa0>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  0xe68(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%r13,%r12,8)
add    $0x1,%r12
cmp    %r14,%r12
je     12bb <ludcmp+0x18b>
mov    (%rbx,%r12,8),%rax
cmpq   $0x3,0x8(%rsp)
jae    11f0 <ludcmp+0xc0>
xor    %ecx,%ecx
xorpd  %xmm0,%xmm0
jmp    1244 <ludcmp+0x114>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
xorpd  %xmm1,%xmm1
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movsd  (%rax,%rcx,8),%xmm2
movsd  0x8(%rax,%rcx,8),%xmm3
movsd  0x10(%rax,%rcx,8),%xmm4
movsd  0x18(%rax,%rcx,8),%xmm0
andpd  %xmm5,%xmm2
maxsd  %xmm1,%xmm2
andpd  %xmm5,%xmm3
maxsd  %xmm2,%xmm3
andpd  %xmm5,%xmm4
maxsd  %xmm3,%xmm4
andpd  %xmm5,%xmm0
maxsd  %xmm4,%xmm0
add    $0x4,%rcx
movapd %xmm0,%xmm1
cmp    %rcx,%rbp
jne    1200 <ludcmp+0xd0>
movapd %xmm0,%xmm1
test   %r15,%r15
je     127a <ludcmp+0x14a>
lea    (%rax,%rcx,8),%rax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rax,%rcx,8),%xmm1
andpd  %xmm7,%xmm1
maxsd  %xmm0,%xmm1
add    $0x1,%rcx
movapd %xmm1,%xmm0
cmp    %rcx,%r15
jne    1260 <ludcmp+0x130>
ucomisd 0xdae(%rip),%xmm1
jne    11b0 <ludcmp+0x80>
jp     11b0 <ludcmp+0x80>
lea    0xda3(%rip),%rdi
movapd %xmm1,0x10(%rsp)
call   1050 <error@plt>
movapd 0x10(%rsp),%xmm1
movapd 0xd52(%rip),%xmm5
movapd 0xd4a(%rip),%xmm7
jmp    11b0 <ludcmp+0x80>
cmpl   $0x0,(%rsp)
jle    1714 <ludcmp+0x5e4>
mov    (%rsp),%rax
lea    -0x1(%rax),%r10d
mov    %r14d,%eax
and    $0xfffffffc,%eax
mov    %rax,0x8(%rsp)
add    $0xfffffffffffffffc,%rax
mov    %rax,0x30(%rsp)
mov    %rax,%rcx
shr    $0x2,%rcx
add    $0x1,%rcx
mov    %rcx,%rax
mov    %rcx,0x28(%rsp)
and    $0xfffffffffffffffe,%rcx
mov    %rcx,0x20(%rsp)
mov    %r14,%rax
neg    %rax
mov    %rax,0x10(%rsp)
xor    %r8d,%r8d
xorpd  %xmm0,%xmm0
movsd  0xd11(%rip),%xmm1
movapd 0xcf1(%rip),%xmm2
mov    %r14,%r12
mov    %rbx,%r15
xor    %r9d,%r9d
jmp    134b <ludcmp+0x21b>
nopw   0x0(%rax,%rax,1)
add    $0x1,%r8
mov    %r8,%rax
add    $0x8,%r15
add    $0xffffffffffffffff,%r12
mov    %rax,%r8
cmp    %r14,%rax
je     1714 <ludcmp+0x5e4>
test   %r8,%r8
je     13f0 <ludcmp+0x2c0>
xor    %ecx,%ecx
jmp    1374 <ludcmp+0x244>
nopl   0x0(%rax,%rax,1)
movsd  %xmm3,0x0(%rbp,%r8,8)
add    $0x1,%rcx
cmp    %r8,%rcx
je     13f0 <ludcmp+0x2c0>
mov    (%rbx,%rcx,8),%rbp
movsd  0x0(%rbp,%r8,8),%xmm3
test   %rcx,%rcx
je     1360 <ludcmp+0x230>
cmp    $0x1,%rcx
jne    1390 <ludcmp+0x260>
xor    %eax,%eax
jmp    13d2 <ludcmp+0x2a2>
xchg   %ax,%ax
mov    %rcx,%rdx
and    $0xfffffffffffffffe,%rdx
xor    %eax,%eax
nopl   0x0(%rax)
movsd  0x0(%rbp,%rax,8),%xmm4
movsd  0x8(%rbp,%rax,8),%xmm5
mov    (%rbx,%rax,8),%rsi
mov    0x8(%rbx,%rax,8),%rdi
mulsd  (%rsi,%r8,8),%xmm4
mulsd  (%rdi,%r8,8),%xmm5
subsd  %xmm4,%xmm3
subsd  %xmm5,%xmm3
add    $0x2,%rax
cmp    %rax,%rdx
jne    13a0 <ludcmp+0x270>
test   $0x1,%cl
je     1360 <ludcmp+0x230>
movsd  0x0(%rbp,%rax,8),%xmm4
mov    (%rbx,%rax,8),%rax
mulsd  (%rax,%r8,8),%xmm4
subsd  %xmm4,%xmm3
jmp    1360 <ludcmp+0x230>
mov    %r8,%rbp
and    $0xfffffffffffffffe,%rbp
xorpd  %xmm3,%xmm3
mov    %r8,%rcx
jmp    1443 <ludcmp+0x313>
movsd  %xmm4,(%rax,%r8,8)
andpd  %xmm7,%xmm4
mulsd  0x0(%r13,%rcx,8),%xmm4
ucomisd %xmm3,%xmm4
movapd %xmm3,%xmm5
cmpnlesd %xmm4,%xmm5
movapd %xmm5,%xmm6
andnpd %xmm4,%xmm6
andpd  %xmm3,%xmm5
orpd   %xmm6,%xmm5
cmovae %ecx,%r9d
add    $0x1,%rcx
movapd %xmm5,%xmm3
cmp    %r14,%rcx
je     14c0 <ludcmp+0x390>
mov    (%rbx,%rcx,8),%rax
movsd  (%rax,%r8,8),%xmm4
test   %r8,%r8
je     1400 <ludcmp+0x2d0>
xor    %edx,%edx
cmp    $0x1,%r8
je     1491 <ludcmp+0x361>
nopw   0x0(%rax,%rax,1)
movsd  (%rax,%rdx,8),%xmm5
movsd  0x8(%rax,%rdx,8),%xmm6
mov    (%rbx,%rdx,8),%rsi
mov    0x8(%rbx,%rdx,8),%rdi
mulsd  (%rsi,%r8,8),%xmm5
mulsd  (%rdi,%r8,8),%xmm6
subsd  %xmm5,%xmm4
subsd  %xmm6,%xmm4
add    $0x2,%rdx
cmp    %rdx,%rbp
jne    1460 <ludcmp+0x330>
test   $0x1,%r8b
je     1400 <ludcmp+0x2d0>
movsd  (%rax,%rdx,8),%xmm5
mov    (%rbx,%rdx,8),%rdx
mulsd  (%rdx,%r8,8),%xmm5
subsd  %xmm5,%xmm4
jmp    1400 <ludcmp+0x2d0>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r9d,%eax
cmp    %rax,%r8
je     1682 <ludcmp+0x552>
mov    %r10,%rsi
movslq %r9d,%rdx
mov    (%rbx,%rdx,8),%r10
mov    (%rbx,%r8,8),%r11
cmpl   $0x4,(%rsp)
jb     14fa <ludcmp+0x3ca>
lea    (%r11,%r14,8),%rax
cmp    %rax,%r10
jae    1582 <ludcmp+0x452>
lea    (%r10,%r14,8),%rax
cmp    %rax,%r11
jae    1582 <ludcmp+0x452>
xor    %ecx,%ecx
mov    %rcx,%rax
test   $0x1,%r14b
je     1524 <ludcmp+0x3f4>
movsd  (%r10,%rcx,8),%xmm3
movsd  (%r11,%rcx,8),%xmm4
movsd  %xmm4,(%r10,%rcx,8)
movsd  %xmm3,(%r11,%rcx,8)
mov    %rcx,%rax
or     $0x1,%rax
not    %rcx
cmp    0x10(%rsp),%rcx
je     1660 <ludcmp+0x530>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movsd  (%r10,%rax,8),%xmm3
movsd  (%r11,%rax,8),%xmm4
movsd  %xmm4,(%r10,%rax,8)
movsd  %xmm3,(%r11,%rax,8)
movsd  0x8(%r10,%rax,8),%xmm3
movsd  0x8(%r11,%rax,8),%xmm4
movsd  %xmm4,0x8(%r10,%rax,8)
movsd  %xmm3,0x8(%r11,%rax,8)
add    $0x2,%rax
cmp    %rax,%r14
jne    1540 <ludcmp+0x410>
jmp    1660 <ludcmp+0x530>
cmpq   $0x0,0x30(%rsp)
je     1702 <ludcmp+0x5d2>
mov    0x20(%rsp),%rcx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movups (%r10,%rax,8),%xmm3
movups 0x10(%r10,%rax,8),%xmm4
movups (%r11,%rax,8),%xmm5
movups 0x10(%r11,%rax,8),%xmm6
movups %xmm5,(%r10,%rax,8)
movups %xmm6,0x10(%r10,%rax,8)
movups %xmm3,(%r11,%rax,8)
movups %xmm4,0x10(%r11,%rax,8)
movupd 0x20(%r10,%rax,8),%xmm3
movupd 0x30(%r10,%rax,8),%xmm4
movupd 0x20(%r11,%rax,8),%xmm5
movupd 0x30(%r11,%rax,8),%xmm6
movupd %xmm5,0x20(%r10,%rax,8)
movupd %xmm6,0x30(%r10,%rax,8)
movupd %xmm3,0x20(%r11,%rax,8)
movupd %xmm4,0x30(%r11,%rax,8)
add    $0x8,%rax
add    $0xfffffffffffffffe,%rcx
jne    15a0 <ludcmp+0x470>
testb  $0x1,0x28(%rsp)
je     1649 <ludcmp+0x519>
movupd (%r10,%rax,8),%xmm3
movupd 0x10(%r10,%rax,8),%xmm4
movupd (%r11,%rax,8),%xmm5
movupd 0x10(%r11,%rax,8),%xmm6
movupd %xmm5,(%r10,%rax,8)
movupd %xmm6,0x10(%r10,%rax,8)
movupd %xmm3,(%r11,%rax,8)
movupd %xmm4,0x10(%r11,%rax,8)
mov    0x8(%rsp),%rax
mov    %rax,%rcx
cmp    %r14,%rax
jne    14fc <ludcmp+0x3cc>
nopw   0x0(%rax,%rax,1)
mov    0x38(%rsp),%rax
movsd  (%rax),%xmm3
xorpd  %xmm2,%xmm3
movlpd %xmm3,(%rax)
movsd  0x0(%r13,%r8,8),%xmm3
movsd  %xmm3,0x0(%r13,%rdx,8)
mov    %rsi,%r10
mov    0x40(%rsp),%rax
mov    %r9d,(%rax,%r8,4)
mov    (%rbx,%r8,8),%rax
movsd  (%rax,%r8,8),%xmm3
ucomisd %xmm0,%xmm3
jne    16af <ludcmp+0x57f>
jp     16af <ludcmp+0x57f>
movabs $0x3bc79ca10c924223,%rcx
9c c7 3b
mov    %rcx,(%rax,%r8,8)
movapd %xmm1,%xmm3
cmp    %r10,%r8
je     1330 <ludcmp+0x200>
lea    0x1(%r8),%rax
cmp    %r14,%rax
jge    1337 <ludcmp+0x207>
movsd  0x953(%rip),%xmm4
divsd  %xmm3,%xmm4
mov    $0x1,%ecx
cs nopw 0x0(%rax,%rax,1)
mov    (%r15,%rcx,8),%rdx
movsd  (%rdx,%r8,8),%xmm3
mulsd  %xmm4,%xmm3
movsd  %xmm3,(%rdx,%r8,8)
add    $0x1,%rcx
cmp    %rcx,%r12
jne    16e0 <ludcmp+0x5b0>
jmp    1337 <ludcmp+0x207>
xor    %eax,%eax
testb  $0x1,0x28(%rsp)
jne    1615 <ludcmp+0x4e5>
jmp    1649 <ludcmp+0x519>
mov    %r13,%rdi
add    $0x48,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <free@plt>

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

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