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

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ dpotrf_(char *, int *, double *, int *, int *);
int /*<<< orphan*/ dpotrs_(char *, int *, int *, double *, int *, double *,
                           int *, int *);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(double *);
scalar_t__ malloc(int);
int /*<<< orphan*/ stderr;
int dAx_eq_b_Chol(double *A, double *B, double *x, int m) {
  static double *buf = NULL;
  static int buf_sz = 0;
  double *a;
  int a_sz, tot_sz;
  register int i;
  int info, nrhs = 1;
  if (!A) {
    if (buf)
      free(buf);
    buf = NULL;
    buf_sz = 0;
    return 1;
  }
  a_sz = m * m;
  tot_sz = a_sz;
  if (tot_sz > buf_sz) {
    if (buf)
      free(buf);
    buf_sz = tot_sz;
    buf = (double *)malloc(buf_sz * sizeof(double));
    if (!buf) {
      fprintf(stderr, "memory allocation in "
                      "dAx_eq_b_Chol"
                      "() failed!\n");
      exit(1);
    }
  }
  a = buf;
  for (i = 0; i < m; i++) {
    a[i] = A[i];
    x[i] = B[i];
  }
  for (i = m; i < m * m; i++)
    a[i] = A[i];
  dpotrf_("U", (int *)&m, a, (int *)&m, (int *)&info);
  if (info != 0) {
    if (info < 0) {
      fprintf(stderr,
              "LAPACK error: illegal value for argument %d of "
              "dpotf2_"
              "/"
              "dpotrf_"
              " in "
              "dAx_eq_b_Chol"
              "()\n",
              -info);
      exit(1);
    } else {
      fprintf(stderr,
              "LAPACK error: the leading minor of order %d is not positive "
              "definite,\nthe factorization could not be completed for "
              "dpotf2_"
              "/"
              "dpotrf_"
              " in "
              "dAx_eq_b_Chol"
              "()\n",
              info);
      return 0;
    }
  }
  dpotrs_("U", (int *)&m, (int *)&nrhs, a, (int *)&m, x, (int *)&m, &info);
  if (info < 0) {
    fprintf(stderr,
            "LAPACK error: illegal value for argument %d of "
            "dpotrs_"
            " in "
            "dAx_eq_b_Chol"
            "()\n",
            -info);
    exit(1);
  }
  return 1;
}


x86 assembly (clang, -O0):
<dAx_eq_b_Chol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movl   $0x1,-0x44(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11c4 <dAx_eq_b_Chol+0x64>
cmpq   $0x0,0x2ec7(%rip)
je     11a3 <dAx_eq_b_Chol+0x43>
mov    0x2eba(%rip),%rdi
call   1030 <free@plt>
movq   $0x0,0x2eaa(%rip)
movl   $0x0,0x2ea8(%rip)
movl   $0x1,-0x4(%rbp)
jmp    13d4 <dAx_eq_b_Chol+0x274>
mov    -0x24(%rbp),%eax
imul   -0x24(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x38(%rbp)
mov    -0x38(%rbp),%eax
cmp    0x2e83(%rip),%eax
jle    1253 <dAx_eq_b_Chol+0xf3>
cmpq   $0x0,0x2e6d(%rip)
je     11fd <dAx_eq_b_Chol+0x9d>
mov    0x2e60(%rip),%rdi
call   1030 <free@plt>
mov    -0x38(%rbp),%eax
mov    %eax,0x2e5a(%rip)
movslq 0x2e53(%rip),%rax
shl    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,0x2e39(%rip)
cmpq   $0x0,0x2e31(%rip)
jne    124e <dAx_eq_b_Chol+0xee>
mov    0x2dac(%rip),%rax
mov    (%rax),%edi
lea    0xdc3(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
jmp    1253 <dAx_eq_b_Chol+0xf3>
mov    0x2dfe(%rip),%rax
mov    %rax,-0x30(%rbp)
movl   $0x0,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    12b3 <dAx_eq_b_Chol+0x153>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1265 <dAx_eq_b_Chol+0x105>
mov    -0x24(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x3c(%rbp),%eax
mov    -0x24(%rbp),%ecx
imul   -0x24(%rbp),%ecx
cmp    %ecx,%eax
jge    12f3 <dAx_eq_b_Chol+0x193>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12b9 <dAx_eq_b_Chol+0x159>
mov    -0x30(%rbp),%rdx
lea    0xd30(%rip),%rdi
lea    -0x24(%rbp),%rcx
lea    -0x40(%rbp),%r8
mov    %rcx,%rsi
call   1040 <dpotrf_@plt>
cmpl   $0x0,-0x40(%rbp)
je     136e <dAx_eq_b_Chol+0x20e>
cmpl   $0x0,-0x40(%rbp)
jge    1348 <dAx_eq_b_Chol+0x1e8>
mov    0x2cb7(%rip),%rax
mov    (%rax),%edi
xor    %edx,%edx
sub    -0x40(%rbp),%edx
lea    0xcf9(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    0x2c91(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%edx
lea    0xd28(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    13d4 <dAx_eq_b_Chol+0x274>
mov    -0x30(%rbp),%rcx
mov    -0x20(%rbp),%r9
lea    0xcb1(%rip),%rdi
lea    -0x24(%rbp),%r10
lea    -0x44(%rbp),%rdx
lea    -0x40(%rbp),%rax
mov    %r10,%rsi
mov    %r10,%r8
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1060 <dpotrs_@plt>
cmpl   $0x0,-0x40(%rbp)
jge    13cd <dAx_eq_b_Chol+0x26d>
mov    0x2c32(%rip),%rax
mov    (%rax),%edi
xor    %edx,%edx
sub    -0x40(%rbp),%edx
lea    0xd5e(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dAx_eq_b_Chol>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %ecx,0x14(%rsp)
movl   $0x1,0x10(%rsp)
test   %rdi,%rdi
je     1261 <dAx_eq_b_Chol+0x101>
mov    %ecx,%r12d
mov    %rdx,%r14
mov    %rsi,%r13
mov    %rdi,%r15
mov    %ecx,%ebp
imul   %ebp,%ebp
mov    0x2ebd(%rip),%rbx
cmp    0x2ebf(%rip),%ebp
jle    11d5 <dAx_eq_b_Chol+0x75>
test   %rbx,%rbx
je     11b0 <dAx_eq_b_Chol+0x50>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,0x2eaa(%rip)
lea    0x0(,%rbp,8),%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x2e8c(%rip)
test   %rax,%rax
je     163f <dAx_eq_b_Chol+0x4df>
test   %r12d,%r12d
jle    13fc <dAx_eq_b_Chol+0x29c>
mov    %r12d,%eax
cmp    $0x4,%r12d
jae    1291 <dAx_eq_b_Chol+0x131>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
test   $0x1,%al
je     1213 <dAx_eq_b_Chol+0xb3>
movsd  (%r15,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x0(%r13,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
or     $0x1,%rcx
add    %rax,%rdx
je     13fc <dAx_eq_b_Chol+0x29c>
nopl   0x0(%rax)
movsd  (%r15,%rcx,8),%xmm0
movsd  %xmm0,(%rbx,%rcx,8)
movsd  0x0(%r13,%rcx,8),%xmm0
movsd  %xmm0,(%r14,%rcx,8)
movsd  0x8(%r15,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rcx,8)
movsd  0x8(%r13,%rcx,8),%xmm0
movsd  %xmm0,0x8(%r14,%rcx,8)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    1220 <dAx_eq_b_Chol+0xc0>
jmp    13fc <dAx_eq_b_Chol+0x29c>
mov    0x2df0(%rip),%rdi
test   %rdi,%rdi
je     1272 <dAx_eq_b_Chol+0x112>
call   1030 <free@plt>
movq   $0x0,0x2ddb(%rip)
movl   $0x0,0x2dd9(%rip)
mov    $0x1,%ebx
jmp    1613 <dAx_eq_b_Chol+0x4b3>
lea    (%rbx,%rax,8),%rcx
lea    (%r14,%rax,8),%r11
lea    (%r15,%rax,8),%rdi
lea    0x0(,%rax,8),%rsi
add    %r13,%rsi
cmp    %r11,%rbx
setb   0xb(%rsp)
cmp    %r14,%rcx
seta   %r9b
cmp    %rdi,%rbx
setb   %dl
cmp    %r15,%rcx
seta   0xa(%rsp)
cmp    %rsi,%rbx
setb   %r10b
cmp    %r13,%rcx
seta   0x9(%rsp)
cmp    %r14,%rdi
seta   %dil
cmp    %r15,%r11
seta   0x8(%rsp)
cmp    %r14,%rsi
seta   %r8b
cmp    %r13,%r11
seta   %sil
xor    %ecx,%ecx
test   %r9b,0xb(%rsp)
jne    11ed <dAx_eq_b_Chol+0x8d>
and    0xa(%rsp),%dl
jne    11ed <dAx_eq_b_Chol+0x8d>
and    0x9(%rsp),%r10b
jne    11ed <dAx_eq_b_Chol+0x8d>
and    0x8(%rsp),%dil
jne    11ed <dAx_eq_b_Chol+0x8d>
and    %sil,%r8b
jne    11ed <dAx_eq_b_Chol+0x8d>
mov    %eax,%ecx
and    $0xfffffffc,%ecx
lea    -0x4(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x2,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     1624 <dAx_eq_b_Chol+0x4c4>
movabs $0x7ffffffffffffffc,%rdi
ff ff 7f
or     $0x2,%rdi
and    %rdx,%rdi
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movups (%r15,%rsi,8),%xmm0
movups 0x10(%r15,%rsi,8),%xmm1
movups %xmm0,(%rbx,%rsi,8)
movups %xmm1,0x10(%rbx,%rsi,8)
movups 0x0(%r13,%rsi,8),%xmm0
movups 0x10(%r13,%rsi,8),%xmm1
movups %xmm0,(%r14,%rsi,8)
movups %xmm1,0x10(%r14,%rsi,8)
movups 0x20(%r15,%rsi,8),%xmm0
movups 0x30(%r15,%rsi,8),%xmm1
movups %xmm0,0x20(%rbx,%rsi,8)
movups %xmm1,0x30(%rbx,%rsi,8)
movups 0x20(%r13,%rsi,8),%xmm0
movups 0x30(%r13,%rsi,8),%xmm1
movups %xmm0,0x20(%r14,%rsi,8)
movups %xmm1,0x30(%r14,%rsi,8)
add    $0x8,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1360 <dAx_eq_b_Chol+0x200>
test   $0x1,%dl
je     13f3 <dAx_eq_b_Chol+0x293>
movups (%r15,%rsi,8),%xmm0
movups 0x10(%r15,%rsi,8),%xmm1
movups %xmm0,(%rbx,%rsi,8)
movups %xmm1,0x10(%rbx,%rsi,8)
movups 0x0(%r13,%rsi,8),%xmm0
movups 0x10(%r13,%rsi,8),%xmm1
movups %xmm0,(%r14,%rsi,8)
movups %xmm1,0x10(%r14,%rsi,8)
cmp    %rax,%rcx
jne    11ed <dAx_eq_b_Chol+0x8d>
cmp    %r12d,%ebp
jle    159b <dAx_eq_b_Chol+0x43b>
movslq %r12d,%rax
movslq %ebp,%r11
mov    %r11,%r9
sub    %rax,%r9
cmp    $0x4,%r9
jb     1523 <dAx_eq_b_Chol+0x3c3>
lea    (%rbx,%rax,8),%rcx
lea    (%r15,%r11,8),%rdx
cmp    %rdx,%rcx
jae    1439 <dAx_eq_b_Chol+0x2d9>
lea    (%rbx,%r11,8),%rcx
lea    (%r15,%rax,8),%rdx
cmp    %rcx,%rdx
jb     1523 <dAx_eq_b_Chol+0x3c3>
mov    %r9,%r8
and    $0xfffffffffffffffc,%r8
lea    -0x4(%r8),%rcx
mov    %rcx,%rdi
shr    $0x2,%rdi
add    $0x1,%rdi
mov    %edi,%r10d
and    $0x3,%r10d
cmp    $0xc,%rcx
jae    1460 <dAx_eq_b_Chol+0x300>
xor    %edx,%edx
jmp    14d8 <dAx_eq_b_Chol+0x378>
and    $0xfffffffffffffffc,%rdi
lea    (%rbx,%rax,8),%rsi
add    $0x70,%rsi
lea    (%r15,%rax,8),%rcx
add    $0x70,%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
movups -0x70(%rcx,%rdx,8),%xmm0
movups -0x60(%rcx,%rdx,8),%xmm1
movups %xmm0,-0x70(%rsi,%rdx,8)
movups %xmm1,-0x60(%rsi,%rdx,8)
movups -0x50(%rcx,%rdx,8),%xmm0
movups -0x40(%rcx,%rdx,8),%xmm1
movups %xmm0,-0x50(%rsi,%rdx,8)
movups %xmm1,-0x40(%rsi,%rdx,8)
movups -0x30(%rcx,%rdx,8),%xmm0
movups -0x20(%rcx,%rdx,8),%xmm1
movups %xmm0,-0x30(%rsi,%rdx,8)
movups %xmm1,-0x20(%rsi,%rdx,8)
movups -0x10(%rcx,%rdx,8),%xmm0
movups (%rcx,%rdx,8),%xmm1
movups %xmm0,-0x10(%rsi,%rdx,8)
movups %xmm1,(%rsi,%rdx,8)
add    $0x10,%rdx
add    $0xfffffffffffffffc,%rdi
jne    1480 <dAx_eq_b_Chol+0x320>
test   %r10,%r10
je     151b <dAx_eq_b_Chol+0x3bb>
add    %rax,%rdx
lea    (%rbx,%rdx,8),%rcx
add    $0x10,%rcx
lea    (%r15,%rdx,8),%rdx
add    $0x10,%rdx
shl    $0x5,%r10
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
movups -0x10(%rdx,%rsi,1),%xmm0
movups (%rdx,%rsi,1),%xmm1
movups %xmm0,-0x10(%rcx,%rsi,1)
movups %xmm1,(%rcx,%rsi,1)
add    $0x20,%rsi
cmp    %rsi,%r10
jne    1500 <dAx_eq_b_Chol+0x3a0>
cmp    %r8,%r9
je     159b <dAx_eq_b_Chol+0x43b>
add    %r8,%rax
sub    %eax,%ebp
mov    %rax,%rcx
not    %rcx
add    %r11,%rcx
and    $0x3,%rbp
je     1555 <dAx_eq_b_Chol+0x3f5>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
add    $0x1,%rax
add    $0xffffffffffffffff,%rbp
jne    1540 <dAx_eq_b_Chol+0x3e0>
cmp    $0x3,%rcx
jb     159b <dAx_eq_b_Chol+0x43b>
nopl   0x0(%rax,%rax,1)
movsd  (%r15,%rax,8),%xmm0
movsd  %xmm0,(%rbx,%rax,8)
movsd  0x8(%r15,%rax,8),%xmm0
movsd  %xmm0,0x8(%rbx,%rax,8)
movsd  0x10(%r15,%rax,8),%xmm0
movsd  %xmm0,0x10(%rbx,%rax,8)
movsd  0x18(%r15,%rax,8),%xmm0
movsd  %xmm0,0x18(%rbx,%rax,8)
add    $0x4,%rax
cmp    %rax,%r11
jne    1560 <dAx_eq_b_Chol+0x400>
lea    0xa8c(%rip),%rdi
lea    0x14(%rsp),%rbp
lea    0xc(%rsp),%r15
mov    %rbp,%rsi
mov    %rbx,%rdx
mov    %rbp,%rcx
mov    %r15,%r8
call   1040 <dpotrf_@plt>
mov    0xc(%rsp),%edx
test   %edx,%edx
je     15e2 <dAx_eq_b_Chol+0x482>
mov    0x2a14(%rip),%rax
mov    (%rax),%edi
js     1634 <dAx_eq_b_Chol+0x4d4>
lea    0xaac(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1613 <dAx_eq_b_Chol+0x4b3>
lea    0xa45(%rip),%rdi
lea    0x10(%rsp),%rdx
mov    %rbp,%rsi
mov    %rbx,%rcx
mov    %rbp,%r8
mov    %r14,%r9
push   %r15
push   %rbp
call   1060 <dpotrs_@plt>
add    $0x10,%rsp
mov    0xc(%rsp),%edx
mov    $0x1,%ebx
test   %edx,%edx
js     1660 <dAx_eq_b_Chol+0x500>
mov    %ebx,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %esi,%esi
test   $0x1,%dl
jne    13c8 <dAx_eq_b_Chol+0x268>
jmp    13f3 <dAx_eq_b_Chol+0x293>
neg    %edx
lea    0x9f3(%rip),%rsi
jmp    1672 <dAx_eq_b_Chol+0x512>
mov    0x299a(%rip),%rax
mov    (%rax),%edi
lea    0x9b1(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>
mov    0x2979(%rip),%rax
mov    (%rax),%edi
neg    %edx
lea    0xaa8(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@dAx_eq_b_Chol.buf = internal global double* null
@dAx_eq_b_Chol.buf_sz = internal global i32 0
@stderr = global i32 0
@.str = [46 x i8] c"memory allocation in dAx_eq_b_Chol() failed!\0A\00"
@.str.1 = [2 x i8] c"U\00"
@.str.2 = [83 x i8] c"LAPACK error: illegal value for argument %d of dpotf2_/dpotrf_ in dAx_eq_b_Chol()\0A\00"
@.str.3 = [151 x i8] c"LAPACK error: the leading minor of order %d is not positive definite,\0Athe factorization could not be completed for dpotf2_/dpotrf_ in dAx_eq_b_Chol()\0A\00"
@.str.4 = [75 x i8] c"LAPACK error: illegal value for argument %d of dpotrs_ in dAx_eq_b_Chol()\0A\00"
define i32 @dAx_eq_b_Chol(double* %0, double* %1, double* %2, i32 %3) {
%5 = alloca i32
%6 = alloca double*
%7 = alloca double*
%8 = alloca double*
%9 = alloca i32
%10 = alloca double*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store double* %0, double** %6
store double* %1, double** %7
store double* %2, double** %8
store i32 %3, i32* %9
store i32 1, i32* %15
%16 = load double*, double** %6
%17 = icmp ne double* %16, null
br i1 %17, label %25, label %18
18: ; preds = %4
%19 = load double*, double** @dAx_eq_b_Chol.buf
%20 = icmp ne double* %19, null
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load double*, double** @dAx_eq_b_Chol.buf
%23 = call i32 @free(double* %22)
br label %24
24: ; preds = %21, %18
store double* null, double** @dAx_eq_b_Chol.buf
store i32 0, i32* @dAx_eq_b_Chol.buf_sz
store i32 1, i32* %5
br label %134
25: ; preds = %4
%26 = load i32, i32* %9
%27 = load i32, i32* %9
%28 = mul nsw i32 %26, %27
store i32 %28, i32* %11
%29 = load i32, i32* %11
store i32 %29, i32* %12
%30 = load i32, i32* %12
%31 = load i32, i32* @dAx_eq_b_Chol.buf_sz
%32 = icmp sgt i32 %30, %31
br i1 %32, label %33, label %54
33: ; preds = %25
%34 = load double*, double** @dAx_eq_b_Chol.buf
%35 = icmp ne double* %34, null
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load double*, double** @dAx_eq_b_Chol.buf
%38 = call i32 @free(double* %37)
br label %39
39: ; preds = %36, %33
%40 = load i32, i32* %12
store i32 %40, i32* @dAx_eq_b_Chol.buf_sz
%41 = load i32, i32* @dAx_eq_b_Chol.buf_sz
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 8
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to double*
store double* %46, double** @dAx_eq_b_Chol.buf
%47 = load double*, double** @dAx_eq_b_Chol.buf
%48 = icmp ne double* %47, null
br i1 %48, label %53, label %49
49: ; preds = %39
%50 = load i32, i32* @stderr
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %50, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str, i64 0, i64 0))
%52 = call i32 @exit(i32 1)
unreachable
53: ; preds = %39
br label %54
54: ; preds = %53, %25
%55 = load double*, double** @dAx_eq_b_Chol.buf
store double* %55, double** %10
store i32 0, i32* %13
br label %56
56: ; preds = %79, %54
%57 = load i32, i32* %13
%58 = load i32, i32* %9
%59 = icmp slt i32 %57, %58
br i1 %59, label %60, label %82
60: ; preds = %56
%61 = load double*, double** %6
%62 = load i32, i32* %13
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds double, double* %61, i64 %63
%65 = load double, double* %64
%66 = load double*, double** %10
%67 = load i32, i32* %13
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds double, double* %66, i64 %68
store double %65, double* %69
%70 = load double*, double** %7
%71 = load i32, i32* %13
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds double, double* %70, i64 %72
%74 = load double, double* %73
%75 = load double*, double** %8
%76 = load i32, i32* %13
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds double, double* %75, i64 %77
store double %74, double* %78
br label %79
79: ; preds = %60
%80 = load i32, i32* %13
%81 = add nsw i32 %80, 1
store i32 %81, i32* %13
br label %56
82: ; preds = %56
%83 = load i32, i32* %9
store i32 %83, i32* %13
br label %84
84: ; preds = %100, %82
%85 = load i32, i32* %13
%86 = load i32, i32* %9
%87 = load i32, i32* %9
%88 = mul nsw i32 %86, %87
%89 = icmp slt i32 %85, %88
br i1 %89, label %90, label %103
90: ; preds = %84
%91 = load double*, double** %6
%92 = load i32, i32* %13
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
%95 = load double, double* %94
%96 = load double*, double** %10
%97 = load i32, i32* %13
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds double, double* %96, i64 %98
store double %95, double* %99
br label %100
100: ; preds = %90
%101 = load i32, i32* %13
%102 = add nsw i32 %101, 1
store i32 %102, i32* %13
br label %84
103: ; preds = %84
%104 = load double*, double** %10
%105 = call i32 @dpotrf_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %9, double* %104, i32* %9, i32* %14)
%106 = load i32, i32* %14
%107 = icmp ne i32 %106, 0
br i1 %107, label %108, label %121
108: ; preds = %103
%109 = load i32, i32* %14
%110 = icmp slt i32 %109, 0
br i1 %110, label %111, label %117
111: ; preds = %108
%112 = load i32, i32* @stderr
%113 = load i32, i32* %14
%114 = sub nsw i32 0, %113
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([83 x i8], [83 x i8]* @.str.2, i64 0, i64 0), i32 %114)
%116 = call i32 @exit(i32 1)
unreachable
117: ; preds = %108
%118 = load i32, i32* @stderr
%119 = load i32, i32* %14
%120 = call i32 (i32, i8*, ...) @fprintf(i32 %118, i8* getelementptr inbounds ([151 x i8], [151 x i8]* @.str.3, i64 0, i64 0), i32 %119)
store i32 0, i32* %5
br label %134
121: ; preds = %103
%122 = load double*, double** %10
%123 = load double*, double** %8
%124 = call i32 @dpotrs_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %9, i32* %15, double* %122, i32* %9, double* %123, i32* %9, i32* %14)
%125 = load i32, i32* %14
%126 = icmp slt i32 %125, 0
br i1 %126, label %127, label %133
127: ; preds = %121
%128 = load i32, i32* @stderr
%129 = load i32, i32* %14
%130 = sub nsw i32 0, %129
%131 = call i32 (i32, i8*, ...) @fprintf(i32 %128, i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.4, i64 0, i64 0), i32 %130)
%132 = call i32 @exit(i32 1)
unreachable
133: ; preds = %121
store i32 1, i32* %5
br label %134
134: ; preds = %133, %117, %24
%135 = load i32, i32* %5
ret i32 %135
}

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