double decoder_tag_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, 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 * Ntbl * Ntspd);
  Ceq = draincap(100.0, 0, 1) + draincap(60.0, 1, 1) +
        4 * gatecap(90.0 + 60.0, 10.0) * (Ntwl * Ntbl) +
        1.8e-15 * 0.25 * 8 * B * A * Ntbl * Ntspd;
  Rwire = 0.080 * 0.125 * 8 * B * A * Ntbl * Ntspd;
  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 * Ntbl * Ntspd))));
  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;
  case 6:
    vth = 0.390;
    break;
  default:
    printf("error:numstack=%d\n", numstack);
  }
  *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_tag_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)
movsd  0xe68(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,-0xb0(%rbp)
movsd  0xe74(%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  0xe5e(%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  0xe1c(%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  0xdb9(%rip),%xmm3
xor    %edi,%edi
movaps %xmm3,%xmm2
mov    $0x4,%al
call   1090 <horowitz@plt>
cvtsi2sd %eax,%xmm0
movsd  0xda1(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xd98(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,-0xa0(%rbp)
movsd  0xda4(%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  0xd8e(%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  0xd4c(%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  0xce7(%rip),%xmm3
mov    $0x1,%edi
movaps %xmm3,%xmm2
mov    $0x4,%al
call   1090 <horowitz@plt>
cvtsi2sd %eax,%xmm0
movsd  0xd04(%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   0x18(%rbp),%ecx
imul   0x20(%rbp),%ecx
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xca2(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,-0x90(%rbp)
movsd  0xcae(%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  0xc78(%rip),%xmm0
movsd  0xc78(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%ecx
mov    -0x8c(%rbp),%eax
shl    $0x2,%ecx
mov    0x10(%rbp),%edx
imul   0x18(%rbp),%edx
imul   %edx,%ecx
add    %ecx,%eax
cvtsi2sd %eax,%xmm1
cvtsi2sdl -0x8(%rbp),%xmm2
movsd  0xc39(%rip),%xmm0
mulsd  %xmm2,%xmm0
cvtsi2sdl -0xc(%rbp),%xmm2
mulsd  %xmm2,%xmm0
cvtsi2sdl 0x18(%rbp),%xmm2
mulsd  %xmm2,%xmm0
cvtsi2sdl 0x20(%rbp),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xbfc(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsi2sdl -0xc(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl 0x18(%rbp),%xmm1
mulsd  %xmm1,%xmm0
cvtsi2sdl 0x20(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  0xbbb(%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  0xb79(%rip),%xmm2
movsd  0xb69(%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  0xb44(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
cvtsi2sdl -0x4(%rbp),%xmm0
mov    -0x8(%rbp),%eax
imul   -0xc(%rbp),%eax
imul   0x18(%rbp),%eax
imul   0x20(%rbp),%eax
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
mov    $0x1,%al
call   1080 <logtwo@plt>
cvtsi2sd %eax,%xmm1
movsd  0xb04(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <ceil@plt>
cvttsd2si %xmm0,%eax
mov    %eax,-0x7c(%rbp)
cmpl   $0x0,-0x7c(%rbp)
jne    151d <decoder_tag_delay+0x3ad>
movl   $0x1,-0x7c(%rbp)
cmpl   $0x5,-0x7c(%rbp)
jle    152e <decoder_tag_delay+0x3be>
movl   $0x5,-0x7c(%rbp)
movsd  0xb0a(%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  0xae7(%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  0xaaa(%rip),%xmm0
addsd  %xmm0,%xmm1
movsd  0xaa6(%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  0xa6a(%rip),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xa66(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm3,%xmm1
movsd  %xmm1,-0x20(%rbp)
movsd  -0x38(%rbp),%xmm1
movsd  0xa54(%rip),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm1
movsd  0xa4c(%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    $0x5,%eax
ja     1720 <decoder_tag_delay+0x5b0>
mov    -0xb8(%rbp),%rax
lea    0xa2d(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
movsd  0x9ec(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1731 <decoder_tag_delay+0x5c1>
movsd  0x9d2(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1731 <decoder_tag_delay+0x5c1>
movsd  0x9b8(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1731 <decoder_tag_delay+0x5c1>
movsd  0x99e(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1731 <decoder_tag_delay+0x5c1>
movsd  0x98c(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1731 <decoder_tag_delay+0x5c1>
movsd  0x97a(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
jmp    1731 <decoder_tag_delay+0x5c1>
mov    -0x7c(%rbp),%esi
lea    0x9c6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  -0x50(%rbp),%xmm3
movsd  0x8c0(%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  0x960(%rip),%xmm1
subsd  -0x50(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x7c(%rbp),%esi
movsd  0x92f(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%al
call   1070 <transreson@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0x925(%rip),%xmm0
movsd  0x8b5(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,-0xf4(%rbp)
mov    -0x7c(%rbp),%eax
mov    %eax,-0xf8(%rbp)
movsd  0x8f7(%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  0x8bd(%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  0x873(%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  0x84e(%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_tag_delay>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %edx,%r12d
mov    %esi,%r15d
mov    %edi,0x10(%rsp)
mov    0x68(%rsp),%r13d
movsd  0xe6b(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebp
movsd  0xe5b(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebx
add    %ebp,%ebx
movsd  0xe46(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
add    %ebx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xe1d(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x8(%rsp),%xmm1
movsd  0xe07(%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  0xde9(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xdc3(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebx
movsd  0xdb3(%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  0xd9a(%rip),%xmm0
mov    $0x2,%al
call   1060 <gatecap@plt>
add    %ebp,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xd75(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  (%rsp),%xmm1
movsd  0x8(%rsp),%xmm0
movsd  0xd5a(%rip),%xmm2
movaps %xmm2,%xmm3
mov    $0x1,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0xd44(%rip),%xmm0
movsd  %xmm0,(%rsp)
mov    %r12d,%r14d
imul   %r15d,%r14d
imul   %r13d,%r14d
imul   0x70(%rsp),%r14d
lea    0x0(,%r14,8),%ecx
mov    0x10(%rsp),%eax
cltd
idiv   %ecx
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xcea(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebx
movsd  0xcda(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebp
add    %ebx,%ebp
movsd  0xcdd(%rip),%xmm0
movsd  0xcdd(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %r13d,%xmm0
imul   0x60(%rsp),%r13d
imul   %eax,%r13d
lea    0x0(%rbp,%r13,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
cvtsi2sd %r15d,%xmm5
movsd  0xcb3(%rip),%xmm4
xorps  %xmm2,%xmm2
cvtsi2sd %r12d,%xmm2
mulsd  %xmm5,%xmm4
mulsd  %xmm2,%xmm4
xorps  %xmm3,%xmm3
cvtsi2sdl 0x70(%rsp),%xmm3
mulsd  %xmm0,%xmm4
mulsd  %xmm3,%xmm4
mulsd  0xc92(%rip),%xmm5
addsd  %xmm1,%xmm4
movsd  %xmm4,0x20(%rsp)
mulsd  %xmm2,%xmm5
mulsd  %xmm0,%xmm5
mulsd  %xmm3,%xmm5
movsd  %xmm5,0x18(%rsp)
movsd  0xc2e(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0x18(%rsp),%xmm1
mulsd  0x20(%rsp),%xmm1
movsd  0xc4d(%rip),%xmm3
movsd  (%rsp),%xmm0
movsd  0xc10(%rip),%xmm2
xor    %edi,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
xorps  %xmm0,%xmm0
cvtsi2sdl 0x10(%rsp),%xmm0
mov    0x78(%rsp),%rax
movsd  %xmm1,(%rsp)
movsd  %xmm1,(%rax)
xorps  %xmm1,%xmm1
cvtsi2sd %r14d,%xmm1
divsd  %xmm1,%xmm0
mov    $0x1,%al
call   1080 <logtwo@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xbff(%rip),%xmm0
call   1030 <ceil@plt>
cvttsd2si %xmm0,%eax
test   %eax,%eax
mov    $0x1,%ecx
cmove  %ecx,%eax
cmp    $0x5,%eax
mov    $0x5,%r13d
cmovl  %eax,%r13d
movsd  0xb8f(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%r14d
movsd  0xbc6(%rip),%xmm0
mov    $0x1,%edi
mov    $0x3,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%r15d
lea    0x0(,%r13,8),%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
addsd  0xba0(%rip),%xmm1
movsd  0xba0(%rip),%xmm0
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%ebp
movsd  0xb7f(%rip),%xmm0
mov    $0x1,%edi
mov    $0x3,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
mov    %eax,%r12d
lea    -0x1(%r13),%eax
cmp    $0x5,%eax
jae    1506 <decoder_tag_delay+0x396>
cltq
lea    0xbd1(%rip),%rcx
movsd  (%rcx,%rax,8),%xmm3
jmp    1517 <decoder_tag_delay+0x3a7>
lea    0xbab(%rip),%rdi
mov    %r13d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movsd  %xmm3,0x10(%rsp)
movsd  0xb4b(%rip),%xmm0
xorps  %xmm2,%xmm2
cvtsi2sd %ebp,%xmm2
lea    (%r14,%r14,2),%eax
add    %r15d,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movsd  0x8(%rsp),%xmm4
mulsd  %xmm4,%xmm0
mulsd  %xmm4,%xmm2
addsd  %xmm1,%xmm2
movsd  0xb24(%rip),%xmm1
mulsd  %xmm1,%xmm0
mulsd  0xb20(%rip),%xmm4
mulsd  %xmm1,%xmm4
mulsd  0xb1c(%rip),%xmm4
xorps  %xmm1,%xmm1
cvtsi2sd %r12d,%xmm1
addsd  %xmm2,%xmm0
addsd  %xmm4,%xmm1
mulsd  %xmm0,%xmm1
movsd  0xac0(%rip),%xmm2
movsd  (%rsp),%xmm0
divsd  %xmm2,%xmm0
mov    $0x1,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mov    0x80(%rsp),%r14
movsd  %xmm1,(%r14)
movsd  0xad7(%rip),%xmm0
subsd  0x10(%rsp),%xmm0
divsd  %xmm0,%xmm1
movsd  %xmm1,0x8(%rsp)
movsd  0xac7(%rip),%xmm0
xor    %edi,%edi
mov    %r13d,%esi
mov    $0x1,%al
call   1070 <transreson@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xaaf(%rip),%xmm0
movsd  0xa67(%rip),%xmm1
mov    $0x2,%al
call   1060 <gatecap@plt>
mov    %eax,%ebp
movsd  0xa9e(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
mov    %eax,%ebx
imul   %r13d,%ebx
add    %ebp,%ebx
movsd  0xa6d(%rip),%xmm0
xor    %edi,%edi
mov    %r13d,%esi
mov    $0x1,%al
call   1050 <draincap@plt>
add    %ebx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  (%rsp),%xmm1
movsd  0xa63(%rip),%xmm3
movsd  0x8(%rsp),%xmm0
movsd  0x10(%rsp),%xmm2
xor    %edi,%edi
mov    $0x4,%al
call   1090 <horowitz@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mov    0x88(%rsp),%rax
movsd  %xmm0,(%rax)
divsd  0xa33(%rip),%xmm0
mov    0x90(%rsp),%rcx
movsd  %xmm0,(%rcx)
mov    0x78(%rsp),%rcx
movsd  (%rcx),%xmm0
addsd  (%r14),%xmm0
addsd  (%rax),%xmm0
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [19 x i8] c"error:numstack=%d\0A\00"
define double @decoder_tag_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
%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* %21
%75 = mul nsw i32 %73, %74
%76 = load i32, i32* %22
%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* %20
%86 = load i32, i32* %21
%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* %21
%98 = sitofp i32 %97 to double
%99 = fmul double %96, %98
%100 = load i32, i32* %22
%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* %21
%110 = sitofp i32 %109 to double
%111 = fmul double %108, %110
%112 = load i32, i32* %22
%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* %21
%135 = mul nsw i32 %133, %134
%136 = load i32, i32* %22
%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 %186 [
i32 1, label %180
i32 2, label %181
i32 3, label %182
i32 4, label %183
i32 5, label %184
i32 6, label %185
]
180: ; preds = %152
store double 5.030000e-01, double* %33
br label %189
181: ; preds = %152
store double 4.520000e-01, double* %33
br label %189
182: ; preds = %152
store double 4.170000e-01, double* %33
br label %189
183: ; preds = %152
store double 3.900000e-01, double* %33
br label %189
184: ; preds = %152
store double 3.900000e-01, double* %33
br label %189
185: ; preds = %152
store double 3.900000e-01, double* %33
br label %189
186: ; preds = %152
%187 = load i32, i32* %39
%188 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %187)
br label %189
189: ; preds = %186, %185, %184, %183, %182, %181, %180
%190 = load double, double* %32
%191 = load double, double* %31
%192 = load double, double* %33
%193 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %190, double %191, double 5.610000e-01, double %192, i32 1)
%194 = sitofp i32 %193 to double
%195 = load double*, double** %24
store double %194, double* %195
%196 = load double*, double** %24
%197 = load double, double* %196
%198 = load double, double* %33
%199 = fsub double 1.000000e+00, %198
%200 = fdiv double %197, %199
store double %200, double* %32
%201 = load i32, i32* %39
%202 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @transreson to i32 (double, i32, i32, ...)*)(double 1.200000e+01, i32 0, i32 %201)
%203 = sitofp i32 %202 to double
store double %203, double* %28
%204 = call i32 (double, double, ...) bitcast (i32 (...)* @gatecap to i32 (double, double, ...)*)(double 1.500000e+01, double 2.000000e+01)
%205 = load i32, i32* %39
%206 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 2.400000e+00, i32 1, i32 1)
%207 = mul nsw i32 %205, %206
%208 = add nsw i32 %204, %207
%209 = load i32, i32* %39
%210 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @draincap to i32 (double, i32, i32, ...)*)(double 1.200000e+01, i32 0, i32 %209)
%211 = add nsw i32 %208, %210
%212 = sitofp i32 %211 to double
store double %212, double* %27
%213 = load double, double* %28
%214 = load double, double* %27
%215 = fmul double %213, %214
store double %215, double* %31
%216 = load double, double* %32
%217 = load double, double* %31
%218 = load double, double* %33
%219 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @horowitz to i32 (double, double, double, double, i32, ...)*)(double %216, double %217, double %218, double 4.560000e-01, i32 0)
%220 = sitofp i32 %219 to double
%221 = load double*, double** %25
store double %220, double* %221
%222 = load double*, double** %25
%223 = load double, double* %222
%224 = fdiv double %223, 4.560000e-01
%225 = load double*, double** %26
store double %224, double* %225
%226 = load double*, double** %23
%227 = load double, double* %226
%228 = load double*, double** %24
%229 = load double, double* %228
%230 = fadd double %227, %229
%231 = load double*, double** %25
%232 = load double, double* %231
%233 = fadd double %230, %232
ret double %233
}

LLVM IR (-O2):
@.str = [19 x i8] c"error:numstack=%d\0A\00"
@switch.table.decoder_tag_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_tag_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 %7, %2
%39 = shl i32 %38, 3
%40 = mul i32 %39, %1
%41 = mul i32 %40, %8
%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 %6, 2
%49 = mul i32 %48, %7
%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 %7 to double
%58 = fmul double %56, %57
%59 = sitofp i32 %8 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, %8
%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 ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i32 %84)
br label %100
96: ; preds = %13
%97 = sext i32 %92 to i64
%98 = getelementptr inbounds [5 x double], [5 x double]* @switch.table.decoder_tag_delay, i64 0, i64 %97
%99 = load double, double* %98
br label %100
100: ; preds = %96, %94
%101 = phi double [ undef, %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
}