#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 calc_Bf(double spl, double af, double Tf, double Lu) {
  return pow(0.4 * pow(10, (spl + Lu) / 10 - 9), af) -
         pow(0.4 * pow(10, (Tf + Lu) / 10 - 9), af) + 0.005135;
}


x86 assembly (clang, -O0):
<calc_Bf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  %xmm3,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm1
addsd  -0x20(%rbp),%xmm1
movsd  0xed2(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xece(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xeba(%rip),%xmm0
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xea2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm1
addsd  -0x20(%rbp),%xmm1
movsd  0xe85(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xe81(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe6d(%rip),%xmm0
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe55(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
subsd  %xmm1,%xmm0
movsd  0xe2b(%rip),%xmm1
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_Bf>:
sub    $0x28,%rsp
movsd  %xmm3,0x18(%rsp)
movsd  %xmm2,0x20(%rsp)
movsd  %xmm1,0x8(%rsp)
movapd %xmm0,%xmm1
addsd  %xmm3,%xmm1
movsd  0xeca(%rip),%xmm0
divsd  %xmm0,%xmm1
addsd  0xec6(%rip),%xmm1
call   1030 <pow@plt>
mulsd  0xec1(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x20(%rsp),%xmm1
addsd  0x18(%rsp),%xmm1
movsd  0xe8c(%rip),%xmm0
divsd  %xmm0,%xmm1
addsd  0xe88(%rip),%xmm1
call   1030 <pow@plt>
mulsd  0xe83(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
call   1030 <pow@plt>
movsd  0x10(%rsp),%xmm1
subsd  %xmm0,%xmm1
addsd  0xe6e(%rip),%xmm1
movapd %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @calc_Bf(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
%9 = load double, double* %5
%10 = load double, double* %8
%11 = fadd double %9, %10
%12 = fdiv double %11, 1.000000e+01
%13 = fsub double %12, 9.000000e+00
%14 = call double @pow(double 1.000000e+01, double %13)
%15 = fmul double 4.000000e-01, %14
%16 = load double, double* %6
%17 = call double @pow(double %15, double %16)
%18 = load double, double* %7
%19 = load double, double* %8
%20 = fadd double %18, %19
%21 = fdiv double %20, 1.000000e+01
%22 = fsub double %21, 9.000000e+00
%23 = call double @pow(double 1.000000e+01, double %22)
%24 = fmul double 4.000000e-01, %23
%25 = load double, double* %6
%26 = call double @pow(double %24, double %25)
%27 = fsub double %17, %26
%28 = fadd double %27, 5.135000e-03
ret double %28
}

LLVM IR (-O2):
define double @calc_Bf(double %0, double %1, double %2, double %3) {
%5 = fadd double %0, %3
%6 = fdiv double %5, 1.000000e+01
%7 = fadd double %6, -9.000000e+00
%8 = tail call double @pow(double 1.000000e+01, double %7)
%9 = fmul double %8, 4.000000e-01
%10 = tail call double @pow(double %9, double %1)
%11 = fadd double %2, %3
%12 = fdiv double %11, 1.000000e+01
%13 = fadd double %12, -9.000000e+00
%14 = tail call double @pow(double 1.000000e+01, double %13)
%15 = fmul double %14, 4.000000e-01
%16 = tail call double @pow(double %15, double %1)
%17 = fsub double %10, %16
%18 = fadd double %17, 5.135000e-03
ret double %18
}