#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*/ dgeqrf_(int *, int *, double *, int *, double *, double *,
                           int *, int *);
int /*<<< orphan*/ dorgqr_(int *, int *, int *, double *, int *, double *,
                           double *, int *, int *);
int /*<<< orphan*/ dtrtrs_(char *, char *, 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*/ memcpy(double *, double *, int);
int /*<<< orphan*/ stderr;
int dAx_eq_b_QR(double *A, double *B, double *x, int m) {
  static double *buf = NULL;
  static int buf_sz = 0;
  static int nb = 0;
  double *a, *tau, *r, *work;
  int a_sz, tau_sz, r_sz, tot_sz;
  register int i, j;
  int info, worksz, nrhs = 1;
  register double 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) {
    double tmp;
    worksz = -1;
    dgeqrf_((int *)&m, (int *)&m, NULL, (int *)&m, NULL, (double *)&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 = (double *)malloc(buf_sz * sizeof(double));
    if (!buf) {
      fprintf(stderr, "memory allocation in "
                      "dAx_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];
  dgeqrf_((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 "
              "dgeqrf_"
              " in "
              "dAx_eq_b_QR"
              "()\n",
              -info);
      exit(1);
    } else {
      fprintf(stderr,
              "Unknown LAPACK error %d for "
              "dgeqrf_"
              " in "
              "dAx_eq_b_QR"
              "()\n",
              info);
      return 0;
    }
  }
  memcpy(r, a, r_sz * sizeof(double));
  dorgqr_((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 "
              "dorgqr_"
              " in "
              "dAx_eq_b_QR"
              "()\n",
              -info);
      exit(1);
    } else {
      fprintf(stderr,
              "Unknown LAPACK error (%d) in "
              "dAx_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;
  }
  dtrtrs_("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 "
              "dtrtrs_"
              " in "
              "dAx_eq_b_QR"
              "()\n",
              -info);
      exit(1);
    } else {
      fprintf(stderr,
              "LAPACK error: the %d-th diagonal element of A is zero (singular "
              "matrix) in "
              "dAx_eq_b_QR"
              "()\n",
              info);
      return 0;
    }
  }
  return 1;
}


x86 assembly (clang, -O0):
<dAx_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 <dAx_eq_b_QR+0x67>
cmpq   $0x0,0x2eb4(%rip)
je     11c6 <dAx_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 <dAx_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 <dAx_eq_b_QR+0xd0>
movl   $0xffffffff,-0x68(%rbp)
lea    -0x24(%rbp),%rcx
xor    %eax,%eax
mov    %eax,%r8d
lea    -0x80(%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   1040 <dgeqrf_@plt>
cvttsd2si -0x80(%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 <dAx_eq_b_QR+0x16b>
cmpq   $0x0,0x2de5(%rip)
je     1295 <dAx_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    $0x3,%rax
mov    %eax,%edi
call   1070 <malloc@plt>
mov    %rax,0x2db1(%rip)
cmpq   $0x0,0x2da9(%rip)
jne    12e6 <dAx_eq_b_QR+0x166>
mov    0x2d14(%rip),%rax
mov    (%rax),%edi
lea    0xd2b(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
jmp    12eb <dAx_eq_b_QR+0x16b>
mov    0x2d76(%rip),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rax
movslq -0x4c(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
movslq -0x50(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rax
movslq -0x54(%rbp),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    13a4 <dAx_eq_b_QR+0x224>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1391 <dAx_eq_b_QR+0x211>
mov    -0x10(%rbp),%rax
mov    -0x5c(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0x60(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x30(%rbp),%rax
mov    -0x5c(%rbp),%ecx
mov    -0x60(%rbp),%edx
imul   -0x24(%rbp),%edx
add    %edx,%ecx
movslq %ecx,%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    1349 <dAx_eq_b_QR+0x1c9>
jmp    1396 <dAx_eq_b_QR+0x216>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1336 <dAx_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   1040 <dgeqrf_@plt>
cmpl   $0x0,-0x64(%rbp)
je     1430 <dAx_eq_b_QR+0x2b0>
cmpl   $0x0,-0x64(%rbp)
jge    140a <dAx_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   1050 <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   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1613 <dAx_eq_b_QR+0x493>
mov    -0x40(%rbp),%rdi
mov    -0x30(%rbp),%rsi
movslq -0x54(%rbp),%rax
shl    $0x3,%rax
mov    %eax,%edx
call   1060 <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   10a0 <dorgqr_@plt>
cmpl   $0x0,-0x64(%rbp)
je     14db <dAx_eq_b_QR+0x35b>
cmpl   $0x0,-0x64(%rbp)
jge    14b5 <dAx_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   1050 <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   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1613 <dAx_eq_b_QR+0x493>
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    156c <dAx_eq_b_QR+0x3ec>
movl   $0x0,-0x60(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x60(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    154c <dAx_eq_b_QR+0x3cc>
mov    -0x30(%rbp),%rax
mov    -0x5c(%rbp),%ecx
imul   -0x24(%rbp),%ecx
add    -0x60(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x18(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm2
movsd  -0x78(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    14fd <dAx_eq_b_QR+0x37d>
movsd  -0x78(%rbp),%xmm0
mov    -0x20(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    14e2 <dAx_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   1080 <dtrtrs_@plt>
cmpl   $0x0,-0x64(%rbp)
je     160c <dAx_eq_b_QR+0x48c>
cmpl   $0x0,-0x64(%rbp)
jge    15e6 <dAx_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   1050 <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   1050 <fprintf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1613 <dAx_eq_b_QR+0x493>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dAx_eq_b_QR>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
mov    %rdx,0x20(%rsp)
mov    %ecx,(%rsp)
movl   $0x1,0xc(%rsp)
test   %rdi,%rdi
je     1375 <dAx_eq_b_QR+0x1f5>
mov    %ecx,%r12d
mov    %rsi,%r13
mov    %rdi,%r14
mov    %ecx,%edx
imul   %edx,%edx
mov    0x2eb9(%rip),%eax
mov    %ecx,%r8d
test   %eax,%eax
jne    120c <dAx_eq_b_QR+0x8c>
movl   $0xffffffff,0x8(%rsp)
ff
lea    0x4(%rsp),%rax
lea    0x8(%rsp),%rbp
mov    %rsp,%rcx
lea    0x30(%rsp),%r9
mov    %rcx,%rdi
mov    %rcx,%rsi
mov    %rdx,%rbx
xor    %edx,%edx
xor    %r8d,%r8d
push   %rax
push   %rbp
call   1040 <dgeqrf_@plt>
add    $0x10,%rsp
cvttsd2si 0x30(%rsp),%eax
mov    (%rsp),%r8d
cltd
idiv   %r8d
mov    %rbx,%rdx
mov    %eax,0x2e68(%rip)
imul   %r8d,%eax
mov    %eax,0x8(%rsp)
lea    (%r12,%rdx,2),%ebp
add    %eax,%ebp
mov    0x2e47(%rip),%r15
cmp    0x2e49(%rip),%ebp
jle    1263 <dAx_eq_b_QR+0xe3>
mov    %rdx,%rbx
test   %r15,%r15
je     1239 <dAx_eq_b_QR+0xb9>
mov    %r15,%rdi
call   1030 <free@plt>
mov    %ebp,0x2e31(%rip)
shl    $0x3,%ebp
mov    %ebp,%edi
call   1070 <malloc@plt>
mov    %rax,0x2e18(%rip)
test   %rax,%rax
je     157b <dAx_eq_b_QR+0x3fb>
mov    %rax,%r15
mov    (%rsp),%r8d
mov    %rbx,%rdx
mov    %rdx,0x18(%rsp)
mov    %edx,%eax
lea    (%r15,%rax,8),%rdx
movslq %r12d,%rcx
mov    %rdx,0x28(%rsp)
lea    (%rdx,%rcx,8),%rcx
mov    %rcx,0x10(%rsp)
lea    (%rcx,%rax,8),%r12
test   %r8d,%r8d
jle    1325 <dAx_eq_b_QR+0x1a5>
mov    %r8d,%r9d
mov    %r9d,%edx
and    $0xfffffffe,%edx
lea    0x8(%r14),%rsi
lea    0x0(,%r9,8),%rdi
mov    %r9,%rax
shl    $0x4,%rax
xor    %r11d,%r11d
mov    %r15,%r10
jmp    12c0 <dAx_eq_b_QR+0x140>
add    $0x1,%r11
add    %rdi,%rsi
add    $0x8,%r10
cmp    %r9,%r11
je     1325 <dAx_eq_b_QR+0x1a5>
cmp    $0x1,%r8d
jne    12d0 <dAx_eq_b_QR+0x150>
xor    %ebp,%ebp
jmp    1300 <dAx_eq_b_QR+0x180>
nopw   0x0(%rax,%rax,1)
mov    %r10,%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x8(%rsi,%rbp,8),%xmm0
movsd  %xmm0,(%rbx)
movsd  (%rsi,%rbp,8),%xmm0
movsd  %xmm0,(%rbx,%rdi,1)
add    $0x2,%rbp
add    %rax,%rbx
cmp    %rbp,%rdx
jne    12e0 <dAx_eq_b_QR+0x160>
test   $0x1,%r9b
je     12b0 <dAx_eq_b_QR+0x130>
mov    %r11,%rcx
imul   %r9,%rcx
add    %rbp,%rcx
movsd  (%r14,%rcx,8),%xmm0
imul   %r9,%rbp
add    %r11,%rbp
movsd  %xmm0,(%r15,%rbp,8)
jmp    12b0 <dAx_eq_b_QR+0x130>
lea    0x4(%rsp),%rbp
lea    0x8(%rsp),%r14
mov    %rsp,%rcx
mov    %rcx,%rdi
mov    %rcx,%rsi
mov    %r15,%rdx
mov    0x28(%rsp),%rbx
mov    %rbx,%r8
mov    %r12,%r9
push   %rbp
push   %r14
call   1040 <dgeqrf_@plt>
add    $0x10,%rsp
mov    0x4(%rsp),%edx
test   %edx,%edx
je     13a5 <dAx_eq_b_QR+0x225>
mov    0x2c7f(%rip),%rax
mov    (%rax),%edi
js     1570 <dAx_eq_b_QR+0x3f0>
lea    0xd05(%rip),%rsi
jmp    154f <dAx_eq_b_QR+0x3cf>
mov    0x2cec(%rip),%rdi
test   %rdi,%rdi
je     1386 <dAx_eq_b_QR+0x206>
call   1030 <free@plt>
movq   $0x0,0x2cd7(%rip)
movl   $0x0,0x2cd5(%rip)
mov    $0x1,%ebx
jmp    1558 <dAx_eq_b_QR+0x3d8>
mov    0x18(%rsp),%rdx
shl    $0x3,%edx
mov    0x10(%rsp),%rdi
mov    %r15,%rsi
call   1060 <memcpy@plt>
sub    $0x8,%rsp
mov    %r14,%rax
lea    0x8(%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   10a0 <dorgqr_@plt>
add    $0x20,%rsp
mov    0x4(%rsp),%edx
test   %edx,%edx
je     1408 <dAx_eq_b_QR+0x288>
mov    0x2bec(%rip),%rax
mov    (%rax),%edi
js     159c <dAx_eq_b_QR+0x41c>
lea    0xcf1(%rip),%rsi
jmp    154f <dAx_eq_b_QR+0x3cf>
mov    (%rsp),%r12d
test   %r12d,%r12d
mov    0x20(%rsp),%r11
mov    0x10(%rsp),%r9
mov    %r14,%rcx
jle    150c <dAx_eq_b_QR+0x38c>
lea    -0x1(%r12),%r8
mov    %r12d,%edx
and    $0x3,%edx
mov    %r12d,%esi
and    $0xfffffffc,%esi
lea    0x18(%r15),%rdi
lea    0x0(,%r12,8),%r10
xor    %r14d,%r14d
jmp    1469 <dAx_eq_b_QR+0x2e9>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movsd  %xmm0,(%r11,%r14,8)
add    $0x1,%r14
add    %r10,%rdi
add    %r10,%r15
cmp    %r12,%r14
je     150c <dAx_eq_b_QR+0x38c>
xorpd  %xmm0,%xmm0
xor    %ebx,%ebx
cmp    $0x3,%r8
jb     14cc <dAx_eq_b_QR+0x34c>
cs nopw 0x0(%rax,%rax,1)
nop
movsd  -0x18(%rdi,%rbx,8),%xmm1
movsd  -0x10(%rdi,%rbx,8),%xmm2
mulsd  0x0(%r13,%rbx,8),%xmm1
mulsd  0x8(%r13,%rbx,8),%xmm2
addsd  %xmm0,%xmm1
movsd  -0x8(%rdi,%rbx,8),%xmm3
mulsd  0x10(%r13,%rbx,8),%xmm3
addsd  %xmm1,%xmm2
movsd  (%rdi,%rbx,8),%xmm0
mulsd  0x18(%r13,%rbx,8),%xmm0
addsd  %xmm2,%xmm3
addsd  %xmm3,%xmm0
add    $0x4,%rbx
cmp    %rbx,%rsi
jne    1480 <dAx_eq_b_QR+0x300>
test   %rdx,%rdx
je     1450 <dAx_eq_b_QR+0x2d0>
lea    0x0(,%rbx,8),%rax
add    %r13,%rax
lea    (%r15,%rbx,8),%rbx
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
movsd  (%rbx,%rbp,8),%xmm1
mulsd  (%rax,%rbp,8),%xmm1
addsd  %xmm1,%xmm0
add    $0x1,%rbp
cmp    %rbp,%rdx
jne    14f0 <dAx_eq_b_QR+0x370>
jmp    1450 <dAx_eq_b_QR+0x2d0>
lea    0xc0d(%rip),%rdi
lea    0xc08(%rip),%rdx
lea    0xc(%rsp),%r8
mov    %rdx,%rsi
lea    0x4(%rsp),%rax
push   %rax
push   %rcx
push   %r11
push   %rcx
call   1080 <dtrtrs_@plt>
add    $0x20,%rsp
mov    0x4(%rsp),%edx
test   %edx,%edx
je     1569 <dAx_eq_b_QR+0x3e9>
mov    0x2a9c(%rip),%rax
mov    (%rax),%edi
js     15a7 <dAx_eq_b_QR+0x427>
lea    0xc1e(%rip),%rsi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <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    1558 <dAx_eq_b_QR+0x3d8>
neg    %edx
lea    0xab3(%rip),%rsi
jmp    15b0 <dAx_eq_b_QR+0x430>
mov    0x2a5e(%rip),%rax
mov    (%rax),%edi
lea    0xa75(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>
neg    %edx
lea    0xb06(%rip),%rsi
jmp    15b0 <dAx_eq_b_QR+0x430>
neg    %edx
lea    0xb74(%rip),%rsi
xor    %eax,%eax
call   1050 <fprintf@plt>
mov    $0x1,%edi
call   1090 <exit@plt>

LLVM IR (-O0):
@dAx_eq_b_QR.buf = internal global double* null
@dAx_eq_b_QR.buf_sz = internal global i32 0
@dAx_eq_b_QR.nb = internal global i32 0
@stderr = global i32 0
@.str = [44 x i8] c"memory allocation in dAx_eq_b_QR() failed!\0A\00"
@.str.1 = [73 x i8] c"LAPACK error: illegal value for argument %d of dgeqrf_ in dAx_eq_b_QR()\0A\00"
@.str.2 = [54 x i8] c"Unknown LAPACK error %d for dgeqrf_ in dAx_eq_b_QR()\0A\00"
@.str.3 = [73 x i8] c"LAPACK error: illegal value for argument %d of dorgqr_ in dAx_eq_b_QR()\0A\00"
@.str.4 = [44 x i8] c"Unknown LAPACK error (%d) in dAx_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 dtrtrs_ in dAx_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 dAx_eq_b_QR()\0A\00"
define i32 @dAx_eq_b_QR(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 double*
%12 = alloca double*
%13 = alloca double*
%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 double
%24 = alloca double
store double* %0, double** %6
store double* %1, double** %7
store double* %2, double** %8
store i32 %3, i32* %9
store i32 1, i32* %22
%25 = load double*, double** %6
%26 = icmp ne double* %25, null
br i1 %26, label %34, label %27
27: ; preds = %4
%28 = load double*, double** @dAx_eq_b_QR.buf
%29 = icmp ne double* %28, null
br i1 %29, label %30, label %33
30: ; preds = %27
%31 = load double*, double** @dAx_eq_b_QR.buf
%32 = call i32 @free(double* %31)
br label %33
33: ; preds = %30, %27
store double* null, double** @dAx_eq_b_QR.buf
store i32 0, i32* @dAx_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* @dAx_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 @dgeqrf_(i32* %9, i32* %9, double* null, i32* %9, double* null, double* %24, i32* %21, i32* %20)
%46 = load double, double* %24
%47 = fptosi double %46 to i32
%48 = load i32, i32* %9
%49 = sdiv i32 %47, %48
store i32 %49, i32* @dAx_eq_b_QR.nb
br label %50
50: ; preds = %44, %34
%51 = load i32, i32* @dAx_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* @dAx_eq_b_QR.buf_sz
%63 = icmp sgt i32 %61, %62
br i1 %63, label %64, label %85
64: ; preds = %50
%65 = load double*, double** @dAx_eq_b_QR.buf
%66 = icmp ne double* %65, null
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = load double*, double** @dAx_eq_b_QR.buf
%69 = call i32 @free(double* %68)
br label %70
70: ; preds = %67, %64
%71 = load i32, i32* %17
store i32 %71, i32* @dAx_eq_b_QR.buf_sz
%72 = load i32, i32* @dAx_eq_b_QR.buf_sz
%73 = sext i32 %72 to i64
%74 = mul i64 %73, 8
%75 = trunc i64 %74 to i32
%76 = call i64 @malloc(i32 %75)
%77 = inttoptr i64 %76 to double*
store double* %77, double** @dAx_eq_b_QR.buf
%78 = load double*, double** @dAx_eq_b_QR.buf
%79 = icmp ne double* %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 double*, double** @dAx_eq_b_QR.buf
store double* %86, double** %10
%87 = load double*, double** %10
%88 = load i32, i32* %14
%89 = sext i32 %88 to i64
%90 = getelementptr inbounds double, double* %87, i64 %89
store double* %90, double** %11
%91 = load double*, double** %11
%92 = load i32, i32* %15
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds double, double* %91, i64 %93
store double* %94, double** %12
%95 = load double*, double** %12
%96 = load i32, i32* %16
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
store double* %98, double** %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 double*, double** %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 double, double* %109, i64 %115
%117 = load double, double* %116
%118 = load double*, double** %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 double, double* %118, i64 %124
store double %117, double* %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 double*, double** %10
%135 = load double*, double** %11
%136 = load double*, double** %13
%137 = call i32 @dgeqrf_(i32* %9, i32* %9, double* %134, i32* %9, double* %135, double* %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 double*, double** %12
%155 = load double*, double** %10
%156 = load i32, i32* %16
%157 = sext i32 %156 to i64
%158 = mul i64 %157, 8
%159 = trunc i64 %158 to i32
%160 = call i32 @memcpy(double* %154, double* %155, i32 %159)
%161 = load double*, double** %10
%162 = load double*, double** %11
%163 = load double*, double** %13
%164 = call i32 @dorgqr_(i32* %9, i32* %9, i32* %9, double* %161, i32* %9, double* %162, double* %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 double 0.000000e+00, double* %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 double*, double** %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 double, double* %191, i64 %197
%199 = load double, double* %198
%200 = load double*, double** %7
%201 = load i32, i32* %19
%202 = sext i32 %201 to i64
%203 = getelementptr inbounds double, double* %200, i64 %202
%204 = load double, double* %203
%205 = load double, double* %23
%206 = call double @llvm.fmuladd.f64(double %199, double %204, double %205)
store double %206, double* %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 double, double* %23
%212 = load double*, double** %8
%213 = load i32, i32* %18
%214 = sext i32 %213 to i64
%215 = getelementptr inbounds double, double* %212, i64 %214
store double %211, double* %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 double*, double** %12
%221 = load double*, double** %8
%222 = call i32 @dtrtrs_(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, double* %220, i32* %9, double* %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):
@dAx_eq_b_QR.buf = internal unnamed_addr global double* null
@dAx_eq_b_QR.buf_sz = internal unnamed_addr global i32 0
@dAx_eq_b_QR.nb = internal unnamed_addr global i32 0
@stderr = global i32 0
@.str = [44 x i8] c"memory allocation in dAx_eq_b_QR() failed!\0A\00"
@.str.1 = [73 x i8] c"LAPACK error: illegal value for argument %d of dgeqrf_ in dAx_eq_b_QR()\0A\00"
@.str.2 = [54 x i8] c"Unknown LAPACK error %d for dgeqrf_ in dAx_eq_b_QR()\0A\00"
@.str.3 = [73 x i8] c"LAPACK error: illegal value for argument %d of dorgqr_ in dAx_eq_b_QR()\0A\00"
@.str.4 = [44 x i8] c"Unknown LAPACK error (%d) in dAx_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 dtrtrs_ in dAx_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 dAx_eq_b_QR()\0A\00"
define i32 @dAx_eq_b_QR(double* %0, double* nocapture %1, double* %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca double
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 double* %0, null
br i1 %13, label %14, label %20
14: ; preds = %4
%15 = load double*, double** @dAx_eq_b_QR.buf
%16 = icmp eq double* %15, null
br i1 %16, label %19, label %17
17: ; preds = %14
%18 = tail call i32 @free(double* %15)
br label %19
19: ; preds = %17, %14
store double* null, double** @dAx_eq_b_QR.buf
store i32 0, i32* @dAx_eq_b_QR.buf_sz
br label %217
20: ; preds = %4
%21 = mul nsw i32 %3, %3
%22 = load i32, i32* @dAx_eq_b_QR.nb
%23 = icmp eq i32 %22, 0
br i1 %23, label %24, label %31
24: ; preds = %20
%25 = bitcast double* %9 to i8*
store i32 -1, i32* %7
%26 = call i32 @dgeqrf_(i32* %5, i32* %5, double* null, i32* %5, double* null, double* %9, i32* %7, i32* %6)
%27 = load double, double* %9
%28 = fptosi double %27 to i32
%29 = load i32, i32* %5
%30 = sdiv i32 %28, %29
store i32 %30, i32* @dAx_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* @dAx_eq_b_QR.buf_sz
%39 = icmp sgt i32 %37, %38
%40 = load double*, double** @dAx_eq_b_QR.buf
br i1 %39, label %41, label %56
41: ; preds = %31
%42 = icmp eq double* %40, null
br i1 %42, label %45, label %43
43: ; preds = %41
%44 = call i32 @free(double* %40)
br label %45
45: ; preds = %43, %41
store i32 %37, i32* @dAx_eq_b_QR.buf_sz
%46 = shl i32 %37, 3
%47 = call i64 @malloc(i32 %46)
%48 = inttoptr i64 %47 to double*
store double* %48, double** @dAx_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 double* [ %48, %50 ], [ %40, %31 ]
%59 = zext i32 %21 to i64
%60 = getelementptr inbounds double, double* %58, i64 %59
%61 = sext i32 %3 to i64
%62 = getelementptr inbounds double, double* %60, i64 %61
%63 = getelementptr inbounds double, double* %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 double, double* %0, i64 %78
%80 = load double, double* %79
%81 = mul nsw i64 %76, %66
%82 = add nuw nsw i64 %81, %73
%83 = getelementptr inbounds double, double* %58, i64 %82
store double %80, double* %83
%84 = or i64 %76, 1
%85 = add nuw nsw i64 %84, %74
%86 = getelementptr inbounds double, double* %0, i64 %85
%87 = load double, double* %86
%88 = mul nsw i64 %84, %66
%89 = add nuw nsw i64 %88, %73
%90 = getelementptr inbounds double, double* %58, i64 %89
store double %87, double* %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 double, double* %0, i64 %97
%99 = load double, double* %98
%100 = mul nsw i64 %95, %66
%101 = add nuw nsw i64 %100, %73
%102 = getelementptr inbounds double, double* %58, i64 %101
store double %99, double* %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 @dgeqrf_(i32* %5, i32* %5, double* %58, i32* %5, double* %60, double* %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, 3
%121 = call i32 @memcpy(double* %62, double* %58, i32 %120)
%122 = call i32 @dorgqr_(i32* %5, i32* %5, i32* %5, double* %58, i32* %5, double* %60, double* %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 double [ %178, %148 ], [ 0.000000e+00, %145 ]
%151 = phi i64 [ %180, %148 ], [ 0, %145 ]
%152 = add nuw nsw i64 %149, %147
%153 = getelementptr inbounds double, double* %58, i64 %152
%154 = load double, double* %153
%155 = getelementptr inbounds double, double* %1, i64 %149
%156 = load double, double* %155
%157 = call double @llvm.fmuladd.f64(double %154, double %156, double %150)
%158 = or i64 %149, 1
%159 = add nuw nsw i64 %158, %147
%160 = getelementptr inbounds double, double* %58, i64 %159
%161 = load double, double* %160
%162 = getelementptr inbounds double, double* %1, i64 %158
%163 = load double, double* %162
%164 = call double @llvm.fmuladd.f64(double %161, double %163, double %157)
%165 = or i64 %149, 2
%166 = add nuw nsw i64 %165, %147
%167 = getelementptr inbounds double, double* %58, i64 %166
%168 = load double, double* %167
%169 = getelementptr inbounds double, double* %1, i64 %165
%170 = load double, double* %169
%171 = call double @llvm.fmuladd.f64(double %168, double %170, double %164)
%172 = or i64 %149, 3
%173 = add nuw nsw i64 %172, %147
%174 = getelementptr inbounds double, double* %58, i64 %173
%175 = load double, double* %174
%176 = getelementptr inbounds double, double* %1, i64 %172
%177 = load double, double* %176
%178 = call double @llvm.fmuladd.f64(double %175, double %177, double %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 double [ undef, %145 ], [ %178, %148 ]
%184 = phi i64 [ 0, %145 ], [ %179, %148 ]
%185 = phi double [ 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 double [ %195, %186 ], [ %185, %182 ]
%189 = phi i64 [ %197, %186 ], [ 0, %182 ]
%190 = add nuw nsw i64 %187, %147
%191 = getelementptr inbounds double, double* %58, i64 %190
%192 = load double, double* %191
%193 = getelementptr inbounds double, double* %1, i64 %187
%194 = load double, double* %193
%195 = call double @llvm.fmuladd.f64(double %192, double %194, double %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 double [ %183, %182 ], [ %195, %186 ]
%201 = getelementptr inbounds double, double* %2, i64 %146
store double %200, double* %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 @dtrtrs_(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, double* %62, i32* %5, double* %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
}