#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*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ free(float *);
scalar_t__ malloc(int);
int /*<<< orphan*/ spotrf_(char *, int *, float *, int *, int *);
int /*<<< orphan*/ spotrs_(char *, int *, int *, float *, int *, float *, int *,
                           int *);
int /*<<< orphan*/ stderr;
int sAx_eq_b_Chol(float *A, float *B, float *x, int m) {
  static float *buf = NULL;
  static int buf_sz = 0;
  float *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 = (float *)malloc(buf_sz * sizeof(float));
    if (!buf) {
      fprintf(stderr, "memory allocation in "
                      "sAx_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];
  spotrf_("U", (int *)&m, a, (int *)&m, (int *)&info);
  if (info != 0) {
    if (info < 0) {
      fprintf(stderr,
              "LAPACK error: illegal value for argument %d of "
              "spotf2_"
              "/"
              "spotrf_"
              " in "
              "sAx_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 "
              "spotf2_"
              "/"
              "spotrf_"
              " in "
              "sAx_eq_b_Chol"
              "()\n",
              info);
      return 0;
    }
  }
  spotrs_("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 "
            "spotrs_"
            " in "
            "sAx_eq_b_Chol"
            "()\n",
            -info);
    exit(1);
  }
  return 1;
}


x86 assembly (clang, -O0):
<sAx_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 <sAx_eq_b_Chol+0x64>
cmpq   $0x0,0x2ec7(%rip)
je     11a3 <sAx_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 <sAx_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 <sAx_eq_b_Chol+0xf3>
cmpq   $0x0,0x2e6d(%rip)
je     11fd <sAx_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    $0x2,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,0x2e39(%rip)
cmpq   $0x0,0x2e31(%rip)
jne    124e <sAx_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 <sAx_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 <sAx_eq_b_Chol+0x153>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x18(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    1265 <sAx_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 <sAx_eq_b_Chol+0x193>
mov    -0x10(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
movslq -0x3c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x3c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x3c(%rbp)
jmp    12b9 <sAx_eq_b_Chol+0x159>
mov    -0x30(%rbp),%rdx
lea    0xd30(%rip),%rdi
lea    -0x24(%rbp),%rcx
lea    -0x40(%rbp),%r8
mov    %rcx,%rsi
call   1060 <spotrf_@plt>
cmpl   $0x0,-0x40(%rbp)
je     136e <sAx_eq_b_Chol+0x20e>
cmpl   $0x0,-0x40(%rbp)
jge    1348 <sAx_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 <sAx_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   1040 <spotrs_@plt>
cmpl   $0x0,-0x40(%rbp)
jge    13cd <sAx_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):
<sAx_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 <sAx_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 <sAx_eq_b_Chol+0x75>
test   %rbx,%rbx
je     11b0 <sAx_eq_b_Chol+0x50>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %ebp,0x2eaa(%rip)
lea    0x0(,%rbp,4),%edi
call   1070 <malloc@plt>
mov    %rax,%rbx
mov    %rax,0x2e8c(%rip)
test   %rax,%rax
je     163f <sAx_eq_b_Chol+0x4df>
test   %r12d,%r12d
jle    13fc <sAx_eq_b_Chol+0x29c>
mov    %r12d,%eax
cmp    $0x8,%r12d
jae    1291 <sAx_eq_b_Chol+0x131>
xor    %ecx,%ecx
mov    %rcx,%rdx
not    %rdx
test   $0x1,%al
je     1213 <sAx_eq_b_Chol+0xb3>
movss  (%r15,%rcx,4),%xmm0
movss  %xmm0,(%rbx,%rcx,4)
movss  0x0(%r13,%rcx,4),%xmm0
movss  %xmm0,(%r14,%rcx,4)
or     $0x1,%rcx
add    %rax,%rdx
je     13fc <sAx_eq_b_Chol+0x29c>
nopl   0x0(%rax)
movss  (%r15,%rcx,4),%xmm0
movss  %xmm0,(%rbx,%rcx,4)
movss  0x0(%r13,%rcx,4),%xmm0
movss  %xmm0,(%r14,%rcx,4)
movss  0x4(%r15,%rcx,4),%xmm0
movss  %xmm0,0x4(%rbx,%rcx,4)
movss  0x4(%r13,%rcx,4),%xmm0
movss  %xmm0,0x4(%r14,%rcx,4)
add    $0x2,%rcx
cmp    %rcx,%rax
jne    1220 <sAx_eq_b_Chol+0xc0>
jmp    13fc <sAx_eq_b_Chol+0x29c>
mov    0x2df0(%rip),%rdi
test   %rdi,%rdi
je     1272 <sAx_eq_b_Chol+0x112>
call   1030 <free@plt>
movq   $0x0,0x2ddb(%rip)
movl   $0x0,0x2dd9(%rip)
mov    $0x1,%ebx
jmp    1613 <sAx_eq_b_Chol+0x4b3>
lea    (%rbx,%rax,4),%rcx
lea    (%r14,%rax,4),%r11
lea    (%r15,%rax,4),%rdi
lea    0x0(,%rax,4),%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 <sAx_eq_b_Chol+0x8d>
and    0xa(%rsp),%dl
jne    11ed <sAx_eq_b_Chol+0x8d>
and    0x9(%rsp),%r10b
jne    11ed <sAx_eq_b_Chol+0x8d>
and    0x8(%rsp),%dil
jne    11ed <sAx_eq_b_Chol+0x8d>
and    %sil,%r8b
jne    11ed <sAx_eq_b_Chol+0x8d>
mov    %eax,%ecx
and    $0xfffffff8,%ecx
lea    -0x8(%rcx),%rsi
mov    %rsi,%rdx
shr    $0x3,%rdx
add    $0x1,%rdx
test   %rsi,%rsi
je     1624 <sAx_eq_b_Chol+0x4c4>
movabs $0x3ffffffffffffffc,%rdi
ff ff 3f
or     $0x2,%rdi
and    %rdx,%rdi
xor    %esi,%esi
nopw   0x0(%rax,%rax,1)
movups (%r15,%rsi,4),%xmm0
movups 0x10(%r15,%rsi,4),%xmm1
movups %xmm0,(%rbx,%rsi,4)
movups %xmm1,0x10(%rbx,%rsi,4)
movups 0x0(%r13,%rsi,4),%xmm0
movups 0x10(%r13,%rsi,4),%xmm1
movups %xmm0,(%r14,%rsi,4)
movups %xmm1,0x10(%r14,%rsi,4)
movups 0x20(%r15,%rsi,4),%xmm0
movups 0x30(%r15,%rsi,4),%xmm1
movups %xmm0,0x20(%rbx,%rsi,4)
movups %xmm1,0x30(%rbx,%rsi,4)
movups 0x20(%r13,%rsi,4),%xmm0
movups 0x30(%r13,%rsi,4),%xmm1
movups %xmm0,0x20(%r14,%rsi,4)
movups %xmm1,0x30(%r14,%rsi,4)
add    $0x10,%rsi
add    $0xfffffffffffffffe,%rdi
jne    1360 <sAx_eq_b_Chol+0x200>
test   $0x1,%dl
je     13f3 <sAx_eq_b_Chol+0x293>
movups (%r15,%rsi,4),%xmm0
movups 0x10(%r15,%rsi,4),%xmm1
movups %xmm0,(%rbx,%rsi,4)
movups %xmm1,0x10(%rbx,%rsi,4)
movups 0x0(%r13,%rsi,4),%xmm0
movups 0x10(%r13,%rsi,4),%xmm1
movups %xmm0,(%r14,%rsi,4)
movups %xmm1,0x10(%r14,%rsi,4)
cmp    %rax,%rcx
jne    11ed <sAx_eq_b_Chol+0x8d>
cmp    %r12d,%ebp
jle    159b <sAx_eq_b_Chol+0x43b>
movslq %r12d,%rax
movslq %ebp,%r11
mov    %r11,%r9
sub    %rax,%r9
cmp    $0x8,%r9
jb     1523 <sAx_eq_b_Chol+0x3c3>
lea    (%rbx,%rax,4),%rcx
lea    (%r15,%r11,4),%rdx
cmp    %rdx,%rcx
jae    1439 <sAx_eq_b_Chol+0x2d9>
lea    (%rbx,%r11,4),%rcx
lea    (%r15,%rax,4),%rdx
cmp    %rcx,%rdx
jb     1523 <sAx_eq_b_Chol+0x3c3>
mov    %r9,%r8
and    $0xfffffffffffffff8,%r8
lea    -0x8(%r8),%rcx
mov    %rcx,%rdi
shr    $0x3,%rdi
add    $0x1,%rdi
mov    %edi,%r10d
and    $0x3,%r10d
cmp    $0x18,%rcx
jae    1460 <sAx_eq_b_Chol+0x300>
xor    %edx,%edx
jmp    14d8 <sAx_eq_b_Chol+0x378>
and    $0xfffffffffffffffc,%rdi
lea    (%rbx,%rax,4),%rsi
add    $0x70,%rsi
lea    (%r15,%rax,4),%rcx
add    $0x70,%rcx
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
movups -0x70(%rcx,%rdx,4),%xmm0
movups -0x60(%rcx,%rdx,4),%xmm1
movups %xmm0,-0x70(%rsi,%rdx,4)
movups %xmm1,-0x60(%rsi,%rdx,4)
movups -0x50(%rcx,%rdx,4),%xmm0
movups -0x40(%rcx,%rdx,4),%xmm1
movups %xmm0,-0x50(%rsi,%rdx,4)
movups %xmm1,-0x40(%rsi,%rdx,4)
movups -0x30(%rcx,%rdx,4),%xmm0
movups -0x20(%rcx,%rdx,4),%xmm1
movups %xmm0,-0x30(%rsi,%rdx,4)
movups %xmm1,-0x20(%rsi,%rdx,4)
movups -0x10(%rcx,%rdx,4),%xmm0
movups (%rcx,%rdx,4),%xmm1
movups %xmm0,-0x10(%rsi,%rdx,4)
movups %xmm1,(%rsi,%rdx,4)
add    $0x20,%rdx
add    $0xfffffffffffffffc,%rdi
jne    1480 <sAx_eq_b_Chol+0x320>
test   %r10,%r10
je     151b <sAx_eq_b_Chol+0x3bb>
add    %rax,%rdx
lea    (%rbx,%rdx,4),%rcx
add    $0x10,%rcx
lea    (%r15,%rdx,4),%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 <sAx_eq_b_Chol+0x3a0>
cmp    %r8,%r9
je     159b <sAx_eq_b_Chol+0x43b>
add    %r8,%rax
sub    %eax,%ebp
mov    %rax,%rcx
not    %rcx
add    %r11,%rcx
and    $0x3,%rbp
je     1555 <sAx_eq_b_Chol+0x3f5>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  (%r15,%rax,4),%xmm0
movss  %xmm0,(%rbx,%rax,4)
add    $0x1,%rax
add    $0xffffffffffffffff,%rbp
jne    1540 <sAx_eq_b_Chol+0x3e0>
cmp    $0x3,%rcx
jb     159b <sAx_eq_b_Chol+0x43b>
nopl   0x0(%rax,%rax,1)
movss  (%r15,%rax,4),%xmm0
movss  %xmm0,(%rbx,%rax,4)
movss  0x4(%r15,%rax,4),%xmm0
movss  %xmm0,0x4(%rbx,%rax,4)
movss  0x8(%r15,%rax,4),%xmm0
movss  %xmm0,0x8(%rbx,%rax,4)
movss  0xc(%r15,%rax,4),%xmm0
movss  %xmm0,0xc(%rbx,%rax,4)
add    $0x4,%rax
cmp    %rax,%r11
jne    1560 <sAx_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   1060 <spotrf_@plt>
mov    0xc(%rsp),%edx
test   %edx,%edx
je     15e2 <sAx_eq_b_Chol+0x482>
mov    0x2a14(%rip),%rax
mov    (%rax),%edi
js     1634 <sAx_eq_b_Chol+0x4d4>
lea    0xaac(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <fprintf@plt>
jmp    1613 <sAx_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   1040 <spotrs_@plt>
add    $0x10,%rsp
mov    0xc(%rsp),%edx
mov    $0x1,%ebx
test   %edx,%edx
js     1660 <sAx_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 <sAx_eq_b_Chol+0x268>
jmp    13f3 <sAx_eq_b_Chol+0x293>
neg    %edx
lea    0x9f3(%rip),%rsi
jmp    1672 <sAx_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):
@sAx_eq_b_Chol.buf = internal global float* null
@sAx_eq_b_Chol.buf_sz = internal global i32 0
@stderr = global i32 0
@.str = [46 x i8] c"memory allocation in sAx_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 spotf2_/spotrf_ in sAx_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 spotf2_/spotrf_ in sAx_eq_b_Chol()\0A\00"
@.str.4 = [75 x i8] c"LAPACK error: illegal value for argument %d of spotrs_ in sAx_eq_b_Chol()\0A\00"
define i32 @sAx_eq_b_Chol(float* %0, float* %1, float* %2, i32 %3) {
%5 = alloca i32
%6 = alloca float*
%7 = alloca float*
%8 = alloca float*
%9 = alloca i32
%10 = alloca float*
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store float* %0, float** %6
store float* %1, float** %7
store float* %2, float** %8
store i32 %3, i32* %9
store i32 1, i32* %15
%16 = load float*, float** %6
%17 = icmp ne float* %16, null
br i1 %17, label %25, label %18
18: ; preds = %4
%19 = load float*, float** @sAx_eq_b_Chol.buf
%20 = icmp ne float* %19, null
br i1 %20, label %21, label %24
21: ; preds = %18
%22 = load float*, float** @sAx_eq_b_Chol.buf
%23 = call i32 @free(float* %22)
br label %24
24: ; preds = %21, %18
store float* null, float** @sAx_eq_b_Chol.buf
store i32 0, i32* @sAx_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* @sAx_eq_b_Chol.buf_sz
%32 = icmp sgt i32 %30, %31
br i1 %32, label %33, label %54
33: ; preds = %25
%34 = load float*, float** @sAx_eq_b_Chol.buf
%35 = icmp ne float* %34, null
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = load float*, float** @sAx_eq_b_Chol.buf
%38 = call i32 @free(float* %37)
br label %39
39: ; preds = %36, %33
%40 = load i32, i32* %12
store i32 %40, i32* @sAx_eq_b_Chol.buf_sz
%41 = load i32, i32* @sAx_eq_b_Chol.buf_sz
%42 = sext i32 %41 to i64
%43 = mul i64 %42, 4
%44 = trunc i64 %43 to i32
%45 = call i64 @malloc(i32 %44)
%46 = inttoptr i64 %45 to float*
store float* %46, float** @sAx_eq_b_Chol.buf
%47 = load float*, float** @sAx_eq_b_Chol.buf
%48 = icmp ne float* %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 float*, float** @sAx_eq_b_Chol.buf
store float* %55, float** %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 float*, float** %6
%62 = load i32, i32* %13
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds float, float* %61, i64 %63
%65 = load float, float* %64
%66 = load float*, float** %10
%67 = load i32, i32* %13
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds float, float* %66, i64 %68
store float %65, float* %69
%70 = load float*, float** %7
%71 = load i32, i32* %13
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds float, float* %70, i64 %72
%74 = load float, float* %73
%75 = load float*, float** %8
%76 = load i32, i32* %13
%77 = sext i32 %76 to i64
%78 = getelementptr inbounds float, float* %75, i64 %77
store float %74, float* %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 float*, float** %6
%92 = load i32, i32* %13
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds float, float* %91, i64 %93
%95 = load float, float* %94
%96 = load float*, float** %10
%97 = load i32, i32* %13
%98 = sext i32 %97 to i64
%99 = getelementptr inbounds float, float* %96, i64 %98
store float %95, float* %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 float*, float** %10
%105 = call i32 @spotrf_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %9, float* %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 float*, float** %10
%123 = load float*, float** %8
%124 = call i32 @spotrs_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %9, i32* %15, float* %122, i32* %9, float* %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):
@sAx_eq_b_Chol.buf = internal unnamed_addr global float* null
@sAx_eq_b_Chol.buf_sz = internal unnamed_addr global i32 0
@stderr = global i32 0
@.str = [46 x i8] c"memory allocation in sAx_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 spotf2_/spotrf_ in sAx_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 spotf2_/spotrf_ in sAx_eq_b_Chol()\0A\00"
@.str.4 = [75 x i8] c"LAPACK error: illegal value for argument %d of spotrs_ in sAx_eq_b_Chol()\0A\00"
define i32 @sAx_eq_b_Chol(float* %0, float* nocapture %1, float* %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 float* %0, null
br i1 %10, label %11, label %17
11: ; preds = %4
%12 = load float*, float** @sAx_eq_b_Chol.buf
%13 = icmp eq float* %12, null
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 @free(float* %12)
br label %16
16: ; preds = %14, %11
store float* null, float** @sAx_eq_b_Chol.buf
store i32 0, i32* @sAx_eq_b_Chol.buf_sz
br label %341
17: ; preds = %4
%18 = mul i32 %3, %3
%19 = load i32, i32* @sAx_eq_b_Chol.buf_sz
%20 = icmp sgt i32 %18, %19
%21 = load float*, float** @sAx_eq_b_Chol.buf
br i1 %20, label %22, label %35
22: ; preds = %17
%23 = icmp eq float* %21, null
br i1 %23, label %26, label %24
24: ; preds = %22
%25 = tail call i32 @free(float* %21)
br label %26
26: ; preds = %24, %22
store i32 %18, i32* @sAx_eq_b_Chol.buf_sz
%27 = shl i32 %18, 2
%28 = tail call i64 @malloc(i32 %27)
%29 = inttoptr i64 %28 to float*
store float* %29, float** @sAx_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 float* [ %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, 8
br i1 %40, label %147, label %41
41: ; preds = %38
%42 = getelementptr float, float* %36, i64 %39
%43 = getelementptr float, float* %2, i64 %39
%44 = getelementptr float, float* %0, i64 %39
%45 = getelementptr float, float* %1, i64 %39
%46 = icmp ult float* %36, %43
%47 = icmp ugt float* %42, %2
%48 = and i1 %46, %47
%49 = icmp ult float* %36, %44
%50 = icmp ugt float* %42, %0
%51 = and i1 %49, %50
%52 = or i1 %48, %51
%53 = icmp ult float* %36, %45
%54 = icmp ugt float* %42, %1
%55 = and i1 %53, %54
%56 = or i1 %52, %55
%57 = icmp ugt float* %44, %2
%58 = icmp ugt float* %43, %0
%59 = and i1 %57, %58
%60 = or i1 %56, %59
%61 = icmp ugt float* %45, %2
%62 = icmp ugt float* %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, 4294967288
%67 = add nsw i64 %66, -8
%68 = lshr exact i64 %67, 3
%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, 4611686018427387902
br label %74
74: ; preds = %74, %72
%75 = phi i64 [ 0, %72 ], [ %118, %74 ]
%76 = phi i64 [ 0, %72 ], [ %119, %74 ]
%77 = getelementptr inbounds float, float* %0, i64 %75
%78 = bitcast float* %77 to <4 x float>*
%79 = load <4 x float>, <4 x float>* %78
%80 = getelementptr inbounds float, float* %77, i64 4
%81 = bitcast float* %80 to <4 x float>*
%82 = load <4 x float>, <4 x float>* %81
%83 = getelementptr inbounds float, float* %36, i64 %75
%84 = bitcast float* %83 to <4 x float>*
store <4 x float> %79, <4 x float>* %84
%85 = getelementptr inbounds float, float* %83, i64 4
%86 = bitcast float* %85 to <4 x float>*
store <4 x float> %82, <4 x float>* %86
%87 = getelementptr inbounds float, float* %1, i64 %75
%88 = bitcast float* %87 to <4 x float>*
%89 = load <4 x float>, <4 x float>* %88
%90 = getelementptr inbounds float, float* %87, i64 4
%91 = bitcast float* %90 to <4 x float>*
%92 = load <4 x float>, <4 x float>* %91
%93 = getelementptr inbounds float, float* %2, i64 %75
%94 = bitcast float* %93 to <4 x float>*
store <4 x float> %89, <4 x float>* %94
%95 = getelementptr inbounds float, float* %93, i64 4
%96 = bitcast float* %95 to <4 x float>*
store <4 x float> %92, <4 x float>* %96
%97 = or i64 %75, 8
%98 = getelementptr inbounds float, float* %0, i64 %97
%99 = bitcast float* %98 to <4 x float>*
%100 = load <4 x float>, <4 x float>* %99
%101 = getelementptr inbounds float, float* %98, i64 4
%102 = bitcast float* %101 to <4 x float>*
%103 = load <4 x float>, <4 x float>* %102
%104 = getelementptr inbounds float, float* %36, i64 %97
%105 = bitcast float* %104 to <4 x float>*
store <4 x float> %100, <4 x float>* %105
%106 = getelementptr inbounds float, float* %104, i64 4
%107 = bitcast float* %106 to <4 x float>*
store <4 x float> %103, <4 x float>* %107
%108 = getelementptr inbounds float, float* %1, i64 %97
%109 = bitcast float* %108 to <4 x float>*
%110 = load <4 x float>, <4 x float>* %109
%111 = getelementptr inbounds float, float* %108, i64 4
%112 = bitcast float* %111 to <4 x float>*
%113 = load <4 x float>, <4 x float>* %112
%114 = getelementptr inbounds float, float* %2, i64 %97
%115 = bitcast float* %114 to <4 x float>*
store <4 x float> %110, <4 x float>* %115
%116 = getelementptr inbounds float, float* %114, i64 4
%117 = bitcast float* %116 to <4 x float>*
store <4 x float> %113, <4 x float>* %117
%118 = add nuw i64 %75, 16
%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 float, float* %0, i64 %122
%126 = bitcast float* %125 to <4 x float>*
%127 = load <4 x float>, <4 x float>* %126
%128 = getelementptr inbounds float, float* %125, i64 4
%129 = bitcast float* %128 to <4 x float>*
%130 = load <4 x float>, <4 x float>* %129
%131 = getelementptr inbounds float, float* %36, i64 %122
%132 = bitcast float* %131 to <4 x float>*
store <4 x float> %127, <4 x float>* %132
%133 = getelementptr inbounds float, float* %131, i64 4
%134 = bitcast float* %133 to <4 x float>*
store <4 x float> %130, <4 x float>* %134
%135 = getelementptr inbounds float, float* %1, i64 %122
%136 = bitcast float* %135 to <4 x float>*
%137 = load <4 x float>, <4 x float>* %136
%138 = getelementptr inbounds float, float* %135, i64 4
%139 = bitcast float* %138 to <4 x float>*
%140 = load <4 x float>, <4 x float>* %139
%141 = getelementptr inbounds float, float* %2, i64 %122
%142 = bitcast float* %141 to <4 x float>*
store <4 x float> %137, <4 x float>* %142
%143 = getelementptr inbounds float, float* %141, i64 4
%144 = bitcast float* %143 to <4 x float>*
store <4 x float> %140, <4 x float>* %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 float, float* %0, i64 %148
%154 = load float, float* %153
%155 = getelementptr inbounds float, float* %36, i64 %148
store float %154, float* %155
%156 = getelementptr inbounds float, float* %1, i64 %148
%157 = load float, float* %156
%158 = getelementptr inbounds float, float* %2, i64 %148
store float %157, float* %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, 8
br i1 %170, label %264, label %171
171: ; preds = %166
%172 = getelementptr float, float* %36, i64 %167
%173 = getelementptr float, float* %36, i64 %168
%174 = getelementptr float, float* %0, i64 %167
%175 = getelementptr float, float* %0, i64 %168
%176 = icmp ult float* %172, %175
%177 = icmp ult float* %174, %173
%178 = and i1 %176, %177
br i1 %178, label %264, label %179
179: ; preds = %171
%180 = and i64 %169, -8
%181 = add nsw i64 %180, %167
%182 = add nsw i64 %180, -8
%183 = lshr exact i64 %182, 3
%184 = add nuw nsw i64 %183, 1
%185 = and i64 %184, 3
%186 = icmp ult i64 %182, 24
br i1 %186, label %242, label %187
187: ; preds = %179
%188 = and i64 %184, 4611686018427387900
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 float, float* %0, i64 %192
%194 = bitcast float* %193 to <4 x float>*
%195 = load <4 x float>, <4 x float>* %194
%196 = getelementptr inbounds float, float* %193, i64 4
%197 = bitcast float* %196 to <4 x float>*
%198 = load <4 x float>, <4 x float>* %197
%199 = getelementptr inbounds float, float* %36, i64 %192
%200 = bitcast float* %199 to <4 x float>*
store <4 x float> %195, <4 x float>* %200
%201 = getelementptr inbounds float, float* %199, i64 4
%202 = bitcast float* %201 to <4 x float>*
store <4 x float> %198, <4 x float>* %202
%203 = or i64 %190, 8
%204 = add i64 %203, %167
%205 = getelementptr inbounds float, float* %0, i64 %204
%206 = bitcast float* %205 to <4 x float>*
%207 = load <4 x float>, <4 x float>* %206
%208 = getelementptr inbounds float, float* %205, i64 4
%209 = bitcast float* %208 to <4 x float>*
%210 = load <4 x float>, <4 x float>* %209
%211 = getelementptr inbounds float, float* %36, i64 %204
%212 = bitcast float* %211 to <4 x float>*
store <4 x float> %207, <4 x float>* %212
%213 = getelementptr inbounds float, float* %211, i64 4
%214 = bitcast float* %213 to <4 x float>*
store <4 x float> %210, <4 x float>* %214
%215 = or i64 %190, 16
%216 = add i64 %215, %167
%217 = getelementptr inbounds float, float* %0, i64 %216
%218 = bitcast float* %217 to <4 x float>*
%219 = load <4 x float>, <4 x float>* %218
%220 = getelementptr inbounds float, float* %217, i64 4
%221 = bitcast float* %220 to <4 x float>*
%222 = load <4 x float>, <4 x float>* %221
%223 = getelementptr inbounds float, float* %36, i64 %216
%224 = bitcast float* %223 to <4 x float>*
store <4 x float> %219, <4 x float>* %224
%225 = getelementptr inbounds float, float* %223, i64 4
%226 = bitcast float* %225 to <4 x float>*
store <4 x float> %222, <4 x float>* %226
%227 = or i64 %190, 24
%228 = add i64 %227, %167
%229 = getelementptr inbounds float, float* %0, i64 %228
%230 = bitcast float* %229 to <4 x float>*
%231 = load <4 x float>, <4 x float>* %230
%232 = getelementptr inbounds float, float* %229, i64 4
%233 = bitcast float* %232 to <4 x float>*
%234 = load <4 x float>, <4 x float>* %233
%235 = getelementptr inbounds float, float* %36, i64 %228
%236 = bitcast float* %235 to <4 x float>*
store <4 x float> %231, <4 x float>* %236
%237 = getelementptr inbounds float, float* %235, i64 4
%238 = bitcast float* %237 to <4 x float>*
store <4 x float> %234, <4 x float>* %238
%239 = add nuw i64 %190, 32
%240 = add 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 float, float* %0, i64 %248
%250 = bitcast float* %249 to <4 x float>*
%251 = load <4 x float>, <4 x float>* %250
%252 = getelementptr inbounds float, float* %249, i64 4
%253 = bitcast float* %252 to <4 x float>*
%254 = load <4 x float>, <4 x float>* %253
%255 = getelementptr inbounds float, float* %36, i64 %248
%256 = bitcast float* %255 to <4 x float>*
store <4 x float> %251, <4 x float>* %256
%257 = getelementptr inbounds float, float* %255, i64 4
%258 = bitcast float* %257 to <4 x float>*
store <4 x float> %254, <4 x float>* %258
%259 = add nuw i64 %246, 8
%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 float, float* %0, i64 %272
%275 = load float, float* %274
%276 = getelementptr inbounds float, float* %36, i64 %272
store float %275, float* %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 float, float* %0, i64 %284
%286 = load float, float* %285
%287 = getelementptr inbounds float, float* %36, i64 %284
store float %286, float* %287
%288 = getelementptr inbounds float, float* %1, i64 %284
%289 = load float, float* %288
%290 = getelementptr inbounds float, float* %2, i64 %284
store float %289, float* %290
%291 = add nuw nsw i64 %284, 1
%292 = getelementptr inbounds float, float* %0, i64 %291
%293 = load float, float* %292
%294 = getelementptr inbounds float, float* %36, i64 %291
store float %293, float* %294
%295 = getelementptr inbounds float, float* %1, i64 %291
%296 = load float, float* %295
%297 = getelementptr inbounds float, float* %2, i64 %291
store float %296, float* %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 float, float* %0, i64 %301
%303 = load float, float* %302
%304 = getelementptr inbounds float, float* %36, i64 %301
store float %303, float* %304
%305 = add nsw i64 %301, 1
%306 = getelementptr inbounds float, float* %0, i64 %305
%307 = load float, float* %306
%308 = getelementptr inbounds float, float* %36, i64 %305
store float %307, float* %308
%309 = add nsw i64 %301, 2
%310 = getelementptr inbounds float, float* %0, i64 %309
%311 = load float, float* %310
%312 = getelementptr inbounds float, float* %36, i64 %309
store float %311, float* %312
%313 = add nsw i64 %301, 3
%314 = getelementptr inbounds float, float* %0, i64 %313
%315 = load float, float* %314
%316 = getelementptr inbounds float, float* %36, i64 %313
store float %315, float* %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 @spotrf_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %5, float* %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 @spotrs_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0), i32* %5, i32* %7, float* %36, i32* %5, float* %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
}