#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 */
scalar_t__ Array1D(int, int);
int /*<<< orphan*/ FreeArray1D(double *);
double fabs(double);
int LUDecomp(double **a, int n, int *indx, double *d) {
  int i, imax, j, k;
  double big, dum, sum, temp;
  double *vv;
  vv = (double *)Array1D(n, sizeof(double));
  *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) {
      return (0);
    }
    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;
    }
  }
  FreeArray1D(vv);
  return (1);
}


x86 assembly (clang, -O0):
<LUDecomp>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    -0x14(%rbp),%edi
mov    $0x8,%esi
call   1040 <Array1D@plt>
mov    %rax,-0x60(%rbp)
mov    -0x28(%rbp),%rax
movsd  0xeac(%rip),%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    121f <LUDecomp+0xff>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    11d3 <LUDecomp+0xb3>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movaps 0xe6e(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
ucomisd -0x40(%rbp),%xmm0
jbe    11c0 <LUDecomp+0xa0>
movsd  -0x58(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
jmp    11c5 <LUDecomp+0xa5>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    117a <LUDecomp+0x5a>
movsd  -0x40(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    11f7 <LUDecomp+0xd7>
jp     11f7 <LUDecomp+0xd7>
movl   $0x0,-0x4(%rbp)
jmp    15cd <LUDecomp+0x4ad>
movsd  0xe01(%rip),%xmm0
divsd  -0x40(%rbp),%xmm0
mov    -0x60(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    115f <LUDecomp+0x3f>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15bd <LUDecomp+0x49d>
movl   $0x0,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    12fb <LUDecomp+0x1db>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    12d3 <LUDecomp+0x1b3>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1266 <LUDecomp+0x146>
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1239 <LUDecomp+0x119>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    1411 <LUDecomp+0x2f1>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    13a3 <LUDecomp+0x283>
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x50(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1336 <LUDecomp+0x216>
movsd  -0x50(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%rax
movslq -0x2c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x50(%rbp),%xmm1
movaps 0xc3a(%rip),%xmm2
pand   %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
ucomisd -0x40(%rbp),%xmm0
jb     13fe <LUDecomp+0x2de>
movsd  -0x48(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
jmp    1403 <LUDecomp+0x2e3>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1309 <LUDecomp+0x1e9>
mov    -0x34(%rbp),%eax
cmp    -0x30(%rbp),%eax
je     14dd <LUDecomp+0x3bd>
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    149c <LUDecomp+0x37c>
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x30(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
jmp    1424 <LUDecomp+0x304>
mov    -0x28(%rbp),%rax
movsd  (%rax),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mov    -0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x60(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x60(%rbp),%rax
movslq -0x30(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x30(%rbp),%edx
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1530 <LUDecomp+0x410>
jp     1530 <LUDecomp+0x410>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  0xadd(%rip),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
mov    -0x14(%rbp),%ecx
sub    $0x1,%ecx
cmp    %ecx,%eax
je     15aa <LUDecomp+0x48a>
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
movsd  0xaa7(%rip),%xmm0
divsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x2c(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    15a5 <LUDecomp+0x485>
movsd  -0x48(%rbp),%xmm0
mov    -0x10(%rbp),%rax
movslq -0x2c(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movslq -0x34(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    156c <LUDecomp+0x44c>
jmp    15aa <LUDecomp+0x48a>
jmp    15af <LUDecomp+0x48f>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1226 <LUDecomp+0x106>
mov    -0x60(%rbp),%rdi
call   1030 <FreeArray1D@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<LUDecomp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rcx,%rbx
mov    %rdx,%r13
mov    %esi,%ebp
mov    %rdi,%r14
mov    %esi,%edi
mov    $0x8,%esi
call   1040 <Array1D@plt>
movabs $0x3ff0000000000000,%rcx
mov    %rbx,0x30(%rsp)
mov    %rcx,(%rbx)
mov    %rbp,(%rsp)
test   %ebp,%ebp
jle    16b4 <LUDecomp+0x594>
mov    (%rsp),%r15d
lea    -0x1(%r15),%r8
mov    %r15d,%esi
and    $0x3,%esi
mov    %r15d,%edi
and    $0xfffffffc,%edi
xor    %ebp,%ebp
xorpd  %xmm2,%xmm2
movsd  0xe9a(%rip),%xmm8
movapd 0xe72(%rip),%xmm1
movapd 0xe6a(%rip),%xmm3
cs nopw 0x0(%rax,%rax,1)
mov    (%r14,%rbp,8),%rdx
cmp    $0x3,%r8
jae    11c0 <LUDecomp+0xa0>
xor    %ecx,%ecx
xorpd  %xmm4,%xmm4
jmp    1214 <LUDecomp+0xf4>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
xorpd  %xmm5,%xmm5
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
movsd  (%rdx,%rcx,8),%xmm6
movsd  0x8(%rdx,%rcx,8),%xmm7
movsd  0x10(%rdx,%rcx,8),%xmm0
movsd  0x18(%rdx,%rcx,8),%xmm4
andpd  %xmm3,%xmm6
maxsd  %xmm5,%xmm6
andpd  %xmm3,%xmm7
maxsd  %xmm6,%xmm7
andpd  %xmm3,%xmm0
maxsd  %xmm7,%xmm0
andpd  %xmm3,%xmm4
maxsd  %xmm0,%xmm4
add    $0x4,%rcx
movapd %xmm4,%xmm5
cmp    %rcx,%rdi
jne    11d0 <LUDecomp+0xb0>
movapd %xmm4,%xmm5
test   %rsi,%rsi
je     124a <LUDecomp+0x12a>
lea    (%rdx,%rcx,8),%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  (%rcx,%rdx,8),%xmm5
andpd  %xmm1,%xmm5
maxsd  %xmm4,%xmm5
add    $0x1,%rdx
movapd %xmm5,%xmm4
cmp    %rdx,%rsi
jne    1230 <LUDecomp+0x110>
ucomisd %xmm2,%xmm5
jne    1256 <LUDecomp+0x136>
jnp    16c3 <LUDecomp+0x5a3>
movapd %xmm8,%xmm0
divsd  %xmm5,%xmm0
movsd  %xmm0,(%rax,%rbp,8)
add    $0x1,%rbp
cmp    %r15,%rbp
jne    11a0 <LUDecomp+0x80>
cmpl   $0x0,(%rsp)
jle    16b4 <LUDecomp+0x594>
mov    (%rsp),%rcx
lea    -0x1(%rcx),%r11d
mov    %r15d,%ecx
and    $0xfffffffc,%ecx
mov    %rcx,0x20(%rsp)
add    $0xfffffffffffffffc,%rcx
mov    %rcx,0x18(%rsp)
mov    %rcx,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
mov    %rdx,%rcx
mov    %rdx,0x10(%rsp)
and    $0xfffffffffffffffe,%rdx
mov    %rdx,0x8(%rsp)
mov    %r15,%rcx
neg    %rcx
mov    %rcx,0x28(%rsp)
xor    %r8d,%r8d
xorpd  %xmm2,%xmm2
movsd  0xd5b(%rip),%xmm3
movapd 0xd3b(%rip),%xmm4
mov    %r15,%r12
mov    %r14,%r10
jmp    12fb <LUDecomp+0x1db>
nopl   (%rax)
add    $0x1,%r8
mov    %r8,%rcx
add    $0x8,%r10
add    $0xffffffffffffffff,%r12
mov    %rcx,%r8
cmp    %r15,%rcx
je     16b4 <LUDecomp+0x594>
test   %r8,%r8
je     13a0 <LUDecomp+0x280>
xor    %edx,%edx
jmp    1323 <LUDecomp+0x203>
nopl   0x0(%rax,%rax,1)
movsd  %xmm5,(%rdi,%r8,8)
add    $0x1,%rdx
cmp    %r8,%rdx
je     13a0 <LUDecomp+0x280>
mov    (%r14,%rdx,8),%rdi
movsd  (%rdi,%r8,8),%xmm5
test   %rdx,%rdx
je     1310 <LUDecomp+0x1f0>
cmp    $0x1,%rdx
jne    1340 <LUDecomp+0x220>
xor    %esi,%esi
jmp    1382 <LUDecomp+0x262>
nopl   0x0(%rax)
mov    %rdx,%rcx
and    $0xfffffffffffffffe,%rcx
xor    %esi,%esi
nopl   0x0(%rax)
movsd  (%rdi,%rsi,8),%xmm0
movsd  0x8(%rdi,%rsi,8),%xmm6
mov    (%r14,%rsi,8),%rbp
mov    0x8(%r14,%rsi,8),%rbx
mulsd  0x0(%rbp,%r8,8),%xmm0
mulsd  (%rbx,%r8,8),%xmm6
subsd  %xmm0,%xmm5
subsd  %xmm6,%xmm5
add    $0x2,%rsi
cmp    %rsi,%rcx
jne    1350 <LUDecomp+0x230>
test   $0x1,%dl
je     1310 <LUDecomp+0x1f0>
movsd  (%rdi,%rsi,8),%xmm0
mov    (%r14,%rsi,8),%rcx
mulsd  (%rcx,%r8,8),%xmm0
subsd  %xmm0,%xmm5
jmp    1310 <LUDecomp+0x1f0>
nop
mov    %r8,%rdi
and    $0xfffffffffffffffe,%rdi
xorpd  %xmm5,%xmm5
mov    %r8,%rdx
jmp    13f1 <LUDecomp+0x2d1>
movsd  %xmm6,(%rsi,%r8,8)
andpd  %xmm1,%xmm6
mulsd  (%rax,%rdx,8),%xmm6
ucomisd %xmm5,%xmm6
cmovae %edx,%r9d
movapd %xmm5,%xmm0
cmpnlesd %xmm6,%xmm0
movapd %xmm0,%xmm7
andnpd %xmm6,%xmm7
andpd  %xmm5,%xmm0
orpd   %xmm7,%xmm0
add    $0x1,%rdx
movapd %xmm0,%xmm5
cmp    %r15,%rdx
je     1470 <LUDecomp+0x350>
mov    (%r14,%rdx,8),%rsi
movsd  (%rsi,%r8,8),%xmm6
test   %r8,%r8
je     13b0 <LUDecomp+0x290>
xor    %ecx,%ecx
cmp    $0x1,%r8
je     1442 <LUDecomp+0x322>
nopl   0x0(%rax,%rax,1)
movsd  (%rsi,%rcx,8),%xmm0
movsd  0x8(%rsi,%rcx,8),%xmm7
mov    (%r14,%rcx,8),%rbp
mov    0x8(%r14,%rcx,8),%rbx
mulsd  0x0(%rbp,%r8,8),%xmm0
mulsd  (%rbx,%r8,8),%xmm7
subsd  %xmm0,%xmm6
subsd  %xmm7,%xmm6
add    $0x2,%rcx
cmp    %rcx,%rdi
jne    1410 <LUDecomp+0x2f0>
test   $0x1,%r8b
je     13b0 <LUDecomp+0x290>
movsd  (%rsi,%rcx,8),%xmm0
mov    (%r14,%rcx,8),%rcx
mulsd  (%rcx,%r8,8),%xmm0
subsd  %xmm0,%xmm6
jmp    13b0 <LUDecomp+0x290>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    %r9d,%ecx
cmp    %rcx,%r8
je     1632 <LUDecomp+0x512>
mov    %r11,%rbx
mov    %r13,%rdi
movslq %r9d,%rsi
mov    (%r14,%rsi,8),%r11
mov    (%r14,%r8,8),%r13
cmpl   $0x4,(%rsp)
jb     14b4 <LUDecomp+0x394>
lea    0x0(,%r15,8),%rcx
add    %r13,%rcx
cmp    %rcx,%r11
jae    1534 <LUDecomp+0x414>
lea    (%r11,%r15,8),%rcx
cmp    %rcx,%r13
jae    1534 <LUDecomp+0x414>
xor    %edx,%edx
mov    %rdx,%rcx
test   $0x1,%r15b
je     14e0 <LUDecomp+0x3c0>
movsd  (%r11,%rdx,8),%xmm0
movsd  0x0(%r13,%rdx,8),%xmm5
movsd  %xmm5,(%r11,%rdx,8)
movsd  %xmm0,0x0(%r13,%rdx,8)
mov    %rdx,%rcx
or     $0x1,%rcx
not    %rdx
cmp    0x28(%rsp),%rdx
je     1610 <LUDecomp+0x4f0>
xchg   %ax,%ax
movsd  (%r11,%rcx,8),%xmm0
movsd  0x0(%r13,%rcx,8),%xmm5
movsd  %xmm5,(%r11,%rcx,8)
movsd  %xmm0,0x0(%r13,%rcx,8)
movsd  0x8(%r11,%rcx,8),%xmm0
movsd  0x8(%r13,%rcx,8),%xmm5
movsd  %xmm5,0x8(%r11,%rcx,8)
movsd  %xmm0,0x8(%r13,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%r15
jne    14f0 <LUDecomp+0x3d0>
jmp    1610 <LUDecomp+0x4f0>
cmpq   $0x0,0x18(%rsp)
je     16a2 <LUDecomp+0x582>
mov    0x8(%rsp),%rcx
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movups (%r11,%rdx,8),%xmm0
movups 0x10(%r11,%rdx,8),%xmm5
movups 0x0(%r13,%rdx,8),%xmm6
movups 0x10(%r13,%rdx,8),%xmm7
movups %xmm6,(%r11,%rdx,8)
movups %xmm7,0x10(%r11,%rdx,8)
movups %xmm0,0x0(%r13,%rdx,8)
movups %xmm5,0x10(%r13,%rdx,8)
movupd 0x20(%r11,%rdx,8),%xmm0
movupd 0x30(%r11,%rdx,8),%xmm5
movupd 0x20(%r13,%rdx,8),%xmm6
movupd 0x30(%r13,%rdx,8),%xmm7
movupd %xmm6,0x20(%r11,%rdx,8)
movupd %xmm7,0x30(%r11,%rdx,8)
movupd %xmm0,0x20(%r13,%rdx,8)
movupd %xmm5,0x30(%r13,%rdx,8)
add    $0x8,%rdx
add    $0xfffffffffffffffe,%rcx
jne    1550 <LUDecomp+0x430>
testb  $0x1,0x10(%rsp)
je     15fd <LUDecomp+0x4dd>
movupd (%r11,%rdx,8),%xmm0
movupd 0x10(%r11,%rdx,8),%xmm5
movupd 0x0(%r13,%rdx,8),%xmm6
movupd 0x10(%r13,%rdx,8),%xmm7
movupd %xmm6,(%r11,%rdx,8)
movupd %xmm7,0x10(%r11,%rdx,8)
movupd %xmm0,0x0(%r13,%rdx,8)
movupd %xmm5,0x10(%r13,%rdx,8)
mov    0x20(%rsp),%rcx
mov    %rcx,%rdx
cmp    %r15,%rcx
jne    14b6 <LUDecomp+0x396>
xchg   %ax,%ax
mov    0x30(%rsp),%rcx
movsd  (%rcx),%xmm0
xorpd  %xmm4,%xmm0
movlpd %xmm0,(%rcx)
movsd  (%rax,%r8,8),%xmm0
movsd  %xmm0,(%rax,%rsi,8)
mov    %rdi,%r13
mov    %rbx,%r11
mov    %r9d,0x0(%r13,%r8,4)
mov    (%r14,%r8,8),%rcx
movsd  (%rcx,%r8,8),%xmm5
ucomisd %xmm2,%xmm5
jne    165b <LUDecomp+0x53b>
jp     165b <LUDecomp+0x53b>
movabs $0x3bc79ca10c924223,%rdx
9c c7 3b
mov    %rdx,(%rcx,%r8,8)
movapd %xmm3,%xmm5
cmp    %r11,%r8
je     12e0 <LUDecomp+0x1c0>
lea    0x1(%r8),%rcx
cmp    %r15,%rcx
jge    12e7 <LUDecomp+0x1c7>
movapd %xmm8,%xmm6
divsd  %xmm5,%xmm6
mov    $0x1,%edx
nop
mov    (%r10,%rdx,8),%rsi
movsd  (%rsi,%r8,8),%xmm0
mulsd  %xmm6,%xmm0
movsd  %xmm0,(%rsi,%r8,8)
add    $0x1,%rdx
cmp    %rdx,%r12
jne    1680 <LUDecomp+0x560>
jmp    12e7 <LUDecomp+0x1c7>
xor    %edx,%edx
testb  $0x1,0x10(%rsp)
jne    15c7 <LUDecomp+0x4a7>
jmp    15fd <LUDecomp+0x4dd>
mov    %rax,%rdi
call   1030 <FreeArray1D@plt>
mov    $0x1,%eax
jmp    16c5 <LUDecomp+0x5a5>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

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