#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 cal_bx(double *, double *, double *, double);
int /*<<< orphan*/ cal_ep(double *, double **, double **, int);
int /*<<< orphan*/ cal_ex(double *, double **, double **, int);
int cal_g(double *, double *, double *, double *, int, int const, double);
int /*<<< orphan*/ cal_p(double **, double **, double *, int);
int cal_p0(double **, double **, double *, int const, double);
int /*<<< orphan*/ cal_vx(double *, double *, double *);
int /*<<< orphan*/ cal_x(double **, double **, double *, int);
int /*<<< orphan*/ free(char *);
double **mtrx2(int const, int);
int theq(double *t, double *h, double *a, double *b, const int n, double eps) {
  static double **r = NULL, **x, **xx, **p;
  static int size;
  double ex[4], ep[2], vx[4], bx[4], g[2];
  int i;
  if (r == NULL) {
    r = mtrx2(n, 4);
    x = mtrx2(n, 4);
    xx = mtrx2(n, 4);
    p = mtrx2(n, 2);
    size = n;
  }
  if (n > size) {
    for (i = 0; i < size; i++) {
      free((char *)r[i]);
      free((char *)x[i]);
      free((char *)xx[i]);
      free((char *)p[i]);
    }
    free((char *)r);
    free((char *)x);
    free((char *)xx);
    free((char *)p);
    r = mtrx2(n, 4);
    x = mtrx2(n, 4);
    xx = mtrx2(n, 4);
    p = mtrx2(n, 2);
    size = n;
  }
  if (eps < 0.0)
    eps = 1.0e-6;
  for (i = 0; i < n; i++) {
    r[i][0] = r[i][3] = t[i];
    r[i][1] = h[n - 1 + i];
    r[i][2] = h[n - 1 - i];
  }
  x[0][0] = x[0][3] = 1.0;
  if (cal_p0(p, r, b, n, eps) == -1)
    return (-1);
  vx[0] = r[0][0];
  vx[1] = r[0][1];
  vx[2] = r[0][2];
  vx[3] = r[0][3];
  for (i = 1; i < n; i++) {
    cal_ex(ex, r, x, i);
    cal_ep(ep, r, p, i);
    if (cal_bx(bx, vx, ex, eps) == -1)
      return (-1);
    cal_x(x, xx, bx, i);
    cal_vx(vx, ex, bx);
    if (cal_g(g, vx, b, ep, i, n, eps) == -1)
      return (-1);
    cal_p(p, x, g, i);
  }
  for (i = 0; i < n; i++)
    a[i] = p[i][0];
  return (0);
}


x86 assembly (clang, -O0):
<theq>:
push   %rbp
mov    %rsp,%rbp
sub    $0xd0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
movsd  %xmm0,-0x38(%rbp)
cmpq   $0x0,0x2eac(%rip)
jne    122b <theq+0x8b>
mov    -0x2c(%rbp),%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2e92(%rip)
mov    -0x2c(%rbp),%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2e86(%rip)
mov    -0x2c(%rbp),%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2e7a(%rip)
mov    -0x2c(%rbp),%edi
mov    $0x2,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2e6e(%rip)
mov    -0x2c(%rbp),%eax
mov    %eax,0x2e6d(%rip)
mov    -0x2c(%rbp),%eax
cmp    0x2e64(%rip),%eax
jle    134f <theq+0x1af>
movl   $0x0,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    0x2e48(%rip),%eax
jge    12c6 <theq+0x126>
mov    0x2e1b(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <free@plt>
mov    0x2e0c(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <free@plt>
mov    0x2dfd(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <free@plt>
mov    0x2dee(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <free@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1244 <theq+0xa4>
mov    0x2dab(%rip),%rdi
call   1040 <free@plt>
mov    0x2da7(%rip),%rdi
call   1040 <free@plt>
mov    0x2da3(%rip),%rdi
call   1040 <free@plt>
mov    0x2d9f(%rip),%rdi
call   1040 <free@plt>
mov    -0x2c(%rbp),%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2d6e(%rip)
mov    -0x2c(%rbp),%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2d62(%rip)
mov    -0x2c(%rbp),%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2d56(%rip)
mov    -0x2c(%rbp),%edi
mov    $0x2,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2d4a(%rip)
mov    -0x2c(%rbp),%eax
mov    %eax,0x2d49(%rip)
xorps  %xmm0,%xmm0
ucomisd -0x38(%rbp),%xmm0
jbe    136a <theq+0x1ca>
movsd  0xc9b(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movl   $0x0,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1432 <theq+0x292>
mov    -0x10(%rbp),%rax
movslq -0xc4(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2cde(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,0x18(%rax)
mov    0x2cc7(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,(%rax)
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
add    -0xc4(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2c99(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,0x8(%rax)
mov    -0x18(%rbp),%rax
mov    -0x2c(%rbp),%ecx
sub    $0x1,%ecx
sub    -0xc4(%rbp),%ecx
movslq %ecx,%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    0x2c6a(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  %xmm0,0x10(%rax)
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1374 <theq+0x1d4>
mov    0x2c47(%rip),%rax
mov    (%rax),%rax
movsd  0xbc4(%rip),%xmm0
movsd  %xmm0,0x18(%rax)
mov    0x2c30(%rip),%rax
mov    (%rax),%rax
movsd  0xbad(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    0x2c2a(%rip),%rdi
mov    0x2c0b(%rip),%rsi
mov    -0x28(%rbp),%rdx
mov    -0x2c(%rbp),%ecx
movsd  -0x38(%rbp),%xmm0
call   1060 <cal_p0@plt>
cmp    $0xffffffff,%eax
jne    1493 <theq+0x2f3>
movl   $0xffffffff,-0x4(%rbp)
jmp    1671 <theq+0x4d1>
mov    0x2bde(%rip),%rax
mov    (%rax),%rax
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
mov    0x2bc8(%rip),%rax
mov    (%rax),%rax
movsd  0x8(%rax),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
mov    0x2bb1(%rip),%rax
mov    (%rax),%rax
movsd  0x10(%rax),%xmm0
movsd  %xmm0,-0x80(%rbp)
mov    0x2b9d(%rip),%rax
mov    (%rax),%rax
movsd  0x18(%rax),%xmm0
movsd  %xmm0,-0x78(%rbp)
movl   $0x1,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    1617 <theq+0x477>
lea    -0x60(%rbp),%rdi
mov    0x2b6c(%rip),%rsi
mov    0x2b6d(%rip),%rdx
mov    -0xc4(%rbp),%ecx
call   10c0 <cal_ex@plt>
lea    -0x70(%rbp),%rdi
mov    0x2b4f(%rip),%rsi
mov    0x2b60(%rip),%rdx
mov    -0xc4(%rbp),%ecx
call   10b0 <cal_ep@plt>
lea    -0xb0(%rbp),%rdi
lea    -0x90(%rbp),%rsi
lea    -0x60(%rbp),%rdx
movsd  -0x38(%rbp),%xmm0
call   1050 <cal_bx@plt>
cmp    $0xffffffff,%eax
jne    156c <theq+0x3cc>
movl   $0xffffffff,-0x4(%rbp)
jmp    1671 <theq+0x4d1>
mov    0x2b0d(%rip),%rdi
mov    0x2b0e(%rip),%rsi
lea    -0xb0(%rbp),%rdx
mov    -0xc4(%rbp),%ecx
call   1080 <cal_x@plt>
lea    -0x90(%rbp),%rdi
lea    -0x60(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
call   1090 <cal_vx@plt>
lea    -0xc0(%rbp),%rdi
lea    -0x90(%rbp),%rsi
mov    -0x28(%rbp),%rdx
lea    -0x70(%rbp),%rcx
mov    -0xc4(%rbp),%r8d
mov    -0x2c(%rbp),%r9d
movsd  -0x38(%rbp),%xmm0
call   1030 <cal_g@plt>
cmp    $0xffffffff,%eax
jne    15e3 <theq+0x443>
movl   $0xffffffff,-0x4(%rbp)
jmp    1671 <theq+0x4d1>
mov    0x2aa6(%rip),%rdi
mov    0x2a8f(%rip),%rsi
lea    -0xc0(%rbp),%rdx
mov    -0xc4(%rbp),%ecx
call   10a0 <cal_p@plt>
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    14f2 <theq+0x352>
movl   $0x0,-0xc4(%rbp)
mov    -0xc4(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jge    166a <theq+0x4ca>
mov    0x2a59(%rip),%rax
movslq -0xc4(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
movsd  (%rax),%xmm0
mov    -0x20(%rbp),%rax
movslq -0xc4(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0xc4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc4(%rbp)
jmp    1621 <theq+0x481>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xd0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<theq>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
movapd %xmm0,0x20(%rsp)
mov    %r8d,%ebp
mov    %rcx,0x18(%rsp)
mov    %rdx,0x10(%rsp)
mov    %rsi,%r15
mov    %rdi,%rbx
cmpq   $0x0,0x2ea6(%rip)
je     12a0 <theq+0x100>
mov    0x2eb9(%rip),%r13d
cmp    %ebp,%r13d
jge    12f2 <theq+0x152>
mov    %rbp,0x8(%rsp)
test   %r13d,%r13d
jle    1262 <theq+0xc2>
mov    %rbx,0x38(%rsp)
mov    %r15,(%rsp)
mov    0x2e76(%rip),%rdi
mov    0x2e77(%rip),%r14
mov    0x2e78(%rip),%r12
mov    0x2e79(%rip),%rbp
xor    %r15d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %rdi,%rbx
mov    (%rdi,%r15,8),%rdi
call   1040 <free@plt>
mov    (%r14,%r15,8),%rdi
call   1040 <free@plt>
mov    (%r12,%r15,8),%rdi
call   1040 <free@plt>
mov    0x0(%rbp,%r15,8),%rdi
call   1040 <free@plt>
mov    %rbx,%rdi
add    $0x1,%r15
cmp    %r15,%r13
jne    1220 <theq+0x80>
mov    (%rsp),%r15
mov    %rbp,%r13
mov    0x38(%rsp),%rbx
jmp    127e <theq+0xde>
mov    0x2e0f(%rip),%rdi
mov    0x2e10(%rip),%r14
mov    0x2e11(%rip),%r12
mov    0x2e12(%rip),%r13
call   1040 <free@plt>
mov    %r14,%rdi
call   1040 <free@plt>
mov    %r12,%rdi
call   1040 <free@plt>
mov    %r13,%rdi
call   1040 <free@plt>
mov    0x8(%rsp),%rbp
mov    %ebp,%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2dc5(%rip)
mov    %ebp,%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2dba(%rip)
mov    %ebp,%edi
mov    $0x4,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2daf(%rip)
mov    %ebp,%edi
mov    $0x2,%esi
call   1070 <mtrx2@plt>
mov    %rax,0x2da4(%rip)
mov    %ebp,0x2da6(%rip)
xorpd  %xmm0,%xmm0
movapd 0x20(%rsp),%xmm2
movapd %xmm2,%xmm1
cmpltsd %xmm0,%xmm1
movsd  0xcf3(%rip),%xmm0
andpd  %xmm1,%xmm0
andnpd %xmm2,%xmm1
orpd   %xmm0,%xmm1
mov    0x2d58(%rip),%rsi
test   %ebp,%ebp
mov    %rbp,%r14
jle    13f5 <theq+0x255>
lea    -0x1(%r14),%r9d
mov    %r14d,%r8d
cmp    $0x1,%r14d
jne    1349 <theq+0x1a9>
xor    %edx,%edx
test   $0x1,%r8b
jne    13c6 <theq+0x226>
jmp    13f5 <theq+0x255>
lea    (%r15,%r9,8),%rdi
mov    %r8d,%ecx
and    $0xfffffffe,%ecx
neg    %rcx
mov    $0x8,%ebp
xor    %edx,%edx
nopl   (%rax)
movsd  -0x8(%rbx,%rbp,1),%xmm0
mov    -0x8(%rsi,%rbp,1),%rax
movsd  %xmm0,0x18(%rax)
movsd  %xmm0,(%rax)
movsd  -0x8(%rdi,%rbp,1),%xmm0
movsd  %xmm0,0x8(%rax)
movsd  (%rdi,%rdx,8),%xmm0
movsd  %xmm0,0x10(%rax)
movsd  (%rbx,%rbp,1),%xmm0
mov    (%rsi,%rbp,1),%rax
movsd  %xmm0,0x18(%rax)
movsd  %xmm0,(%rax)
movsd  (%rdi,%rbp,1),%xmm0
movsd  %xmm0,0x8(%rax)
movsd  -0x8(%rdi,%rdx,8),%xmm0
movsd  %xmm0,0x10(%rax)
add    $0x10,%rbp
add    $0xfffffffffffffffe,%rdx
cmp    %rdx,%rcx
jne    1360 <theq+0x1c0>
neg    %rdx
test   $0x1,%r8b
je     13f5 <theq+0x255>
movsd  (%rbx,%rdx,8),%xmm0
mov    (%rsi,%rdx,8),%rax
movsd  %xmm0,0x18(%rax)
movsd  %xmm0,(%rax)
lea    (%rdx,%r9,1),%rcx
movsd  (%r15,%rcx,8),%xmm0
movsd  %xmm0,0x8(%rax)
sub    %rdx,%r9
movsd  (%r15,%r9,8),%xmm0
movsd  %xmm0,0x10(%rax)
mov    0x2c84(%rip),%rax
mov    (%rax),%rax
movabs $0x3ff0000000000000,%rcx
mov    %rcx,0x18(%rax)
mov    %rcx,(%rax)
mov    0x2c79(%rip),%rdi
mov    0x18(%rsp),%rdx
mov    %r14d,%ecx
movapd %xmm1,0x20(%rsp)
movapd %xmm1,%xmm0
call   1060 <cal_p0@plt>
mov    $0xffffffff,%ebx
cmp    $0xffffffff,%eax
je     1626 <theq+0x486>
mov    0x2c35(%rip),%rsi
mov    (%rsi),%rax
movups (%rax),%xmm0
movaps %xmm0,0x40(%rsp)
movupd 0x10(%rax),%xmm0
movapd %xmm0,0x50(%rsp)
cmp    $0x2,%r14d
jl     1560 <theq+0x3c0>
mov    $0x2,%eax
mov    %r14,0x8(%rsp)
sub    %r14d,%eax
mov    %rax,(%rsp)
mov    $0x1,%ebx
lea    0xa0(%rsp),%rbp
lea    0x80(%rsp),%r15
lea    0x40(%rsp),%r12
xchg   %ax,%ax
mov    0x2be9(%rip),%rdx
mov    %rbp,%rdi
mov    %ebx,%ecx
call   10c0 <cal_ex@plt>
mov    0x2bd0(%rip),%rsi
mov    0x2be1(%rip),%rdx
lea    0x70(%rsp),%r14
mov    %r14,%rdi
mov    %ebx,%ecx
call   10b0 <cal_ep@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
movaps 0x20(%rsp),%xmm0
call   1050 <cal_bx@plt>
cmp    $0xffffffff,%eax
je     1589 <theq+0x3e9>
mov    0x2b9f(%rip),%rdi
mov    0x2ba0(%rip),%rsi
mov    %r15,%rdx
mov    %ebx,%ecx
call   1080 <cal_x@plt>
mov    %r12,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
call   1090 <cal_vx@plt>
lea    0x60(%rsp),%r13
mov    %r13,%rdi
mov    %r12,%rsi
mov    0x18(%rsp),%rdx
mov    %r14,%rcx
mov    %ebx,%r8d
mov    0x8(%rsp),%r14
mov    %r14d,%r9d
movapd 0x20(%rsp),%xmm0
call   1030 <cal_g@plt>
cmp    $0xffffffff,%eax
je     1589 <theq+0x3e9>
mov    0x2b5b(%rip),%rdi
mov    0x2b44(%rip),%rsi
mov    %r13,%rdx
mov    %ebx,%ecx
call   10a0 <cal_p@plt>
mov    (%rsp),%rax
add    %ebx,%eax
cmp    $0x1,%eax
je     1560 <theq+0x3c0>
mov    0x2b20(%rip),%rsi
add    $0x1,%ebx
jmp    1490 <theq+0x2f0>
test   %r14d,%r14d
jle    1593 <theq+0x3f3>
mov    0x2b24(%rip),%rcx
mov    %r14d,%edx
lea    -0x1(%rdx),%rsi
mov    %edx,%eax
and    $0x3,%eax
xor    %ebx,%ebx
cmp    $0x3,%rsi
jae    159a <theq+0x3fa>
xor    %esi,%esi
mov    0x10(%rsp),%rbp
jmp    15f4 <theq+0x454>
mov    $0xffffffff,%ebx
jmp    1626 <theq+0x486>
xor    %ebx,%ebx
jmp    1626 <theq+0x486>
and    $0xfffffffc,%edx
xor    %esi,%esi
mov    0x10(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
mov    (%rcx,%rsi,8),%rdi
movsd  (%rdi),%xmm0
movsd  %xmm0,0x0(%rbp,%rsi,8)
mov    0x8(%rcx,%rsi,8),%rdi
movsd  (%rdi),%xmm0
movsd  %xmm0,0x8(%rbp,%rsi,8)
mov    0x10(%rcx,%rsi,8),%rdi
movsd  (%rdi),%xmm0
movsd  %xmm0,0x10(%rbp,%rsi,8)
mov    0x18(%rcx,%rsi,8),%rdi
movsd  (%rdi),%xmm0
movsd  %xmm0,0x18(%rbp,%rsi,8)
add    $0x4,%rsi
cmp    %rsi,%rdx
jne    15b0 <theq+0x410>
test   %rax,%rax
je     1626 <theq+0x486>
lea    0x0(,%rsi,8),%rdx
add    %rbp,%rdx
lea    (%rcx,%rsi,8),%rcx
xor    %ebx,%ebx
xor    %esi,%esi
nopl   0x0(%rax)
mov    (%rcx,%rsi,8),%rdi
movsd  (%rdi),%xmm0
movsd  %xmm0,(%rdx,%rsi,8)
add    $0x1,%rsi
cmp    %rsi,%rax
jne    1610 <theq+0x470>
mov    %ebx,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

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

LLVM IR (-O2):
@theq.r = internal unnamed_addr global double** null
@theq.x = internal unnamed_addr global double** null
@theq.xx = internal unnamed_addr global double** null
@theq.p = internal unnamed_addr global double** null
@theq.size = internal unnamed_addr global i32 0
define i32 @theq(double* nocapture %0, double* nocapture %1, double* nocapture writeonly %2, double* %3, i32 %4, double %5) {
%7 = alloca [4 x double]
%8 = alloca [2 x double]
%9 = alloca [4 x double]
%10 = alloca [4 x double]
%11 = alloca [2 x double]
%12 = bitcast [4 x double]* %7 to i8*
%13 = bitcast [2 x double]* %8 to i8*
%14 = bitcast [4 x double]* %9 to i8*
%15 = bitcast [4 x double]* %10 to i8*
%16 = bitcast [2 x double]* %11 to i8*
%17 = load double**, double*** @theq.r
%18 = icmp eq double** %17, null
br i1 %18, label %68, label %19
19: ; preds = %6
%20 = load i32, i32* @theq.size
%21 = icmp slt i32 %20, %4
br i1 %21, label %22, label %73
22: ; preds = %19
%23 = icmp sgt i32 %20, 0
br i1 %23, label %29, label %24
24: ; preds = %22
%25 = load i8*, i8** bitcast (double*** @theq.r to i8**)
%26 = load i8*, i8** bitcast (double*** @theq.x to i8**)
%27 = load i8*, i8** bitcast (double*** @theq.xx to i8**)
%28 = load i8*, i8** bitcast (double*** @theq.p to i8**)
br label %59
29: ; preds = %22
%30 = load double**, double*** @theq.r
%31 = load double**, double*** @theq.x
%32 = load double**, double*** @theq.xx
%33 = load double**, double*** @theq.p
%34 = zext i32 %20 to i64
%35 = bitcast double** %30 to i8*
%36 = bitcast double** %31 to i8*
%37 = bitcast double** %32 to i8*
%38 = bitcast double** %33 to i8*
br label %39
39: ; preds = %29, %39
%40 = phi i64 [ 0, %29 ], [ %57, %39 ]
%41 = getelementptr inbounds double*, double** %30, i64 %40
%42 = bitcast double** %41 to i8**
%43 = load i8*, i8** %42
%44 = tail call i32 @free(i8* %43)
%45 = getelementptr inbounds double*, double** %31, i64 %40
%46 = bitcast double** %45 to i8**
%47 = load i8*, i8** %46
%48 = tail call i32 @free(i8* %47)
%49 = getelementptr inbounds double*, double** %32, i64 %40
%50 = bitcast double** %49 to i8**
%51 = load i8*, i8** %50
%52 = tail call i32 @free(i8* %51)
%53 = getelementptr inbounds double*, double** %33, i64 %40
%54 = bitcast double** %53 to i8**
%55 = load i8*, i8** %54
%56 = tail call i32 @free(i8* %55)
%57 = add nuw nsw i64 %40, 1
%58 = icmp eq i64 %57, %34
br i1 %58, label %59, label %39
59: ; preds = %39, %24
%60 = phi i8* [ %28, %24 ], [ %38, %39 ]
%61 = phi i8* [ %27, %24 ], [ %37, %39 ]
%62 = phi i8* [ %26, %24 ], [ %36, %39 ]
%63 = phi i8* [ %25, %24 ], [ %35, %39 ]
%64 = tail call i32 @free(i8* %63)
%65 = tail call i32 @free(i8* %62)
%66 = tail call i32 @free(i8* %61)
%67 = tail call i32 @free(i8* %60)
br label %68
68: ; preds = %6, %59
%69 = tail call double** @mtrx2(i32 %4, i32 4)
store double** %69, double*** @theq.r
%70 = tail call double** @mtrx2(i32 %4, i32 4)
store double** %70, double*** @theq.x
%71 = tail call double** @mtrx2(i32 %4, i32 4)
store double** %71, double*** @theq.xx
%72 = tail call double** @mtrx2(i32 %4, i32 2)
store double** %72, double*** @theq.p
store i32 %4, i32* @theq.size
br label %73
73: ; preds = %68, %19
%74 = fcmp olt double %5, 0.000000e+00
%75 = select i1 %74, double 0x3EB0C6F7A0B5ED8D, double %5
%76 = icmp sgt i32 %4, 0
%77 = load double**, double*** @theq.r
br i1 %76, label %78, label %136
78: ; preds = %73
%79 = add nsw i32 %4, -1
%80 = zext i32 %79 to i64
%81 = zext i32 %4 to i64
%82 = and i64 %81, 1
%83 = icmp eq i32 %4, 1
br i1 %83, label %119, label %84
84: ; preds = %78
%85 = and i64 %81, 4294967294
br label %86
86: ; preds = %86, %84
%87 = phi i64 [ 0, %84 ], [ %116, %86 ]
%88 = phi i64 [ 0, %84 ], [ %117, %86 ]
%89 = getelementptr inbounds double, double* %0, i64 %87
%90 = load double, double* %89
%91 = getelementptr inbounds double*, double** %77, i64 %87
%92 = load double*, double** %91
%93 = getelementptr inbounds double, double* %92, i64 3
store double %90, double* %93
store double %90, double* %92
%94 = add nuw nsw i64 %87, %80
%95 = getelementptr inbounds double, double* %1, i64 %94
%96 = load double, double* %95
%97 = getelementptr inbounds double, double* %92, i64 1
store double %96, double* %97
%98 = sub nsw i64 %80, %87
%99 = getelementptr inbounds double, double* %1, i64 %98
%100 = load double, double* %99
%101 = getelementptr inbounds double, double* %92, i64 2
store double %100, double* %101
%102 = or i64 %87, 1
%103 = getelementptr inbounds double, double* %0, i64 %102
%104 = load double, double* %103
%105 = getelementptr inbounds double*, double** %77, i64 %102
%106 = load double*, double** %105
%107 = getelementptr inbounds double, double* %106, i64 3
store double %104, double* %107
store double %104, double* %106
%108 = add nuw nsw i64 %102, %80
%109 = getelementptr inbounds double, double* %1, i64 %108
%110 = load double, double* %109
%111 = getelementptr inbounds double, double* %106, i64 1
store double %110, double* %111
%112 = sub nsw i64 %80, %102
%113 = getelementptr inbounds double, double* %1, i64 %112
%114 = load double, double* %113
%115 = getelementptr inbounds double, double* %106, i64 2
store double %114, double* %115
%116 = add nuw nsw i64 %87, 2
%117 = add i64 %88, 2
%118 = icmp eq i64 %117, %85
br i1 %118, label %119, label %86
119: ; preds = %86, %78
%120 = phi i64 [ 0, %78 ], [ %116, %86 ]
%121 = icmp eq i64 %82, 0
br i1 %121, label %136, label %122
122: ; preds = %119
%123 = getelementptr inbounds double, double* %0, i64 %120
%124 = load double, double* %123
%125 = getelementptr inbounds double*, double** %77, i64 %120
%126 = load double*, double** %125
%127 = getelementptr inbounds double, double* %126, i64 3
store double %124, double* %127
store double %124, double* %126
%128 = add nuw nsw i64 %120, %80
%129 = getelementptr inbounds double, double* %1, i64 %128
%130 = load double, double* %129
%131 = getelementptr inbounds double, double* %126, i64 1
store double %130, double* %131
%132 = sub nsw i64 %80, %120
%133 = getelementptr inbounds double, double* %1, i64 %132
%134 = load double, double* %133
%135 = getelementptr inbounds double, double* %126, i64 2
store double %134, double* %135
br label %136
136: ; preds = %122, %119, %73
%137 = load double**, double*** @theq.x
%138 = load double*, double** %137
%139 = getelementptr inbounds double, double* %138, i64 3
store double 1.000000e+00, double* %139
store double 1.000000e+00, double* %138
%140 = load double**, double*** @theq.p
%141 = tail call i32 @cal_p0(double** %140, double** %77, double* %3, i32 %4, double %75)
%142 = icmp eq i32 %141, -1
br i1 %142, label %233, label %143
143: ; preds = %136
%144 = load double**, double*** @theq.r
%145 = load double*, double** %144
%146 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 0
%147 = bitcast double* %145 to <2 x double>*
%148 = load <2 x double>, <2 x double>* %147
%149 = bitcast [4 x double]* %9 to <2 x double>*
store <2 x double> %148, <2 x double>* %149
%150 = getelementptr inbounds double, double* %145, i64 2
%151 = getelementptr inbounds [4 x double], [4 x double]* %9, i64 0, i64 2
%152 = bitcast double* %150 to <2 x double>*
%153 = load <2 x double>, <2 x double>* %152
%154 = bitcast double* %151 to <2 x double>*
store <2 x double> %153, <2 x double>* %154
%155 = icmp sgt i32 %4, 1
br i1 %155, label %156, label %161
156: ; preds = %143
%157 = getelementptr inbounds [4 x double], [4 x double]* %7, i64 0, i64 0
%158 = getelementptr inbounds [2 x double], [2 x double]* %8, i64 0, i64 0
%159 = getelementptr inbounds [4 x double], [4 x double]* %10, i64 0, i64 0
%160 = getelementptr inbounds [2 x double], [2 x double]* %11, i64 0, i64 0
br label %170
161: ; preds = %187, %143
br i1 %76, label %162, label %233
162: ; preds = %161
%163 = load double**, double*** @theq.p
%164 = zext i32 %4 to i64
%165 = add nsw i64 %164, -1
%166 = and i64 %164, 3
%167 = icmp ult i64 %165, 3
br i1 %167, label %220, label %168
168: ; preds = %162
%169 = and i64 %164, 4294967292
br label %195
170: ; preds = %193, %156
%171 = phi double** [ %144, %156 ], [ %194, %193 ]
%172 = phi i32 [ 1, %156 ], [ %191, %193 ]
%173 = load double**, double*** @theq.x
%174 = call i32 @cal_ex(double* %157, double** %171, double** %173, i32 %172)
%175 = load double**, double*** @theq.r
%176 = load double**, double*** @theq.p
%177 = call i32 @cal_ep(double* %158, double** %175, double** %176, i32 %172)
%178 = call i32 @cal_bx(double* %159, double* %146, double* %157, double %75)
%179 = icmp eq i32 %178, -1
br i1 %179, label %233, label %180
180: ; preds = %170
%181 = load double**, double*** @theq.x
%182 = load double**, double*** @theq.xx
%183 = call i32 @cal_x(double** %181, double** %182, double* %159, i32 %172)
%184 = call i32 @cal_vx(double* %146, double* %157, double* %159)
%185 = call i32 @cal_g(double* %160, double* %146, double* %3, double* %158, i32 %172, i32 %4, double %75)
%186 = icmp eq i32 %185, -1
br i1 %186, label %233, label %187
187: ; preds = %180
%188 = load double**, double*** @theq.p
%189 = load double**, double*** @theq.x
%190 = call i32 @cal_p(double** %188, double** %189, double* %160, i32 %172)
%191 = add nuw nsw i32 %172, 1
%192 = icmp eq i32 %191, %4
br i1 %192, label %161, label %193
193: ; preds = %187
%194 = load double**, double*** @theq.r
br label %170
195: ; preds = %195, %168
%196 = phi i64 [ 0, %168 ], [ %217, %195 ]
%197 = phi i64 [ 0, %168 ], [ %218, %195 ]
%198 = getelementptr inbounds double*, double** %163, i64 %196
%199 = load double*, double** %198
%200 = load double, double* %199
%201 = getelementptr inbounds double, double* %2, i64 %196
store double %200, double* %201
%202 = or i64 %196, 1
%203 = getelementptr inbounds double*, double** %163, i64 %202
%204 = load double*, double** %203
%205 = load double, double* %204
%206 = getelementptr inbounds double, double* %2, i64 %202
store double %205, double* %206
%207 = or i64 %196, 2
%208 = getelementptr inbounds double*, double** %163, i64 %207
%209 = load double*, double** %208
%210 = load double, double* %209
%211 = getelementptr inbounds double, double* %2, i64 %207
store double %210, double* %211
%212 = or i64 %196, 3
%213 = getelementptr inbounds double*, double** %163, i64 %212
%214 = load double*, double** %213
%215 = load double, double* %214
%216 = getelementptr inbounds double, double* %2, i64 %212
store double %215, double* %216
%217 = add nuw nsw i64 %196, 4
%218 = add i64 %197, 4
%219 = icmp eq i64 %218, %169
br i1 %219, label %220, label %195
220: ; preds = %195, %162
%221 = phi i64 [ 0, %162 ], [ %217, %195 ]
%222 = icmp eq i64 %166, 0
br i1 %222, label %233, label %223
223: ; preds = %220, %223
%224 = phi i64 [ %230, %223 ], [ %221, %220 ]
%225 = phi i64 [ %231, %223 ], [ 0, %220 ]
%226 = getelementptr inbounds double*, double** %163, i64 %224
%227 = load double*, double** %226
%228 = load double, double* %227
%229 = getelementptr inbounds double, double* %2, i64 %224
store double %228, double* %229
%230 = add nuw nsw i64 %224, 1
%231 = add i64 %225, 1
%232 = icmp eq i64 %231, %166
br i1 %232, label %233, label %223
233: ; preds = %180, %170, %220, %223, %161, %136
%234 = phi i32 [ -1, %136 ], [ 0, %161 ], [ 0, %223 ], [ 0, %220 ], [ -1, %170 ], [ -1, %180 ]
ret i32 %234
}