#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*/ memcpy(float *, float *, int);
int /*<<< orphan*/ sgeqrf_(int *, int *, float *, int *, float *, float *,
                           int *, int *);
int /*<<< orphan*/ sorgqr_(int *, int *, int *, float *, int *, float *,
                           float *, int *, int *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strtrs_(char *, char *, char *, int *, int *, float *, int *,
                           float *, int *, int *);
int sAx_eq_b_QR(float *A, float *B, float *x, int m) {
  static float *buf = NULL;
  static int buf_sz = 0;
  static int nb = 0;
  float *a, *tau, *r, *work;
  int a_sz, tau_sz, r_sz, tot_sz;
  register int i, j;
  int info, worksz, nrhs = 1;
  register float sum;
  if (!A) {
    if (buf)
      free(buf);
    buf = NULL;
    buf_sz = 0;
    return 1;
  }
  a_sz = m * m;
  tau_sz = m;
  r_sz = m * m;
  if (!nb) {
    float tmp;
    worksz = -1;
    sgeqrf_((int *)&m, (int *)&m, NULL, (int *)&m, NULL, (float *)&tmp,
            (int *)&worksz, (int *)&info);
    nb = ((int)tmp) / m;
  }
  worksz = nb * m;
  tot_sz = a_sz + tau_sz + r_sz + worksz;
  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_QR"
                      "() failed!\n");
      exit(1);
    }
  }
  a = buf;
  tau = a + a_sz;
  r = tau + tau_sz;
  work = r + r_sz;
  for (i = 0; i < m; i++)
    for (j = 0; j < m; j++)
      a[i + j * m] = A[i * m + j];
  sgeqrf_((int *)&m, (int *)&m, a, (int *)&m, tau, work, (int *)&worksz,
          (int *)&info);
  if (info != 0) {
    if (info < 0) {
      fprintf(stderr,
              "LAPACK error: illegal value for argument %d of "
              "sgeqrf_"
              " in "
              "sAx_eq_b_QR"
              "()\n",
              -info);
      exit(1);
    } else {
      fprintf(stderr,
              "Unknown LAPACK error %d for "
              "sgeqrf_"
              " in "
              "sAx_eq_b_QR"
              "()\n",
              info);
      return 0;
    }
  }
  memcpy(r, a, r_sz * sizeof(float));
  sorgqr_((int *)&m, (int *)&m, (int *)&m, a, (int *)&m, tau, work,
          (int *)&worksz, (int *)&info);
  if (info != 0) {
    if (info < 0) {
      fprintf(stderr,
              "LAPACK error: illegal value for argument %d of "
              "sorgqr_"
              " in "
              "sAx_eq_b_QR"
              "()\n",
              -info);
      exit(1);
    } else {
      fprintf(stderr,
              "Unknown LAPACK error (%d) in "
              "sAx_eq_b_QR"
              "()\n",
              info);
      return 0;
    }
  }
  for (i = 0; i < m; i++) {
    for (j = 0, sum = 0.0; j < m; j++)
      sum += a[i * m + j] * B[j];
    x[i] = sum;
  }
  strtrs_("U", "N", "N", (int *)&m, (int *)&nrhs, r, (int *)&m, x, (int *)&m,
          &info);
  if (info != 0) {
    if (info < 0) {
      fprintf(stderr,
              "LAPACK error: illegal value for argument %d of "
              "strtrs_"
              " in "
              "sAx_eq_b_QR"
              "()\n",
              -info);
      exit(1);
    } else {
      fprintf(stderr,
              "LAPACK error: the %d-th diagonal element of A is zero (singular "
              "matrix) in "
              "sAx_eq_b_QR"
              "()\n",
              info);
      return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<sAx_eq_b_QR>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %ecx,-0x24(%rbp)
movl   $0x1,-0x6c(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11e7 <sAx_eq_b_QR+0x67>
cmpq   $0x0,0x2eb4(%rip)
je     11c6 <sAx_eq_b_QR+0x46>
mov    0x2ea7(%rip),%rdi
call   1030 <free@plt>
movq   $0x0,0x2e97(%rip)
movl   $0x0,0x2e95(%rip)
movl   $0x1,-0x4(%rbp)
jmp    1613 <sAx_eq_b_QR+0x493>
mov    -0x24(%rbp),%eax
imul   -0x24(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x24(%rbp),%eax
imul   -0x24(%rbp),%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x0,0x2e6c(%rip)
jne    1250 <sAx_eq_b_QR+0xd0>
movl   $0xffffffff,-0x68(%rbp)
lea    -0x24(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
lea    -0x74(%rbp),%r9
lea    -0x68(%rbp),%r10
lea    -0x64(%rbp),%rax
mov    %rcx,%rdi
mov    %rcx,%rsi
mov    %r8,%rdx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   10a0 <sgeqrf_@plt>
cvttss2si -0x74(%rbp),%eax
cltd
idivl  -0x24(%rbp)
mov    %eax,0x2e24(%rip)
mov    0x2e1e(%rip),%eax
imul   -0x24(%rbp),%eax
mov    %eax,-0x68(%rbp)
mov    -0x4c(%rbp),%eax
add    -0x50(%rbp),%eax
add    -0x54(%rbp),%eax
add    -0x68(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    0x2dfb(%rip),%eax
jle    12eb <sAx_eq_b_QR+0x16b>
cmpq   $0x0,0x2de5(%rip)
je     1295 <sAx_eq_b_QR+0x115>
mov    0x2dd8(%rip),%rdi
call   1030 <free@plt>
mov    -0x58(%rbp),%eax
mov    %eax,0x2dd2(%rip)
movslq 0x2dcb(%rip),%rax
shl    $0x2,%rax
mov    %eax,%edi
call   1080 <malloc@plt>
mov    %rax,0x2db1(%rip)
cmpq   $0x0,0x2da9(%rip)
jne    12e6 <sAx_eq_b_QR+0x166>
mov    0x2d14(%rip),%rax
mov    (%rax),%edi
lea    0xd2b(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    12eb <sAx_eq_b_QR+0x16b>
mov    0x2d76(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x50(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    13a4 <sAx_eq_b_QR+0x224>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1391 <sAx_eq_b_QR+0x211>
mov    -0x10(%rbp),%rax
mov    -0x5c(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0x60(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x5c(%rbp),%ecx
mov    -0x60(%rbp),%edx
imul   -0x24(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1349 <sAx_eq_b_QR+0x1c9>
jmp    1396 <sAx_eq_b_QR+0x216>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1336 <sAx_eq_b_QR+0x1b6>
mov    -0x30(%rbp),%rdx
mov    -0x38(%rbp),%r8
mov    -0x48(%rbp),%r9
lea    -0x24(%rbp),%rcx
lea    -0x68(%rbp),%r10
lea    -0x64(%rbp),%rax
mov    %rcx,%rdi
mov    %rcx,%rsi
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   10a0 <sgeqrf_@plt>
cmpl   $0x0,-0x64(%rbp)
je     1430 <sAx_eq_b_QR+0x2b0>
cmpl   $0x0,-0x64(%rbp)
jge    140a <sAx_eq_b_QR+0x28a>
mov    0x2bf5(%rip),%rax
mov    (%rax),%edi
xor    %edx,%edx
sub    -0x64(%rbp),%edx
lea    0xc33(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2bcf(%rip),%rax
mov    (%rax),%edi
mov    -0x64(%rbp),%edx
lea    0xc58(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1613 <sAx_eq_b_QR+0x493>
mov    -0x40(%rbp),%rdi
mov    -0x30(%rbp),%rsi
movslq -0x54(%rbp),%rax
shl    $0x2,%rax
mov    %eax,%edx
call   1070 <memcpy@plt>
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r9
mov    -0x48(%rbp),%r11
lea    -0x24(%rbp),%r8
lea    -0x68(%rbp),%r10
lea    -0x64(%rbp),%rax
mov    %r8,%rdi
mov    %r8,%rsi
mov    %r8,%rdx
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1040 <sorgqr_@plt>
cmpl   $0x0,-0x64(%rbp)
je     14db <sAx_eq_b_QR+0x35b>
cmpl   $0x0,-0x64(%rbp)
jge    14b5 <sAx_eq_b_QR+0x335>
mov    0x2b4a(%rip),%rax
mov    (%rax),%edi
xor    %edx,%edx
sub    -0x64(%rbp),%edx
lea    0xc07(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x2b24(%rip),%rax
mov    (%rax),%edi
mov    -0x64(%rbp),%edx
lea    0xc2c(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1613 <sAx_eq_b_QR+0x493>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    156c <sAx_eq_b_QR+0x3ec>
movl   $0x0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    154c <sAx_eq_b_QR+0x3cc>
mov    -0x30(%rbp),%rax
mov    -0x5c(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0x60(%rbp),%ecx
movslq %ecx,%rcx
movss  (%rax,%rcx,4),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x60(%rbp),%rcx
movss  (%rax,%rcx,4),%xmm2
movss  -0x70(%rbp),%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  %xmm0,-0x70(%rbp)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    14fd <sAx_eq_b_QR+0x37d>
movss  -0x70(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movss  %xmm0,(%rax,%rcx,4)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    14e2 <sAx_eq_b_QR+0x362>
mov    -0x40(%rbp),%r9
mov    -0x20(%rbp),%r11
lea    0xba5(%rip),%rdi
lea    0xba0(%rip),%rdx
lea    -0x24(%rbp),%r10
lea    -0x6c(%rbp),%r8
lea    -0x64(%rbp),%rax
mov    %rdx,%rsi
mov    %r10,%rcx
mov    %r10,(%rsp)
mov    %r11,0x8(%rsp)
mov    %r10,0x10(%rsp)
mov    %rax,0x18(%rsp)
call   1050 <strtrs_@plt>
cmpl   $0x0,-0x64(%rbp)
je     160c <sAx_eq_b_QR+0x48c>
cmpl   $0x0,-0x64(%rbp)
jge    15e6 <sAx_eq_b_QR+0x466>
mov    0x2a19(%rip),%rax
mov    (%rax),%edi
xor    %edx,%edx
sub    -0x64(%rbp),%edx
lea    0xb4f(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
mov    0x29f3(%rip),%rax
mov    (%rax),%edi
mov    -0x64(%rbp),%edx
lea    0xb74(%rip),%rsi
mov    $0x0,%al
call   1060 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1613 <sAx_eq_b_QR+0x493>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<sAx_eq_b_QR>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,0x28(%rsp)
mov    %ecx,0x4(%rsp)
movl   $0x1,0x14(%rsp)
test   %rdi,%rdi
je     1387 <sAx_eq_b_QR+0x207>
mov    %ecx,%r12d
mov    %rsi,%r13
mov    %rdi,%r14
mov    %ecx,%edx
imul   %edx,%edx
mov    0x2eb8(%rip),%eax
mov    %ecx,%r8d
test   %eax,%eax
jne    1210 <sAx_eq_b_QR+0x90>
movl   $0xffffffff,0xc(%rsp)
ff
lea    0x8(%rsp),%rax
lea    0xc(%rsp),%rbp
lea    0x4(%rsp),%rcx
lea    0x10(%rsp),%r9
mov    %rcx,%rdi
mov    %rcx,%rsi
mov    %rdx,%rbx
xor    %edx,%edx
xor    %r8d,%r8d
push   %rax
push   %rbp
call   10a0 <sgeqrf_@plt>
add    $0x10,%rsp
cvttss2si 0x10(%rsp),%eax
mov    0x4(%rsp),%r8d
cltd
idiv   %r8d
mov    %rbx,%rdx
mov    %eax,0x2e64(%rip)
imul   %r8d,%eax
mov    %eax,0xc(%rsp)
lea    (%r12,%rdx,2),%ebp
add    %eax,%ebp
mov    0x2e43(%rip),%r15
cmp    0x2e45(%rip),%ebp
jle    1268 <sAx_eq_b_QR+0xe8>
mov    %rdx,%rbx
test   %r15,%r15
je     123d <sAx_eq_b_QR+0xbd>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %ebp,0x2e2d(%rip)
shl    $0x2,%ebp
mov    %ebp,%edi
call   1080 <malloc@plt>
mov    %rax,0x2e14(%rip)
test   %rax,%rax
je     158b <sAx_eq_b_QR+0x40b>
mov    %rax,%r15
mov    0x4(%rsp),%r8d
mov    %rbx,%rdx
mov    %rdx,0x20(%rsp)
mov    %edx,%eax
lea    (%r15,%rax,4),%rdx
movslq %r12d,%rcx
mov    %rdx,0x30(%rsp)
lea    (%rdx,%rcx,4),%rcx
mov    %rcx,0x18(%rsp)
lea    (%rcx,%rax,4),%r12
test   %r8d,%r8d
jle    1335 <sAx_eq_b_QR+0x1b5>
mov    %r8d,%r9d
mov    %r9d,%edx
and    $0xfffffffe,%edx
lea    0x4(%r14),%rsi
lea    0x0(,%r9,4),%rdi
lea    0x0(,%r9,8),%rbp
xor    %r11d,%r11d
mov    %r15,%r10
jmp    12d0 <sAx_eq_b_QR+0x150>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r11
add    %rdi,%rsi
add    $0x4,%r10
cmp    %r9,%r11
je     1335 <sAx_eq_b_QR+0x1b5>
cmp    $0x1,%r8d
jne    12e0 <sAx_eq_b_QR+0x160>
xor    %eax,%eax
jmp    1310 <sAx_eq_b_QR+0x190>
nopw   0x0(%rax,%rax,1)
mov    %r10,%rbx
xor    %eax,%eax
cs nopw 0x0(%rax,%rax,1)
nop
movss  -0x4(%rsi,%rax,4),%xmm0
movss  %xmm0,(%rbx)
movss  (%rsi,%rax,4),%xmm0
movss  %xmm0,(%rbx,%rdi,1)
add    $0x2,%rax
add    %rbp,%rbx
cmp    %rax,%rdx
jne    12f0 <sAx_eq_b_QR+0x170>
test   $0x1,%r9b
je     12c0 <sAx_eq_b_QR+0x140>
mov    %r11,%rcx
imul   %r9,%rcx
add    %rax,%rcx
movss  (%r14,%rcx,4),%xmm0
imul   %r9,%rax
add    %r11,%rax
movss  %xmm0,(%r15,%rax,4)
jmp    12c0 <sAx_eq_b_QR+0x140>
lea    0x8(%rsp),%rbp
lea    0xc(%rsp),%r14
lea    0x4(%rsp),%rcx
mov    %rcx,%rdi
mov    %rcx,%rsi
mov    %r15,%rdx
mov    0x30(%rsp),%rbx
mov    %rbx,%r8
mov    %r12,%r9
push   %rbp
push   %r14
call   10a0 <sgeqrf_@plt>
add    $0x10,%rsp
mov    0x8(%rsp),%edx
test   %edx,%edx
je     13b7 <sAx_eq_b_QR+0x237>
mov    0x2c6d(%rip),%rax
mov    (%rax),%edi
js     1580 <sAx_eq_b_QR+0x400>
lea    0xcf3(%rip),%rsi
jmp    155f <sAx_eq_b_QR+0x3df>
mov    0x2cda(%rip),%rdi
test   %rdi,%rdi
je     1398 <sAx_eq_b_QR+0x218>
call   1030 <free@plt>
movq   $0x0,0x2cc5(%rip)
movl   $0x0,0x2cc3(%rip)
mov    $0x1,%ebx
jmp    1568 <sAx_eq_b_QR+0x3e8>
mov    0x20(%rsp),%rdx
shl    $0x2,%edx
mov    0x18(%rsp),%rdi
mov    %r15,%rsi
call   1070 <memcpy@plt>
sub    $0x8,%rsp
mov    %r14,%rax
lea    0xc(%rsp),%r14
mov    %r14,%rdi
mov    %r14,%rsi
mov    %r14,%rdx
mov    %r15,%rcx
mov    %r14,%r8
mov    %rbx,%r9
push   %rbp
push   %rax
push   %r12
call   1040 <sorgqr_@plt>
add    $0x20,%rsp
mov    0x8(%rsp),%edx
test   %edx,%edx
je     141a <sAx_eq_b_QR+0x29a>
mov    0x2bda(%rip),%rax
mov    (%rax),%edi
js     15ac <sAx_eq_b_QR+0x42c>
lea    0xcdf(%rip),%rsi
jmp    155f <sAx_eq_b_QR+0x3df>
mov    0x4(%rsp),%r12d
test   %r12d,%r12d
mov    0x28(%rsp),%r11
mov    0x18(%rsp),%r9
mov    %r14,%rcx
jle    151c <sAx_eq_b_QR+0x39c>
lea    -0x1(%r12),%r8
mov    %r12d,%edx
and    $0x3,%edx
mov    %r12d,%esi
and    $0xfffffffc,%esi
lea    0xc(%r15),%rdi
lea    0x0(,%r12,4),%r10
xor    %r14d,%r14d
jmp    1479 <sAx_eq_b_QR+0x2f9>
nopw   0x0(%rax,%rax,1)
movss  %xmm0,(%r11,%r14,4)
add    $0x1,%r14
add    %r10,%rdi
add    %r10,%r15
cmp    %r12,%r14
je     151c <sAx_eq_b_QR+0x39c>
xorps  %xmm0,%xmm0
xor    %ebx,%ebx
cmp    $0x3,%r8
jb     14dc <sAx_eq_b_QR+0x35c>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movss  -0xc(%rdi,%rbx,4),%xmm1
movss  -0x8(%rdi,%rbx,4),%xmm2
mulss  0x0(%r13,%rbx,4),%xmm1
mulss  0x4(%r13,%rbx,4),%xmm2
addss  %xmm0,%xmm1
movss  -0x4(%rdi,%rbx,4),%xmm3
mulss  0x8(%r13,%rbx,4),%xmm3
addss  %xmm1,%xmm2
movss  (%rdi,%rbx,4),%xmm0
mulss  0xc(%r13,%rbx,4),%xmm0
addss  %xmm2,%xmm3
addss  %xmm3,%xmm0
add    $0x4,%rbx
cmp    %rbx,%rsi
jne    1490 <sAx_eq_b_QR+0x310>
test   %rdx,%rdx
je     1460 <sAx_eq_b_QR+0x2e0>
lea    0x0(,%rbx,4),%rax
add    %r13,%rax
lea    (%r15,%rbx,4),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movss  (%rbx,%rbp,4),%xmm1
mulss  (%rax,%rbp,4),%xmm1
addss  %xmm1,%xmm0
add    $0x1,%rbp
cmp    %rbp,%rdx
jne    1500 <sAx_eq_b_QR+0x380>
jmp    1460 <sAx_eq_b_QR+0x2e0>
lea    0xbfd(%rip),%rdi
lea    0xbf8(%rip),%rdx
lea    0x14(%rsp),%r8
mov    %rdx,%rsi
lea    0x8(%rsp),%rax
push   %rax
push   %rcx
push   %r11
push   %rcx
call   1050 <strtrs_@plt>
add    $0x20,%rsp
mov    0x8(%rsp),%edx
test   %edx,%edx
je     1579 <sAx_eq_b_QR+0x3f9>
mov    0x2a8c(%rip),%rax
mov    (%rax),%edi
js     15b7 <sAx_eq_b_QR+0x437>
lea    0xc0e(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %ebx,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    $0x1,%ebx
jmp    1568 <sAx_eq_b_QR+0x3e8>
neg    %edx
lea    0xaa3(%rip),%rsi
jmp    15c0 <sAx_eq_b_QR+0x440>
mov    0x2a4e(%rip),%rax
mov    (%rax),%edi
lea    0xa65(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
neg    %edx
lea    0xaf6(%rip),%rsi
jmp    15c0 <sAx_eq_b_QR+0x440>
neg    %edx
lea    0xb64(%rip),%rsi
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@sAx_eq_b_QR.buf = internal global float* null
@sAx_eq_b_QR.buf_sz = internal global i32 0
@sAx_eq_b_QR.nb = internal global i32 0
@stderr = global i32 0
@.str = [44 x i8] c"memory allocation in sAx_eq_b_QR() failed!\0A\00"
@.str.1 = [73 x i8] c"LAPACK error: illegal value for argument %d of sgeqrf_ in sAx_eq_b_QR()\0A\00"
@.str.2 = [54 x i8] c"Unknown LAPACK error %d for sgeqrf_ in sAx_eq_b_QR()\0A\00"
@.str.3 = [73 x i8] c"LAPACK error: illegal value for argument %d of sorgqr_ in sAx_eq_b_QR()\0A\00"
@.str.4 = [44 x i8] c"Unknown LAPACK error (%d) in sAx_eq_b_QR()\0A\00"
@.str.5 = [2 x i8] c"U\00"
@.str.6 = [2 x i8] c"N\00"
@.str.7 = [73 x i8] c"LAPACK error: illegal value for argument %d of strtrs_ in sAx_eq_b_QR()\0A\00"
@.str.8 = [90 x i8] c"LAPACK error: the %d-th diagonal element of A is zero (singular matrix) in sAx_eq_b_QR()\0A\00"
define i32 @sAx_eq_b_QR(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 float*
%12 = alloca float*
%13 = alloca float*
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca float
%24 = alloca float
store float* %0, float** %6
store float* %1, float** %7
store float* %2, float** %8
store i32 %3, i32* %9
store i32 1, i32* %22
%25 = load float*, float** %6
%26 = icmp ne float* %25, null
br i1 %26, label %34, label %27
27: ; preds = %4
%28 = load float*, float** @sAx_eq_b_QR.buf
%29 = icmp ne float* %28, null
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load float*, float** @sAx_eq_b_QR.buf
%32 = call i32 @free(float* %31)
br label %33
33: ; preds = %30, %27
store float* null, float** @sAx_eq_b_QR.buf
store i32 0, i32* @sAx_eq_b_QR.buf_sz
store i32 1, i32* %5
br label %239
34: ; preds = %4
%35 = load i32, i32* %9
%36 = load i32, i32* %9
%37 = mul nsw i32 %35, %36
store i32 %37, i32* %14
%38 = load i32, i32* %9
store i32 %38, i32* %15
%39 = load i32, i32* %9
%40 = load i32, i32* %9
%41 = mul nsw i32 %39, %40
store i32 %41, i32* %16
%42 = load i32, i32* @sAx_eq_b_QR.nb
%43 = icmp ne i32 %42, 0
br i1 %43, label %50, label %44
44: ; preds = %34
store i32 -1, i32* %21
%45 = call i32 @sgeqrf_(i32* %9, i32* %9, float* null, i32* %9, float* null, float* %24, i32* %21, i32* %20)
%46 = load float, float* %24
%47 = fptosi float %46 to i32
%48 = load i32, i32* %9
%49 = sdiv i32 %47, %48
store i32 %49, i32* @sAx_eq_b_QR.nb
br label %50
50: ; preds = %44, %34
%51 = load i32, i32* @sAx_eq_b_QR.nb
%52 = load i32, i32* %9
%53 = mul nsw i32 %51, %52
store i32 %53, i32* %21
%54 = load i32, i32* %14
%55 = load i32, i32* %15
%56 = add nsw i32 %54, %55
%57 = load i32, i32* %16
%58 = add nsw i32 %56, %57
%59 = load i32, i32* %21
%60 = add nsw i32 %58, %59
store i32 %60, i32* %17
%61 = load i32, i32* %17
%62 = load i32, i32* @sAx_eq_b_QR.buf_sz
%63 = icmp sgt i32 %61, %62
br i1 %63, label %64, label %85
64: ; preds = %50
%65 = load float*, float** @sAx_eq_b_QR.buf
%66 = icmp ne float* %65, null
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load float*, float** @sAx_eq_b_QR.buf
%69 = call i32 @free(float* %68)
br label %70
70: ; preds = %67, %64
%71 = load i32, i32* %17
store i32 %71, i32* @sAx_eq_b_QR.buf_sz
%72 = load i32, i32* @sAx_eq_b_QR.buf_sz
%73 = sext i32 %72 to i64
%74 = mul i64 %73, 4
%75 = trunc i64 %74 to i32
%76 = call i64 @malloc(i32 %75)
%77 = inttoptr i64 %76 to float*
store float* %77, float** @sAx_eq_b_QR.buf
%78 = load float*, float** @sAx_eq_b_QR.buf
%79 = icmp ne float* %78, null
br i1 %79, label %84, label %80
80: ; preds = %70
%81 = load i32, i32* @stderr
%82 = call i32 (i32, i8*, ...) @fprintf(i32 %81, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%83 = call i32 @exit(i32 1)
unreachable
84: ; preds = %70
br label %85
85: ; preds = %84, %50
%86 = load float*, float** @sAx_eq_b_QR.buf
store float* %86, float** %10
%87 = load float*, float** %10
%88 = load i32, i32* %14
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds float, float* %87, i64 %89
store float* %90, float** %11
%91 = load float*, float** %11
%92 = load i32, i32* %15
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds float, float* %91, i64 %93
store float* %94, float** %12
%95 = load float*, float** %12
%96 = load i32, i32* %16
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds float, float* %95, i64 %97
store float* %98, float** %13
store i32 0, i32* %18
br label %99
99: ; preds = %130, %85
%100 = load i32, i32* %18
%101 = load i32, i32* %9
%102 = icmp slt i32 %100, %101
br i1 %102, label %103, label %133
103: ; preds = %99
store i32 0, i32* %19
br label %104
104: ; preds = %126, %103
%105 = load i32, i32* %19
%106 = load i32, i32* %9
%107 = icmp slt i32 %105, %106
br i1 %107, label %108, label %129
108: ; preds = %104
%109 = load float*, float** %6
%110 = load i32, i32* %18
%111 = load i32, i32* %9
%112 = mul nsw i32 %110, %111
%113 = load i32, i32* %19
%114 = add nsw i32 %112, %113
%115 = sext i32 %114 to i64
%116 = getelementptr inbounds float, float* %109, i64 %115
%117 = load float, float* %116
%118 = load float*, float** %10
%119 = load i32, i32* %18
%120 = load i32, i32* %19
%121 = load i32, i32* %9
%122 = mul nsw i32 %120, %121
%123 = add nsw i32 %119, %122
%124 = sext i32 %123 to i64
%125 = getelementptr inbounds float, float* %118, i64 %124
store float %117, float* %125
br label %126
126: ; preds = %108
%127 = load i32, i32* %19
%128 = add nsw i32 %127, 1
store i32 %128, i32* %19
br label %104
129: ; preds = %104
br label %130
130: ; preds = %129
%131 = load i32, i32* %18
%132 = add nsw i32 %131, 1
store i32 %132, i32* %18
br label %99
133: ; preds = %99
%134 = load float*, float** %10
%135 = load float*, float** %11
%136 = load float*, float** %13
%137 = call i32 @sgeqrf_(i32* %9, i32* %9, float* %134, i32* %9, float* %135, float* %136, i32* %21, i32* %20)
%138 = load i32, i32* %20
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %153
140: ; preds = %133
%141 = load i32, i32* %20
%142 = icmp slt i32 %141, 0
br i1 %142, label %143, label %149
143: ; preds = %140
%144 = load i32, i32* @stderr
%145 = load i32, i32* %20
%146 = sub nsw i32 0, %145
%147 = call i32 (i32, i8*, ...) @fprintf(i32 %144, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.1, i64 0, i64 0), i32 %146)
%148 = call i32 @exit(i32 1)
unreachable
149: ; preds = %140
%150 = load i32, i32* @stderr
%151 = load i32, i32* %20
%152 = call i32 (i32, i8*, ...) @fprintf(i32 %150, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i32 %151)
store i32 0, i32* %5
br label %239
153: ; preds = %133
%154 = load float*, float** %12
%155 = load float*, float** %10
%156 = load i32, i32* %16
%157 = sext i32 %156 to i64
%158 = mul i64 %157, 4
%159 = trunc i64 %158 to i32
%160 = call i32 @memcpy(float* %154, float* %155, i32 %159)
%161 = load float*, float** %10
%162 = load float*, float** %11
%163 = load float*, float** %13
%164 = call i32 @sorgqr_(i32* %9, i32* %9, i32* %9, float* %161, i32* %9, float* %162, float* %163, i32* %21, i32* %20)
%165 = load i32, i32* %20
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %180
167: ; preds = %153
%168 = load i32, i32* %20
%169 = icmp slt i32 %168, 0
br i1 %169, label %170, label %176
170: ; preds = %167
%171 = load i32, i32* @stderr
%172 = load i32, i32* %20
%173 = sub nsw i32 0, %172
%174 = call i32 (i32, i8*, ...) @fprintf(i32 %171, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0), i32 %173)
%175 = call i32 @exit(i32 1)
unreachable
176: ; preds = %167
%177 = load i32, i32* @stderr
%178 = load i32, i32* %20
%179 = call i32 (i32, i8*, ...) @fprintf(i32 %177, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32 %178)
store i32 0, i32* %5
br label %239
180: ; preds = %153
store i32 0, i32* %18
br label %181
181: ; preds = %216, %180
%182 = load i32, i32* %18
%183 = load i32, i32* %9
%184 = icmp slt i32 %182, %183
br i1 %184, label %185, label %219
185: ; preds = %181
store i32 0, i32* %19
store float 0.000000e+00, float* %23
br label %186
186: ; preds = %207, %185
%187 = load i32, i32* %19
%188 = load i32, i32* %9
%189 = icmp slt i32 %187, %188
br i1 %189, label %190, label %210
190: ; preds = %186
%191 = load float*, float** %10
%192 = load i32, i32* %18
%193 = load i32, i32* %9
%194 = mul nsw i32 %192, %193
%195 = load i32, i32* %19
%196 = add nsw i32 %194, %195
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds float, float* %191, i64 %197
%199 = load float, float* %198
%200 = load float*, float** %7
%201 = load i32, i32* %19
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds float, float* %200, i64 %202
%204 = load float, float* %203
%205 = load float, float* %23
%206 = call float @llvm.fmuladd.f32(float %199, float %204, float %205)
store float %206, float* %23
br label %207
207: ; preds = %190
%208 = load i32, i32* %19
%209 = add nsw i32 %208, 1
store i32 %209, i32* %19
br label %186
210: ; preds = %186
%211 = load float, float* %23
%212 = load float*, float** %8
%213 = load i32, i32* %18
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds float, float* %212, i64 %214
store float %211, float* %215
br label %216
216: ; preds = %210
%217 = load i32, i32* %18
%218 = add nsw i32 %217, 1
store i32 %218, i32* %18
br label %181
219: ; preds = %181
%220 = load float*, float** %12
%221 = load float*, float** %8
%222 = call i32 @strtrs_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32* %9, i32* %22, float* %220, i32* %9, float* %221, i32* %9, i32* %20)
%223 = load i32, i32* %20
%224 = icmp ne i32 %223, 0
br i1 %224, label %225, label %238
225: ; preds = %219
%226 = load i32, i32* %20
%227 = icmp slt i32 %226, 0
br i1 %227, label %228, label %234
228: ; preds = %225
%229 = load i32, i32* @stderr
%230 = load i32, i32* %20
%231 = sub nsw i32 0, %230
%232 = call i32 (i32, i8*, ...) @fprintf(i32 %229, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.7, i64 0, i64 0), i32 %231)
%233 = call i32 @exit(i32 1)
unreachable
234: ; preds = %225
%235 = load i32, i32* @stderr
%236 = load i32, i32* %20
%237 = call i32 (i32, i8*, ...) @fprintf(i32 %235, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.8, i64 0, i64 0), i32 %236)
store i32 0, i32* %5
br label %239
238: ; preds = %219
store i32 1, i32* %5
br label %239
239: ; preds = %238, %234, %176, %149, %33
%240 = load i32, i32* %5
ret i32 %240
}

LLVM IR (-O2):
@sAx_eq_b_QR.buf = internal unnamed_addr global float* null
@sAx_eq_b_QR.buf_sz = internal unnamed_addr global i32 0
@sAx_eq_b_QR.nb = internal unnamed_addr global i32 0
@stderr = global i32 0
@.str = [44 x i8] c"memory allocation in sAx_eq_b_QR() failed!\0A\00"
@.str.1 = [73 x i8] c"LAPACK error: illegal value for argument %d of sgeqrf_ in sAx_eq_b_QR()\0A\00"
@.str.2 = [54 x i8] c"Unknown LAPACK error %d for sgeqrf_ in sAx_eq_b_QR()\0A\00"
@.str.3 = [73 x i8] c"LAPACK error: illegal value for argument %d of sorgqr_ in sAx_eq_b_QR()\0A\00"
@.str.4 = [44 x i8] c"Unknown LAPACK error (%d) in sAx_eq_b_QR()\0A\00"
@.str.5 = [2 x i8] c"U\00"
@.str.6 = [2 x i8] c"N\00"
@.str.7 = [73 x i8] c"LAPACK error: illegal value for argument %d of strtrs_ in sAx_eq_b_QR()\0A\00"
@.str.8 = [90 x i8] c"LAPACK error: the %d-th diagonal element of A is zero (singular matrix) in sAx_eq_b_QR()\0A\00"
define i32 @sAx_eq_b_QR(float* %0, float* nocapture %1, float* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca float
store i32 %3, i32* %5
%10 = bitcast i32* %6 to i8*
%11 = bitcast i32* %7 to i8*
%12 = bitcast i32* %8 to i8*
store i32 1, i32* %8
%13 = icmp eq float* %0, null
br i1 %13, label %14, label %20
14: ; preds = %4
%15 = load float*, float** @sAx_eq_b_QR.buf
%16 = icmp eq float* %15, null
br i1 %16, label %19, label %17
17: ; preds = %14
%18 = tail call i32 @free(float* %15)
br label %19
19: ; preds = %17, %14
store float* null, float** @sAx_eq_b_QR.buf
store i32 0, i32* @sAx_eq_b_QR.buf_sz
br label %217
20: ; preds = %4
%21 = mul nsw i32 %3, %3
%22 = load i32, i32* @sAx_eq_b_QR.nb
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = bitcast float* %9 to i8*
store i32 -1, i32* %7
%26 = call i32 @sgeqrf_(i32* %5, i32* %5, float* null, i32* %5, float* null, float* %9, i32* %7, i32* %6)
%27 = load float, float* %9
%28 = fptosi float %27 to i32
%29 = load i32, i32* %5
%30 = sdiv i32 %28, %29
store i32 %30, i32* @sAx_eq_b_QR.nb
br label %31
31: ; preds = %24, %20
%32 = phi i32 [ %29, %24 ], [ %3, %20 ]
%33 = phi i32 [ %30, %24 ], [ %22, %20 ]
%34 = mul nsw i32 %32, %33
store i32 %34, i32* %7
%35 = shl nuw i32 %21, 1
%36 = add i32 %35, %3
%37 = add nsw i32 %36, %34
%38 = load i32, i32* @sAx_eq_b_QR.buf_sz
%39 = icmp sgt i32 %37, %38
%40 = load float*, float** @sAx_eq_b_QR.buf
br i1 %39, label %41, label %56
41: ; preds = %31
%42 = icmp eq float* %40, null
br i1 %42, label %45, label %43
43: ; preds = %41
%44 = call i32 @free(float* %40)
br label %45
45: ; preds = %43, %41
store i32 %37, i32* @sAx_eq_b_QR.buf_sz
%46 = shl i32 %37, 2
%47 = call i64 @malloc(i32 %46)
%48 = inttoptr i64 %47 to float*
store float* %48, float** @sAx_eq_b_QR.buf
%49 = icmp eq i64 %47, 0
br i1 %49, label %52, label %50
50: ; preds = %45
%51 = load i32, i32* %5
br label %56
52: ; preds = %45
%53 = load i32, i32* @stderr
%54 = call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str, i64 0, i64 0))
%55 = call i32 @exit(i32 1)
unreachable
56: ; preds = %31, %50
%57 = phi i32 [ %51, %50 ], [ %32, %31 ]
%58 = phi float* [ %48, %50 ], [ %40, %31 ]
%59 = zext i32 %21 to i64
%60 = getelementptr inbounds float, float* %58, i64 %59
%61 = sext i32 %3 to i64
%62 = getelementptr inbounds float, float* %60, i64 %61
%63 = getelementptr inbounds float, float* %62, i64 %59
%64 = icmp sgt i32 %57, 0
br i1 %64, label %65, label %106
65: ; preds = %56
%66 = zext i32 %57 to i64
%67 = zext i32 %57 to i64
%68 = and i64 %67, 1
%69 = icmp eq i32 %57, 1
%70 = and i64 %67, 4294967294
%71 = icmp eq i64 %68, 0
br label %72
72: ; preds = %103, %65
%73 = phi i64 [ 0, %65 ], [ %104, %103 ]
%74 = mul nsw i64 %73, %66
br i1 %69, label %94, label %75
75: ; preds = %72, %75
%76 = phi i64 [ %91, %75 ], [ 0, %72 ]
%77 = phi i64 [ %92, %75 ], [ 0, %72 ]
%78 = add nuw nsw i64 %76, %74
%79 = getelementptr inbounds float, float* %0, i64 %78
%80 = load float, float* %79
%81 = mul nsw i64 %76, %66
%82 = add nuw nsw i64 %81, %73
%83 = getelementptr inbounds float, float* %58, i64 %82
store float %80, float* %83
%84 = or i64 %76, 1
%85 = add nuw nsw i64 %84, %74
%86 = getelementptr inbounds float, float* %0, i64 %85
%87 = load float, float* %86
%88 = mul nsw i64 %84, %66
%89 = add nuw nsw i64 %88, %73
%90 = getelementptr inbounds float, float* %58, i64 %89
store float %87, float* %90
%91 = add nuw nsw i64 %76, 2
%92 = add i64 %77, 2
%93 = icmp eq i64 %92, %70
br i1 %93, label %94, label %75
94: ; preds = %75, %72
%95 = phi i64 [ 0, %72 ], [ %91, %75 ]
br i1 %71, label %103, label %96
96: ; preds = %94
%97 = add nuw nsw i64 %95, %74
%98 = getelementptr inbounds float, float* %0, i64 %97
%99 = load float, float* %98
%100 = mul nsw i64 %95, %66
%101 = add nuw nsw i64 %100, %73
%102 = getelementptr inbounds float, float* %58, i64 %101
store float %99, float* %102
br label %103
103: ; preds = %94, %96
%104 = add nuw nsw i64 %73, 1
%105 = icmp eq i64 %104, %67
br i1 %105, label %106, label %72
106: ; preds = %103, %56
%107 = call i32 @sgeqrf_(i32* %5, i32* %5, float* %58, i32* %5, float* %60, float* %63, i32* %7, i32* %6)
%108 = load i32, i32* %6
%109 = icmp eq i32 %108, 0
br i1 %109, label %119, label %110
110: ; preds = %106
%111 = icmp slt i32 %108, 0
%112 = load i32, i32* @stderr
br i1 %111, label %113, label %117
113: ; preds = %110
%114 = sub nsw i32 0, %108
%115 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.1, i64 0, i64 0), i32 %114)
%116 = call i32 @exit(i32 1)
unreachable
117: ; preds = %110
%118 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([54 x i8], [54 x i8]* @.str.2, i64 0, i64 0), i32 %108)
br label %217
119: ; preds = %106
%120 = shl i32 %21, 2
%121 = call i32 @memcpy(float* %62, float* %58, i32 %120)
%122 = call i32 @sorgqr_(i32* %5, i32* %5, i32* %5, float* %58, i32* %5, float* %60, float* %63, i32* %7, i32* %6)
%123 = load i32, i32* %6
%124 = icmp eq i32 %123, 0
br i1 %124, label %125, label %136
125: ; preds = %119
%126 = load i32, i32* %5
%127 = icmp sgt i32 %126, 0
br i1 %127, label %128, label %204
128: ; preds = %125
%129 = zext i32 %126 to i64
%130 = zext i32 %126 to i64
%131 = add nsw i64 %130, -1
%132 = and i64 %130, 3
%133 = icmp ult i64 %131, 3
%134 = and i64 %130, 4294967292
%135 = icmp eq i64 %132, 0
br label %145
136: ; preds = %119
%137 = icmp slt i32 %123, 0
%138 = load i32, i32* @stderr
br i1 %137, label %139, label %143
139: ; preds = %136
%140 = sub nsw i32 0, %123
%141 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.3, i64 0, i64 0), i32 %140)
%142 = call i32 @exit(i32 1)
unreachable
143: ; preds = %136
%144 = call i32 (i32, i8*, ...) @fprintf(i32 %138, i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.4, i64 0, i64 0), i32 %123)
br label %217
145: ; preds = %199, %128
%146 = phi i64 [ 0, %128 ], [ %202, %199 ]
%147 = mul nsw i64 %146, %129
br i1 %133, label %182, label %148
148: ; preds = %145, %148
%149 = phi i64 [ %179, %148 ], [ 0, %145 ]
%150 = phi float [ %178, %148 ], [ 0.000000e+00, %145 ]
%151 = phi i64 [ %180, %148 ], [ 0, %145 ]
%152 = add nuw nsw i64 %149, %147
%153 = getelementptr inbounds float, float* %58, i64 %152
%154 = load float, float* %153
%155 = getelementptr inbounds float, float* %1, i64 %149
%156 = load float, float* %155
%157 = call float @llvm.fmuladd.f32(float %154, float %156, float %150)
%158 = or i64 %149, 1
%159 = add nuw nsw i64 %158, %147
%160 = getelementptr inbounds float, float* %58, i64 %159
%161 = load float, float* %160
%162 = getelementptr inbounds float, float* %1, i64 %158
%163 = load float, float* %162
%164 = call float @llvm.fmuladd.f32(float %161, float %163, float %157)
%165 = or i64 %149, 2
%166 = add nuw nsw i64 %165, %147
%167 = getelementptr inbounds float, float* %58, i64 %166
%168 = load float, float* %167
%169 = getelementptr inbounds float, float* %1, i64 %165
%170 = load float, float* %169
%171 = call float @llvm.fmuladd.f32(float %168, float %170, float %164)
%172 = or i64 %149, 3
%173 = add nuw nsw i64 %172, %147
%174 = getelementptr inbounds float, float* %58, i64 %173
%175 = load float, float* %174
%176 = getelementptr inbounds float, float* %1, i64 %172
%177 = load float, float* %176
%178 = call float @llvm.fmuladd.f32(float %175, float %177, float %171)
%179 = add nuw nsw i64 %149, 4
%180 = add i64 %151, 4
%181 = icmp eq i64 %180, %134
br i1 %181, label %182, label %148
182: ; preds = %148, %145
%183 = phi float [ undef, %145 ], [ %178, %148 ]
%184 = phi i64 [ 0, %145 ], [ %179, %148 ]
%185 = phi float [ 0.000000e+00, %145 ], [ %178, %148 ]
br i1 %135, label %199, label %186
186: ; preds = %182, %186
%187 = phi i64 [ %196, %186 ], [ %184, %182 ]
%188 = phi float [ %195, %186 ], [ %185, %182 ]
%189 = phi i64 [ %197, %186 ], [ 0, %182 ]
%190 = add nuw nsw i64 %187, %147
%191 = getelementptr inbounds float, float* %58, i64 %190
%192 = load float, float* %191
%193 = getelementptr inbounds float, float* %1, i64 %187
%194 = load float, float* %193
%195 = call float @llvm.fmuladd.f32(float %192, float %194, float %188)
%196 = add nuw nsw i64 %187, 1
%197 = add i64 %189, 1
%198 = icmp eq i64 %197, %132
br i1 %198, label %199, label %186
199: ; preds = %186, %182
%200 = phi float [ %183, %182 ], [ %195, %186 ]
%201 = getelementptr inbounds float, float* %2, i64 %146
store float %200, float* %201
%202 = add nuw nsw i64 %146, 1
%203 = icmp eq i64 %202, %130
br i1 %203, label %204, label %145
204: ; preds = %199, %125
%205 = call i32 @strtrs_(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0), i32* %5, i32* %8, float* %62, i32* %5, float* %2, i32* %5, i32* %6)
%206 = load i32, i32* %6
%207 = icmp eq i32 %206, 0
br i1 %207, label %217, label %208
208: ; preds = %204
%209 = icmp slt i32 %206, 0
%210 = load i32, i32* @stderr
br i1 %209, label %211, label %215
211: ; preds = %208
%212 = sub nsw i32 0, %206
%213 = call i32 (i32, i8*, ...) @fprintf(i32 %210, i8* getelementptr inbounds ([73 x i8], [73 x i8]* @.str.7, i64 0, i64 0), i32 %212)
%214 = call i32 @exit(i32 1)
unreachable
215: ; preds = %208
%216 = call i32 (i32, i8*, ...) @fprintf(i32 %210, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.8, i64 0, i64 0), i32 %206)
br label %217
217: ; preds = %204, %215, %143, %117, %19
%218 = phi i32 [ 0, %117 ], [ 0, %143 ], [ 0, %215 ], [ 1, %19 ], [ 1, %204 ]
ret i32 %218
}