#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 *dgetmem(int const);
double fabs(double);
int /*<<< orphan*/ free(double *);
int cholesky(double *c, double *a, double *b, const int n, double eps) {
  int i, j, k;
  static double *d = NULL, *y, *v, *vp;
  static int size;
  if (d == NULL) {
    d = dgetmem(n * (n + 2));
    y = d + n;
    v = y + n;
    size = n;
  }
  if (n > size) {
    free(d);
    d = dgetmem(n * (n + 2));
    y = d + n;
    v = y + n;
    size = n;
  }
  if (eps < 0.0)
    eps = 1.0e-6;
  for (j = 0; j < n; j++, c += n) {
    d[j] = c[j];
    vp = v + j * n;
    for (k = 0; k < j; k++)
      d[j] -= vp[k] * vp[k] * d[k];
    if (fabs(d[j]) <= eps)
      return (-1);
    for (i = j + 1; i < n; i++) {
      vp = v + i * n;
      vp[j] = c[i];
      for (k = 0; k < j; k++)
        vp[j] -= vp[k] * v[j * n + k] * d[k];
      vp[j] /= d[j];
    }
  }
  for (i = 0; i < n; i++) {
    y[i] = b[i];
    vp = v + i * n;
    for (k = 0; k < i; k++)
      y[i] -= vp[k] * y[k];
  }
  for (i = n - 1; i >= 0; i--) {
    a[i] = y[i] / d[i];
    for (k = i + 1; k < n; k++)
      a[i] -= v[n * k + i] * a[k];
  }
  return (0);
}


x86 assembly (clang, -O0):
<cholesky>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movsd  %xmm0,-0x30(%rbp)
cmpq   $0x0,0x2ef4(%rip)
jne    119d <cholesky+0x7d>
mov    -0x24(%rbp),%edi
mov    -0x24(%rbp),%eax
add    $0x2,%eax
imul   %eax,%edi
call   1040 <dgetmem@plt>
mov    %rax,0x2ed6(%rip)
mov    0x2ecf(%rip),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2ec5(%rip)
mov    0x2ebe(%rip),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2eb4(%rip)
mov    -0x24(%rbp),%eax
mov    %eax,0x2ebb(%rip)
mov    -0x24(%rbp),%eax
cmp    0x2eb2(%rip),%eax
jle    120b <cholesky+0xeb>
mov    0x2e85(%rip),%rdi
call   1030 <free@plt>
mov    -0x24(%rbp),%edi
mov    -0x24(%rbp),%eax
add    $0x2,%eax
imul   %eax,%edi
call   1040 <dgetmem@plt>
mov    %rax,0x2e68(%rip)
mov    0x2e61(%rip),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2e57(%rip)
mov    0x2e50(%rip),%rax
movslq -0x24(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2e46(%rip)
mov    -0x24(%rbp),%eax
mov    %eax,0x2e4d(%rip)
xorps  %xmm0,%xmm0
ucomisd -0x30(%rbp),%xmm0
jbe    1226 <cholesky+0x106>
movsd  0xddf(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movl   $0x0,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    146e <cholesky+0x34e>
mov    -0x10(%rbp),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2deb(%rip),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2deb(%rip),%rax
mov    -0x38(%rbp),%ecx
imul   -0x24(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2ddb(%rip)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    12fa <cholesky+0x1da>
mov    0x2dc1(%rip),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2db1(%rip),%rax
movslq -0x3c(%rbp),%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x2d89(%rip),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x2d79(%rip),%rax
movslq -0x38(%rbp),%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    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    127c <cholesky+0x15c>
mov    0x2d37(%rip),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
movaps 0xcff(%rip),%xmm0
pand   %xmm0,%xmm1
movsd  -0x30(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     1330 <cholesky+0x210>
movl   $0xffffffff,-0x4(%rbp)
jmp    1619 <cholesky+0x4f9>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1446 <cholesky+0x326>
mov    0x2cfc(%rip),%rax
mov    -0x34(%rbp),%ecx
imul   -0x24(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2cec(%rip)
mov    -0x10(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2cd8(%rip),%rax
movslq -0x38(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    140f <cholesky+0x2ef>
mov    0x2cb5(%rip),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2c9d(%rip),%rax
mov    -0x38(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0x3c(%rbp),%ecx
movslq %ecx,%rcx
mulsd  (%rax,%rcx,8),%xmm0
mov    0x2c74(%rip),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x2c7c(%rip),%rax
movslq -0x38(%rbp),%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    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1388 <cholesky+0x268>
mov    0x2c22(%rip),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mov    0x2c2a(%rip),%rax
movslq -0x38(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
divsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1339 <cholesky+0x219>
jmp    144b <cholesky+0x32b>
mov    -0x38(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x38(%rbp)
mov    -0x24(%rbp),%ecx
mov    -0x10(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x10(%rbp)
jmp    122d <cholesky+0x10d>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1545 <cholesky+0x425>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2bab(%rip),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    0x2ba3(%rip),%rax
mov    -0x34(%rbp),%ecx
imul   -0x24(%rbp),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,0x2b93(%rip)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x34(%rbp),%eax
jge    1532 <cholesky+0x412>
mov    0x2b79(%rip),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2b59(%rip),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    0x2b49(%rip),%rax
movslq -0x34(%rbp),%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    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    14c4 <cholesky+0x3a4>
jmp    1537 <cholesky+0x417>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1475 <cholesky+0x355>
mov    -0x24(%rbp),%eax
sub    $0x1,%eax
mov    %eax,-0x34(%rbp)
cmpl   $0x0,-0x34(%rbp)
jl     1612 <cholesky+0x4f2>
mov    0x2ae1(%rip),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2ac9(%rip),%rax
movslq -0x34(%rbp),%rcx
divsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    15ff <cholesky+0x4df>
mov    0x2aa7(%rip),%rax
mov    -0x24(%rbp),%ecx
imul   -0x3c(%rbp),%ecx
add    -0x34(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
mov    -0x18(%rbp),%rax
movslq -0x34(%rbp),%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    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    158e <cholesky+0x46e>
jmp    1604 <cholesky+0x4e4>
mov    -0x34(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x34(%rbp)
jmp    154e <cholesky+0x42e>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cholesky>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %ecx,%ebx
mov    %rdx,%rbp
mov    %rsi,0x30(%rsp)
mov    %rdi,%r13
mov    0x2ef6(%rip),%rax
test   %rax,%rax
je     1163 <cholesky+0x43>
cmp    %ebx,0x2f0b(%rip)
jge    119d <cholesky+0x7d>
mov    %rax,%rdi
movaps %xmm0,(%rsp)
call   1030 <free@plt>
lea    0x2(%rbx),%edi
imul   %ebx,%edi
jmp    116d <cholesky+0x4d>
lea    0x2(%rbx),%edi
imul   %ebx,%edi
movaps %xmm0,(%rsp)
call   1040 <dgetmem@plt>
movapd (%rsp),%xmm0
mov    %rax,0x2eba(%rip)
movslq %ebx,%rcx
lea    (%rax,%rcx,8),%rdx
mov    %rdx,0x2eb4(%rip)
lea    (%rdx,%rcx,8),%rcx
mov    %rcx,0x2eb1(%rip)
mov    %ebx,0x2ebb(%rip)
test   %ebx,%ebx
jle    157f <cholesky+0x45f>
mov    %rbp,0x20(%rsp)
xorpd  %xmm1,%xmm1
movapd %xmm0,%xmm4
cmpltsd %xmm1,%xmm4
movsd  0xe41(%rip),%xmm1
andpd  %xmm4,%xmm1
andnpd %xmm0,%xmm4
orpd   %xmm1,%xmm4
mov    0x2e76(%rip),%r11
mov    %rbx,0x28(%rsp)
mov    %ebx,%ecx
lea    0x8(%r11),%rsi
lea    0x0(,%rcx,8),%r10
lea    0x8(%r11,%rcx,8),%rdx
mov    %rdx,(%rsp)
mov    $0x1,%edx
mov    %rdx,0x18(%rsp)
xor    %ebx,%ebx
movapd 0xe0e(%rip),%xmm1
jmp    122e <cholesky+0x10e>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x0(%r13,%rcx,8),%r13
addq   $0x1,0x18(%rsp)
add    %r10,%rsi
add    %r10,(%rsp)
mov    %r14,%rbx
cmp    %rcx,%r14
je     13a0 <cholesky+0x280>
mov    %rbx,%rdx
and    $0xfffffffffffffffe,%rdx
movsd  0x0(%r13,%rbx,8),%xmm2
movsd  %xmm2,(%rax,%rbx,8)
mov    %rbx,%r12
imul   %rcx,%r12
lea    (%r11,%r12,8),%rdi
test   %rbx,%rbx
je     12b5 <cholesky+0x195>
xor    %ebp,%ebp
cmp    $0x1,%rbx
je     1299 <cholesky+0x179>
nopl   0x0(%rax)
movsd  -0x8(%rsi,%rbp,8),%xmm3
mulsd  %xmm3,%xmm3
mulsd  (%rax,%rbp,8),%xmm3
subsd  %xmm3,%xmm2
movsd  %xmm2,(%rax,%rbx,8)
movsd  (%rsi,%rbp,8),%xmm3
mulsd  %xmm3,%xmm3
mulsd  0x8(%rax,%rbp,8),%xmm3
subsd  %xmm3,%xmm2
movsd  %xmm2,(%rax,%rbx,8)
add    $0x2,%rbp
cmp    %rbp,%rdx
jne    1260 <cholesky+0x140>
test   $0x1,%bl
je     12b5 <cholesky+0x195>
movsd  (%rdi,%rbp,8),%xmm3
mulsd  %xmm3,%xmm3
mulsd  (%rax,%rbp,8),%xmm3
subsd  %xmm3,%xmm2
movsd  %xmm2,(%rax,%rbx,8)
andpd  %xmm1,%xmm2
ucomisd %xmm2,%xmm4
jae    138f <cholesky+0x26f>
lea    0x1(%rbx),%r14
cmp    %rcx,%r14
jae    1210 <cholesky+0xf0>
mov    (%rsp),%r8
mov    0x18(%rsp),%r9
jmp    12fa <cholesky+0x1da>
nopl   0x0(%rax,%rax,1)
divsd  (%rax,%rbx,8),%xmm2
movsd  %xmm2,(%rdi,%rbx,8)
add    $0x1,%r9
add    %r10,%r8
cmp    %rcx,%r9
je     1210 <cholesky+0xf0>
mov    %r9,%rdi
imul   %rcx,%rdi
lea    (%r11,%rdi,8),%rdi
movsd  0x0(%r13,%r9,8),%xmm2
movsd  %xmm2,(%rdi,%rbx,8)
test   %rbx,%rbx
je     12e0 <cholesky+0x1c0>
xor    %r15d,%r15d
cmp    $0x1,%rbx
je     1362 <cholesky+0x242>
nop
movsd  -0x8(%rsi,%r15,8),%xmm3
mulsd  -0x8(%r8,%r15,8),%xmm3
mulsd  (%rax,%r15,8),%xmm3
subsd  %xmm3,%xmm2
movsd  %xmm2,(%rdi,%rbx,8)
movsd  (%rsi,%r15,8),%xmm3
mulsd  (%r8,%r15,8),%xmm3
mulsd  0x8(%rax,%r15,8),%xmm3
subsd  %xmm3,%xmm2
movsd  %xmm2,(%rdi,%rbx,8)
add    $0x2,%r15
cmp    %r15,%rdx
jne    1320 <cholesky+0x200>
test   $0x1,%bl
je     12e0 <cholesky+0x1c0>
lea    (%r15,%r12,1),%rbp
movsd  (%r11,%rbp,8),%xmm3
mulsd  (%rdi,%r15,8),%xmm3
mulsd  (%rax,%r15,8),%xmm3
subsd  %xmm3,%xmm2
movsd  %xmm2,(%rdi,%rbx,8)
jmp    12e0 <cholesky+0x1c0>
mov    %rdi,0x2cba(%rip)
mov    $0xffffffff,%eax
jmp    1581 <cholesky+0x461>
mov    %rdi,0x2ca9(%rip)
mov    0x28(%rsp),%r11
test   %r11d,%r11d
jle    157f <cholesky+0x45f>
mov    0x2c84(%rip),%rdx
mov    0x2c85(%rip),%r9
lea    0x8(%r9),%rdi
lea    0x0(,%rcx,8),%r8
xor    %ebx,%ebx
mov    0x30(%rsp),%r13
mov    0x20(%rsp),%r14
jmp    13f0 <cholesky+0x2d0>
nopl   (%rax)
add    $0x1,%rbx
add    %r8,%rdi
cmp    %rcx,%rbx
je     1483 <cholesky+0x363>
movsd  (%r14,%rbx,8),%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
mov    %rbx,%rsi
imul   %rcx,%rsi
lea    (%r9,%rsi,8),%r10
test   %rbx,%rbx
je     13e0 <cholesky+0x2c0>
cmp    $0x1,%rbx
jne    1420 <cholesky+0x300>
xor    %esi,%esi
jmp    1461 <cholesky+0x341>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %rbx,%rbp
and    $0xfffffffffffffffe,%rbp
xor    %esi,%esi
nopl   0x0(%rax)
movsd  -0x8(%rdi,%rsi,8),%xmm1
mulsd  (%rdx,%rsi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
movsd  (%rdi,%rsi,8),%xmm1
mulsd  0x8(%rdx,%rsi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
add    $0x2,%rsi
cmp    %rsi,%rbp
jne    1430 <cholesky+0x310>
test   $0x1,%bl
je     13e0 <cholesky+0x2c0>
movsd  (%r10,%rsi,8),%xmm1
mulsd  (%rdx,%rsi,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rdx,%rbx,8)
jmp    13e0 <cholesky+0x2c0>
mov    %r10,0x2bc6(%rip)
test   %r11d,%r11d
jle    157f <cholesky+0x45f>
mov    0x2ba6(%rip),%r10
mov    0x2ba7(%rip),%r9
lea    -0x1(%rcx),%r8
lea    (%rcx,%rcx,1),%r15
xor    %r14d,%r14d
mov    %r9,%r11
mov    %rcx,%rdi
jmp    14d2 <cholesky+0x3b2>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r14d
add    $0xfffffffffffffff8,%r11
cmp    $0x2,%r12
jl     157f <cholesky+0x45f>
mov    %rdi,%r12
add    $0xffffffffffffffff,%rdi
movsd  -0x8(%r10,%r12,8),%xmm0
divsd  -0x8(%rax,%r12,8),%xmm0
movsd  %xmm0,-0x8(%r13,%r12,8)
cmp    %rcx,%r12
jge    14c0 <cholesky+0x3a0>
mov    %r12,%rdx
test   $0x1,%r14b
je     1520 <cholesky+0x400>
imul   %rcx,%rdx
add    %rdi,%rdx
movsd  (%r9,%rdx,8),%xmm1
mulsd  0x0(%r13,%r12,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%r13,%rdi,8)
lea    0x1(%r12),%rdx
cmp    $0x1,%r14d
je     14c0 <cholesky+0x3a0>
mov    %rcx,%rsi
imul   %rdx,%rsi
lea    (%r11,%rsi,8),%rbx
lea    0x1(%rdx),%rsi
imul   %rcx,%rsi
lea    (%r11,%rsi,8),%rbp
mov    %r8,%rsi
movsd  (%rbx,%rsi,8),%xmm1
mulsd  0x0(%r13,%rdx,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%r13,%rdi,8)
movsd  0x0(%rbp,%rsi,8),%xmm1
mulsd  0x8(%r13,%rdx,8),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,0x0(%r13,%rdi,8)
add    $0x2,%rdx
add    %r15,%rsi
cmp    %edx,%ecx
jne    1540 <cholesky+0x420>
jmp    14c0 <cholesky+0x3a0>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@cholesky.d = internal unnamed_addr global double* null
@cholesky.y = internal unnamed_addr global double* null
@cholesky.v = internal unnamed_addr global double* null
@cholesky.vp = internal unnamed_addr global double* null
@cholesky.size = internal unnamed_addr global i32 0
define i32 @cholesky(double* nocapture %0, double* nocapture %1, double* nocapture %2, i32 %3, double %4) {
%6 = load double*, double** @cholesky.d
%7 = icmp eq double* %6, null
br i1 %7, label %8, label %15
8: ; preds = %5
%9 = add nsw i32 %3, 2
%10 = mul nsw i32 %9, %3
%11 = tail call double* @dgetmem(i32 %10)
store double* %11, double** @cholesky.d
%12 = sext i32 %3 to i64
%13 = getelementptr inbounds double, double* %11, i64 %12
store double* %13, double** @cholesky.y
%14 = getelementptr inbounds double, double* %13, i64 %12
br label %26
15: ; preds = %5
%16 = load i32, i32* @cholesky.size
%17 = icmp slt i32 %16, %3
br i1 %17, label %18, label %29
18: ; preds = %15
%19 = tail call i32 @free(double* %6)
%20 = add nsw i32 %3, 2
%21 = mul nsw i32 %20, %3
%22 = tail call double* @dgetmem(i32 %21)
store double* %22, double** @cholesky.d
%23 = sext i32 %3 to i64
%24 = getelementptr inbounds double, double* %22, i64 %23
store double* %24, double** @cholesky.y
%25 = getelementptr inbounds double, double* %24, i64 %23
br label %26
26: ; preds = %18, %8
%27 = phi double* [ %14, %8 ], [ %25, %18 ]
%28 = phi double* [ %11, %8 ], [ %22, %18 ]
store double* %27, double** @cholesky.v
store i32 %3, i32* @cholesky.size
br label %29
29: ; preds = %26, %15
%30 = phi double* [ %6, %15 ], [ %28, %26 ]
%31 = fcmp olt double %4, 0.000000e+00
%32 = select i1 %31, double 0x3EB0C6F7A0B5ED8D, double %4
%33 = icmp sgt i32 %3, 0
br i1 %33, label %34, label %275
34: ; preds = %29
%35 = load double*, double** @cholesky.v
%36 = zext i32 %3 to i64
%37 = zext i32 %3 to i64
br label %44
38: ; preds = %163
store double* %164, double** @cholesky.vp
br i1 %33, label %39, label %275
39: ; preds = %38
%40 = load double*, double** @cholesky.y
%41 = load double*, double** @cholesky.v
%42 = zext i32 %3 to i64
%43 = zext i32 %3 to i64
br label %173
44: ; preds = %34, %163
%45 = phi i64 [ 0, %34 ], [ %99, %163 ]
%46 = phi i64 [ 1, %34 ], [ %166, %163 ]
%47 = phi double* [ %0, %34 ], [ %165, %163 ]
%48 = getelementptr inbounds double, double* %47, i64 %45
%49 = load double, double* %48
%50 = getelementptr inbounds double, double* %30, i64 %45
store double %49, double* %50
%51 = mul nsw i64 %45, %36
%52 = getelementptr inbounds double, double* %35, i64 %51
%53 = icmp eq i64 %45, 0
br i1 %53, label %94, label %54
54: ; preds = %44
%55 = and i64 %45, 1
%56 = icmp eq i64 %45, 1
br i1 %56, label %81, label %57
57: ; preds = %54
%58 = and i64 %45, 9223372036854775806
br label %59
59: ; preds = %59, %57
%60 = phi double [ %49, %57 ], [ %77, %59 ]
%61 = phi i64 [ 0, %57 ], [ %78, %59 ]
%62 = phi i64 [ 0, %57 ], [ %79, %59 ]
%63 = getelementptr inbounds double, double* %52, i64 %61
%64 = load double, double* %63
%65 = getelementptr inbounds double, double* %30, i64 %61
%66 = load double, double* %65
%67 = fneg double %64
%68 = fmul double %64, %67
%69 = tail call double @llvm.fmuladd.f64(double %68, double %66, double %60)
store double %69, double* %50
%70 = or i64 %61, 1
%71 = getelementptr inbounds double, double* %52, i64 %70
%72 = load double, double* %71
%73 = getelementptr inbounds double, double* %30, i64 %70
%74 = load double, double* %73
%75 = fneg double %72
%76 = fmul double %72, %75
%77 = tail call double @llvm.fmuladd.f64(double %76, double %74, double %69)
store double %77, double* %50
%78 = add nuw nsw i64 %61, 2
%79 = add i64 %62, 2
%80 = icmp eq i64 %79, %58
br i1 %80, label %81, label %59
81: ; preds = %59, %54
%82 = phi double [ undef, %54 ], [ %77, %59 ]
%83 = phi double [ %49, %54 ], [ %77, %59 ]
%84 = phi i64 [ 0, %54 ], [ %78, %59 ]
%85 = icmp eq i64 %55, 0
br i1 %85, label %94, label %86
86: ; preds = %81
%87 = getelementptr inbounds double, double* %52, i64 %84
%88 = load double, double* %87
%89 = getelementptr inbounds double, double* %30, i64 %84
%90 = load double, double* %89
%91 = fneg double %88
%92 = fmul double %88, %91
%93 = tail call double @llvm.fmuladd.f64(double %92, double %90, double %83)
store double %93, double* %50
br label %94
94: ; preds = %86, %81, %44
%95 = phi double [ %49, %44 ], [ %82, %81 ], [ %93, %86 ]
%96 = tail call double @llvm.fabs.f64(double %95)
%97 = fcmp ugt double %96, %32
br i1 %97, label %98, label %274
98: ; preds = %94
%99 = add nuw nsw i64 %45, 1
%100 = icmp ult i64 %99, %36
br i1 %100, label %101, label %163
101: ; preds = %98
%102 = and i64 %45, 1
%103 = icmp eq i64 %45, 1
%104 = and i64 %45, 9223372036854775806
%105 = icmp eq i64 %102, 0
br label %106
106: ; preds = %101, %157
%107 = phi i64 [ %161, %157 ], [ %46, %101 ]
%108 = mul nsw i64 %107, %36
%109 = getelementptr inbounds double, double* %35, i64 %108
%110 = getelementptr inbounds double, double* %47, i64 %107
%111 = load double, double* %110
%112 = getelementptr inbounds double, double* %109, i64 %45
store double %111, double* %112
br i1 %53, label %157, label %113
113: ; preds = %106
br i1 %103, label %142, label %114
114: ; preds = %113, %114
%115 = phi double [ %138, %114 ], [ %111, %113 ]
%116 = phi i64 [ %139, %114 ], [ 0, %113 ]
%117 = phi i64 [ %140, %114 ], [ 0, %113 ]
%118 = getelementptr inbounds double, double* %109, i64 %116
%119 = load double, double* %118
%120 = add nuw nsw i64 %116, %51
%121 = getelementptr inbounds double, double* %35, i64 %120
%122 = load double, double* %121
%123 = getelementptr inbounds double, double* %30, i64 %116
%124 = load double, double* %123
%125 = fneg double %119
%126 = fmul double %122, %125
%127 = tail call double @llvm.fmuladd.f64(double %126, double %124, double %115)
store double %127, double* %112
%128 = or i64 %116, 1
%129 = getelementptr inbounds double, double* %109, i64 %128
%130 = load double, double* %129
%131 = add nuw nsw i64 %128, %51
%132 = getelementptr inbounds double, double* %35, i64 %131
%133 = load double, double* %132
%134 = getelementptr inbounds double, double* %30, i64 %128
%135 = load double, double* %134
%136 = fneg double %130
%137 = fmul double %133, %136
%138 = tail call double @llvm.fmuladd.f64(double %137, double %135, double %127)
store double %138, double* %112
%139 = add nuw nsw i64 %116, 2
%140 = add i64 %117, 2
%141 = icmp eq i64 %140, %104
br i1 %141, label %142, label %114
142: ; preds = %114, %113
%143 = phi double [ undef, %113 ], [ %138, %114 ]
%144 = phi double [ %111, %113 ], [ %138, %114 ]
%145 = phi i64 [ 0, %113 ], [ %139, %114 ]
br i1 %105, label %157, label %146
146: ; preds = %142
%147 = getelementptr inbounds double, double* %109, i64 %145
%148 = load double, double* %147
%149 = add nuw nsw i64 %145, %51
%150 = getelementptr inbounds double, double* %35, i64 %149
%151 = load double, double* %150
%152 = getelementptr inbounds double, double* %30, i64 %145
%153 = load double, double* %152
%154 = fneg double %148
%155 = fmul double %151, %154
%156 = tail call double @llvm.fmuladd.f64(double %155, double %153, double %144)
store double %156, double* %112
br label %157
157: ; preds = %146, %142, %106
%158 = phi double [ %111, %106 ], [ %143, %142 ], [ %156, %146 ]
%159 = load double, double* %50
%160 = fdiv double %158, %159
store double %160, double* %112
%161 = add nuw nsw i64 %107, 1
%162 = icmp eq i64 %161, %37
br i1 %162, label %163, label %106
163: ; preds = %157, %98
%164 = phi double* [ %52, %98 ], [ %109, %157 ]
%165 = getelementptr inbounds double, double* %47, i64 %36
%166 = add nuw nsw i64 %46, 1
%167 = icmp eq i64 %99, %37
br i1 %167, label %38, label %44
168: ; preds = %217
store double* %179, double** @cholesky.vp
br i1 %33, label %169, label %275
169: ; preds = %168
%170 = load double*, double** @cholesky.y
%171 = load double*, double** @cholesky.v
%172 = zext i32 %3 to i64
br label %223
173: ; preds = %39, %217
%174 = phi i64 [ 0, %39 ], [ %218, %217 ]
%175 = getelementptr inbounds double, double* %2, i64 %174
%176 = load double, double* %175
%177 = getelementptr inbounds double, double* %40, i64 %174
store double %176, double* %177
%178 = mul nsw i64 %174, %42
%179 = getelementptr inbounds double, double* %41, i64 %178
%180 = icmp eq i64 %174, 0
br i1 %180, label %217, label %181
181: ; preds = %173
%182 = and i64 %174, 1
%183 = icmp eq i64 %174, 1
br i1 %183, label %206, label %184
184: ; preds = %181
%185 = and i64 %174, 9223372036854775806
br label %186
186: ; preds = %186, %184
%187 = phi double [ %176, %184 ], [ %202, %186 ]
%188 = phi i64 [ 0, %184 ], [ %203, %186 ]
%189 = phi i64 [ 0, %184 ], [ %204, %186 ]
%190 = getelementptr inbounds double, double* %179, i64 %188
%191 = load double, double* %190
%192 = getelementptr inbounds double, double* %40, i64 %188
%193 = load double, double* %192
%194 = fneg double %191
%195 = tail call double @llvm.fmuladd.f64(double %194, double %193, double %187)
store double %195, double* %177
%196 = or i64 %188, 1
%197 = getelementptr inbounds double, double* %179, i64 %196
%198 = load double, double* %197
%199 = getelementptr inbounds double, double* %40, i64 %196
%200 = load double, double* %199
%201 = fneg double %198
%202 = tail call double @llvm.fmuladd.f64(double %201, double %200, double %195)
store double %202, double* %177
%203 = add nuw nsw i64 %188, 2
%204 = add i64 %189, 2
%205 = icmp eq i64 %204, %185
br i1 %205, label %206, label %186
206: ; preds = %186, %181
%207 = phi double [ %176, %181 ], [ %202, %186 ]
%208 = phi i64 [ 0, %181 ], [ %203, %186 ]
%209 = icmp eq i64 %182, 0
br i1 %209, label %217, label %210
210: ; preds = %206
%211 = getelementptr inbounds double, double* %179, i64 %208
%212 = load double, double* %211
%213 = getelementptr inbounds double, double* %40, i64 %208
%214 = load double, double* %213
%215 = fneg double %212
%216 = tail call double @llvm.fmuladd.f64(double %215, double %214, double %207)
store double %216, double* %177
br label %217
217: ; preds = %210, %206, %173
%218 = add nuw nsw i64 %174, 1
%219 = icmp eq i64 %218, %43
br i1 %219, label %168, label %173
220: ; preds = %247, %251, %223
%221 = icmp sgt i64 %225, 1
%222 = add i32 %224, 1
br i1 %221, label %223, label %275
223: ; preds = %169, %220
%224 = phi i32 [ 0, %169 ], [ %222, %220 ]
%225 = phi i64 [ %172, %169 ], [ %226, %220 ]
%226 = add nsw i64 %225, -1
%227 = getelementptr inbounds double, double* %170, i64 %226
%228 = load double, double* %227
%229 = getelementptr inbounds double, double* %30, i64 %226
%230 = load double, double* %229
%231 = fdiv double %228, %230
%232 = getelementptr inbounds double, double* %1, i64 %226
store double %231, double* %232
%233 = icmp slt i64 %225, %172
br i1 %233, label %234, label %220
234: ; preds = %223
%235 = and i32 %224, 1
%236 = icmp eq i32 %235, 0
br i1 %236, label %247, label %237
237: ; preds = %234
%238 = mul nsw i64 %225, %172
%239 = add nsw i64 %238, %226
%240 = getelementptr inbounds double, double* %171, i64 %239
%241 = load double, double* %240
%242 = getelementptr inbounds double, double* %1, i64 %225
%243 = load double, double* %242
%244 = fneg double %241
%245 = tail call double @llvm.fmuladd.f64(double %244, double %243, double %231)
store double %245, double* %232
%246 = add nsw i64 %225, 1
br label %247
247: ; preds = %237, %234
%248 = phi double [ %231, %234 ], [ %245, %237 ]
%249 = phi i64 [ %225, %234 ], [ %246, %237 ]
%250 = icmp eq i32 %224, 1
br i1 %250, label %220, label %251
251: ; preds = %247, %251
%252 = phi double [ %270, %251 ], [ %248, %247 ]
%253 = phi i64 [ %271, %251 ], [ %249, %247 ]
%254 = mul nsw i64 %253, %172
%255 = add nsw i64 %254, %226
%256 = getelementptr inbounds double, double* %171, i64 %255
%257 = load double, double* %256
%258 = getelementptr inbounds double, double* %1, i64 %253
%259 = load double, double* %258
%260 = fneg double %257
%261 = tail call double @llvm.fmuladd.f64(double %260, double %259, double %252)
store double %261, double* %232
%262 = add nsw i64 %253, 1
%263 = mul nsw i64 %262, %172
%264 = add nsw i64 %263, %226
%265 = getelementptr inbounds double, double* %171, i64 %264
%266 = load double, double* %265
%267 = getelementptr inbounds double, double* %1, i64 %262
%268 = load double, double* %267
%269 = fneg double %266
%270 = tail call double @llvm.fmuladd.f64(double %269, double %268, double %261)
store double %270, double* %232
%271 = add nsw i64 %253, 2
%272 = trunc i64 %271 to i32
%273 = icmp eq i32 %272, %3
br i1 %273, label %220, label %251
274: ; preds = %94
store double* %52, double** @cholesky.vp
br label %275
275: ; preds = %220, %29, %38, %168, %274
%276 = phi i32 [ -1, %274 ], [ 0, %168 ], [ 0, %38 ], [ 0, %29 ], [ 0, %220 ]
ret i32 %276
}