double SIM_power_precharge_delay(worddata)
double worddata;
{
  double Ceq, tf, pretime;
  Ceq = SIM_power_draincap((5.0 * 0.0875), 1, 1) +
        SIM_power_draincap((10.0 * 0.0875), 0, 1) +
        4 * SIM_power_gatecap((5.0 * 0.0875) + (10.0 * 0.0875), 0.0);
  tf = Ceq * SIM_power_transreson((5.0 * 0.0875), 1, 1);
  pretime = 4 * SIM_power_horowitz(0.0, tf, 0.5, 0.5, 1) + worddata;
  return (pretime);
}


x86 assembly (clang, -O0):
<SIM_power_precharge_delay>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  0xeb3(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,-0x30(%rbp)
movsd  0xeaa(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,%ecx
mov    -0x30(%rbp),%eax
add    %ecx,%eax
mov    %eax,-0x2c(%rbp)
movsd  0xe82(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0x2,%al
call   1060 <SIM_power_gatecap@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
shl    $0x2,%ecx
add    %ecx,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe4b(%rip),%xmm0
mov    $0x1,%esi
mov    %esi,%edi
mov    $0x1,%al
call   1030 <SIM_power_transreson@plt>
movsd  -0x28(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm1
xorps  %xmm0,%xmm0
movsd  0xe13(%rip),%xmm3
mov    $0x1,%edi
movaps %xmm3,%xmm2
mov    $0x4,%al
call   1050 <SIM_power_horowitz@plt>
shl    $0x2,%eax
cvtsi2sd %eax,%xmm0
addsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<SIM_power_precharge_delay>:
push   %rbp
push   %rbx
sub    $0x18,%rsp
movsd  %xmm0,0x10(%rsp)
movsd  0xeac(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,%ebp
movsd  0xe99(%rip),%xmm0
xor    %edi,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1040 <SIM_power_draincap@plt>
mov    %eax,%ebx
add    %ebp,%ebx
movsd  0xe87(%rip),%xmm0
xorps  %xmm1,%xmm1
mov    $0x2,%al
call   1060 <SIM_power_gatecap@plt>
lea    (%rbx,%rax,4),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xe55(%rip),%xmm0
mov    $0x1,%edi
mov    $0x1,%esi
mov    $0x1,%al
call   1030 <SIM_power_transreson@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0x8(%rsp),%xmm1
movsd  0xe47(%rip),%xmm2
xorps  %xmm0,%xmm0
movaps %xmm2,%xmm3
mov    $0x1,%edi
mov    $0x4,%al
call   1050 <SIM_power_horowitz@plt>
shl    $0x2,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define double @SIM_power_precharge_delay(double %0) {
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %2
%6 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 4.375000e-01, i32 1, i32 1)
%7 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 8.750000e-01, i32 0, i32 1)
%8 = add nsw i32 %6, %7
%9 = call i32 (double, double, ...) bitcast (i32 (...)* @SIM_power_gatecap to i32 (double, double, ...)*)(double 1.312500e+00, double 0.000000e+00)
%10 = mul nsw i32 4, %9
%11 = add nsw i32 %8, %10
%12 = sitofp i32 %11 to double
store double %12, double* %3
%13 = load double, double* %3
%14 = call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_transreson to i32 (double, i32, i32, ...)*)(double 4.375000e-01, i32 1, i32 1)
%15 = sitofp i32 %14 to double
%16 = fmul double %13, %15
store double %16, double* %4
%17 = load double, double* %4
%18 = call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @SIM_power_horowitz to i32 (double, double, double, double, i32, ...)*)(double 0.000000e+00, double %17, double 5.000000e-01, double 5.000000e-01, i32 1)
%19 = mul nsw i32 4, %18
%20 = sitofp i32 %19 to double
%21 = load double, double* %2
%22 = fadd double %20, %21
store double %22, double* %5
%23 = load double, double* %5
ret double %23
}

LLVM IR (-O2):
define double @SIM_power_precharge_delay(double %0) {
%2 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 4.375000e-01, i32 1, i32 1)
%3 = tail call i32 (double, i32, i32, ...) bitcast (i32 (...)* @SIM_power_draincap to i32 (double, i32, i32, ...)*)(double 8.750000e-01, i32 0, i32 1)
%4 = add nsw i32 %3, %2
%5 = tail call i32 (double, double, ...) bitcast (i32 (...)* @SIM_power_gatecap to i32 (double, double, ...)*)(double 1.312500e+00, double 0.000000e+00)
%6 = shl nsw i32 %5, 2
%7 = add nsw i32 %4, %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 4.375000e-01, i32 1, i32 1)
%10 = sitofp i32 %9 to double
%11 = fmul double %10, %8
%12 = tail call i32 (double, double, double, double, i32, ...) bitcast (i32 (...)* @SIM_power_horowitz to i32 (double, double, double, double, i32, ...)*)(double 0.000000e+00, double %11, double 5.000000e-01, double 5.000000e-01, i32 1)
%13 = shl nsw i32 %12, 2
%14 = sitofp i32 %13 to double
%15 = fadd double %14, %0
ret double %15
}