double decoder_delay(C, B, A, Ndwl, Ndbl, Nspd, Ntwl, Ntbl, Ntspd, Tdecdrive,
                     Tdecoder1, Tdecoder2, outrisetime)
int C, B, A, Ndwl, Ndbl, Nspd, Ntwl, Ntbl, Ntspd;
double *Tdecdrive, *Tdecoder1, *Tdecoder2, *outrisetime;
{
  double Ceq, Req, Rwire, rows, tf, nextinputtime, vth = 0.0, tstep, m, a, b, c;
  int numstack;
  Ceq =
      draincap(100.0, 0, 1) + draincap(60.0, 1, 1) + gatecap(100.0 + 60.0, 0.0);
  tf = Ceq * transreson(60.0, 1, 1);
  nextinputtime = horowitz(0.0, tf, 0.438, 0.438, 0) / (0.438);
  Ceq =
      draincap(100.0, 0, 1) + draincap(60.0, 1, 1) + gatecap(100.0 + 60.0, 0.0);
  tf = Ceq * transreson(60.0, 1, 1);
  nextinputtime = horowitz(nextinputtime, tf, 0.438, 0.438, 1) / (1.0 - 0.438);
  rows = C / (8 * B * A * Ndbl * Nspd);
  Ceq = draincap(100.0, 0, 1) + draincap(60.0, 1, 1) +
        4 * gatecap(90.0 + 60.0, 10.0) * (Ndwl * Ndbl) +
        1.8e-15 * 0.25 * 8 * B * A * Ndbl * Nspd;
  Rwire = 0.080 * 0.125 * 8 * B * A * Ndbl * Nspd;
  tf = (Rwire + transreson(100.0, 0, 1)) * Ceq;
  *Tdecdrive = horowitz(nextinputtime, tf, 0.438, 0.561, 0);
  nextinputtime = *Tdecdrive / 0.561;
  numstack = ceil((1.0 / 3.0) *
                  logtwo((double)((double)C / (double)(B * A * Ndbl * Nspd))));
  if (numstack == 0)
    numstack = 1;
  if (numstack > 5)
    numstack = 5;
  Ceq = 3 * draincap(60.0, 0, 1) + draincap(90.0, 1, 3) +
        gatecap(2.4 + 12.0, ((numstack * 40) + 20.0)) * rows +
        4.4e-15 * rows * 8;
  Rwire = 0.320 * rows * 8 / 2;
  tf = Ceq * (Rwire + transreson(90.0, 1, 3));
  switch (numstack) {
  case 1:
    vth = 0.503;
    break;
  case 2:
    vth = 0.452;
    break;
  case 3:
    vth = 0.417;
    break;
  case 4:
    vth = 0.390;
    break;
  case 5:
    vth = 0.390;
    break;
  default:
    printf("error:numstack=%d C[%d] B[%d] A[%d] ndbl[%d] nspd[%d]\n", numstack,
           C, B, A, Ndbl, Nspd);
  }
  *Tdecoder1 = horowitz(nextinputtime, tf, 0.561, vth, 1);
  nextinputtime = *Tdecoder1 / (1.0 - vth);
  Req = transreson(12.0, 0, numstack);
  Ceq = (gatecap(5.0 + 10.0, 20.0) + numstack * draincap(2.4, 1, 1) +
         draincap(12.0, 0, numstack));
  tf = Req * Ceq;
  *Tdecoder2 = horowitz(nextinputtime, tf, vth, 0.456, 0);
  *outrisetime = *Tdecoder2 / (0.456);
  return (*Tdecdrive + *Tdecoder1 + *Tdecoder2);
}


x86 assembly (clang, -O0):
<decoder_delay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
mov    0x40(%rbp),%rax
mov    0x38(%rbp),%rax
mov    0x30(%rbp),%rax
mov    0x28(%rbp),%rax
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%eax
mov    0x10(%rbp),%eax
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xe60(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,-0xb0(%rbp)
movsd  0xe6c(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ecx
mov    -0xb0(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0xac(%rbp)
movsd  0xe56(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%ecx
mov    -0xac(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0xa8(%rbp)
ff
movsd  0xe14(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1070 <transreson@plt>
movsd  -0xa8(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x40(%rbp),%xmm1
xorps  %xmm0,%xmm0
movsd  0xdb1(%rip),%xmm3
xor    %edi,%edi
movaps %xmm3,%xmm2
mov    $0x4,%al
call   1090 <horowitz@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd99(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xd90(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,-0xa0(%rbp)
movsd  0xd9c(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ecx
mov    -0xa0(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x9c(%rbp)
movsd  0xd86(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%ecx
mov    -0x9c(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x98(%rbp)
ff
movsd  0xd44(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1070 <transreson@plt>
movsd  -0x98(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xcdf(%rip),%xmm3
mov    $0x1,%edi
movaps %xmm3,%xmm2
mov    $0x4,%al
call   1090 <horowitz@plt>
cvtsi2sd %eax,%xmm0
movsd  0xcfc(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x4(%rbp),%eax
mov    -0x8(%rbp),%ecx
shl    $0x3,%ecx
imul   -0xc(%rbp),%ecx
imul   -0x14(%rbp),%ecx
imul   -0x18(%rbp),%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xc9a(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,-0x90(%rbp)
movsd  0xca6(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ecx
mov    -0x90(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x8c(%rbp)
movsd  0xc70(%rip),%xmm0
movsd  0xc70(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%ecx
mov    -0x8c(%rbp),%eax
shl    $0x2,%ecx
mov    -0x10(%rbp),%edx
imul   -0x14(%rbp),%edx
imul   %edx,%ecx
add    %ecx,%eax
cvtsi2sd %eax,%xmm1
cvtsi2sdl -0x8(%rbp),%xmm2
movsd  0xc31(%rip),%xmm0
mulsd  %xmm2,%xmm0
cvtsi2sdl -0xc(%rbp),%xmm2
mulsd  %xmm2,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm2
mulsd  %xmm2,%xmm0
cvtsi2sdl -0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xbf4(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x14(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl -0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xbb3(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
movsd  -0x88(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
addsd  %xmm1,%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xb71(%rip),%xmm2
movsd  0xb61(%rip),%xmm3
xor    %edi,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
cvtsi2sd %eax,%xmm0
mov    0x28(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x28(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0xb3c(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   -0x14(%rbp),%eax
imul   -0x18(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
mov    $0x1,%al
call   1080 <logtwo@plt>
cvtsi2sd %eax,%xmm1
movsd  0xafc(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <ceil@plt>
cvttsd2si %xmm0,%eax
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jne    1525 <decoder_delay+0x3b5>
movl   $0x1,-0x7c(%rbp)
cmpl   $0x5,-0x7c(%rbp)
jle    1536 <decoder_delay+0x3c6>
movl   $0x5,-0x7c(%rbp)
movsd  0xb02(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    %esi,-0xd4(%rbp)
mov    $0x1,%al
mov    %al,-0xc9(%rbp)
call   1050 <draincap@plt>
mov    -0xd4(%rbp),%edi
mov    %eax,%edx
mov    -0xc9(%rbp),%al
mov    %edx,%ecx
lea    (%rcx,%rcx,2),%ecx
mov    %ecx,-0xec(%rbp)
movsd  0xadf(%rip),%xmm0
movsd  %xmm0,-0xe0(%rbp)
ff
mov    $0x3,%esi
mov    %esi,-0xd0(%rbp)
call   1050 <draincap@plt>
mov    %eax,%ecx
mov    -0xec(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0xe8(%rbp)
ff
mov    -0x7c(%rbp),%ecx
shl    $0x3,%ecx
mov    %ecx,%eax
lea    (%rax,%rax,4),%eax
cvtsi2sd %eax,%xmm1
movsd  0xaa2(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xa9e(%rip),%xmm0
mov    $0x2,%al
call   1060 <gatecap@plt>
movsd  -0xe8(%rbp),%xmm2
ff
movsd  -0xe0(%rbp),%xmm0
ff
mov    -0xd4(%rbp),%edi
mov    -0xd0(%rbp),%esi
mov    %eax,%ecx
mov    -0xc9(%rbp),%al
cvtsi2sd %ecx,%xmm3
movsd  -0x38(%rbp),%xmm1
mulsd  %xmm1,%xmm3
addsd  %xmm2,%xmm3
movsd  0xa62(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xa5e(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm3,%xmm1
movsd  %xmm1,-0x20(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  0xa4c(%rip),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xa44(%rip),%xmm2
divsd  %xmm2,%xmm1
movsd  %xmm1,-0x30(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  %xmm1,-0xc0(%rbp)
ff
movsd  -0x30(%rbp),%xmm1
movsd  %xmm1,-0xc8(%rbp)
ff
call   1070 <transreson@plt>
movsd  -0xc8(%rbp),%xmm1
ff
movsd  -0xc0(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm2
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x7c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0xb8(%rbp)
sub    $0x4,%eax
ja     1716 <decoder_delay+0x5a6>
mov    -0xb8(%rbp),%rax
lea    0xa25(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsd  0x9e4(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    173b <decoder_delay+0x5cb>
movsd  0x9ca(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    173b <decoder_delay+0x5cb>
movsd  0x9b0(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    173b <decoder_delay+0x5cb>
movsd  0x996(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    173b <decoder_delay+0x5cb>
movsd  0x984(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    173b <decoder_delay+0x5cb>
mov    -0x7c(%rbp),%esi
mov    -0x4(%rbp),%edx
mov    -0x8(%rbp),%ecx
mov    -0xc(%rbp),%r8d
mov    -0x14(%rbp),%r9d
mov    -0x18(%rbp),%eax
lea    0x9bb(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm3
movsd  0x8b6(%rip),%xmm2
mov    $0x1,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
cvtsi2sd %eax,%xmm0
mov    0x30(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x30(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x956(%rip),%xmm1
subsd  -0x50(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x7c(%rbp),%esi
movsd  0x925(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1070 <transreson@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0x91b(%rip),%xmm0
movsd  0x8ab(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,-0xf4(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,-0xf8(%rbp)
movsd  0x8ed(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    -0xf8(%rbp),%ecx
mov    %eax,%edx
mov    -0xf4(%rbp),%eax
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0xf0(%rbp)
mov    -0x7c(%rbp),%esi
movsd  0x8b3(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ecx
mov    -0xf0(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x28(%rbp),%xmm0
mulsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm2
movsd  0x869(%rip),%xmm3
xor    %edi,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
cvtsi2sd %eax,%xmm0
mov    0x38(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x38(%rbp),%rax
movsd  (%rax),%xmm0
movsd  0x844(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    0x40(%rbp),%rax
movsd  %xmm0,(%rax)
mov    0x28(%rbp),%rax
movsd  (%rax),%xmm0
mov    0x30(%rbp),%rax
addsd  (%rax),%xmm0
mov    0x38(%rbp),%rax
addsd  (%rax),%xmm0
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decoder_delay>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %r9d,0x2c(%rsp)
mov    %r8d,%r13d
mov    %r8d,0x44(%rsp)
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %edx,0x20(%rsp)
mov    %esi,0x38(%rsp)
mov    %edi,%r12d
mov    %edi,0x30(%rsp)
movsd  0xe58(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebx
movsd  0xe48(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebp
add    %ebx,%ebp
movsd  0xe33(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
add    %ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xe0a(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x18(%rsp),%xmm1
movsd  0xdf4(%rip),%xmm2
xorps  %xmm0,%xmm0
movaps %xmm2,%xmm3
xor    %edi,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xdd6(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xdb0(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebx
movsd  0xda0(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebp
add    %ebx,%ebp
xorpd  %xmm1,%xmm1
movsd  0xd87(%rip),%xmm0
mov    $0x2,%al
call   1060 <gatecap@plt>
add    %ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xd61(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x10(%rsp),%xmm1
movsd  0x18(%rsp),%xmm0
movsd  0xd45(%rip),%xmm2
movaps %xmm2,%xmm3
mov    $0x1,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xd2f(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
mov    %r13d,%eax
imul   %r15d,%eax
mov    0x38(%rsp),%r13d
mov    %r13d,%ebx
mov    0x2c(%rsp),%r15d
imul   %r15d,%ebx
imul   %eax,%ebx
lea    0x0(,%rbx,8),%ecx
mov    %r12d,%eax
cltd
idiv   %ecx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0xccc(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%r12d
movsd  0xcbb(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebp
add    %r12d,%ebp
movsd  0xcbd(%rip),%xmm0
movsd  0xcbd(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    0x44(%rsp),%ecx
imul   %ecx,%r14d
imul   %eax,%r14d
lea    0x0(%rbp,%r14,4),%eax
mov    %ecx,%ebp
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
cvtsi2sd %r13d,%xmm5
movsd  0xc97(%rip),%xmm4
mulsd  %xmm5,%xmm4
xorps  %xmm1,%xmm1
cvtsi2sdl 0x20(%rsp),%xmm1
mulsd  %xmm1,%xmm4
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
xorps  %xmm3,%xmm3
cvtsi2sd %r15d,%xmm3
mulsd  %xmm2,%xmm4
mulsd  %xmm3,%xmm4
mulsd  0xc6f(%rip),%xmm5
addsd  %xmm0,%xmm4
movsd  %xmm4,0x50(%rsp)
mulsd  %xmm1,%xmm5
mulsd  %xmm2,%xmm5
mulsd  %xmm3,%xmm5
movsd  %xmm5,0x48(%rsp)
movsd  0xc0b(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0x48(%rsp),%xmm1
mulsd  0x50(%rsp),%xmm1
movsd  0xc2a(%rip),%xmm3
movsd  0x10(%rsp),%xmm0
movsd  0xbec(%rip),%xmm2
xor    %edi,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
xorps  %xmm0,%xmm0
cvtsi2sdl 0x30(%rsp),%xmm0
mov    0xa8(%rsp),%rax
movsd  %xmm1,0x10(%rsp)
movsd  %xmm1,(%rax)
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
divsd  %xmm1,%xmm0
mov    $0x1,%al
call   1080 <logtwo@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xbd8(%rip),%xmm0
call   1030 <ceil@plt>
cvttsd2si %xmm0,%eax
test   %eax,%eax
mov    $0x1,%ecx
cmove  %ecx,%eax
cmp    $0x5,%eax
mov    $0x5,%r14d
cmovl  %eax,%r14d
movsd  0xb68(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebx
movsd  0xba0(%rip),%xmm0
mov    $0x1,%edi
mov    $0x3,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%r15d
lea    0x0(,%r14,8),%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0xb7a(%rip),%xmm1
movsd  0xb7a(%rip),%xmm0
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%r13d
movsd  0xb58(%rip),%xmm0
mov    $0x1,%edi
mov    $0x3,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
mov    %eax,%r12d
lea    -0x1(%r14),%eax
cmp    $0x5,%eax
jae    152d <decoder_delay+0x3bd>
cltq
lea    0xbca(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm3
jmp    1558 <decoder_delay+0x3e8>
mov    0x2c(%rsp),%eax
mov    %eax,(%rsp)
lea    0xb7d(%rip),%rdi
mov    %r14d,%esi
mov    0x30(%rsp),%edx
mov    0x38(%rsp),%ecx
mov    0x20(%rsp),%r8d
mov    %ebp,%r9d
xor    %eax,%eax
call   1040 <printf@plt>
xorps  %xmm3,%xmm3
movsd  0xb10(%rip),%xmm0
xorps  %xmm2,%xmm2
cvtsi2sd %r13d,%xmm2
lea    (%rbx,%rbx,2),%eax
add    %r15d,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x18(%rsp),%xmm4
mulsd  %xmm4,%xmm0
mulsd  %xmm4,%xmm2
addsd  %xmm1,%xmm2
movsd  0xae9(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0xae5(%rip),%xmm4
mulsd  %xmm1,%xmm4
mulsd  0xae1(%rip),%xmm4
xorps  %xmm1,%xmm1
cvtsi2sd %r12d,%xmm1
addsd  %xmm2,%xmm0
addsd  %xmm4,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xa85(%rip),%xmm2
movsd  0x10(%rsp),%xmm0
divsd  %xmm2,%xmm0
movsd  %xmm3,0x20(%rsp)
mov    $0x1,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mov    0xb0(%rsp),%r15
movsd  %xmm1,(%r15)
movsd  0xa95(%rip),%xmm0
subsd  0x20(%rsp),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
movsd  0xa85(%rip),%xmm0
xor    %edi,%edi
mov    %r14d,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x30(%rsp)
movsd  0xa6c(%rip),%xmm0
movsd  0xa24(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%ebx
movsd  0xa5b(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebp
imul   %r14d,%ebp
add    %ebx,%ebp
movsd  0xa2a(%rip),%xmm0
xor    %edi,%edi
mov    %r14d,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
add    %ebp,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x30(%rsp),%xmm1
movsd  0xa1f(%rip),%xmm3
movsd  0x38(%rsp),%xmm0
movsd  0x20(%rsp),%xmm2
xor    %edi,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0xb8(%rsp),%rax
movsd  %xmm0,(%rax)
divsd  0x9ef(%rip),%xmm0
mov    0xc0(%rsp),%rcx
movsd  %xmm0,(%rcx)
mov    0xa8(%rsp),%rcx
movsd  (%rcx),%xmm0
addsd  (%r15),%xmm0
addsd  (%rax),%xmm0
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [55 x i8] c"error:numstack=%d C[%d] B[%d] A[%d] ndbl[%d] nspd[%d]\0A\00"
define double @decoder_delay(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, double* %9, double* %10, double* %11, double* %12) {
%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
%32 = alloca double
%33 = alloca double
%34 = alloca double
%35 = alloca double
%36 = alloca double
%37 = alloca double
%38 = alloca double
%39 = alloca i32
store i32 %0, i32* %14
store i32 %1, i32* %15
store i32 %2, i32* %16
store i32 %3, i32* %17
store i32 %4, i32* %18
store i32 %5, i32* %19
store i32 %6, i32* %20
store i32 %7, i32* %21
store i32 %8, i32* %22
store double* %9, double** %23
store double* %10, double** %24
store double* %11, double** %25
store double* %12, double** %26
store double 0.000000e+00, double* %33
%40 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%41 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%42 = add nsw i32 %40, %41
%43 = call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.600000e+02, double 0.000000e+00)
%44 = add nsw i32 %42, %43
%45 = sitofp i32 %44 to double
store double %45, double* %27
%46 = load double, double* %27
%47 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%48 = sitofp i32 %47 to double
%49 = fmul double %46, %48
store double %49, double* %31
%50 = load double, double* %31
%51 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double 0.000000e+00, double %50, double 4.380000e-01, double 4.380000e-01, i32 0)
%52 = sitofp i32 %51 to double
%53 = fdiv double %52, 4.380000e-01
store double %53, double* %32
%54 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%55 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%56 = add nsw i32 %54, %55
%57 = call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.600000e+02, double 0.000000e+00)
%58 = add nsw i32 %56, %57
%59 = sitofp i32 %58 to double
store double %59, double* %27
%60 = load double, double* %27
%61 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%62 = sitofp i32 %61 to double
%63 = fmul double %60, %62
store double %63, double* %31
%64 = load double, double* %32
%65 = load double, double* %31
%66 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %64, double %65, double 4.380000e-01, double 4.380000e-01, i32 1)
%67 = sitofp i32 %66 to double
%68 = fdiv double %67, 5.620000e-01
store double %68, double* %32
%69 = load i32, i32* %14
%70 = load i32, i32* %15
%71 = mul nsw i32 8, %70
%72 = load i32, i32* %16
%73 = mul nsw i32 %71, %72
%74 = load i32, i32* %18
%75 = mul nsw i32 %73, %74
%76 = load i32, i32* %19
%77 = mul nsw i32 %75, %76
%78 = sdiv i32 %69, %77
%79 = sitofp i32 %78 to double
store double %79, double* %30
%80 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%81 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%82 = add nsw i32 %80, %81
%83 = call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.500000e+02, double 1.000000e+01)
%84 = mul nsw i32 4, %83
%85 = load i32, i32* %17
%86 = load i32, i32* %18
%87 = mul nsw i32 %85, %86
%88 = mul nsw i32 %84, %87
%89 = add nsw i32 %82, %88
%90 = sitofp i32 %89 to double
%91 = load i32, i32* %15
%92 = sitofp i32 %91 to double
%93 = fmul double 3.600000e-15, %92
%94 = load i32, i32* %16
%95 = sitofp i32 %94 to double
%96 = fmul double %93, %95
%97 = load i32, i32* %18
%98 = sitofp i32 %97 to double
%99 = fmul double %96, %98
%100 = load i32, i32* %19
%101 = sitofp i32 %100 to double
%102 = call double @llvm.fmuladd.f64(double %99, double %101, double %90)
store double %102, double* %27
%103 = load i32, i32* %15
%104 = sitofp i32 %103 to double
%105 = fmul double 8.000000e-02, %104
%106 = load i32, i32* %16
%107 = sitofp i32 %106 to double
%108 = fmul double %105, %107
%109 = load i32, i32* %18
%110 = sitofp i32 %109 to double
%111 = fmul double %108, %110
%112 = load i32, i32* %19
%113 = sitofp i32 %112 to double
%114 = fmul double %111, %113
store double %114, double* %29
%115 = load double, double* %29
%116 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%117 = sitofp i32 %116 to double
%118 = fadd double %115, %117
%119 = load double, double* %27
%120 = fmul double %118, %119
store double %120, double* %31
%121 = load double, double* %32
%122 = load double, double* %31
%123 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %121, double %122, double 4.380000e-01, double 5.610000e-01, i32 0)
%124 = sitofp i32 %123 to double
%125 = load double*, double** %23
store double %124, double* %125
%126 = load double*, double** %23
%127 = load double, double* %126
%128 = fdiv double %127, 5.610000e-01
store double %128, double* %32
%129 = load i32, i32* %14
%130 = sitofp i32 %129 to double
%131 = load i32, i32* %15
%132 = load i32, i32* %16
%133 = mul nsw i32 %131, %132
%134 = load i32, i32* %18
%135 = mul nsw i32 %133, %134
%136 = load i32, i32* %19
%137 = mul nsw i32 %135, %136
%138 = sitofp i32 %137 to double
%139 = fdiv double %130, %138
%140 = call i32 (double, ...) bitcast (i32 (...)* @logtwo to i32 (double, ...)*)(double %139)
%141 = sitofp i32 %140 to double
%142 = fmul double 0x3FD5555555555555, %141
%143 = call double @llvm.ceil.f64(double %142)
%144 = fptosi double %143 to i32
store i32 %144, i32* %39
%145 = load i32, i32* %39
%146 = icmp eq i32 %145, 0
br i1 %146, label %147, label %148
147: ; preds = %13
store i32 1, i32* %39
br label %148
148: ; preds = %147, %13
%149 = load i32, i32* %39
%150 = icmp sgt i32 %149, 5
br i1 %150, label %151, label %152
151: ; preds = %148
store i32 5, i32* %39
br label %152
152: ; preds = %151, %148
%153 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 0, i32 1)
%154 = mul nsw i32 3, %153
%155 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 9.000000e+01, i32 1, i32 3)
%156 = add nsw i32 %154, %155
%157 = sitofp i32 %156 to double
%158 = load i32, i32* %39
%159 = mul nsw i32 %158, 40
%160 = sitofp i32 %159 to double
%161 = fadd double %160, 2.000000e+01
%162 = call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.440000e+01, double %161)
%163 = sitofp i32 %162 to double
%164 = load double, double* %30
%165 = call double @llvm.fmuladd.f64(double %163, double %164, double %157)
%166 = load double, double* %30
%167 = fmul double 4.400000e-15, %166
%168 = call double @llvm.fmuladd.f64(double %167, double 8.000000e+00, double %165)
store double %168, double* %27
%169 = load double, double* %30
%170 = fmul double 3.200000e-01, %169
%171 = fmul double %170, 8.000000e+00
%172 = fdiv double %171, 2.000000e+00
store double %172, double* %29
%173 = load double, double* %27
%174 = load double, double* %29
%175 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 9.000000e+01, i32 1, i32 3)
%176 = sitofp i32 %175 to double
%177 = fadd double %174, %176
%178 = fmul double %173, %177
store double %178, double* %31
%179 = load i32, i32* %39
switch i32 %179, label %185 [
i32 1, label %180
i32 2, label %181
i32 3, label %182
i32 4, label %183
i32 5, label %184
]
180: ; preds = %152
store double 5.030000e-01, double* %33
br label %193
181: ; preds = %152
store double 4.520000e-01, double* %33
br label %193
182: ; preds = %152
store double 4.170000e-01, double* %33
br label %193
183: ; preds = %152
store double 3.900000e-01, double* %33
br label %193
184: ; preds = %152
store double 3.900000e-01, double* %33
br label %193
185: ; preds = %152
%186 = load i32, i32* %39
%187 = load i32, i32* %14
%188 = load i32, i32* %15
%189 = load i32, i32* %16
%190 = load i32, i32* %18
%191 = load i32, i32* %19
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 %186, i32 %187, i32 %188, i32 %189, i32 %190, i32 %191)
br label %193
193: ; preds = %185, %184, %183, %182, %181, %180
%194 = load double, double* %32
%195 = load double, double* %31
%196 = load double, double* %33
%197 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %194, double %195, double 5.610000e-01, double %196, i32 1)
%198 = sitofp i32 %197 to double
%199 = load double*, double** %24
store double %198, double* %199
%200 = load double*, double** %24
%201 = load double, double* %200
%202 = load double, double* %33
%203 = fsub double 1.000000e+00, %202
%204 = fdiv double %201, %203
store double %204, double* %32
%205 = load i32, i32* %39
%206 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 1.200000e+01, i32 0, i32 %205)
%207 = sitofp i32 %206 to double
store double %207, double* %28
%208 = call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.500000e+01, double 2.000000e+01)
%209 = load i32, i32* %39
%210 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 2.400000e+00, i32 1, i32 1)
%211 = mul nsw i32 %209, %210
%212 = add nsw i32 %208, %211
%213 = load i32, i32* %39
%214 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.200000e+01, i32 0, i32 %213)
%215 = add nsw i32 %212, %214
%216 = sitofp i32 %215 to double
store double %216, double* %27
%217 = load double, double* %28
%218 = load double, double* %27
%219 = fmul double %217, %218
store double %219, double* %31
%220 = load double, double* %32
%221 = load double, double* %31
%222 = load double, double* %33
%223 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %220, double %221, double %222, double 4.560000e-01, i32 0)
%224 = sitofp i32 %223 to double
%225 = load double*, double** %25
store double %224, double* %225
%226 = load double*, double** %25
%227 = load double, double* %226
%228 = fdiv double %227, 4.560000e-01
%229 = load double*, double** %26
store double %228, double* %229
%230 = load double*, double** %23
%231 = load double, double* %230
%232 = load double*, double** %24
%233 = load double, double* %232
%234 = fadd double %231, %233
%235 = load double*, double** %25
%236 = load double, double* %235
%237 = fadd double %234, %236
ret double %237
}

LLVM IR (-O2):
@.str = [55 x i8] c"error:numstack=%d C[%d] B[%d] A[%d] ndbl[%d] nspd[%d]\0A\00"
@switch.table.decoder_delay = [5 x double] [double 5.030000e-01, double 4.520000e-01, double 4.170000e-01, double 3.900000e-01, double 3.900000e-01]
define double @decoder_delay(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5, i32 %6, i32 %7, i32 %8, double* nocapture %9, double* nocapture %10, double* nocapture %11, double* nocapture writeonly %12) {
%14 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%15 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%16 = add nsw i32 %15, %14
%17 = tail call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.600000e+02, double 0.000000e+00)
%18 = add nsw i32 %16, %17
%19 = sitofp i32 %18 to double
%20 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%21 = sitofp i32 %20 to double
%22 = fmul double %19, %21
%23 = tail call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double 0.000000e+00, double %22, double 4.380000e-01, double 4.380000e-01, i32 0)
%24 = sitofp i32 %23 to double
%25 = fdiv double %24, 4.380000e-01
%26 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%27 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%28 = add nsw i32 %27, %26
%29 = tail call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.600000e+02, double 0.000000e+00)
%30 = add nsw i32 %28, %29
%31 = sitofp i32 %30 to double
%32 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%33 = sitofp i32 %32 to double
%34 = fmul double %31, %33
%35 = tail call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %25, double %34, double 4.380000e-01, double 4.380000e-01, i32 1)
%36 = sitofp i32 %35 to double
%37 = fdiv double %36, 5.620000e-01
%38 = mul i32 %4, %2
%39 = shl i32 %38, 3
%40 = mul i32 %39, %1
%41 = mul i32 %40, %5
%42 = sdiv i32 %0, %41
%43 = sitofp i32 %42 to double
%44 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%45 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 1, i32 1)
%46 = add nsw i32 %45, %44
%47 = tail call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.500000e+02, double 1.000000e+01)
%48 = shl i32 %3, 2
%49 = mul i32 %48, %4
%50 = mul i32 %49, %47
%51 = add nsw i32 %46, %50
%52 = sitofp i32 %51 to double
%53 = sitofp i32 %1 to double
%54 = fmul double %53, 3.600000e-15
%55 = sitofp i32 %2 to double
%56 = fmul double %54, %55
%57 = sitofp i32 %4 to double
%58 = fmul double %56, %57
%59 = sitofp i32 %5 to double
%60 = tail call double @llvm.fmuladd.f64(double %58, double %59, double %52)
%61 = fmul double %53, 8.000000e-02
%62 = fmul double %61, %55
%63 = fmul double %62, %57
%64 = fmul double %63, %59
%65 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 1.000000e+02, i32 0, i32 1)
%66 = sitofp i32 %65 to double
%67 = fadd double %64, %66
%68 = fmul double %67, %60
%69 = tail call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %37, double %68, double 4.380000e-01, double 5.610000e-01, i32 0)
%70 = sitofp i32 %69 to double
store double %70, double* %9
%71 = sitofp i32 %0 to double
%72 = mul i32 %38, %1
%73 = mul i32 %72, %5
%74 = sitofp i32 %73 to double
%75 = fdiv double %71, %74
%76 = tail call i32 (double, ...) bitcast (i32 (...)* @logtwo to i32 (double, ...)*)(double %75)
%77 = sitofp i32 %76 to double
%78 = fmul double %77, 0x3FD5555555555555
%79 = tail call double @llvm.ceil.f64(double %78)
%80 = fptosi double %79 to i32
%81 = icmp eq i32 %80, 0
%82 = select i1 %81, i32 1, i32 %80
%83 = icmp slt i32 %82, 5
%84 = select i1 %83, i32 %82, i32 5
%85 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 6.000000e+01, i32 0, i32 1)
%86 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 9.000000e+01, i32 1, i32 3)
%87 = mul nsw i32 %84, 40
%88 = sitofp i32 %87 to double
%89 = fadd double %88, 2.000000e+01
%90 = tail call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.440000e+01, double %89)
%91 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 9.000000e+01, i32 1, i32 3)
%92 = add i32 %84, -1
%93 = icmp ult i32 %92, 5
br i1 %93, label %96, label %94
94: ; preds = %13
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0), i32 %84, i32 %0, i32 %1, i32 %2, i32 %4, i32 %5)
br label %100
96: ; preds = %13
%97 = sext i32 %92 to i64
%98 = getelementptr inbounds [5 x double], [5 x double]* @switch.table.decoder_delay, i64 0, i64 %97
%99 = load double, double* %98
br label %100
100: ; preds = %96, %94
%101 = phi double [ 0.000000e+00, %94 ], [ %99, %96 ]
%102 = fmul double %43, 4.400000e-15
%103 = sitofp i32 %90 to double
%104 = mul nsw i32 %85, 3
%105 = add nsw i32 %104, %86
%106 = sitofp i32 %105 to double
%107 = tail call double @llvm.fmuladd.f64(double %103, double %43, double %106)
%108 = tail call double @llvm.fmuladd.f64(double %102, double 8.000000e+00, double %107)
%109 = fmul double %43, 3.200000e-01
%110 = fmul double %109, 8.000000e+00
%111 = fmul double %110, 5.000000e-01
%112 = sitofp i32 %91 to double
%113 = fadd double %111, %112
%114 = fmul double %108, %113
%115 = fdiv double %70, 5.610000e-01
%116 = tail call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %115, double %114, double 5.610000e-01, double %101, i32 1)
%117 = sitofp i32 %116 to double
store double %117, double* %10
%118 = fsub double 1.000000e+00, %101
%119 = fdiv double %117, %118
%120 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 1.200000e+01, i32 0, i32 %84)
%121 = sitofp i32 %120 to double
%122 = tail call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.500000e+01, double 2.000000e+01)
%123 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 2.400000e+00, i32 1, i32 1)
%124 = mul nsw i32 %123, %84
%125 = add nsw i32 %124, %122
%126 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.200000e+01, i32 0, i32 %84)
%127 = add nsw i32 %125, %126
%128 = sitofp i32 %127 to double
%129 = fmul double %121, %128
%130 = tail call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %119, double %129, double %101, double 4.560000e-01, i32 0)
%131 = sitofp i32 %130 to double
store double %131, double* %11
%132 = fdiv double %131, 4.560000e-01
store double %132, double* %12
%133 = load double, double* %9
%134 = load double, double* %10
%135 = fadd double %133, %134
%136 = load double, double* %11
%137 = fadd double %135, %136
ret double %137
}