#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 */
double pow(double const, double const);
int dispoly(int dummy, const int iparm[], const double dparm[], int Nhat,
            const double rawcrd[], double *discrd) {
  (void)dummy;
  for (int jhat = 0; jhat < Nhat; jhat++) {
    if (rawcrd[jhat] == 0.0) {
      *discrd = 0.0;
      return 0;
    }
  }
  double *aux = (double *)(dparm + iparm[12]);
  for (int k = 0; k < iparm[5]; k++) {
    const double *cptr = dparm + k * iparm[7];
    const double *pptr = cptr + (1 + Nhat);
    aux[k] = *(cptr++);
    double auxp0 = *(pptr++);
    for (int jhat = 0; jhat < Nhat; jhat++) {
      aux[k] += *(cptr++) * pow(rawcrd[jhat], *(pptr++));
    }
    aux[k] = pow(aux[k], auxp0);
    if (aux[k] == 0.0) {
      *discrd = 0.0;
      return 0;
    }
  }
  const int *imaxpow = iparm + iparm[14];
  double *dvarpow = (double *)(dparm + iparm[13]);
  const int *imaxp = imaxpow;
  double *dpowp = dvarpow;
  for (int jhat = 0; jhat < Nhat; jhat++, imaxp++) {
    double var = 1.0;
    for (int ip = 0; ip < *imaxp; ip++, dpowp++) {
      var *= rawcrd[jhat];
      *dpowp = var;
    }
  }
  for (int k = 0; k < iparm[5]; k++, imaxp++) {
    double var = 1.0;
    for (int ip = 0; ip < *imaxp; ip++, dpowp++) {
      var *= aux[k];
      *dpowp = var;
    }
  }
  *discrd = 0.0;
  const int *iflgp = iparm + iparm[16];
  const int *ipowp = iparm + iparm[17];
  const double *dpolp = dparm + iparm[11];
  for (int m = 0; m < iparm[6]; m++) {
    double term = *(dpolp++);
    imaxp = imaxpow;
    dpowp = dvarpow - 1;
    for (int ivar = 0; ivar < iparm[9]; ivar++) {
      if (*iflgp & 2) {
      } else if (*iflgp) {
        if (*ipowp < 0) {
          term /= dpowp[*ipowp];
        } else {
          term *= dpowp[*ipowp];
        }
      } else {
        term *= pow(dpowp[0], *dpolp);
      }
      iflgp++;
      ipowp++;
      dpolp++;
      dpowp += *imaxp;
      imaxp++;
    }
    *discrd += term;
  }
  return 0;
}


x86 assembly (clang, -O0):
<dispoly>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    118e <dispoly+0x7e>
mov    -0x28(%rbp),%rax
movslq -0x34(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    117b <dispoly+0x6b>
jp     117b <dispoly+0x6b>
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    171a <dispoly+0x60a>
jmp    1180 <dispoly+0x70>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    1138 <dispoly+0x28>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x30(%rcx),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x14(%rcx),%eax
jge    131d <dispoly+0x20d>
mov    -0x18(%rbp),%rax
mov    -0x44(%rbp),%ecx
mov    -0x10(%rbp),%rdx
imul   0x1c(%rdx),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x50(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x50(%rbp)
movsd  (%rax),%xmm0
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x58(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x58(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12af <dispoly+0x19f>
mov    -0x50(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x50(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
mov    -0x28(%rbp),%rax
movslq -0x64(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x58(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x58(%rbp)
movsd  (%rax),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0xe8(%rbp),%xmm0
ff
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1230 <dispoly+0x120>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x60(%rbp),%xmm1
call   1030 <pow@plt>
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x40(%rbp),%rax
movslq -0x44(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    130a <dispoly+0x1fa>
jp     130a <dispoly+0x1fa>
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    171a <dispoly+0x60a>
jmp    130f <dispoly+0x1ff>
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
jmp    11ac <dispoly+0x9c>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x38(%rcx),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x34(%rcx),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%rax
mov    %rax,-0x88(%rbp)
movl   $0x0,-0x8c(%rbp)
mov    -0x8c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1421 <dispoly+0x311>
movsd  0xc81(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movl   $0x0,-0x9c(%rbp)
mov    -0x9c(%rbp),%eax
mov    -0x80(%rbp),%rcx
cmp    (%rcx),%eax
jge    13fc <dispoly+0x2ec>
mov    -0x28(%rbp),%rax
movslq -0x8c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0x98(%rbp),%xmm0
ff
movsd  %xmm0,-0x98(%rbp)
ff
movsd  -0x98(%rbp),%xmm0
ff
mov    -0x88(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x9c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x9c(%rbp)
mov    -0x88(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x88(%rbp)
jmp    1391 <dispoly+0x281>
jmp    1401 <dispoly+0x2f1>
mov    -0x8c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8c(%rbp)
mov    -0x80(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x80(%rbp)
jmp    1368 <dispoly+0x258>
movl   $0x0,-0xa0(%rbp)
mov    -0xa0(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x14(%rcx),%eax
jge    14e8 <dispoly+0x3d8>
movsd  0xbba(%rip),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movl   $0x0,-0xac(%rbp)
mov    -0xac(%rbp),%eax
mov    -0x80(%rbp),%rcx
cmp    (%rcx),%eax
jge    14c3 <dispoly+0x3b3>
mov    -0x40(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x88(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0xac(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xac(%rbp)
mov    -0x88(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x88(%rbp)
jmp    1458 <dispoly+0x348>
jmp    14c8 <dispoly+0x3b8>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
mov    -0x80(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x80(%rbp)
jmp    142b <dispoly+0x31b>
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x40(%rcx),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0xb8(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x44(%rcx),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0xc0(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x2c(%rcx),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xc8(%rbp)
movl   $0x0,-0xcc(%rbp)
mov    -0xcc(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x18(%rcx),%eax
jge    1713 <dispoly+0x603>
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0xc8(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
mov    -0x70(%rbp),%rax
mov    %rax,-0x80(%rbp)
mov    -0x78(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0x88(%rbp)
movl   $0x0,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x24(%rcx),%eax
jge    16eb <dispoly+0x5db>
mov    -0xb8(%rbp),%rax
mov    (%rax),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     15cd <dispoly+0x4bd>
jmp    1677 <dispoly+0x567>
mov    -0xb8(%rbp),%rax
cmpl   $0x0,(%rax)
je     1647 <dispoly+0x537>
mov    -0xc0(%rbp),%rax
cmpl   $0x0,(%rax)
jge    161c <dispoly+0x50c>
mov    -0x88(%rbp),%rax
mov    -0xc0(%rbp),%rcx
movslq (%rcx),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0xd8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
jmp    1642 <dispoly+0x532>
mov    -0x88(%rbp),%rax
mov    -0xc0(%rbp),%rcx
movslq (%rcx),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
jmp    1672 <dispoly+0x562>
mov    -0x88(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0xc8(%rbp),%rax
movsd  (%rax),%xmm1
call   1030 <pow@plt>
mulsd  -0xd8(%rbp),%xmm0
ff
movsd  %xmm0,-0xd8(%rbp)
ff
jmp    1677 <dispoly+0x567>
mov    -0xb8(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0xb8(%rbp)
mov    -0xc0(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0xc0(%rbp)
mov    -0xc8(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xc8(%rbp)
mov    -0x80(%rbp),%rax
mov    (%rax),%ecx
mov    -0x88(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x88(%rbp)
mov    -0x80(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x80(%rbp)
mov    -0xdc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xdc(%rbp)
jmp    15a0 <dispoly+0x490>
movsd  -0xd8(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0xcc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xcc(%rbp)
jmp    154b <dispoly+0x43b>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dispoly>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9,0x28(%rsp)
mov    %rdx,%r14
mov    %ecx,%r15d
mov    %rcx,0x18(%rsp)
test   %ecx,%ecx
jle    115b <dispoly+0x4b>
xor    %eax,%eax
xorpd  %xmm0,%xmm0
nopl   0x0(%rax,%rax,1)
movsd  (%r8,%rax,8),%xmm1
ucomisd %xmm0,%xmm1
jne    1152 <dispoly+0x42>
jnp    1408 <dispoly+0x2f8>
add    $0x1,%rax
cmp    %rax,%r15
jne    1140 <dispoly+0x30>
movslq 0x30(%rsi),%rax
lea    (%r14,%rax,8),%r11
mov    0x14(%rsi),%r10d
test   %r10d,%r10d
mov    %rsi,0x48(%rsp)
jle    1339 <dispoly+0x229>
mov    0x18(%rsp),%rax
add    $0x1,%eax
cltq
mov    %rax,0x10(%rsp)
mov    %r15d,%eax
and    $0xfffffffe,%eax
mov    %rax,0x30(%rsp)
xor    %r12d,%r12d
mov    %r14,0x50(%rsp)
mov    %r8,0x20(%rsp)
mov    %r15,0x40(%rsp)
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movslq 0x1c(%rsi),%rax
movslq %r12d,%rcx
imul   %rax,%rcx
lea    (%r14,%rcx,8),%rbx
movsd  (%r14,%rcx,8),%xmm0
movsd  %xmm0,(%r11,%r12,8)
mov    0x10(%rsp),%rax
movsd  (%rbx,%rax,8),%xmm1
cmpl   $0x0,0x18(%rsp)
mov    %r11,%rbp
jle    12fa <dispoly+0x1ea>
mov    0x10(%rsp),%rax
lea    (%rbx,%rax,8),%r13
cmpl   $0x1,0x18(%rsp)
movsd  %xmm1,0x38(%rsp)
jne    1210 <dispoly+0x100>
xor    %r15d,%r15d
jmp    12ad <dispoly+0x19d>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movsd  0x8(%rbx),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x0(,%r15,8),%r14
mov    0x20(%rsp),%rax
movsd  (%rax,%r15,8),%xmm0
movsd  0x8(%r13),%xmm1
call   1030 <pow@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0x0(%rbp,%r12,8),%xmm0
movsd  %xmm0,0x0(%rbp,%r12,8)
movsd  0x10(%rbx),%xmm0
movsd  %xmm0,0x8(%rsp)
add    $0x10,%rbx
or     $0x8,%r14
mov    0x20(%rsp),%rax
movsd  (%rax,%r14,1),%xmm0
movsd  0x10(%r13),%xmm1
add    $0x10,%r13
call   1030 <pow@plt>
mulsd  0x8(%rsp),%xmm0
addsd  0x0(%rbp,%r12,8),%xmm0
movsd  %xmm0,0x0(%rbp,%r12,8)
add    $0x2,%r15
cmp    0x30(%rsp),%r15
jne    1220 <dispoly+0x110>
testb  $0x1,0x40(%rsp)
mov    0x50(%rsp),%r14
movsd  0x38(%rsp),%xmm1
je     12fa <dispoly+0x1ea>
movsd  0x8(%rbx),%xmm0
movsd  %xmm0,0x8(%rsp)
mov    0x20(%rsp),%rax
movsd  (%rax,%r15,8),%xmm0
movsd  0x8(%r13),%xmm1
call   1030 <pow@plt>
movsd  0x38(%rsp),%xmm1
mulsd  0x8(%rsp),%xmm0
addsd  0x0(%rbp,%r12,8),%xmm0
movsd  %xmm0,0x0(%rbp,%r12,8)
call   1030 <pow@plt>
movsd  %xmm0,0x0(%rbp,%r12,8)
ucomisd 0xcfa(%rip),%xmm0
mov    0x48(%rsp),%rsi
mov    0x20(%rsp),%r8
mov    0x40(%rsp),%r15
jne    1325 <dispoly+0x215>
jnp    1408 <dispoly+0x2f8>
mov    %rbp,%r11
add    $0x1,%r12
movslq 0x14(%rsi),%r10
cmp    %r10,%r12
jl     11b0 <dispoly+0xa0>
movslq 0x38(%rsi),%rax
lea    (%rsi,%rax,4),%r9
movslq 0x34(%rsi),%rax
lea    (%r14,%rax,8),%rcx
mov    %r9,%rax
mov    %rcx,0x10(%rsp)
cmpl   $0x0,0x18(%rsp)
jle    1419 <dispoly+0x309>
xor    %edx,%edx
movsd  0xc9a(%rip),%xmm0
mov    0x10(%rsp),%rcx
mov    %r9,%rax
jmp    1381 <dispoly+0x271>
add    $0x1,%rdx
add    $0x4,%rax
cmp    %r15,%rdx
je     1419 <dispoly+0x309>
mov    (%rax),%ebx
test   %ebx,%ebx
jle    1370 <dispoly+0x260>
lea    -0x1(%rbx),%ebp
mov    %ebx,%edi
and    $0x3,%edi
cmp    $0x3,%ebp
jae    13a0 <dispoly+0x290>
movapd %xmm0,%xmm1
jmp    13e4 <dispoly+0x2d4>
nopw   0x0(%rax,%rax,1)
and    $0xfffffffc,%ebx
movapd %xmm0,%xmm1
nopw   0x0(%rax,%rax,1)
mulsd  (%r8,%rdx,8),%xmm1
movsd  %xmm1,(%rcx)
mulsd  (%r8,%rdx,8),%xmm1
movsd  %xmm1,0x8(%rcx)
mulsd  (%r8,%rdx,8),%xmm1
movsd  %xmm1,0x10(%rcx)
mulsd  (%r8,%rdx,8),%xmm1
movsd  %xmm1,0x18(%rcx)
add    $0x20,%rcx
add    $0xfffffffc,%ebx
jne    13b0 <dispoly+0x2a0>
test   %edi,%edi
je     1370 <dispoly+0x260>
nopl   0x0(%rax,%rax,1)
mulsd  (%r8,%rdx,8),%xmm1
movsd  %xmm1,(%rcx)
add    $0x8,%rcx
add    $0xffffffff,%edi
jne    13f0 <dispoly+0x2e0>
jmp    1370 <dispoly+0x260>
mov    0x28(%rsp),%rax
movq   $0x0,(%rax)
jmp    15f6 <dispoly+0x4e6>
test   %r10d,%r10d
mov    0x28(%rsp),%r12
jle    14d8 <dispoly+0x3c8>
mov    %r10d,%r8d
xor    %edx,%edx
movsd  0xbcc(%rip),%xmm0
jmp    1451 <dispoly+0x341>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rdx
add    $0x4,%rax
cmp    %r8,%rdx
je     14d8 <dispoly+0x3c8>
mov    (%rax),%ebx
test   %ebx,%ebx
jle    1440 <dispoly+0x330>
lea    -0x1(%rbx),%r10d
mov    %ebx,%edi
and    $0x3,%edi
cmp    $0x3,%r10d
jae    1470 <dispoly+0x360>
movapd %xmm0,%xmm1
jmp    14b4 <dispoly+0x3a4>
nopl   0x0(%rax)
and    $0xfffffffc,%ebx
movapd %xmm0,%xmm1
nopw   0x0(%rax,%rax,1)
mulsd  (%r11,%rdx,8),%xmm1
movsd  %xmm1,(%rcx)
mulsd  (%r11,%rdx,8),%xmm1
movsd  %xmm1,0x8(%rcx)
mulsd  (%r11,%rdx,8),%xmm1
movsd  %xmm1,0x10(%rcx)
mulsd  (%r11,%rdx,8),%xmm1
movsd  %xmm1,0x18(%rcx)
add    $0x20,%rcx
add    $0xfffffffc,%ebx
jne    1480 <dispoly+0x370>
test   %edi,%edi
je     1440 <dispoly+0x330>
nopl   0x0(%rax,%rax,1)
mulsd  (%r11,%rdx,8),%xmm1
movsd  %xmm1,(%rcx)
add    $0x8,%rcx
add    $0xffffffff,%edi
jne    14c0 <dispoly+0x3b0>
jmp    1440 <dispoly+0x330>
movq   $0x0,(%r12)
mov    0x18(%rsi),%ecx
test   %ecx,%ecx
jle    15f6 <dispoly+0x4e6>
movslq 0x2c(%rsi),%rax
lea    (%r14,%rax,8),%rdx
movslq 0x44(%rsi),%rax
lea    (%rsi,%rax,4),%rbp
movslq 0x40(%rsi),%rax
lea    (%rsi,%rax,4),%rdi
addq   $0xfffffffffffffff8,0x10(%rsp)
mov    0x24(%rsi),%eax
xor    %ebx,%ebx
xorpd  %xmm0,%xmm0
mov    %r9,0x30(%rsp)
jmp    1550 <dispoly+0x440>
nopl   0x0(%rax)
mov    0x28(%rsp),%r12
movsd  (%r12),%xmm0
mov    0x18(%rsi),%ecx
add    %r15,%rbp
add    %r15,%rdi
mov    %r13,%rdx
mov    0x18(%rsp),%ebx
addsd  %xmm1,%xmm0
movsd  %xmm0,(%r12)
add    $0x1,%ebx
cmp    %ecx,%ebx
jge    15f6 <dispoly+0x4e6>
movsd  (%rdx),%xmm1
add    $0x8,%rdx
test   %eax,%eax
jle    153b <dispoly+0x42b>
mov    %ebx,0x18(%rsp)
xor    %r15d,%r15d
mov    %rdx,%r13
xor    %r14d,%r14d
mov    0x10(%rsp),%r12
mov    %rdx,0x8(%rsp)
jmp    15cd <dispoly+0x4bd>
movsd  (%r12),%xmm0
movsd  %xmm1,0x20(%rsp)
movsd  (%rdx,%r15,2),%xmm1
mov    %rdi,%rbx
call   1030 <pow@plt>
movsd  0x20(%rsp),%xmm1
mov    0x8(%rsp),%rdx
mov    %rbx,%rdi
mov    0x30(%rsp),%r9
mov    0x48(%rsp),%rsi
mulsd  %xmm0,%xmm1
mov    0x24(%rsi),%eax
xchg   %ax,%ax
movslq (%r9,%r15,1),%rcx
lea    (%r12,%rcx,8),%r12
add    $0x1,%r14d
add    $0x8,%r13
add    $0x4,%r15
cmp    %eax,%r14d
jge    1520 <dispoly+0x410>
mov    (%rdi,%r15,1),%ecx
test   $0x2,%cl
jne    15b0 <dispoly+0x4a0>
test   %ecx,%ecx
je     1575 <dispoly+0x465>
movslq 0x0(%rbp,%r15,1),%rcx
test   %rcx,%rcx
js     15ee <dispoly+0x4de>
mov    %ecx,%ecx
mulsd  (%r12,%rcx,8),%xmm1
jmp    15b0 <dispoly+0x4a0>
divsd  (%r12,%rcx,8),%xmm1
jmp    15b0 <dispoly+0x4a0>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @dispoly(i32 %0, i32* %1, double* %2, i32 %3, double* %4, double* %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32*
%10 = alloca double*
%11 = alloca i32
%12 = alloca double*
%13 = alloca double*
%14 = alloca i32
%15 = alloca double*
%16 = alloca i32
%17 = alloca double*
%18 = alloca double*
%19 = alloca double
%20 = alloca i32
%21 = alloca i32*
%22 = alloca double*
%23 = alloca i32*
%24 = alloca double*
%25 = alloca i32
%26 = alloca double
%27 = alloca i32
%28 = alloca i32
%29 = alloca double
%30 = alloca i32
%31 = alloca i32*
%32 = alloca i32*
%33 = alloca double*
%34 = alloca i32
%35 = alloca double
%36 = alloca i32
store i32 %0, i32* %8
store i32* %1, i32** %9
store double* %2, double** %10
store i32 %3, i32* %11
store double* %4, double** %12
store double* %5, double** %13
%37 = load i32, i32* %8
store i32 0, i32* %14
br label %38
38: ; preds = %52, %6
%39 = load i32, i32* %14
%40 = load i32, i32* %11
%41 = icmp slt i32 %39, %40
br i1 %41, label %42, label %55
42: ; preds = %38
%43 = load double*, double** %12
%44 = load i32, i32* %14
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds double, double* %43, i64 %45
%47 = load double, double* %46
%48 = fcmp oeq double %47, 0.000000e+00
br i1 %48, label %49, label %51
49: ; preds = %42
%50 = load double*, double** %13
store double 0.000000e+00, double* %50
store i32 0, i32* %7
br label %330
51: ; preds = %42
br label %52
52: ; preds = %51
%53 = load i32, i32* %14
%54 = add nsw i32 %53, 1
store i32 %54, i32* %14
br label %38
55: ; preds = %38
%56 = load double*, double** %10
%57 = load i32*, i32** %9
%58 = getelementptr inbounds i32, i32* %57, i64 12
%59 = load i32, i32* %58
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds double, double* %56, i64 %60
store double* %61, double** %15
store i32 0, i32* %16
br label %62
62: ; preds = %139, %55
%63 = load i32, i32* %16
%64 = load i32*, i32** %9
%65 = getelementptr inbounds i32, i32* %64, i64 5
%66 = load i32, i32* %65
%67 = icmp slt i32 %63, %66
br i1 %67, label %68, label %142
68: ; preds = %62
%69 = load double*, double** %10
%70 = load i32, i32* %16
%71 = load i32*, i32** %9
%72 = getelementptr inbounds i32, i32* %71, i64 7
%73 = load i32, i32* %72
%74 = mul nsw i32 %70, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %69, i64 %75
store double* %76, double** %17
%77 = load double*, double** %17
%78 = load i32, i32* %11
%79 = add nsw i32 1, %78
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds double, double* %77, i64 %80
store double* %81, double** %18
%82 = load double*, double** %17
%83 = getelementptr inbounds double, double* %82, i32 1
store double* %83, double** %17
%84 = load double, double* %82
%85 = load double*, double** %15
%86 = load i32, i32* %16
%87 = sext i32 %86 to i64
%88 = getelementptr inbounds double, double* %85, i64 %87
store double %84, double* %88
%89 = load double*, double** %18
%90 = getelementptr inbounds double, double* %89, i32 1
store double* %90, double** %18
%91 = load double, double* %89
store double %91, double* %19
store i32 0, i32* %20
br label %92
92: ; preds = %115, %68
%93 = load i32, i32* %20
%94 = load i32, i32* %11
%95 = icmp slt i32 %93, %94
br i1 %95, label %96, label %118
96: ; preds = %92
%97 = load double*, double** %17
%98 = getelementptr inbounds double, double* %97, i32 1
store double* %98, double** %17
%99 = load double, double* %97
%100 = load double*, double** %12
%101 = load i32, i32* %20
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds double, double* %100, i64 %102
%104 = load double, double* %103
%105 = load double*, double** %18
%106 = getelementptr inbounds double, double* %105, i32 1
store double* %106, double** %18
%107 = load double, double* %105
%108 = call double @pow(double %104, double %107)
%109 = load double*, double** %15
%110 = load i32, i32* %16
%111 = sext i32 %110 to i64
%112 = getelementptr inbounds double, double* %109, i64 %111
%113 = load double, double* %112
%114 = call double @llvm.fmuladd.f64(double %99, double %108, double %113)
store double %114, double* %112
br label %115
115: ; preds = %96
%116 = load i32, i32* %20
%117 = add nsw i32 %116, 1
store i32 %117, i32* %20
br label %92
118: ; preds = %92
%119 = load double*, double** %15
%120 = load i32, i32* %16
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds double, double* %119, i64 %121
%123 = load double, double* %122
%124 = load double, double* %19
%125 = call double @pow(double %123, double %124)
%126 = load double*, double** %15
%127 = load i32, i32* %16
%128 = sext i32 %127 to i64
%129 = getelementptr inbounds double, double* %126, i64 %128
store double %125, double* %129
%130 = load double*, double** %15
%131 = load i32, i32* %16
%132 = sext i32 %131 to i64
%133 = getelementptr inbounds double, double* %130, i64 %132
%134 = load double, double* %133
%135 = fcmp oeq double %134, 0.000000e+00
br i1 %135, label %136, label %138
136: ; preds = %118
%137 = load double*, double** %13
store double 0.000000e+00, double* %137
store i32 0, i32* %7
br label %330
138: ; preds = %118
br label %139
139: ; preds = %138
%140 = load i32, i32* %16
%141 = add nsw i32 %140, 1
store i32 %141, i32* %16
br label %62
142: ; preds = %62
%143 = load i32*, i32** %9
%144 = load i32*, i32** %9
%145 = getelementptr inbounds i32, i32* %144, i64 14
%146 = load i32, i32* %145
%147 = sext i32 %146 to i64
%148 = getelementptr inbounds i32, i32* %143, i64 %147
store i32* %148, i32** %21
%149 = load double*, double** %10
%150 = load i32*, i32** %9
%151 = getelementptr inbounds i32, i32* %150, i64 13
%152 = load i32, i32* %151
%153 = sext i32 %152 to i64
%154 = getelementptr inbounds double, double* %149, i64 %153
store double* %154, double** %22
%155 = load i32*, i32** %21
store i32* %155, i32** %23
%156 = load double*, double** %22
store double* %156, double** %24
store i32 0, i32* %25
br label %157
157: ; preds = %183, %142
%158 = load i32, i32* %25
%159 = load i32, i32* %11
%160 = icmp slt i32 %158, %159
br i1 %160, label %161, label %188
161: ; preds = %157
store double 1.000000e+00, double* %26
store i32 0, i32* %27
br label %162
162: ; preds = %177, %161
%163 = load i32, i32* %27
%164 = load i32*, i32** %23
%165 = load i32, i32* %164
%166 = icmp slt i32 %163, %165
br i1 %166, label %167, label %182
167: ; preds = %162
%168 = load double*, double** %12
%169 = load i32, i32* %25
%170 = sext i32 %169 to i64
%171 = getelementptr inbounds double, double* %168, i64 %170
%172 = load double, double* %171
%173 = load double, double* %26
%174 = fmul double %173, %172
store double %174, double* %26
%175 = load double, double* %26
%176 = load double*, double** %24
store double %175, double* %176
br label %177
177: ; preds = %167
%178 = load i32, i32* %27
%179 = add nsw i32 %178, 1
store i32 %179, i32* %27
%180 = load double*, double** %24
%181 = getelementptr inbounds double, double* %180, i32 1
store double* %181, double** %24
br label %162
182: ; preds = %162
br label %183
183: ; preds = %182
%184 = load i32, i32* %25
%185 = add nsw i32 %184, 1
store i32 %185, i32* %25
%186 = load i32*, i32** %23
%187 = getelementptr inbounds i32, i32* %186, i32 1
store i32* %187, i32** %23
br label %157
188: ; preds = %157
store i32 0, i32* %28
br label %189
189: ; preds = %217, %188
%190 = load i32, i32* %28
%191 = load i32*, i32** %9
%192 = getelementptr inbounds i32, i32* %191, i64 5
%193 = load i32, i32* %192
%194 = icmp slt i32 %190, %193
br i1 %194, label %195, label %222
195: ; preds = %189
store double 1.000000e+00, double* %29
store i32 0, i32* %30
br label %196
196: ; preds = %211, %195
%197 = load i32, i32* %30
%198 = load i32*, i32** %23
%199 = load i32, i32* %198
%200 = icmp slt i32 %197, %199
br i1 %200, label %201, label %216
201: ; preds = %196
%202 = load double*, double** %15
%203 = load i32, i32* %28
%204 = sext i32 %203 to i64
%205 = getelementptr inbounds double, double* %202, i64 %204
%206 = load double, double* %205
%207 = load double, double* %29
%208 = fmul double %207, %206
store double %208, double* %29
%209 = load double, double* %29
%210 = load double*, double** %24
store double %209, double* %210
br label %211
211: ; preds = %201
%212 = load i32, i32* %30
%213 = add nsw i32 %212, 1
store i32 %213, i32* %30
%214 = load double*, double** %24
%215 = getelementptr inbounds double, double* %214, i32 1
store double* %215, double** %24
br label %196
216: ; preds = %196
br label %217
217: ; preds = %216
%218 = load i32, i32* %28
%219 = add nsw i32 %218, 1
store i32 %219, i32* %28
%220 = load i32*, i32** %23
%221 = getelementptr inbounds i32, i32* %220, i32 1
store i32* %221, i32** %23
br label %189
222: ; preds = %189
%223 = load double*, double** %13
store double 0.000000e+00, double* %223
%224 = load i32*, i32** %9
%225 = load i32*, i32** %9
%226 = getelementptr inbounds i32, i32* %225, i64 16
%227 = load i32, i32* %226
%228 = sext i32 %227 to i64
%229 = getelementptr inbounds i32, i32* %224, i64 %228
store i32* %229, i32** %31
%230 = load i32*, i32** %9
%231 = load i32*, i32** %9
%232 = getelementptr inbounds i32, i32* %231, i64 17
%233 = load i32, i32* %232
%234 = sext i32 %233 to i64
%235 = getelementptr inbounds i32, i32* %230, i64 %234
store i32* %235, i32** %32
%236 = load double*, double** %10
%237 = load i32*, i32** %9
%238 = getelementptr inbounds i32, i32* %237, i64 11
%239 = load i32, i32* %238
%240 = sext i32 %239 to i64
%241 = getelementptr inbounds double, double* %236, i64 %240
store double* %241, double** %33
store i32 0, i32* %34
br label %242
242: ; preds = %326, %222
%243 = load i32, i32* %34
%244 = load i32*, i32** %9
%245 = getelementptr inbounds i32, i32* %244, i64 6
%246 = load i32, i32* %245
%247 = icmp slt i32 %243, %246
br i1 %247, label %248, label %329
248: ; preds = %242
%249 = load double*, double** %33
%250 = getelementptr inbounds double, double* %249, i32 1
store double* %250, double** %33
%251 = load double, double* %249
store double %251, double* %35
%252 = load i32*, i32** %21
store i32* %252, i32** %23
%253 = load double*, double** %22
%254 = getelementptr inbounds double, double* %253, i64 -1
store double* %254, double** %24
store i32 0, i32* %36
br label %255
255: ; preds = %318, %248
%256 = load i32, i32* %36
%257 = load i32*, i32** %9
%258 = getelementptr inbounds i32, i32* %257, i64 9
%259 = load i32, i32* %258
%260 = icmp slt i32 %256, %259
br i1 %260, label %261, label %321
261: ; preds = %255
%262 = load i32*, i32** %31
%263 = load i32, i32* %262
%264 = and i32 %263, 2
%265 = icmp ne i32 %264, 0
br i1 %265, label %266, label %267
266: ; preds = %261
br label %304
267: ; preds = %261
%268 = load i32*, i32** %31
%269 = load i32, i32* %268
%270 = icmp ne i32 %269, 0
br i1 %270, label %271, label %294
271: ; preds = %267
%272 = load i32*, i32** %32
%273 = load i32, i32* %272
%274 = icmp slt i32 %273, 0
br i1 %274, label %275, label %284
275: ; preds = %271
%276 = load double*, double** %24
%277 = load i32*, i32** %32
%278 = load i32, i32* %277
%279 = sext i32 %278 to i64
%280 = getelementptr inbounds double, double* %276, i64 %279
%281 = load double, double* %280
%282 = load double, double* %35
%283 = fdiv double %282, %281
store double %283, double* %35
br label %293
284: ; preds = %271
%285 = load double*, double** %24
%286 = load i32*, i32** %32
%287 = load i32, i32* %286
%288 = sext i32 %287 to i64
%289 = getelementptr inbounds double, double* %285, i64 %288
%290 = load double, double* %289
%291 = load double, double* %35
%292 = fmul double %291, %290
store double %292, double* %35
br label %293
293: ; preds = %284, %275
br label %303
294: ; preds = %267
%295 = load double*, double** %24
%296 = getelementptr inbounds double, double* %295, i64 0
%297 = load double, double* %296
%298 = load double*, double** %33
%299 = load double, double* %298
%300 = call double @pow(double %297, double %299)
%301 = load double, double* %35
%302 = fmul double %301, %300
store double %302, double* %35
br label %303
303: ; preds = %294, %293
br label %304
304: ; preds = %303, %266
%305 = load i32*, i32** %31
%306 = getelementptr inbounds i32, i32* %305, i32 1
store i32* %306, i32** %31
%307 = load i32*, i32** %32
%308 = getelementptr inbounds i32, i32* %307, i32 1
store i32* %308, i32** %32
%309 = load double*, double** %33
%310 = getelementptr inbounds double, double* %309, i32 1
store double* %310, double** %33
%311 = load i32*, i32** %23
%312 = load i32, i32* %311
%313 = load double*, double** %24
%314 = sext i32 %312 to i64
%315 = getelementptr inbounds double, double* %313, i64 %314
store double* %315, double** %24
%316 = load i32*, i32** %23
%317 = getelementptr inbounds i32, i32* %316, i32 1
store i32* %317, i32** %23
br label %318
318: ; preds = %304
%319 = load i32, i32* %36
%320 = add nsw i32 %319, 1
store i32 %320, i32* %36
br label %255
321: ; preds = %255
%322 = load double, double* %35
%323 = load double*, double** %13
%324 = load double, double* %323
%325 = fadd double %324, %322
store double %325, double* %323
br label %326
326: ; preds = %321
%327 = load i32, i32* %34
%328 = add nsw i32 %327, 1
store i32 %328, i32* %34
br label %242
329: ; preds = %242
store i32 0, i32* %7
br label %330
330: ; preds = %329, %136, %49
%331 = load i32, i32* %7
ret i32 %331
}

LLVM IR (-O2):
define i32 @dispoly(i32 %0, i32* nocapture %1, double* nocapture %2, i32 %3, double* nocapture %4, double* nocapture %5) {
%7 = icmp sgt i32 %3, 0
br i1 %7, label %8, label %18
8: ; preds = %6
%9 = zext i32 %3 to i64
br label %12
10: ; preds = %12
%11 = icmp eq i64 %17, %9
br i1 %11, label %18, label %12
12: ; preds = %8, %10
%13 = phi i64 [ 0, %8 ], [ %17, %10 ]
%14 = getelementptr inbounds double, double* %4, i64 %13
%15 = load double, double* %14
%16 = fcmp oeq double %15, 0.000000e+00
%17 = add nuw nsw i64 %13, 1
br i1 %16, label %308, label %10
18: ; preds = %10, %6
%19 = getelementptr inbounds i32, i32* %1, i64 12
%20 = load i32, i32* %19
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds double, double* %2, i64 %21
%23 = getelementptr inbounds i32, i32* %1, i64 5
%24 = load i32, i32* %23
%25 = icmp sgt i32 %24, 0
br i1 %25, label %26, label %98
26: ; preds = %18
%27 = getelementptr inbounds i32, i32* %1, i64 7
%28 = add nsw i32 %3, 1
%29 = sext i32 %28 to i64
%30 = zext i32 %3 to i64
%31 = and i64 %30, 1
%32 = icmp eq i32 %3, 1
%33 = and i64 %30, 4294967294
%34 = icmp eq i64 %31, 0
br label %39
35: ; preds = %66
%36 = load i32, i32* %23
%37 = sext i32 %36 to i64
%38 = icmp slt i64 %70, %37
br i1 %38, label %39, label %98
39: ; preds = %26, %35
%40 = phi i64 [ 0, %26 ], [ %70, %35 ]
%41 = load i32, i32* %27
%42 = trunc i64 %40 to i32
%43 = mul nsw i32 %41, %42
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds double, double* %2, i64 %44
%46 = getelementptr inbounds double, double* %45, i64 %29
%47 = load double, double* %45
%48 = getelementptr inbounds double, double* %22, i64 %40
store double %47, double* %48
%49 = load double, double* %46
br i1 %7, label %50, label %66
50: ; preds = %39
br i1 %32, label %51, label %71
51: ; preds = %71, %50
%52 = phi double [ undef, %50 ], [ %94, %71 ]
%53 = phi i64 [ 0, %50 ], [ %95, %71 ]
%54 = phi double* [ %45, %50 ], [ %87, %71 ]
%55 = phi double* [ %46, %50 ], [ %86, %71 ]
br i1 %34, label %66, label %56
56: ; preds = %51
%57 = getelementptr inbounds double, double* %55, i64 1
%58 = getelementptr inbounds double, double* %54, i64 1
%59 = load double, double* %58
%60 = getelementptr inbounds double, double* %4, i64 %53
%61 = load double, double* %60
%62 = load double, double* %57
%63 = tail call double @pow(double %61, double %62)
%64 = load double, double* %48
%65 = tail call double @llvm.fmuladd.f64(double %59, double %63, double %64)
store double %65, double* %48
br label %66
66: ; preds = %56, %51, %39
%67 = phi double [ %47, %39 ], [ %52, %51 ], [ %65, %56 ]
%68 = tail call double @pow(double %67, double %49)
store double %68, double* %48
%69 = fcmp oeq double %68, 0.000000e+00
%70 = add nuw nsw i64 %40, 1
br i1 %69, label %308, label %35
71: ; preds = %50, %71
%72 = phi i64 [ %95, %71 ], [ 0, %50 ]
%73 = phi double* [ %87, %71 ], [ %45, %50 ]
%74 = phi double* [ %86, %71 ], [ %46, %50 ]
%75 = phi i64 [ %96, %71 ], [ 0, %50 ]
%76 = getelementptr inbounds double, double* %74, i64 1
%77 = getelementptr inbounds double, double* %73, i64 1
%78 = load double, double* %77
%79 = getelementptr inbounds double, double* %4, i64 %72
%80 = load double, double* %79
%81 = load double, double* %76
%82 = tail call double @pow(double %80, double %81)
%83 = load double, double* %48
%84 = tail call double @llvm.fmuladd.f64(double %78, double %82, double %83)
store double %84, double* %48
%85 = or i64 %72, 1
%86 = getelementptr inbounds double, double* %74, i64 2
%87 = getelementptr inbounds double, double* %73, i64 2
%88 = load double, double* %87
%89 = getelementptr inbounds double, double* %4, i64 %85
%90 = load double, double* %89
%91 = load double, double* %86
%92 = tail call double @pow(double %90, double %91)
%93 = load double, double* %48
%94 = tail call double @llvm.fmuladd.f64(double %88, double %92, double %93)
store double %94, double* %48
%95 = add nuw nsw i64 %72, 2
%96 = add i64 %75, 2
%97 = icmp eq i64 %96, %33
br i1 %97, label %51, label %71
98: ; preds = %35, %18
%99 = phi i32 [ %24, %18 ], [ %36, %35 ]
%100 = getelementptr inbounds i32, i32* %1, i64 14
%101 = load i32, i32* %100
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds i32, i32* %1, i64 %102
%104 = getelementptr inbounds i32, i32* %1, i64 13
%105 = load i32, i32* %104
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %2, i64 %106
br i1 %7, label %108, label %123
108: ; preds = %98
%109 = zext i32 %3 to i64
br label %110
110: ; preds = %108, %143
%111 = phi i64 [ 0, %108 ], [ %145, %143 ]
%112 = phi double* [ %107, %108 ], [ %144, %143 ]
%113 = phi i32* [ %103, %108 ], [ %146, %143 ]
%114 = load i32, i32* %113
%115 = icmp sgt i32 %114, 0
br i1 %115, label %116, label %143
116: ; preds = %110
%117 = getelementptr inbounds double, double* %4, i64 %111
%118 = add i32 %114, -1
%119 = and i32 %114, 3
%120 = icmp ult i32 %118, 3
br i1 %120, label %129, label %121
121: ; preds = %116
%122 = and i32 %114, -4
br label %148
123: ; preds = %143, %98
%124 = phi i32* [ %103, %98 ], [ %146, %143 ]
%125 = phi double* [ %107, %98 ], [ %144, %143 ]
%126 = icmp sgt i32 %99, 0
br i1 %126, label %127, label %179
127: ; preds = %123
%128 = zext i32 %99 to i64
br label %166
129: ; preds = %148, %116
%130 = phi double* [ undef, %116 ], [ %163, %148 ]
%131 = phi double [ 1.000000e+00, %116 ], [ %162, %148 ]
%132 = phi double* [ %112, %116 ], [ %163, %148 ]
%133 = icmp eq i32 %119, 0
br i1 %133, label %143, label %134
134: ; preds = %129, %134
%135 = phi double [ %139, %134 ], [ %131, %129 ]
%136 = phi double* [ %140, %134 ], [ %132, %129 ]
%137 = phi i32 [ %141, %134 ], [ 0, %129 ]
%138 = load double, double* %117
%139 = fmul double %135, %138
store double %139, double* %136
%140 = getelementptr inbounds double, double* %136, i64 1
%141 = add i32 %137, 1
%142 = icmp eq i32 %141, %119
br i1 %142, label %143, label %134
143: ; preds = %129, %134, %110
%144 = phi double* [ %112, %110 ], [ %130, %129 ], [ %140, %134 ]
%145 = add nuw nsw i64 %111, 1
%146 = getelementptr inbounds i32, i32* %113, i64 1
%147 = icmp eq i64 %145, %109
br i1 %147, label %123, label %110
148: ; preds = %148, %121
%149 = phi double [ 1.000000e+00, %121 ], [ %162, %148 ]
%150 = phi double* [ %112, %121 ], [ %163, %148 ]
%151 = phi i32 [ 0, %121 ], [ %164, %148 ]
%152 = load double, double* %117
%153 = fmul double %149, %152
store double %153, double* %150
%154 = getelementptr inbounds double, double* %150, i64 1
%155 = load double, double* %117
%156 = fmul double %153, %155
store double %156, double* %154
%157 = getelementptr inbounds double, double* %150, i64 2
%158 = load double, double* %117
%159 = fmul double %156, %158
store double %159, double* %157
%160 = getelementptr inbounds double, double* %150, i64 3
%161 = load double, double* %117
%162 = fmul double %159, %161
store double %162, double* %160
%163 = getelementptr inbounds double, double* %150, i64 4
%164 = add i32 %151, 4
%165 = icmp eq i32 %164, %122
br i1 %165, label %129, label %148
166: ; preds = %127, %213
%167 = phi i64 [ 0, %127 ], [ %215, %213 ]
%168 = phi double* [ %125, %127 ], [ %214, %213 ]
%169 = phi i32* [ %124, %127 ], [ %216, %213 ]
%170 = load i32, i32* %169
%171 = icmp sgt i32 %170, 0
br i1 %171, label %172, label %213
172: ; preds = %166
%173 = getelementptr inbounds double, double* %22, i64 %167
%174 = add i32 %170, -1
%175 = and i32 %170, 3
%176 = icmp ult i32 %174, 3
br i1 %176, label %199, label %177
177: ; preds = %172
%178 = and i32 %170, -4
br label %218
179: ; preds = %213, %123
store double 0.000000e+00, double* %5
%180 = getelementptr inbounds i32, i32* %1, i64 6
%181 = load i32, i32* %180
%182 = icmp sgt i32 %181, 0
br i1 %182, label %183, label %309
183: ; preds = %179
%184 = getelementptr inbounds i32, i32* %1, i64 11
%185 = load i32, i32* %184
%186 = sext i32 %185 to i64
%187 = getelementptr inbounds double, double* %2, i64 %186
%188 = getelementptr inbounds i32, i32* %1, i64 17
%189 = load i32, i32* %188
%190 = sext i32 %189 to i64
%191 = getelementptr inbounds i32, i32* %1, i64 %190
%192 = getelementptr inbounds i32, i32* %1, i64 16
%193 = load i32, i32* %192
%194 = sext i32 %193 to i64
%195 = getelementptr inbounds i32, i32* %1, i64 %194
%196 = getelementptr inbounds double, double* %107, i64 -1
%197 = getelementptr inbounds i32, i32* %1, i64 9
%198 = load i32, i32* %197
br label %236
199: ; preds = %218, %172
%200 = phi double* [ undef, %172 ], [ %233, %218 ]
%201 = phi double [ 1.000000e+00, %172 ], [ %232, %218 ]
%202 = phi double* [ %168, %172 ], [ %233, %218 ]
%203 = icmp eq i32 %175, 0
br i1 %203, label %213, label %204
204: ; preds = %199, %204
%205 = phi double [ %209, %204 ], [ %201, %199 ]
%206 = phi double* [ %210, %204 ], [ %202, %199 ]
%207 = phi i32 [ %211, %204 ], [ 0, %199 ]
%208 = load double, double* %173
%209 = fmul double %205, %208
store double %209, double* %206
%210 = getelementptr inbounds double, double* %206, i64 1
%211 = add i32 %207, 1
%212 = icmp eq i32 %211, %175
br i1 %212, label %213, label %204
213: ; preds = %199, %204, %166
%214 = phi double* [ %168, %166 ], [ %200, %199 ], [ %210, %204 ]
%215 = add nuw nsw i64 %167, 1
%216 = getelementptr inbounds i32, i32* %169, i64 1
%217 = icmp eq i64 %215, %128
br i1 %217, label %179, label %166
218: ; preds = %218, %177
%219 = phi double [ 1.000000e+00, %177 ], [ %232, %218 ]
%220 = phi double* [ %168, %177 ], [ %233, %218 ]
%221 = phi i32 [ 0, %177 ], [ %234, %218 ]
%222 = load double, double* %173
%223 = fmul double %219, %222
store double %223, double* %220
%224 = getelementptr inbounds double, double* %220, i64 1
%225 = load double, double* %173
%226 = fmul double %223, %225
store double %226, double* %224
%227 = getelementptr inbounds double, double* %220, i64 2
%228 = load double, double* %173
%229 = fmul double %226, %228
store double %229, double* %227
%230 = getelementptr inbounds double, double* %220, i64 3
%231 = load double, double* %173
%232 = fmul double %229, %231
store double %232, double* %230
%233 = getelementptr inbounds double, double* %220, i64 4
%234 = add i32 %221, 4
%235 = icmp eq i32 %234, %178
br i1 %235, label %199, label %218
236: ; preds = %183, %251
%237 = phi i32 [ %181, %183 ], [ %252, %251 ]
%238 = phi double [ 0.000000e+00, %183 ], [ %260, %251 ]
%239 = phi i32 [ %198, %183 ], [ %254, %251 ]
%240 = phi i32 [ %198, %183 ], [ %255, %251 ]
%241 = phi i32 [ 0, %183 ], [ %261, %251 ]
%242 = phi double* [ %187, %183 ], [ %259, %251 ]
%243 = phi i32* [ %191, %183 ], [ %257, %251 ]
%244 = phi i32* [ %195, %183 ], [ %256, %251 ]
%245 = load double, double* %242
%246 = getelementptr inbounds double, double* %242, i64 1
%247 = icmp sgt i32 %240, 0
br i1 %247, label %263, label %251
248: ; preds = %296
%249 = load double, double* %5
%250 = load i32, i32* %180
br label %251
251: ; preds = %248, %236
%252 = phi i32 [ %237, %236 ], [ %250, %248 ]
%253 = phi double [ %238, %236 ], [ %249, %248 ]
%254 = phi i32 [ %239, %236 ], [ %297, %248 ]
%255 = phi i32 [ %240, %236 ], [ %297, %248 ]
%256 = phi i32* [ %244, %236 ], [ %299, %248 ]
%257 = phi i32* [ %243, %236 ], [ %300, %248 ]
%258 = phi double [ %245, %236 ], [ %298, %248 ]
%259 = phi double* [ %246, %236 ], [ %306, %248 ]
%260 = fadd double %258, %253
store double %260, double* %5
%261 = add nuw nsw i32 %241, 1
%262 = icmp slt i32 %261, %252
br i1 %262, label %236, label %309
263: ; preds = %236, %296
%264 = phi i32 [ %297, %296 ], [ %239, %236 ]
%265 = phi double* [ %306, %296 ], [ %246, %236 ]
%266 = phi i32 [ %305, %296 ], [ 0, %236 ]
%267 = phi double [ %298, %296 ], [ %245, %236 ]
%268 = phi i32* [ %300, %296 ], [ %243, %236 ]
%269 = phi i32* [ %299, %296 ], [ %244, %236 ]
%270 = phi double* [ %303, %296 ], [ %196, %236 ]
%271 = phi i32* [ %304, %296 ], [ %103, %236 ]
%272 = load i32, i32* %269
%273 = and i32 %272, 2
%274 = icmp eq i32 %273, 0
br i1 %274, label %275, label %296
275: ; preds = %263
%276 = icmp eq i32 %272, 0
br i1 %276, label %290, label %277
277: ; preds = %275
%278 = load i32, i32* %268
%279 = icmp slt i32 %278, 0
br i1 %279, label %280, label %285
280: ; preds = %277
%281 = sext i32 %278 to i64
%282 = getelementptr inbounds double, double* %270, i64 %281
%283 = load double, double* %282
%284 = fdiv double %267, %283
br label %296
285: ; preds = %277
%286 = zext i32 %278 to i64
%287 = getelementptr inbounds double, double* %270, i64 %286
%288 = load double, double* %287
%289 = fmul double %267, %288
br label %296
290: ; preds = %275
%291 = load double, double* %270
%292 = load double, double* %265
%293 = tail call double @pow(double %291, double %292)
%294 = fmul double %267, %293
%295 = load i32, i32* %197
br label %296
296: ; preds = %290, %285, %280, %263
%297 = phi i32 [ %264, %263 ], [ %264, %280 ], [ %264, %285 ], [ %295, %290 ]
%298 = phi double [ %267, %263 ], [ %284, %280 ], [ %289, %285 ], [ %294, %290 ]
%299 = getelementptr inbounds i32, i32* %269, i64 1
%300 = getelementptr inbounds i32, i32* %268, i64 1
%301 = load i32, i32* %271
%302 = sext i32 %301 to i64
%303 = getelementptr inbounds double, double* %270, i64 %302
%304 = getelementptr inbounds i32, i32* %271, i64 1
%305 = add nuw nsw i32 %266, 1
%306 = getelementptr inbounds double, double* %265, i64 1
%307 = icmp slt i32 %305, %297
br i1 %307, label %263, label %248
308: ; preds = %12, %66
store double 0.000000e+00, double* %5
br label %309
309: ; preds = %251, %308, %179
ret i32 0
}