#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_Af(double phon, double af, double Tf, double Lu) {
  return 4.47 / 1000 * (pow(10, (0.025 * phon)) - 1.15) +
         pow((0.4 * pow(10, (((Tf + Lu) / 10) - 9))), af);
}


x86 assembly (clang, -O0):
<calc_Af>:
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  0xef4(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
movsd  0xecf(%rip),%xmm0
call   1030 <pow@plt>
movsd  0xed2(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x18(%rbp),%xmm1
addsd  -0x20(%rbp),%xmm1
movsd  0xea7(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xea3(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe8f(%rip),%xmm0
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe77(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  -0x10(%rbp),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0xe51(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<calc_Af>:
sub    $0x28,%rsp
movsd  %xmm3,0x10(%rsp)
movsd  %xmm2,0x8(%rsp)
movsd  %xmm1,0x20(%rsp)
movapd %xmm0,%xmm1
mulsd  0xece(%rip),%xmm1
movsd  0xece(%rip),%xmm0
call   1030 <pow@plt>
addsd  0xec9(%rip),%xmm0
movsd  %xmm0,0x18(%rsp)
movsd  0x8(%rsp),%xmm1
addsd  0x10(%rsp),%xmm1
movsd  0xea7(%rip),%xmm0
divsd  %xmm0,%xmm1
addsd  0xeab(%rip),%xmm1
call   1030 <pow@plt>
mulsd  0xea6(%rip),%xmm0
movsd  0x20(%rsp),%xmm1
call   1030 <pow@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0xe95(%rip),%xmm1
addsd  %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @calc_Af(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 = fmul double 2.500000e-02, %9
%11 = call double @pow(double 1.000000e+01, double %10)
%12 = fsub double %11, 1.150000e+00
%13 = load double, double* %7
%14 = load double, double* %8
%15 = fadd double %13, %14
%16 = fdiv double %15, 1.000000e+01
%17 = fsub double %16, 9.000000e+00
%18 = call double @pow(double 1.000000e+01, double %17)
%19 = fmul double 4.000000e-01, %18
%20 = load double, double* %6
%21 = call double @pow(double %19, double %20)
%22 = call double @llvm.fmuladd.f64(double 4.470000e-03, double %12, double %21)
ret double %22
}

LLVM IR (-O2):
define double @calc_Af(double %0, double %1, double %2, double %3) {
%5 = fmul double %0, 2.500000e-02
%6 = tail call double @pow(double 1.000000e+01, double %5)
%7 = fadd double %6, -1.150000e+00
%8 = fadd double %2, %3
%9 = fdiv double %8, 1.000000e+01
%10 = fadd double %9, -9.000000e+00
%11 = tail call double @pow(double 1.000000e+01, double %10)
%12 = fmul double %11, 4.000000e-01
%13 = tail call double @pow(double %12, double %1)
%14 = tail call double @llvm.fmuladd.f64(double %7, double 4.470000e-03, double %13)
ret double %14
}