#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 DiffWaananenEmp(double X, double T, double phi, double P) {
  double Cp10 = 1.2e-7, Cp20 = 8.0e-5, Ea = 22.6, R = 8.313;
  return (Cp10 + phi * Cp20 / P) * exp((-6.0 * exp(-20 * X) + Ea) / (R * T));
}


x86 assembly (clang, -O0):
<DiffWaananenEmp>:
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  0xef4(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xedf(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xeca(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xeb5(%rip),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x28(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
mulsd  -0x30(%rbp),%xmm1
divsd  -0x20(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  0xe83(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
call   1030 <exp@plt>
movsd  -0x38(%rbp),%xmm1
movsd  0xe64(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  -0x40(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x48(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DiffWaananenEmp>:
sub    $0x18,%rsp
movsd  %xmm1,0x8(%rsp)
mulsd  0xede(%rip),%xmm2
divsd  %xmm3,%xmm2
addsd  0xeda(%rip),%xmm2
movsd  %xmm2,0x10(%rsp)
mulsd  0xed4(%rip),%xmm0
call   1030 <exp@plt>
mulsd  0xecf(%rip),%xmm0
addsd  0xecf(%rip),%xmm0
movsd  0x8(%rsp),%xmm1
mulsd  0xec9(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
mulsd  0x10(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @DiffWaananenEmp(double %0, double %1, double %2, double %3) {
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
store double %0, double* %5
store double %1, double* %6
store double %2, double* %7
store double %3, double* %8
store double 1.200000e-07, double* %9
store double 8.000000e-05, double* %10
store double 2.260000e+01, double* %11
store double 8.313000e+00, double* %12
%13 = load double, double* %9
%14 = load double, double* %7
%15 = load double, double* %10
%16 = fmul double %14, %15
%17 = load double, double* %8
%18 = fdiv double %16, %17
%19 = fadd double %13, %18
%20 = load double, double* %5
%21 = fmul double -2.000000e+01, %20
%22 = call double @exp(double %21)
%23 = load double, double* %11
%24 = call double @llvm.fmuladd.f64(double -6.000000e+00, double %22, double %23)
%25 = load double, double* %12
%26 = load double, double* %6
%27 = fmul double %25, %26
%28 = fdiv double %24, %27
%29 = call double @exp(double %28)
%30 = fmul double %19, %29
ret double %30
}

LLVM IR (-O2):
define double @DiffWaananenEmp(double %0, double %1, double %2, double %3) {
%5 = fmul double %2, 8.000000e-05
%6 = fdiv double %5, %3
%7 = fadd double %6, 1.200000e-07
%8 = fmul double %0, -2.000000e+01
%9 = tail call double @exp(double %8)
%10 = tail call double @llvm.fmuladd.f64(double %9, double -6.000000e+00, double 2.260000e+01)
%11 = fmul double %1, 8.313000e+00
%12 = fdiv double %10, %11
%13 = tail call double @exp(double %12)
%14 = fmul double %7, %13
ret double %14
}