#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 pow(double, double);
double estimate_interconnect_CG(double l, double s, double w, double h,
                                double t, double k) {
  return (8.8542E-18 * k *
          (w / h + 2.217 * pow((s / (s + 0.702 * h)), 2.193) +
           1.171 * pow((s / (s + 1.510 * h)), 0.7642) *
               pow((t / (t + 4.532 * h)), 0.1204)));
}


x86 assembly (clang, -O0):
<estimate_interconnect_CG>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%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  0xf02(%rip),%xmm0
mulsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
divsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
movsd  0xeca(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xeae(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x50(%rbp),%xmm1
movsd  0xe94(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
movsd  0xe68(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xe4c(%rip),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe34(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x28(%rbp),%xmm2
movsd  -0x20(%rbp),%xmm1
movsd  0xe0c(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  0xdf0(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x48(%rbp),%xmm1
movsd  -0x40(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<estimate_interconnect_CG>:
sub    $0x28,%rsp
movsd  %xmm4,0x18(%rsp)
mulsd  0xede(%rip),%xmm5
movsd  %xmm5,0x20(%rsp)
movsd  %xmm3,0x10(%rsp)
divsd  %xmm3,%xmm2
movsd  %xmm2,0x8(%rsp)
movsd  0xec8(%rip),%xmm2
mulsd  %xmm3,%xmm2
movapd %xmm1,%xmm0
movsd  %xmm1,(%rsp)
addsd  %xmm1,%xmm2
divsd  %xmm2,%xmm0
movsd  0xeb3(%rip),%xmm1
call   1030 <pow@plt>
mulsd  0xeae(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xea2(%rip),%xmm0
mulsd  0x10(%rsp),%xmm0
movsd  (%rsp),%xmm1
addsd  %xmm1,%xmm0
divsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
movsd  0xe8b(%rip),%xmm1
call   1030 <pow@plt>
mulsd  0xe86(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x10(%rsp),%xmm1
mulsd  0xe7b(%rip),%xmm1
movsd  0x18(%rsp),%xmm0
addsd  %xmm0,%xmm1
divsd  %xmm1,%xmm0
movsd  0xe6d(%rip),%xmm1
call   1030 <pow@plt>
mulsd  (%rsp),%xmm0
addsd  0x8(%rsp),%xmm0
mulsd  0x20(%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @estimate_interconnect_CG(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* %9
%16 = load double, double* %10
%17 = fdiv double %15, %16
%18 = load double, double* %8
%19 = load double, double* %8
%20 = load double, double* %10
%21 = call double @llvm.fmuladd.f64(double 0x3FE676C8B4395810, double %20, double %19)
%22 = fdiv double %18, %21
%23 = call double @pow(double %22, double 2.193000e+00)
%24 = call double @llvm.fmuladd.f64(double 2.217000e+00, double %23, double %17)
%25 = load double, double* %8
%26 = load double, double* %8
%27 = load double, double* %10
%28 = call double @llvm.fmuladd.f64(double 1.510000e+00, double %27, double %26)
%29 = fdiv double %25, %28
%30 = call double @pow(double %29, double 0x3FE874538EF34D6A)
%31 = fmul double 1.171000e+00, %30
%32 = load double, double* %11
%33 = load double, double* %11
%34 = load double, double* %10
%35 = call double @llvm.fmuladd.f64(double 4.532000e+00, double %34, double %33)
%36 = fdiv double %32, %35
%37 = call double @pow(double %36, double 1.204000e-01)
%38 = call double @llvm.fmuladd.f64(double %31, double %37, double %24)
%39 = fmul double %14, %38
ret double %39
}

LLVM IR (-O2):
define double @estimate_interconnect_CG(double %0, double %1, double %2, double %3, double %4, double %5) {
%7 = fmul double %5, 8.854200e-18
%8 = fdiv double %2, %3
%9 = tail call double @llvm.fmuladd.f64(double %3, double 0x3FE676C8B4395810, double %1)
%10 = fdiv double %1, %9
%11 = tail call double @pow(double %10, double 2.193000e+00)
%12 = tail call double @llvm.fmuladd.f64(double %11, double 2.217000e+00, double %8)
%13 = tail call double @llvm.fmuladd.f64(double %3, double 1.510000e+00, double %1)
%14 = fdiv double %1, %13
%15 = tail call double @pow(double %14, double 0x3FE874538EF34D6A)
%16 = fmul double %15, 1.171000e+00
%17 = tail call double @llvm.fmuladd.f64(double %3, double 4.532000e+00, double %4)
%18 = fdiv double %4, %17
%19 = tail call double @pow(double %18, double 1.204000e-01)
%20 = tail call double @llvm.fmuladd.f64(double %16, double %19, double %12)
%21 = fmul double %7, %20
ret double %21
}