double SIM_power_selb_delay_tag_path(inrisetime, outrisetime)
double inrisetime, *outrisetime;
{
  double Ceq, Tst1, tf;
  Ceq = SIM_power_draincap((12.0 * 0.0875), 1, 1) +
        SIM_power_draincap((20.0 * 0.0875), 0, 1) +
        SIM_power_gatecap((24.0 * 0.0875) + (10.0 * 0.0875), 10.0);
  tf = Ceq * SIM_power_transreson((12.0 * 0.0875), 1, 1);
  Tst1 = SIM_power_horowitz(inrisetime, tf, (4.370000e-01), (4.410000e-01), 1);
  *outrisetime = Tst1 / (1.0 - (4.410000e-01));
  return (Tst1);
}


x86 assembly (clang, -O0):
<SIM_power_selb_delay_tag_path>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
mov    %rdi,-0x10(%rbp)
movsd  0xebf(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,-0x38(%rbp)
movsd  0xebe(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,%ecx
mov    -0x38(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x34(%rbp)
movsd  0xe8e(%rip),%xmm0
movsd  0xe8e(%rip),%xmm1
mov    $0x2,%al
call   1060 <SIM_power_gatecap@plt>
mov    %eax,%ecx
mov    -0x34(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe55(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1030 <SIM_power_transreson@plt>
movsd  -0x30(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm1
movsd  0xe13(%rip),%xmm2
movsd  0xe13(%rip),%xmm3
mov    $0x1,%edi
mov    $0x4,%al
call   1050 <SIM_power_horowitz@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  0xde1(%rip),%xmm1
divsd  %xmm1,%xmm0
mov    -0x10(%rbp),%rax
movsd  %xmm0,(%rax)
movsd  -0x20(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SIM_power_selb_delay_tag_path>:
push   %rbp
push   %r14
push   %rbx
sub    $0x10,%rsp
mov    %rdi,%r14
movsd  %xmm0,0x8(%rsp)
movsd  0xea7(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,%ebp
movsd  0xe94(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,%ebx
add    %ebp,%ebx
movsd  0xe82(%rip),%xmm0
movsd  0xe82(%rip),%xmm1
mov    $0x2,%al
call   1060 <SIM_power_gatecap@plt>
add    %ebx,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe4d(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1030 <SIM_power_transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  (%rsp),%xmm1
movsd  0xe48(%rip),%xmm2
movsd  0xe48(%rip),%xmm3
movsd  0x8(%rsp),%xmm0
mov    $0x1,%edi
mov    $0x4,%al
call   1050 <SIM_power_horowitz@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd %xmm0,%xmm1
divsd  0xe2b(%rip),%xmm1
movsd  %xmm1,(%r14)
add    $0x10,%rsp
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
define double @SIM_power_selb_delay_tag_path(double %0, double* %1) {
%3 = alloca double
%4 = alloca double*
%5 = alloca double
%6 = alloca double
%7 = alloca double
store double %0, double* %3
store double* %1, double** %4
%8 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 0x3FF0CCCCCCCCCCCC, i32 1, i32 1)
%9 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 1.750000e+00, i32 0, i32 1)
%10 = add nsw i32 %8, %9
%11 = call i32 (double, double, ...) bitcast (i32 (...)* @SIM_power_gatecap to i32 (double, double, ...)*)(double 0x4007CCCCCCCCCCCC, double 1.000000e+01)
%12 = add nsw i32 %10, %11
%13 = sitofp i32 %12 to double
store double %13, double* %5
%14 = load double, double* %5
%15 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_transreson to i32 (double, i32, i32, ...)*)(double 0x3FF0CCCCCCCCCCCC, i32 1, i32 1)
%16 = sitofp i32 %15 to double
%17 = fmul double %14, %16
store double %17, double* %7
%18 = load double, double* %3
%19 = load double, double* %7
%20 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @SIM_power_horowitz to i32 (double, double, double, double, i32, ...)*)(double %18, double %19, double 4.370000e-01, double 4.410000e-01, i32 1)
%21 = sitofp i32 %20 to double
store double %21, double* %6
%22 = load double, double* %6
%23 = fdiv double %22, 0x3FE1E353F7CED916
%24 = load double*, double** %4
store double %23, double* %24
%25 = load double, double* %6
ret double %25
}

LLVM IR (-O2):
define double @SIM_power_selb_delay_tag_path(double %0, double* nocapture writeonly %1) {
%3 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 0x3FF0CCCCCCCCCCCC, i32 1, i32 1)
%4 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 1.750000e+00, i32 0, i32 1)
%5 = add nsw i32 %4, %3
%6 = tail call i32 (double, double, ...) bitcast (i32 (...)* @SIM_power_gatecap to i32 (double, double, ...)*)(double 0x4007CCCCCCCCCCCC, double 1.000000e+01)
%7 = add nsw i32 %5, %6
%8 = sitofp i32 %7 to double
%9 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_transreson to i32 (double, i32, i32, ...)*)(double 0x3FF0CCCCCCCCCCCC, i32 1, i32 1)
%10 = sitofp i32 %9 to double
%11 = fmul double %8, %10
%12 = tail call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @SIM_power_horowitz to i32 (double, double, double, double, i32, ...)*)(double %0, double %11, double 4.370000e-01, double 4.410000e-01, i32 1)
%13 = sitofp i32 %12 to double
%14 = fdiv double %13, 0x3FE1E353F7CED916
store double %14, double* %1
ret double %13
}