void cdflib_cdffnc(const int *which, double *p, double *q, double *f,
                   double *dfn, double *dfd, double *phonc, int *status,
                   double *bound) {
  static const double tent4 = 1.0e4;
  static const double tol = 1.0e-8;
  static const double atol = 1.0e-50;
  static const double zero = 1.0e-300;
  static const double one = 1.0e0 - 1.0e-16;
  static const double inf = 1.0e300;
  double K1 = 0.0e0;
  double K3 = 0.5e0;
  double K4 = 5.0e0;
  double fx, cum, ccum;
  unsigned long qhi, qleft;
  double T2, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17;
  *status = 0;
  *bound = 0.0;
  if (!(*which < 1 || *which > 5)) {
    goto S30;
  }
  if (!(*which < 1)) {
    goto S10;
  }
  *bound = 1.0e0;
  goto S20;
S10:
  *bound = 5.0e0;
S20:
  *status = -1;
  return;
S30:
  if (*which == 1) {
    goto S70;
  }
  if (!(*p < 0.0e0 || *p > one)) {
    goto S60;
  }
  if (!(*p < 0.0e0)) {
    goto S40;
  }
  *bound = 0.0e0;
  goto S50;
S40:
  *bound = one;
S50:
  *status = -2;
  return;
S70:
S60:
  if (*which == 2) {
    goto S90;
  }
  if (!(*f < 0.0e0)) {
    goto S80;
  }
  *bound = 0.0e0;
  *status = -4;
  return;
S90:
S80:
  if (*which == 3) {
    goto S110;
  }
  if (!(*dfn <= 0.0e0)) {
    goto S100;
  }
  *bound = 0.0e0;
  *status = -5;
  return;
S110:
S100:
  if (*which == 4) {
    goto S130;
  }
  if (!(*dfd <= 0.0e0)) {
    goto S120;
  }
  *bound = 0.0e0;
  *status = -6;
  return;
S130:
S120:
  if (*which == 5) {
    goto S150;
  }
  if (!(*phonc < 0.0e0)) {
    goto S140;
  }
  *bound = 0.0e0;
  *status = -7;
  return;
S150:
S140:
  if (1 == *which) {
    cdflib_cumfnc(f, dfn, dfd, phonc, p, q);
    *status = 0;
  } else if (2 == *which) {
    *f = 5.0e0;
    T2 = inf;
    T5 = atol;
    T6 = tol;
    cdflib_dstinv(&K1, &T2, &K3, &K3, &K4, &T5, &T6);
    *status = 0;
    cdflib_dinvr(status, f, &fx, &qleft, &qhi);
  S160:
    if (!(*status == 1)) {
      goto S170;
    }
    cdflib_cumfnc(f, dfn, dfd, phonc, &cum, &ccum);
    fx = cum - *p;
    cdflib_dinvr(status, f, &fx, &qleft, &qhi);
    goto S160;
  S170:
    if (!(*status == -1)) {
      goto S200;
    }
    if (!qleft) {
      goto S180;
    }
    *status = 1;
    *bound = 0.0e0;
    goto S190;
  S180:
    *status = 2;
    *bound = inf;
  S200:
  S190:;
  } else if (3 == *which) {
    *dfn = 5.0e0;
    T7 = zero;
    T8 = inf;
    T9 = atol;
    T10 = tol;
    cdflib_dstinv(&T7, &T8, &K3, &K3, &K4, &T9, &T10);
    *status = 0;
    cdflib_dinvr(status, dfn, &fx, &qleft, &qhi);
  S210:
    if (!(*status == 1)) {
      goto S220;
    }
    cdflib_cumfnc(f, dfn, dfd, phonc, &cum, &ccum);
    fx = cum - *p;
    cdflib_dinvr(status, dfn, &fx, &qleft, &qhi);
    goto S210;
  S220:
    if (!(*status == -1)) {
      goto S250;
    }
    if (!qleft) {
      goto S230;
    }
    *status = 1;
    *bound = zero;
    goto S240;
  S230:
    *status = 2;
    *bound = inf;
  S250:
  S240:;
  } else if (4 == *which) {
    *dfd = 5.0e0;
    T11 = zero;
    T12 = inf;
    T13 = atol;
    T14 = tol;
    cdflib_dstinv(&T11, &T12, &K3, &K3, &K4, &T13, &T14);
    *status = 0;
    cdflib_dinvr(status, dfd, &fx, &qleft, &qhi);
  S260:
    if (!(*status == 1)) {
      goto S270;
    }
    cdflib_cumfnc(f, dfn, dfd, phonc, &cum, &ccum);
    fx = cum - *p;
    cdflib_dinvr(status, dfd, &fx, &qleft, &qhi);
    goto S260;
  S270:
    if (!(*status == -1)) {
      goto S300;
    }
    if (!qleft) {
      goto S280;
    }
    *status = 1;
    *bound = zero;
    goto S290;
  S280:
    *status = 2;
    *bound = inf;
  S300:
  S290:;
  } else if (5 == *which) {
    *phonc = 5.0e0;
    T15 = tent4;
    T16 = atol;
    T17 = tol;
    cdflib_dstinv(&K1, &T15, &K3, &K3, &K4, &T16, &T17);
    *status = 0;
    cdflib_dinvr(status, phonc, &fx, &qleft, &qhi);
  S310:
    if (!(*status == 1)) {
      goto S320;
    }
    cdflib_cumfnc(f, dfn, dfd, phonc, &cum, &ccum);
    fx = cum - *p;
    cdflib_dinvr(status, phonc, &fx, &qleft, &qhi);
    goto S310;
  S320:
    if (!(*status == -1)) {
      goto S350;
    }
    if (!qleft) {
      goto S330;
    }
    *status = 1;
    *bound = 0.0e0;
    goto S340;
  S330:
    *status = 2;
    *bound = tent4;
  S340:;
  }
S350:
  return;
}


x86 assembly (clang, -O0):
<cdflib_cdffnc>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xe99(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe84(%rip),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    -0x8(%rbp),%rax
cmpl   $0x1,(%rax)
jl     11b5 <cdflib_cdffnc+0x85>
mov    -0x8(%rbp),%rax
cmpl   $0x5,(%rax)
jg     11b5 <cdflib_cdffnc+0x85>
jmp    11fb <cdflib_cdffnc+0xcb>
mov    -0x8(%rbp),%rax
cmpl   $0x1,(%rax)
jl     11c7 <cdflib_cdffnc+0x97>
jmp    11dc <cdflib_cdffnc+0xac>
mov    0x20(%rbp),%rax
movsd  0xe6d(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    11ec <cdflib_cdffnc+0xbc>
mov    0x20(%rbp),%rax
movsd  0xe18(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movl   $0xffffffff,(%rax)
jmp    19bf <cdflib_cdffnc+0x88f>
mov    -0x8(%rbp),%rax
cmpl   $0x1,(%rax)
jne    120d <cdflib_cdffnc+0xdd>
jmp    1282 <cdflib_cdffnc+0x152>
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
ja     123d <cdflib_cdffnc+0x10d>
mov    -0x10(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xde2(%rip),%xmm1
ucomisd %xmm1,%xmm0
ja     123d <cdflib_cdffnc+0x10d>
jmp    1287 <cdflib_cdffnc+0x157>
mov    -0x10(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
ja     1253 <cdflib_cdffnc+0x123>
jmp    1263 <cdflib_cdffnc+0x133>
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    1273 <cdflib_cdffnc+0x143>
mov    0x20(%rbp),%rax
movsd  0xda1(%rip),%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movl   $0xfffffffe,(%rax)
jmp    19bf <cdflib_cdffnc+0x88f>
jmp    1287 <cdflib_cdffnc+0x157>
mov    -0x8(%rbp),%rax
cmpl   $0x2,(%rax)
jne    1299 <cdflib_cdffnc+0x169>
jmp    12c9 <cdflib_cdffnc+0x199>
mov    -0x20(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
ja     12af <cdflib_cdffnc+0x17f>
jmp    12ce <cdflib_cdffnc+0x19e>
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movl   $0xfffffffc,(%rax)
jmp    19bf <cdflib_cdffnc+0x88f>
jmp    12ce <cdflib_cdffnc+0x19e>
mov    -0x8(%rbp),%rax
cmpl   $0x3,(%rax)
jne    12e0 <cdflib_cdffnc+0x1b0>
jmp    1310 <cdflib_cdffnc+0x1e0>
mov    -0x28(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
jae    12f6 <cdflib_cdffnc+0x1c6>
jmp    1315 <cdflib_cdffnc+0x1e5>
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movl   $0xfffffffb,(%rax)
jmp    19bf <cdflib_cdffnc+0x88f>
jmp    1315 <cdflib_cdffnc+0x1e5>
mov    -0x8(%rbp),%rax
cmpl   $0x4,(%rax)
jne    1327 <cdflib_cdffnc+0x1f7>
jmp    1357 <cdflib_cdffnc+0x227>
mov    -0x30(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
jae    133d <cdflib_cdffnc+0x20d>
jmp    135c <cdflib_cdffnc+0x22c>
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movl   $0xfffffffa,(%rax)
jmp    19bf <cdflib_cdffnc+0x88f>
jmp    135c <cdflib_cdffnc+0x22c>
mov    -0x8(%rbp),%rax
cmpl   $0x5,(%rax)
jne    136e <cdflib_cdffnc+0x23e>
jmp    139e <cdflib_cdffnc+0x26e>
mov    0x10(%rbp),%rax
xorps  %xmm0,%xmm0
ucomisd (%rax),%xmm0
ja     1384 <cdflib_cdffnc+0x254>
jmp    13a3 <cdflib_cdffnc+0x273>
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
mov    0x18(%rbp),%rax
movl   $0xfffffff9,(%rax)
jmp    19bf <cdflib_cdffnc+0x88f>
jmp    13a3 <cdflib_cdffnc+0x273>
mov    -0x8(%rbp),%rcx
mov    $0x1,%eax
cmp    (%rcx),%eax
jne    13e2 <cdflib_cdffnc+0x2b2>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%rcx
mov    -0x10(%rbp),%r8
mov    -0x18(%rbp),%r9
mov    $0x0,%al
call   1040 <cdflib_cumfnc@plt>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
jmp    19b5 <cdflib_cdffnc+0x885>
mov    -0x8(%rbp),%rcx
mov    $0x2,%eax
cmp    (%rcx),%eax
jne    153e <cdflib_cdffnc+0x40e>
mov    -0x20(%rbp),%rax
movsd  0xc01(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  0xc25(%rip),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  0xc08(%rip),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  0xbf3(%rip),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
lea    -0x38(%rbp),%rdi
lea    -0x78(%rbp),%rsi
lea    -0x40(%rbp),%rcx
lea    -0x48(%rbp),%r8
lea    -0x80(%rbp),%r9
lea    -0x88(%rbp),%rax
mov    %rcx,%rdx
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <cdflib_dstinv@plt>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
mov    0x18(%rbp),%rax
cmpl   $0x1,(%rax)
je     148d <cdflib_cdffnc+0x35d>
jmp    14de <cdflib_cdffnc+0x3ae>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%rcx
lea    -0x58(%rbp),%r8
lea    -0x60(%rbp),%r9
mov    $0x0,%al
call   1040 <cdflib_cumfnc@plt>
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x20(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
jmp    147b <cdflib_cdffnc+0x34b>
mov    0x18(%rbp),%rax
cmpl   $0xffffffff,(%rax)
je     14f0 <cdflib_cdffnc+0x3c0>
jmp    1534 <cdflib_cdffnc+0x404>
cmpq   $0x0,-0x70(%rbp)
jne    1500 <cdflib_cdffnc+0x3d0>
jmp    151a <cdflib_cdffnc+0x3ea>
mov    0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    1539 <cdflib_cdffnc+0x409>
mov    0x18(%rbp),%rax
movl   $0x2,(%rax)
mov    0x20(%rbp),%rax
movsd  0xb00(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1539 <cdflib_cdffnc+0x409>
jmp    19b0 <cdflib_cdffnc+0x880>
mov    -0x8(%rbp),%rcx
mov    $0x3,%eax
cmp    (%rcx),%eax
jne    16be <cdflib_cdffnc+0x58e>
mov    -0x28(%rbp),%rax
movsd  0xaa5(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  0xad1(%rip),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  0xab9(%rip),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xa99(%rip),%xmm0
movsd  %xmm0,-0xa0(%rbp)
ff
movsd  0xa81(%rip),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
lea    -0x90(%rbp),%rdi
lea    -0x98(%rbp),%rsi
lea    -0x40(%rbp),%rcx
lea    -0x48(%rbp),%r8
lea    -0xa0(%rbp),%r9
lea    -0xa8(%rbp),%rax
mov    %rcx,%rdx
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <cdflib_dstinv@plt>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
mov    0x18(%rbp),%rax
cmpl   $0x1,(%rax)
je     1608 <cdflib_cdffnc+0x4d8>
jmp    1659 <cdflib_cdffnc+0x529>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%rcx
lea    -0x58(%rbp),%r8
lea    -0x60(%rbp),%r9
mov    $0x0,%al
call   1040 <cdflib_cumfnc@plt>
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x28(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
jmp    15f6 <cdflib_cdffnc+0x4c6>
mov    0x18(%rbp),%rax
cmpl   $0xffffffff,(%rax)
je     166b <cdflib_cdffnc+0x53b>
jmp    16b4 <cdflib_cdffnc+0x584>
cmpq   $0x0,-0x70(%rbp)
jne    167b <cdflib_cdffnc+0x54b>
jmp    169a <cdflib_cdffnc+0x56a>
mov    0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    0x20(%rbp),%rax
movsd  0x9a7(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    16b9 <cdflib_cdffnc+0x589>
mov    0x18(%rbp),%rax
movl   $0x2,(%rax)
mov    0x20(%rbp),%rax
movsd  0x980(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    16b9 <cdflib_cdffnc+0x589>
jmp    19ab <cdflib_cdffnc+0x87b>
mov    -0x8(%rbp),%rcx
mov    $0x4,%eax
cmp    (%rcx),%eax
jne    183e <cdflib_cdffnc+0x70e>
mov    -0x30(%rbp),%rax
movsd  0x925(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  0x951(%rip),%xmm0
movsd  %xmm0,-0xb0(%rbp)
ff
movsd  0x939(%rip),%xmm0
movsd  %xmm0,-0xb8(%rbp)
ff
movsd  0x919(%rip),%xmm0
movsd  %xmm0,-0xc0(%rbp)
ff
movsd  0x901(%rip),%xmm0
movsd  %xmm0,-0xc8(%rbp)
ff
lea    -0xb0(%rbp),%rdi
lea    -0xb8(%rbp),%rsi
lea    -0x40(%rbp),%rcx
lea    -0x48(%rbp),%r8
lea    -0xc0(%rbp),%r9
lea    -0xc8(%rbp),%rax
mov    %rcx,%rdx
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <cdflib_dstinv@plt>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
mov    0x18(%rbp),%rax
cmpl   $0x1,(%rax)
je     1788 <cdflib_cdffnc+0x658>
jmp    17d9 <cdflib_cdffnc+0x6a9>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%rcx
lea    -0x58(%rbp),%r8
lea    -0x60(%rbp),%r9
mov    $0x0,%al
call   1040 <cdflib_cumfnc@plt>
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x18(%rbp),%rdi
mov    -0x30(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
jmp    1776 <cdflib_cdffnc+0x646>
mov    0x18(%rbp),%rax
cmpl   $0xffffffff,(%rax)
je     17eb <cdflib_cdffnc+0x6bb>
jmp    1834 <cdflib_cdffnc+0x704>
cmpq   $0x0,-0x70(%rbp)
jne    17fb <cdflib_cdffnc+0x6cb>
jmp    181a <cdflib_cdffnc+0x6ea>
mov    0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    0x20(%rbp),%rax
movsd  0x827(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1839 <cdflib_cdffnc+0x709>
mov    0x18(%rbp),%rax
movl   $0x2,(%rax)
mov    0x20(%rbp),%rax
movsd  0x800(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    1839 <cdflib_cdffnc+0x709>
jmp    19a6 <cdflib_cdffnc+0x876>
mov    -0x8(%rbp),%rcx
mov    $0x5,%eax
cmp    (%rcx),%eax
jne    19a1 <cdflib_cdffnc+0x871>
mov    0x10(%rbp),%rax
movsd  0x7a5(%rip),%xmm0
movsd  %xmm0,(%rax)
movsd  0x7c1(%rip),%xmm0
movsd  %xmm0,-0xd0(%rbp)
ff
movsd  0x7a9(%rip),%xmm0
movsd  %xmm0,-0xd8(%rbp)
ff
movsd  0x791(%rip),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
lea    -0x38(%rbp),%rdi
lea    -0xd0(%rbp),%rsi
lea    -0x40(%rbp),%rcx
lea    -0x48(%rbp),%r8
lea    -0xd8(%rbp),%r9
lea    -0xe0(%rbp),%rax
mov    %rcx,%rdx
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <cdflib_dstinv@plt>
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rdi
mov    0x10(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
mov    0x18(%rbp),%rax
cmpl   $0x1,(%rax)
je     18f5 <cdflib_cdffnc+0x7c5>
jmp    1946 <cdflib_cdffnc+0x816>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    0x10(%rbp),%rcx
lea    -0x58(%rbp),%r8
lea    -0x60(%rbp),%r9
mov    $0x0,%al
call   1040 <cdflib_cumfnc@plt>
movsd  -0x58(%rbp),%xmm0
mov    -0x10(%rbp),%rax
subsd  (%rax),%xmm0
movsd  %xmm0,-0x50(%rbp)
mov    0x18(%rbp),%rdi
mov    0x10(%rbp),%rsi
lea    -0x50(%rbp),%rdx
lea    -0x70(%rbp),%rcx
lea    -0x68(%rbp),%r8
mov    $0x0,%al
call   1050 <cdflib_dinvr@plt>
jmp    18e3 <cdflib_cdffnc+0x7b3>
mov    0x18(%rbp),%rax
cmpl   $0xffffffff,(%rax)
je     1958 <cdflib_cdffnc+0x828>
jmp    19ba <cdflib_cdffnc+0x88a>
cmpq   $0x0,-0x70(%rbp)
jne    1968 <cdflib_cdffnc+0x838>
jmp    1982 <cdflib_cdffnc+0x852>
mov    0x18(%rbp),%rax
movl   $0x1,(%rax)
mov    0x20(%rbp),%rax
xorps  %xmm0,%xmm0
movsd  %xmm0,(%rax)
jmp    199c <cdflib_cdffnc+0x86c>
mov    0x18(%rbp),%rax
movl   $0x2,(%rax)
mov    0x20(%rbp),%rax
movsd  0x690(%rip),%xmm0
movsd  %xmm0,(%rax)
jmp    19a1 <cdflib_cdffnc+0x871>
jmp    19a6 <cdflib_cdffnc+0x876>
jmp    19ab <cdflib_cdffnc+0x87b>
jmp    19b0 <cdflib_cdffnc+0x880>
jmp    19b5 <cdflib_cdffnc+0x885>
jmp    19ba <cdflib_cdffnc+0x88a>
jmp    19bf <cdflib_cdffnc+0x88f>
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<cdflib_cdffnc>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
mov    %r9,%r14
mov    %rcx,%rbx
mov    %rdx,%r9
mov    0xb0(%rsp),%rbp
mov    0xa8(%rsp),%r15
movq   $0x0,0x60(%rsp)
movabs $0x3fe0000000000000,%rax
mov    %rax,0x40(%rsp)
movabs $0x4014000000000000,%rax
mov    %rax,0x38(%rsp)
movl   $0x0,(%r15)
movq   $0x0,0x0(%rbp)
mov    (%rdi),%ecx
lea    -0x6(%rcx),%edx
cmp    $0xfffffffa,%edx
ja     11bb <cdflib_cdffnc+0x8b>
xor    %eax,%eax
test   %ecx,%ecx
setle  %al
lea    0xe63(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm0
movsd  %xmm0,0x0(%rbp)
movl   $0xffffffff,(%r15)
jmp    1393 <cdflib_cdffnc+0x263>
mov    %r8,%r13
mov    %rsi,%r12
mov    0xa0(%rsp),%r8
cmp    $0x1,%ecx
jne    11da <cdflib_cdffnc+0xaa>
xorpd  %xmm0,%xmm0
ucomisd (%rbx),%xmm0
ja     1203 <cdflib_cdffnc+0xd3>
jmp    1246 <cdflib_cdffnc+0x116>
movsd  (%r12),%xmm0
xorpd  %xmm1,%xmm1
ucomisd %xmm0,%xmm1
ja     120f <cdflib_cdffnc+0xdf>
ucomisd 0xe0e(%rip),%xmm0
ja     120f <cdflib_cdffnc+0xdf>
cmp    $0x2,%ecx
je     1246 <cdflib_cdffnc+0x116>
xorpd  %xmm0,%xmm0
ucomisd (%rbx),%xmm0
jbe    1231 <cdflib_cdffnc+0x101>
movl   $0xfffffffc,(%r15)
jmp    1393 <cdflib_cdffnc+0x263>
cmpltsd %xmm1,%xmm0
movsd  0xde4(%rip),%xmm1
andnpd %xmm1,%xmm0
movlpd %xmm0,0x0(%rbp)
movl   $0xfffffffe,(%r15)
jmp    1393 <cdflib_cdffnc+0x263>
cmp    $0x3,%ecx
jne    1246 <cdflib_cdffnc+0x116>
xorpd  %xmm0,%xmm0
ucomisd (%r14),%xmm0
jb     1257 <cdflib_cdffnc+0x127>
jmp    138c <cdflib_cdffnc+0x25c>
xorpd  %xmm0,%xmm0
ucomisd 0x0(%r13),%xmm0
jae    1272 <cdflib_cdffnc+0x142>
cmp    $0x4,%ecx
jne    127e <cdflib_cdffnc+0x14e>
xorpd  %xmm0,%xmm0
ucomisd (%r8),%xmm0
jbe    1355 <cdflib_cdffnc+0x225>
movl   $0xfffffff9,(%r15)
jmp    1393 <cdflib_cdffnc+0x263>
movl   $0xfffffffb,(%r15)
jmp    1393 <cdflib_cdffnc+0x263>
xorpd  %xmm0,%xmm0
ucomisd (%r14),%xmm0
jae    138c <cdflib_cdffnc+0x25c>
cmp    $0x5,%ecx
jne    1257 <cdflib_cdffnc+0x127>
mov    %rax,(%r8)
movabs $0x40c3880000000000,%rax
88 c3 40
mov    %rax,0x18(%rsp)
movabs $0x358dee7a4ad4b81f,%rax
ee 8d 35
mov    %rax,0x10(%rsp)
movabs $0x3e45798ee2308c3a,%rax
79 45 3e
mov    %rax,0x8(%rsp)
lea    0x8(%rsp),%rax
mov    %rax,(%rsp)
lea    0x60(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x40(%rsp),%rcx
mov    %r8,%rbp
lea    0x38(%rsp),%r8
lea    0x10(%rsp),%r9
mov    %rcx,%rdx
xor    %eax,%eax
call   1030 <cdflib_dstinv@plt>
movl   $0x0,(%r15)
nopl   0x0(%rax,%rax,1)
mov    %r15,%rdi
mov    %rbp,%rsi
lea    0x30(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x50(%rsp),%r8
xor    %eax,%eax
call   1050 <cdflib_dinvr@plt>
mov    (%r15),%eax
cmp    $0x1,%eax
jne    13a2 <cdflib_cdffnc+0x272>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    %rbp,%rcx
lea    0x28(%rsp),%r8
lea    0x58(%rsp),%r9
xor    %eax,%eax
call   1040 <cdflib_cumfnc@plt>
movsd  0x28(%rsp),%xmm0
subsd  (%r12),%xmm0
movsd  %xmm0,0x30(%rsp)
jmp    1300 <cdflib_cdffnc+0x1d0>
add    $0xffffffff,%ecx
cmp    $0x3,%ecx
ja     1393 <cdflib_cdffnc+0x263>
lea    0xcb4(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    %r8,%rcx
mov    %r12,%r8
xor    %eax,%eax
call   1040 <cdflib_cumfnc@plt>
movl   $0x0,(%r15)
jmp    1393 <cdflib_cdffnc+0x263>
movl   $0xfffffffa,(%r15)
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
cmp    $0xffffffff,%eax
mov    0xb0(%rsp),%rax
jne    1393 <cdflib_cdffnc+0x263>
cmpq   $0x0,0x20(%rsp)
je     1693 <cdflib_cdffnc+0x563>
movl   $0x1,(%r15)
movq   $0x0,(%rax)
jmp    1393 <cdflib_cdffnc+0x263>
mov    %rax,(%rbx)
movabs $0x7e37e43c8800759c,%rax
e4 37 7e
mov    %rax,0x18(%rsp)
movabs $0x358dee7a4ad4b81f,%rax
ee 8d 35
mov    %rax,0x10(%rsp)
movabs $0x3e45798ee2308c3a,%rax
79 45 3e
mov    %rax,0x8(%rsp)
lea    0x8(%rsp),%rax
mov    %rax,(%rsp)
lea    0x60(%rsp),%rdi
lea    0x18(%rsp),%rsi
lea    0x40(%rsp),%rcx
lea    0x38(%rsp),%r8
lea    0x10(%rsp),%r9
mov    %rcx,%rdx
xor    %eax,%eax
call   1030 <cdflib_dstinv@plt>
movl   $0x0,(%r15)
mov    %r15,%rdi
mov    %rbx,%rsi
lea    0x30(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x50(%rsp),%r8
xor    %eax,%eax
call   1050 <cdflib_dinvr@plt>
mov    (%r15),%eax
cmp    $0x1,%eax
jne    1654 <cdflib_cdffnc+0x524>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    0xa0(%rsp),%rcx
lea    0x28(%rsp),%r8
lea    0x58(%rsp),%r9
xor    %eax,%eax
call   1040 <cdflib_cumfnc@plt>
movsd  0x28(%rsp),%xmm0
subsd  (%r12),%xmm0
movsd  %xmm0,0x30(%rsp)
jmp    142e <cdflib_cdffnc+0x2fe>
mov    %rax,0x0(%r13)
movabs $0x1a56e1fc2f8f359,%rax
6e a5 01
mov    %rax,0x18(%rsp)
movabs $0x7e37e43c8800759c,%rax
e4 37 7e
mov    %rax,0x10(%rsp)
movabs $0x358dee7a4ad4b81f,%rax
ee 8d 35
mov    %rax,0x8(%rsp)
movabs $0x3e45798ee2308c3a,%rax
79 45 3e
mov    %rax,0x48(%rsp)
lea    0x48(%rsp),%rax
mov    %rax,(%rsp)
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x40(%rsp),%rcx
lea    0x38(%rsp),%r8
lea    0x8(%rsp),%r9
mov    %rcx,%rdx
xor    %eax,%eax
call   1030 <cdflib_dstinv@plt>
movl   $0x0,(%r15)
mov    %r15,%rdi
mov    %r13,%rsi
lea    0x30(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x50(%rsp),%r8
xor    %eax,%eax
call   1050 <cdflib_dinvr@plt>
mov    (%r15),%eax
cmp    $0x1,%eax
jne    1629 <cdflib_cdffnc+0x4f9>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    0xa0(%rsp),%rcx
lea    0x28(%rsp),%r8
lea    0x58(%rsp),%r9
xor    %eax,%eax
call   1040 <cdflib_cumfnc@plt>
movsd  0x28(%rsp),%xmm0
subsd  (%r12),%xmm0
movsd  %xmm0,0x30(%rsp)
jmp    14ff <cdflib_cdffnc+0x3cf>
mov    %rax,(%r14)
movabs $0x1a56e1fc2f8f359,%rax
6e a5 01
mov    %rax,0x18(%rsp)
movabs $0x7e37e43c8800759c,%rax
e4 37 7e
mov    %rax,0x10(%rsp)
movabs $0x358dee7a4ad4b81f,%rax
ee 8d 35
mov    %rax,0x8(%rsp)
movabs $0x3e45798ee2308c3a,%rax
79 45 3e
mov    %rax,0x48(%rsp)
lea    0x48(%rsp),%rax
mov    %rax,(%rsp)
lea    0x18(%rsp),%rdi
lea    0x10(%rsp),%rsi
lea    0x40(%rsp),%rcx
lea    0x38(%rsp),%r8
lea    0x8(%rsp),%r9
mov    %rcx,%rdx
xor    %eax,%eax
call   1030 <cdflib_dstinv@plt>
movl   $0x0,(%r15)
mov    %r15,%rdi
mov    %r14,%rsi
lea    0x30(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x50(%rsp),%r8
xor    %eax,%eax
call   1050 <cdflib_dinvr@plt>
mov    (%r15),%eax
cmp    $0x1,%eax
jne    1629 <cdflib_cdffnc+0x4f9>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    0xa0(%rsp),%rcx
lea    0x28(%rsp),%r8
lea    0x58(%rsp),%r9
xor    %eax,%eax
call   1040 <cdflib_cumfnc@plt>
movsd  0x28(%rsp),%xmm0
subsd  (%r12),%xmm0
movsd  %xmm0,0x30(%rsp)
jmp    15cf <cdflib_cdffnc+0x49f>
cmp    $0xffffffff,%eax
jne    1393 <cdflib_cdffnc+0x263>
cmpq   $0x0,0x20(%rsp)
je     1679 <cdflib_cdffnc+0x549>
movl   $0x1,(%r15)
movabs $0x1a56e1fc2f8f359,%rax
6e a5 01
mov    %rax,0x0(%rbp)
jmp    1393 <cdflib_cdffnc+0x263>
cmp    $0xffffffff,%eax
jne    1393 <cdflib_cdffnc+0x263>
cmpq   $0x0,0x20(%rsp)
je     1679 <cdflib_cdffnc+0x549>
movl   $0x1,(%r15)
movq   $0x0,0x0(%rbp)
jmp    1393 <cdflib_cdffnc+0x263>
movl   $0x2,(%r15)
movabs $0x7e37e43c8800759c,%rax
e4 37 7e
mov    %rax,0x0(%rbp)
jmp    1393 <cdflib_cdffnc+0x263>
movl   $0x2,(%r15)
movabs $0x40c3880000000000,%rcx
88 c3 40
mov    %rcx,(%rax)
jmp    1393 <cdflib_cdffnc+0x263>

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

LLVM IR (-O2):
define void @cdflib_cdffnc(i32* nocapture %0, double* %1, double* %2, double* %3, double* %4, double* %5, double* %6, i32* %7, double* nocapture writeonly %8) {
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca double
%15 = alloca double
%16 = alloca i64
%17 = alloca i64
%18 = alloca double
%19 = alloca double
%20 = alloca double
%21 = alloca double
%22 = alloca double
%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
%32 = bitcast double* %10 to i8*
store double 0.000000e+00, double* %10
%33 = bitcast double* %11 to i8*
store double 5.000000e-01, double* %11
%34 = bitcast double* %12 to i8*
store double 5.000000e+00, double* %12
%35 = bitcast double* %13 to i8*
%36 = bitcast double* %14 to i8*
%37 = bitcast double* %15 to i8*
%38 = bitcast i64* %16 to i8*
%39 = bitcast i64* %17 to i8*
%40 = bitcast double* %18 to i8*
%41 = bitcast double* %19 to i8*
%42 = bitcast double* %20 to i8*
%43 = bitcast double* %21 to i8*
%44 = bitcast double* %22 to i8*
%45 = bitcast double* %23 to i8*
%46 = bitcast double* %24 to i8*
%47 = bitcast double* %25 to i8*
%48 = bitcast double* %26 to i8*
%49 = bitcast double* %27 to i8*
%50 = bitcast double* %28 to i8*
%51 = bitcast double* %29 to i8*
%52 = bitcast double* %30 to i8*
%53 = bitcast double* %31 to i8*
store i32 0, i32* %7
store double 0.000000e+00, double* %8
%54 = load i32, i32* %0
%55 = add i32 %54, -6
%56 = icmp ult i32 %55, -5
br i1 %56, label %57, label %60
57: ; preds = %9
%58 = icmp slt i32 %54, 1
%59 = select i1 %58, double 1.000000e+00, double 5.000000e+00
store double %59, double* %8
store i32 -1, i32* %7
br label %162
60: ; preds = %9
%61 = icmp eq i32 %54, 1
br i1 %61, label %74, label %62
62: ; preds = %60
%63 = load double, double* %1
%64 = fcmp olt double %63, 0.000000e+00
%65 = fcmp ogt double %63, 0x3FEFFFFFFFFFFFFF
%66 = or i1 %64, %65
br i1 %66, label %67, label %69
67: ; preds = %62
%68 = select i1 %64, double 0.000000e+00, double 0x3FEFFFFFFFFFFFFF
store double %68, double* %8
store i32 -2, i32* %7
br label %162
69: ; preds = %62
%70 = icmp eq i32 %54, 2
br i1 %70, label %80, label %71
71: ; preds = %69
%72 = load double, double* %3
%73 = fcmp olt double %72, 0.000000e+00
br i1 %73, label %77, label %78
74: ; preds = %60
%75 = load double, double* %3
%76 = fcmp olt double %75, 0.000000e+00
br i1 %76, label %77, label %80
77: ; preds = %74, %71
store i32 -4, i32* %7
br label %162
78: ; preds = %71
%79 = icmp eq i32 %54, 3
br i1 %79, label %89, label %80
80: ; preds = %74, %69, %78
%81 = load double, double* %4
%82 = fcmp ugt double %81, 0.000000e+00
br i1 %82, label %84, label %83
83: ; preds = %80
store i32 -5, i32* %7
br label %162
84: ; preds = %80
%85 = icmp eq i32 %54, 4
br i1 %85, label %95, label %86
86: ; preds = %84
%87 = load double, double* %5
%88 = fcmp ugt double %87, 0.000000e+00
br i1 %88, label %93, label %92
89: ; preds = %78
%90 = load double, double* %5
%91 = fcmp ugt double %90, 0.000000e+00
br i1 %91, label %95, label %92
92: ; preds = %89, %86
store i32 -6, i32* %7
br label %162
93: ; preds = %86
%94 = icmp eq i32 %54, 5
br i1 %94, label %147, label %95
95: ; preds = %89, %84, %93
%96 = load double, double* %6
%97 = fcmp olt double %96, 0.000000e+00
br i1 %97, label %98, label %99
98: ; preds = %95
store i32 -7, i32* %7
br label %162
99: ; preds = %95
switch i32 %54, label %162 [
i32 1, label %100
i32 2, label %102
i32 3, label %117
i32 4, label %132
]
100: ; preds = %99
%101 = tail call i32 (double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_cumfnc to i32 (double*, double*, double*, double*, double*, double*, ...)*)(double* %3, double* %4, double* %5, double* %6, double* %1, double* %2)
store i32 0, i32* %7
br label %162
102: ; preds = %99
store double 5.000000e+00, double* %3
store double 1.000000e+300, double* %18
store double 1.000000e-50, double* %19
store double 1.000000e-08, double* %20
%103 = call i32 (double*, double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_dstinv to i32 (double*, double*, double*, double*, double*, double*, double*, ...)*)(double* %10, double* %18, double* %11, double* %11, double* %12, double* %19, double* %20)
store i32 0, i32* %7
br label %104
104: ; preds = %107, %102
%105 = call i32 (i32*, double*, double*, i64*, i64*, ...) bitcast (i32 (...)* @cdflib_dinvr to i32 (i32*, double*, double*, i64*, i64*, ...)*)(i32* %7, double* %3, double* %13, i64* %17, i64* %16)
%106 = load i32, i32* %7
switch i32 %106, label %162 [
i32 1, label %107
i32 -1, label %112
]
107: ; preds = %104
%108 = call i32 (double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_cumfnc to i32 (double*, double*, double*, double*, double*, double*, ...)*)(double* %3, double* %4, double* %5, double* %6, double* %14, double* %15)
%109 = load double, double* %14
%110 = load double, double* %1
%111 = fsub double %109, %110
store double %111, double* %13
br label %104
112: ; preds = %104
%113 = load i64, i64* %17
%114 = icmp eq i64 %113, 0
br i1 %114, label %116, label %115
115: ; preds = %112
store i32 1, i32* %7
store double 0.000000e+00, double* %8
br label %162
116: ; preds = %112
store i32 2, i32* %7
store double 1.000000e+300, double* %8
br label %162
117: ; preds = %99
store double 5.000000e+00, double* %4
store double 1.000000e-300, double* %21
store double 1.000000e+300, double* %22
store double 1.000000e-50, double* %23
store double 1.000000e-08, double* %24
%118 = call i32 (double*, double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_dstinv to i32 (double*, double*, double*, double*, double*, double*, double*, ...)*)(double* %21, double* %22, double* %11, double* %11, double* %12, double* %23, double* %24)
store i32 0, i32* %7
br label %119
119: ; preds = %122, %117
%120 = call i32 (i32*, double*, double*, i64*, i64*, ...) bitcast (i32 (...)* @cdflib_dinvr to i32 (i32*, double*, double*, i64*, i64*, ...)*)(i32* %7, double* %4, double* %13, i64* %17, i64* %16)
%121 = load i32, i32* %7
switch i32 %121, label %162 [
i32 1, label %122
i32 -1, label %127
]
122: ; preds = %119
%123 = call i32 (double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_cumfnc to i32 (double*, double*, double*, double*, double*, double*, ...)*)(double* %3, double* %4, double* %5, double* %6, double* %14, double* %15)
%124 = load double, double* %14
%125 = load double, double* %1
%126 = fsub double %124, %125
store double %126, double* %13
br label %119
127: ; preds = %119
%128 = load i64, i64* %17
%129 = icmp eq i64 %128, 0
br i1 %129, label %131, label %130
130: ; preds = %127
store i32 1, i32* %7
store double 1.000000e-300, double* %8
br label %162
131: ; preds = %127
store i32 2, i32* %7
store double 1.000000e+300, double* %8
br label %162
132: ; preds = %99
store double 5.000000e+00, double* %5
store double 1.000000e-300, double* %25
store double 1.000000e+300, double* %26
store double 1.000000e-50, double* %27
store double 1.000000e-08, double* %28
%133 = call i32 (double*, double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_dstinv to i32 (double*, double*, double*, double*, double*, double*, double*, ...)*)(double* %25, double* %26, double* %11, double* %11, double* %12, double* %27, double* %28)
store i32 0, i32* %7
br label %134
134: ; preds = %137, %132
%135 = call i32 (i32*, double*, double*, i64*, i64*, ...) bitcast (i32 (...)* @cdflib_dinvr to i32 (i32*, double*, double*, i64*, i64*, ...)*)(i32* %7, double* %5, double* %13, i64* %17, i64* %16)
%136 = load i32, i32* %7
switch i32 %136, label %162 [
i32 1, label %137
i32 -1, label %142
]
137: ; preds = %134
%138 = call i32 (double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_cumfnc to i32 (double*, double*, double*, double*, double*, double*, ...)*)(double* %3, double* %4, double* %5, double* %6, double* %14, double* %15)
%139 = load double, double* %14
%140 = load double, double* %1
%141 = fsub double %139, %140
store double %141, double* %13
br label %134
142: ; preds = %134
%143 = load i64, i64* %17
%144 = icmp eq i64 %143, 0
br i1 %144, label %146, label %145
145: ; preds = %142
store i32 1, i32* %7
store double 1.000000e-300, double* %8
br label %162
146: ; preds = %142
store i32 2, i32* %7
store double 1.000000e+300, double* %8
br label %162
147: ; preds = %93
store double 5.000000e+00, double* %6
store double 1.000000e+04, double* %29
store double 1.000000e-50, double* %30
store double 1.000000e-08, double* %31
%148 = call i32 (double*, double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_dstinv to i32 (double*, double*, double*, double*, double*, double*, double*, ...)*)(double* %10, double* %29, double* %11, double* %11, double* %12, double* %30, double* %31)
store i32 0, i32* %7
br label %149
149: ; preds = %152, %147
%150 = call i32 (i32*, double*, double*, i64*, i64*, ...) bitcast (i32 (...)* @cdflib_dinvr to i32 (i32*, double*, double*, i64*, i64*, ...)*)(i32* %7, double* %6, double* %13, i64* %17, i64* %16)
%151 = load i32, i32* %7
switch i32 %151, label %162 [
i32 1, label %152
i32 -1, label %157
]
152: ; preds = %149
%153 = call i32 (double*, double*, double*, double*, double*, double*, ...) bitcast (i32 (...)* @cdflib_cumfnc to i32 (double*, double*, double*, double*, double*, double*, ...)*)(double* %3, double* %4, double* %5, double* %6, double* %14, double* %15)
%154 = load double, double* %14
%155 = load double, double* %1
%156 = fsub double %154, %155
store double %156, double* %13
br label %149
157: ; preds = %149
%158 = load i64, i64* %17
%159 = icmp eq i64 %158, 0
br i1 %159, label %161, label %160
160: ; preds = %157
store i32 1, i32* %7
store double 0.000000e+00, double* %8
br label %162
161: ; preds = %157
store i32 2, i32* %7
store double 1.000000e+04, double* %8
br label %162
162: ; preds = %149, %134, %119, %104, %116, %115, %146, %145, %160, %161, %130, %131, %100, %99, %98, %92, %83, %77, %67, %57
ret void
}