#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(double);
double pow(float, double);
float adderDivVol(float tau) {
  float w = (0.41 * pow(2.0, 0.36 * (60.0 / tau)));
  float divL = 21.74 * exp(-0.09895 * tau) + 4.001;
  return ((3.14159265358979323846 / 4.0) * (pow(w, 2.0))) * (divL - (w / 3.0));
}


x86 assembly (clang, -O0):
<adderDivVol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movss  %xmm0,-0x4(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xf02(%rip),%xmm0
divsd  %xmm1,%xmm0
movsd  0xeee(%rip),%xmm1
mulsd  %xmm0,%xmm1
movss  0xef2(%rip),%xmm0
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xeca(%rip),%xmm0
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xea4(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movsd  0xe83(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xe7f(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
movsd  0xe55(%rip),%xmm1
call   1040 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe3d(%rip),%xmm0
mulsd  %xmm1,%xmm0
movss  -0xc(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  -0x8(%rbp),%xmm2
cvtss2sd %xmm2,%xmm2
movsd  0xe17(%rip),%xmm3
divsd  %xmm3,%xmm2
subsd  %xmm2,%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<adderDivVol>:
sub    $0x18,%rsp
cvtss2sd %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xeca(%rip),%xmm1
divsd  %xmm0,%xmm1
mulsd  0xec6(%rip),%xmm1
movss  0xefe(%rip),%xmm0
call   1040 <pow@plt>
mulsd  0xeb9(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0xc(%rsp)
movsd  0x10(%rsp),%xmm0
mulsd  0xea9(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0xea4(%rip),%xmm0
addsd  0xea4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x10(%rsp)
movsd  0xe9a(%rip),%xmm1
movss  0xc(%rsp),%xmm0
call   1040 <pow@plt>
mulsd  0xe8f(%rip),%xmm0
movss  0x10(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
movss  0xc(%rsp),%xmm2
cvtss2sd %xmm2,%xmm2
divsd  0xe7b(%rip),%xmm2
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
xorps  %xmm0,%xmm0
cvtsd2ss %xmm2,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define float @adderDivVol(float %0) {
%2 = alloca float
%3 = alloca float
%4 = alloca float
store float %0, float* %2
%5 = load float, float* %2
%6 = fpext float %5 to double
%7 = fdiv double 6.000000e+01, %6
%8 = fmul double 3.600000e-01, %7
%9 = call double @pow(float 2.000000e+00, double %8)
%10 = fmul double 4.100000e-01, %9
%11 = fptrunc double %10 to float
store float %11, float* %3
%12 = load float, float* %2
%13 = fpext float %12 to double
%14 = fmul double 0xBFB954C985F06F69, %13
%15 = call double @exp(double %14)
%16 = call double @llvm.fmuladd.f64(double 2.174000e+01, double %15, double 4.001000e+00)
%17 = fptrunc double %16 to float
store float %17, float* %4
%18 = load float, float* %3
%19 = call double @pow(float %18, double 2.000000e+00)
%20 = fmul double 0x3FE921FB54442D18, %19
%21 = load float, float* %4
%22 = fpext float %21 to double
%23 = load float, float* %3
%24 = fpext float %23 to double
%25 = fdiv double %24, 3.000000e+00
%26 = fsub double %22, %25
%27 = fmul double %20, %26
%28 = fptrunc double %27 to float
ret float %28
}

LLVM IR (-O2):
define float @adderDivVol(float %0) {
%2 = fpext float %0 to double
%3 = fdiv double 6.000000e+01, %2
%4 = fmul double %3, 3.600000e-01
%5 = tail call double @pow(float 2.000000e+00, double %4)
%6 = fmul double %5, 4.100000e-01
%7 = fptrunc double %6 to float
%8 = fmul double %2, 0xBFB954C985F06F69
%9 = tail call double @exp(double %8)
%10 = tail call double @llvm.fmuladd.f64(double %9, double 2.174000e+01, double 4.001000e+00)
%11 = fptrunc double %10 to float
%12 = tail call double @pow(float %7, double 2.000000e+00)
%13 = fmul double %12, 0x3FE921FB54442D18
%14 = fpext float %11 to double
%15 = fpext float %7 to double
%16 = fdiv double %15, 3.000000e+00
%17 = fsub double %14, %16
%18 = fmul double %13, %17
%19 = fptrunc double %18 to float
ret float %19
}