#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double exp(int);
double pow(double, double);
double estimate_interconnect_CC(double l, double s, double w, double h,
                                double t, double k) {
  return (8.8542E-18 * k *
          (1.412 * t / s *
           exp(-(4 * s) / (s + 8.014 * h) +
               2.3704 * pow(w / (w + 0.3078 * s), 0.25724) *
                   pow(w / (w + 0.3078 * s), 0.7571) *
                   exp(-(2 * s) / (s + 6 * h)))));
}


x86 assembly (clang, -O0):
<estimate_interconnect_CC>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  %xmm4,-0x28(%rbp)
movsd  %xmm5,-0x30(%rbp)
movsd  0xefa(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xee0(%rip),%xmm0
mulsd  -0x28(%rbp),%xmm0
divsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xec1(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
movsd  0xe8b(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
movsd  0xe4b(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xe47(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe2f(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x10(%rbp),%xmm1
movsd  0xe07(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xdeb(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x58(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xdc5(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
movsd  0xd8f(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
movsd  -0x50(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
movsd  -0x40(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<estimate_interconnect_CC>:
sub    $0x38,%rsp
mulsd  0xed4(%rip),%xmm5
movsd  %xmm5,0x30(%rsp)
mulsd  0xece(%rip),%xmm4
movsd  %xmm3,0x18(%rsp)
movsd  %xmm1,0x10(%rsp)
divsd  %xmm1,%xmm4
movsd  %xmm4,0x28(%rsp)
movsd  0xeb8(%rip),%xmm4
mulsd  %xmm1,%xmm4
movsd  0xeb4(%rip),%xmm0
mulsd  %xmm3,%xmm0
addsd  %xmm1,%xmm0
divsd  %xmm0,%xmm4
movsd  %xmm4,0x20(%rsp)
movsd  0xea2(%rip),%xmm3
mulsd  %xmm1,%xmm3
movapd %xmm2,%xmm0
addsd  %xmm2,%xmm3
divsd  %xmm3,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe8d(%rip),%xmm1
call   1040 <pow@plt>
mulsd  0xe88(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xe82(%rip),%xmm1
movsd  (%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe6d(%rip),%xmm0
movsd  0x10(%rsp),%xmm2
mulsd  %xmm2,%xmm0
movsd  0x18(%rsp),%xmm1
mulsd  0xe5d(%rip),%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
mulsd  (%rsp),%xmm0
addsd  0x20(%rsp),%xmm0
cvttsd2si %xmm0,%edi
call   1030 <exp@plt>
mulsd  0x28(%rsp),%xmm0
mulsd  0x30(%rsp),%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @estimate_interconnect_CC(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %7
store double %1, double* %8
store double %2, double* %9
store double %3, double* %10
store double %4, double* %11
store double %5, double* %12
%13 = load double, double* %12
%14 = fmul double 8.854200e-18, %13
%15 = load double, double* %11
%16 = fmul double 1.412000e+00, %15
%17 = load double, double* %8
%18 = fdiv double %16, %17
%19 = load double, double* %8
%20 = fmul double 4.000000e+00, %19
%21 = fneg double %20
%22 = load double, double* %8
%23 = load double, double* %10
%24 = call double @llvm.fmuladd.f64(double 0x4020072B020C49BA, double %23, double %22)
%25 = fdiv double %21, %24
%26 = load double, double* %9
%27 = load double, double* %9
%28 = load double, double* %8
%29 = call double @llvm.fmuladd.f64(double 3.078000e-01, double %28, double %27)
%30 = fdiv double %26, %29
%31 = call double @pow(double %30, double 2.572400e-01)
%32 = fmul double 2.370400e+00, %31
%33 = load double, double* %9
%34 = load double, double* %9
%35 = load double, double* %8
%36 = call double @llvm.fmuladd.f64(double 3.078000e-01, double %35, double %34)
%37 = fdiv double %33, %36
%38 = call double @pow(double %37, double 7.571000e-01)
%39 = fmul double %32, %38
%40 = load double, double* %8
%41 = fmul double 2.000000e+00, %40
%42 = fneg double %41
%43 = load double, double* %8
%44 = load double, double* %10
%45 = call double @llvm.fmuladd.f64(double 6.000000e+00, double %44, double %43)
%46 = fdiv double %42, %45
%47 = fptosi double %46 to i32
%48 = call double @exp(i32 %47)
%49 = call double @llvm.fmuladd.f64(double %39, double %48, double %25)
%50 = fptosi double %49 to i32
%51 = call double @exp(i32 %50)
%52 = fmul double %18, %51
%53 = fmul double %14, %52
ret double %53
}

LLVM IR (-O2):
define double @estimate_interconnect_CC(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fmul double %5, 8.854200e-18
%8 = fmul double %4, 1.412000e+00
%9 = fdiv double %8, %1
%10 = fmul double %1, -4.000000e+00
%11 = tail call double @llvm.fmuladd.f64(double %3, double 0x4020072B020C49BA, double %1)
%12 = fdiv double %10, %11
%13 = tail call double @llvm.fmuladd.f64(double %1, double 3.078000e-01, double %2)
%14 = fdiv double %2, %13
%15 = tail call double @pow(double %14, double 2.572400e-01)
%16 = fmul double %15, 2.370400e+00
%17 = tail call double @pow(double %14, double 7.571000e-01)
%18 = fmul double %16, %17
%19 = fmul double %1, -2.000000e+00
%20 = tail call double @llvm.fmuladd.f64(double %3, double 6.000000e+00, double %1)
%21 = fdiv double %19, %20
%22 = fptosi double %21 to i32
%23 = tail call double @exp(i32 %22)
%24 = tail call double @llvm.fmuladd.f64(double %18, double %23, double %12)
%25 = fptosi double %24 to i32
%26 = tail call double @exp(i32 %25)
%27 = fmul double %9, %26
%28 = fmul double %7, %27
ret double %28
}