#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) {
  const int *iflgp, *imaxp, *imaxpow, *ipowp;
  int ip, ivar, jhat, k, m;
  const double *cptr, *dpolp, *pptr;
  double *aux, auxp0, *dvarpow, *dpowp, term, var;
  (void)dummy;
  for (jhat = 0; jhat < Nhat; jhat++) {
    if (rawcrd[jhat] == 0.0) {
      *discrd = 0.0;
      return 0;
    }
  }
  aux = (double *)(dparm + iparm[12]);
  for (k = 0; k < iparm[5]; k++) {
    cptr = dparm + k * iparm[7];
    pptr = cptr + (1 + Nhat);
    aux[k] = *(cptr++);
    auxp0 = *(pptr++);
    for (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;
    }
  }
  imaxpow = iparm + iparm[14];
  dvarpow = (double *)(dparm + iparm[13]);
  imaxp = imaxpow;
  dpowp = dvarpow;
  for (jhat = 0; jhat < Nhat; jhat++, imaxp++) {
    var = 1.0;
    for (ip = 0; ip < *imaxp; ip++, dpowp++) {
      var *= rawcrd[jhat];
      *dpowp = var;
    }
  }
  for (k = 0; k < iparm[5]; k++, imaxp++) {
    var = 1.0;
    for (ip = 0; ip < *imaxp; ip++, dpowp++) {
      var *= aux[k];
      *dpowp = var;
    }
  }
  *discrd = 0.0;
  iflgp = iparm + iparm[16];
  ipowp = iparm + iparm[17];
  dpolp = dparm + iparm[11];
  for (m = 0; m < iparm[6]; m++) {
    term = *(dpolp++);
    imaxp = imaxpow;
    dpowp = dvarpow - 1;
    for (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    $0xc0,%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,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    118e <dispoly+0x7e>
mov    -0x28(%rbp),%rax
movslq -0x5c(%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    16bd <dispoly+0x5ad>
jmp    1180 <dispoly+0x70>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%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,-0x88(%rbp)
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x14(%rcx),%eax
jge    1335 <dispoly+0x225>
mov    -0x18(%rbp),%rax
mov    -0x60(%rbp),%ecx
mov    -0x10(%rbp),%rdx
imul   0x1c(%rdx),%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x70(%rbp)
mov    -0x70(%rbp),%rax
mov    -0x1c(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x80(%rbp)
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm0
mov    -0x88(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x80(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x80(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12bb <dispoly+0x1ab>
mov    -0x70(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x70(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
mov    -0x28(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mov    -0x80(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x80(%rbp)
movsd  (%rax),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm2
movsd  -0xb8(%rbp),%xmm0
ff
mov    -0x88(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1239 <dispoly+0x129>
mov    -0x88(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
movsd  -0x90(%rbp),%xmm1
ff
call   1030 <pow@plt>
mov    -0x88(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  %xmm0,(%rax,%rcx,8)
mov    -0x88(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
xorps  %xmm1,%xmm1
ucomisd %xmm1,%xmm0
jne    1322 <dispoly+0x212>
jp     1322 <dispoly+0x212>
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
movl   $0x0,-0x4(%rbp)
jmp    16bd <dispoly+0x5ad>
jmp    1327 <dispoly+0x217>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    11af <dispoly+0x9f>
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x38(%rcx),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x34(%rcx),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x98(%rbp)
mov    -0x48(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x98(%rbp),%rax
mov    %rax,-0xa0(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1424 <dispoly+0x314>
movsd  0xc69(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x40(%rbp),%rcx
cmp    (%rcx),%eax
jge    1405 <dispoly+0x2f5>
mov    -0x28(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
mov    -0xa0(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0xa0(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xa0(%rbp)
jmp    13a6 <dispoly+0x296>
jmp    140a <dispoly+0x2fa>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x40(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x40(%rbp)
jmp    1383 <dispoly+0x273>
movl   $0x0,-0x60(%rbp)
mov    -0x60(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x14(%rcx),%eax
jge    14d3 <dispoly+0x3c3>
movsd  0xbbd(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
mov    -0x40(%rbp),%rcx
cmp    (%rcx),%eax
jge    14b4 <dispoly+0x3a4>
mov    -0x88(%rbp),%rax
movslq -0x60(%rbp),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0xb0(%rbp),%xmm0
ff
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  -0xb0(%rbp),%xmm0
ff
mov    -0xa0(%rbp),%rax
movsd  %xmm0,(%rax)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
mov    -0xa0(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0xa0(%rbp)
jmp    1452 <dispoly+0x342>
jmp    14b9 <dispoly+0x3a9>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
mov    -0x40(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x40(%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,-0x38(%rbp)
mov    -0x10(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x44(%rcx),%rcx
shl    $0x2,%rcx
add    %rcx,%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
movslq 0x2c(%rcx),%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0x78(%rbp)
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x18(%rcx),%eax
jge    16b6 <dispoly+0x5a6>
mov    -0x78(%rbp),%rax
mov    %rax,%rcx
add    $0x8,%rcx
mov    %rcx,-0x78(%rbp)
movsd  (%rax),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
mov    -0x48(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x98(%rbp),%rax
add    $0xfffffffffffffff8,%rax
mov    %rax,-0xa0(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
mov    -0x10(%rbp),%rcx
cmp    0x24(%rcx),%eax
jge    1694 <dispoly+0x584>
mov    -0x38(%rbp),%rax
mov    (%rax),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     159d <dispoly+0x48d>
jmp    1638 <dispoly+0x528>
mov    -0x38(%rbp),%rax
cmpl   $0x0,(%rax)
je     160b <dispoly+0x4fb>
mov    -0x50(%rbp),%rax
cmpl   $0x0,(%rax)
jge    15e3 <dispoly+0x4d3>
mov    -0xa0(%rbp),%rax
mov    -0x50(%rbp),%rcx
movslq (%rcx),%rcx
movsd  (%rax,%rcx,8),%xmm1
movsd  -0xa8(%rbp),%xmm0
ff
divsd  %xmm1,%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    1606 <dispoly+0x4f6>
mov    -0xa0(%rbp),%rax
mov    -0x50(%rbp),%rcx
movslq (%rcx),%rcx
movsd  (%rax,%rcx,8),%xmm0
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    1633 <dispoly+0x523>
mov    -0xa0(%rbp),%rax
movsd  (%rax),%xmm0
mov    -0x78(%rbp),%rax
movsd  (%rax),%xmm1
call   1030 <pow@plt>
mulsd  -0xa8(%rbp),%xmm0
ff
movsd  %xmm0,-0xa8(%rbp)
ff
jmp    1638 <dispoly+0x528>
mov    -0x38(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x38(%rbp)
mov    -0x50(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x50(%rbp)
mov    -0x78(%rbp),%rax
add    $0x8,%rax
mov    %rax,-0x78(%rbp)
mov    -0x40(%rbp),%rax
mov    (%rax),%ecx
mov    -0xa0(%rbp),%rax
movslq %ecx,%rcx
shl    $0x3,%rcx
add    %rcx,%rax
mov    %rax,-0xa0(%rbp)
mov    -0x40(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x40(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1576 <dispoly+0x466>
movsd  -0xa8(%rbp),%xmm0
ff
mov    -0x30(%rbp),%rax
addsd  (%rax),%xmm0
movsd  %xmm0,(%rax)
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    152a <dispoly+0x41a>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%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,%rdi
add    %r15,%rbp
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
mov    0x10(%rsp),%r14
xor    %r12d,%r12d
mov    %rdx,0x8(%rsp)
jmp    15cd <dispoly+0x4bd>
movsd  (%r14),%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
nopl   (%rax)
movslq (%r9,%r15,1),%rcx
lea    (%r14,%rcx,8),%r14
add    $0x1,%r12d
add    $0x8,%r13
add    $0x4,%r15
cmp    %eax,%r12d
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  (%r14,%rcx,8),%xmm1
jmp    15b0 <dispoly+0x4a0>
divsd  (%r14,%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 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*
%25 = alloca double*
%26 = alloca double*
%27 = alloca double
%28 = alloca double*
%29 = alloca double*
%30 = alloca double
%31 = alloca double
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
%32 = load i32, i32* %8
store i32 0, i32* %20
br label %33
33: ; preds = %47, %6
%34 = load i32, i32* %20
%35 = load i32, i32* %11
%36 = icmp slt i32 %34, %35
br i1 %36, label %37, label %50
37: ; preds = %33
%38 = load double*, double** %12
%39 = load i32, i32* %20
%40 = sext i32 %39 to i64
%41 = getelementptr inbounds double, double* %38, i64 %40
%42 = load double, double* %41
%43 = fcmp oeq double %42, 0.000000e+00
br i1 %43, label %44, label %46
44: ; preds = %37
%45 = load double*, double** %13
store double 0.000000e+00, double* %45
store i32 0, i32* %7
br label %325
46: ; preds = %37
br label %47
47: ; preds = %46
%48 = load i32, i32* %20
%49 = add nsw i32 %48, 1
store i32 %49, i32* %20
br label %33
50: ; preds = %33
%51 = load double*, double** %10
%52 = load i32*, i32** %9
%53 = getelementptr inbounds i32, i32* %52, i64 12
%54 = load i32, i32* %53
%55 = sext i32 %54 to i64
%56 = getelementptr inbounds double, double* %51, i64 %55
store double* %56, double** %26
store i32 0, i32* %21
br label %57
57: ; preds = %134, %50
%58 = load i32, i32* %21
%59 = load i32*, i32** %9
%60 = getelementptr inbounds i32, i32* %59, i64 5
%61 = load i32, i32* %60
%62 = icmp slt i32 %58, %61
br i1 %62, label %63, label %137
63: ; preds = %57
%64 = load double*, double** %10
%65 = load i32, i32* %21
%66 = load i32*, i32** %9
%67 = getelementptr inbounds i32, i32* %66, i64 7
%68 = load i32, i32* %67
%69 = mul nsw i32 %65, %68
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds double, double* %64, i64 %70
store double* %71, double** %23
%72 = load double*, double** %23
%73 = load i32, i32* %11
%74 = add nsw i32 1, %73
%75 = sext i32 %74 to i64
%76 = getelementptr inbounds double, double* %72, i64 %75
store double* %76, double** %25
%77 = load double*, double** %23
%78 = getelementptr inbounds double, double* %77, i32 1
store double* %78, double** %23
%79 = load double, double* %77
%80 = load double*, double** %26
%81 = load i32, i32* %21
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds double, double* %80, i64 %82
store double %79, double* %83
%84 = load double*, double** %25
%85 = getelementptr inbounds double, double* %84, i32 1
store double* %85, double** %25
%86 = load double, double* %84
store double %86, double* %27
store i32 0, i32* %20
br label %87
87: ; preds = %110, %63
%88 = load i32, i32* %20
%89 = load i32, i32* %11
%90 = icmp slt i32 %88, %89
br i1 %90, label %91, label %113
91: ; preds = %87
%92 = load double*, double** %23
%93 = getelementptr inbounds double, double* %92, i32 1
store double* %93, double** %23
%94 = load double, double* %92
%95 = load double*, double** %12
%96 = load i32, i32* %20
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds double, double* %95, i64 %97
%99 = load double, double* %98
%100 = load double*, double** %25
%101 = getelementptr inbounds double, double* %100, i32 1
store double* %101, double** %25
%102 = load double, double* %100
%103 = call double @pow(double %99, double %102)
%104 = load double*, double** %26
%105 = load i32, i32* %21
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds double, double* %104, i64 %106
%108 = load double, double* %107
%109 = call double @llvm.fmuladd.f64(double %94, double %103, double %108)
store double %109, double* %107
br label %110
110: ; preds = %91
%111 = load i32, i32* %20
%112 = add nsw i32 %111, 1
store i32 %112, i32* %20
br label %87
113: ; preds = %87
%114 = load double*, double** %26
%115 = load i32, i32* %21
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds double, double* %114, i64 %116
%118 = load double, double* %117
%119 = load double, double* %27
%120 = call double @pow(double %118, double %119)
%121 = load double*, double** %26
%122 = load i32, i32* %21
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds double, double* %121, i64 %123
store double %120, double* %124
%125 = load double*, double** %26
%126 = load i32, i32* %21
%127 = sext i32 %126 to i64
%128 = getelementptr inbounds double, double* %125, i64 %127
%129 = load double, double* %128
%130 = fcmp oeq double %129, 0.000000e+00
br i1 %130, label %131, label %133
131: ; preds = %113
%132 = load double*, double** %13
store double 0.000000e+00, double* %132
store i32 0, i32* %7
br label %325
133: ; preds = %113
br label %134
134: ; preds = %133
%135 = load i32, i32* %21
%136 = add nsw i32 %135, 1
store i32 %136, i32* %21
br label %57
137: ; preds = %57
%138 = load i32*, i32** %9
%139 = load i32*, i32** %9
%140 = getelementptr inbounds i32, i32* %139, i64 14
%141 = load i32, i32* %140
%142 = sext i32 %141 to i64
%143 = getelementptr inbounds i32, i32* %138, i64 %142
store i32* %143, i32** %16
%144 = load double*, double** %10
%145 = load i32*, i32** %9
%146 = getelementptr inbounds i32, i32* %145, i64 13
%147 = load i32, i32* %146
%148 = sext i32 %147 to i64
%149 = getelementptr inbounds double, double* %144, i64 %148
store double* %149, double** %28
%150 = load i32*, i32** %16
store i32* %150, i32** %15
%151 = load double*, double** %28
store double* %151, double** %29
store i32 0, i32* %20
br label %152
152: ; preds = %178, %137
%153 = load i32, i32* %20
%154 = load i32, i32* %11
%155 = icmp slt i32 %153, %154
br i1 %155, label %156, label %183
156: ; preds = %152
store double 1.000000e+00, double* %31
store i32 0, i32* %18
br label %157
157: ; preds = %172, %156
%158 = load i32, i32* %18
%159 = load i32*, i32** %15
%160 = load i32, i32* %159
%161 = icmp slt i32 %158, %160
br i1 %161, label %162, label %177
162: ; preds = %157
%163 = load double*, double** %12
%164 = load i32, i32* %20
%165 = sext i32 %164 to i64
%166 = getelementptr inbounds double, double* %163, i64 %165
%167 = load double, double* %166
%168 = load double, double* %31
%169 = fmul double %168, %167
store double %169, double* %31
%170 = load double, double* %31
%171 = load double*, double** %29
store double %170, double* %171
br label %172
172: ; preds = %162
%173 = load i32, i32* %18
%174 = add nsw i32 %173, 1
store i32 %174, i32* %18
%175 = load double*, double** %29
%176 = getelementptr inbounds double, double* %175, i32 1
store double* %176, double** %29
br label %157
177: ; preds = %157
br label %178
178: ; preds = %177
%179 = load i32, i32* %20
%180 = add nsw i32 %179, 1
store i32 %180, i32* %20
%181 = load i32*, i32** %15
%182 = getelementptr inbounds i32, i32* %181, i32 1
store i32* %182, i32** %15
br label %152
183: ; preds = %152
store i32 0, i32* %21
br label %184
184: ; preds = %212, %183
%185 = load i32, i32* %21
%186 = load i32*, i32** %9
%187 = getelementptr inbounds i32, i32* %186, i64 5
%188 = load i32, i32* %187
%189 = icmp slt i32 %185, %188
br i1 %189, label %190, label %217
190: ; preds = %184
store double 1.000000e+00, double* %31
store i32 0, i32* %18
br label %191
191: ; preds = %206, %190
%192 = load i32, i32* %18
%193 = load i32*, i32** %15
%194 = load i32, i32* %193
%195 = icmp slt i32 %192, %194
br i1 %195, label %196, label %211
196: ; preds = %191
%197 = load double*, double** %26
%198 = load i32, i32* %21
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds double, double* %197, i64 %199
%201 = load double, double* %200
%202 = load double, double* %31
%203 = fmul double %202, %201
store double %203, double* %31
%204 = load double, double* %31
%205 = load double*, double** %29
store double %204, double* %205
br label %206
206: ; preds = %196
%207 = load i32, i32* %18
%208 = add nsw i32 %207, 1
store i32 %208, i32* %18
%209 = load double*, double** %29
%210 = getelementptr inbounds double, double* %209, i32 1
store double* %210, double** %29
br label %191
211: ; preds = %191
br label %212
212: ; preds = %211
%213 = load i32, i32* %21
%214 = add nsw i32 %213, 1
store i32 %214, i32* %21
%215 = load i32*, i32** %15
%216 = getelementptr inbounds i32, i32* %215, i32 1
store i32* %216, i32** %15
br label %184
217: ; preds = %184
%218 = load double*, double** %13
store double 0.000000e+00, double* %218
%219 = load i32*, i32** %9
%220 = load i32*, i32** %9
%221 = getelementptr inbounds i32, i32* %220, i64 16
%222 = load i32, i32* %221
%223 = sext i32 %222 to i64
%224 = getelementptr inbounds i32, i32* %219, i64 %223
store i32* %224, i32** %14
%225 = load i32*, i32** %9
%226 = load i32*, i32** %9
%227 = getelementptr inbounds i32, i32* %226, i64 17
%228 = load i32, i32* %227
%229 = sext i32 %228 to i64
%230 = getelementptr inbounds i32, i32* %225, i64 %229
store i32* %230, i32** %17
%231 = load double*, double** %10
%232 = load i32*, i32** %9
%233 = getelementptr inbounds i32, i32* %232, i64 11
%234 = load i32, i32* %233
%235 = sext i32 %234 to i64
%236 = getelementptr inbounds double, double* %231, i64 %235
store double* %236, double** %24
store i32 0, i32* %22
br label %237
237: ; preds = %321, %217
%238 = load i32, i32* %22
%239 = load i32*, i32** %9
%240 = getelementptr inbounds i32, i32* %239, i64 6
%241 = load i32, i32* %240
%242 = icmp slt i32 %238, %241
br i1 %242, label %243, label %324
243: ; preds = %237
%244 = load double*, double** %24
%245 = getelementptr inbounds double, double* %244, i32 1
store double* %245, double** %24
%246 = load double, double* %244
store double %246, double* %30
%247 = load i32*, i32** %16
store i32* %247, i32** %15
%248 = load double*, double** %28
%249 = getelementptr inbounds double, double* %248, i64 -1
store double* %249, double** %29
store i32 0, i32* %19
br label %250
250: ; preds = %313, %243
%251 = load i32, i32* %19
%252 = load i32*, i32** %9
%253 = getelementptr inbounds i32, i32* %252, i64 9
%254 = load i32, i32* %253
%255 = icmp slt i32 %251, %254
br i1 %255, label %256, label %316
256: ; preds = %250
%257 = load i32*, i32** %14
%258 = load i32, i32* %257
%259 = and i32 %258, 2
%260 = icmp ne i32 %259, 0
br i1 %260, label %261, label %262
261: ; preds = %256
br label %299
262: ; preds = %256
%263 = load i32*, i32** %14
%264 = load i32, i32* %263
%265 = icmp ne i32 %264, 0
br i1 %265, label %266, label %289
266: ; preds = %262
%267 = load i32*, i32** %17
%268 = load i32, i32* %267
%269 = icmp slt i32 %268, 0
br i1 %269, label %270, label %279
270: ; preds = %266
%271 = load double*, double** %29
%272 = load i32*, i32** %17
%273 = load i32, i32* %272
%274 = sext i32 %273 to i64
%275 = getelementptr inbounds double, double* %271, i64 %274
%276 = load double, double* %275
%277 = load double, double* %30
%278 = fdiv double %277, %276
store double %278, double* %30
br label %288
279: ; preds = %266
%280 = load double*, double** %29
%281 = load i32*, i32** %17
%282 = load i32, i32* %281
%283 = sext i32 %282 to i64
%284 = getelementptr inbounds double, double* %280, i64 %283
%285 = load double, double* %284
%286 = load double, double* %30
%287 = fmul double %286, %285
store double %287, double* %30
br label %288
288: ; preds = %279, %270
br label %298
289: ; preds = %262
%290 = load double*, double** %29
%291 = getelementptr inbounds double, double* %290, i64 0
%292 = load double, double* %291
%293 = load double*, double** %24
%294 = load double, double* %293
%295 = call double @pow(double %292, double %294)
%296 = load double, double* %30
%297 = fmul double %296, %295
store double %297, double* %30
br label %298
298: ; preds = %289, %288
br label %299
299: ; preds = %298, %261
%300 = load i32*, i32** %14
%301 = getelementptr inbounds i32, i32* %300, i32 1
store i32* %301, i32** %14
%302 = load i32*, i32** %17
%303 = getelementptr inbounds i32, i32* %302, i32 1
store i32* %303, i32** %17
%304 = load double*, double** %24
%305 = getelementptr inbounds double, double* %304, i32 1
store double* %305, double** %24
%306 = load i32*, i32** %15
%307 = load i32, i32* %306
%308 = load double*, double** %29
%309 = sext i32 %307 to i64
%310 = getelementptr inbounds double, double* %308, i64 %309
store double* %310, double** %29
%311 = load i32*, i32** %15
%312 = getelementptr inbounds i32, i32* %311, i32 1
store i32* %312, i32** %15
br label %313
313: ; preds = %299
%314 = load i32, i32* %19
%315 = add nsw i32 %314, 1
store i32 %315, i32* %19
br label %250
316: ; preds = %250
%317 = load double, double* %30
%318 = load double*, double** %13
%319 = load double, double* %318
%320 = fadd double %319, %317
store double %320, double* %318
br label %321
321: ; preds = %316
%322 = load i32, i32* %22
%323 = add nsw i32 %322, 1
store i32 %323, i32* %22
br label %237
324: ; preds = %237
store i32 0, i32* %7
br label %325
325: ; preds = %324, %131, %44
%326 = load i32, i32* %7
ret i32 %326
}

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