#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 */
int exp(double);
int pow(double, double);
double DiffLitchfield(double X, double T) {
  double A = 2.3920e5, B = 3.1563e3, C = 7.9082e14, D = 1.5706e1, E = 6.8589e-1,
         diff;
  diff = A * exp(-B / T) * (1 - exp(-C * pow(X, D)) + pow(X, E));
  return 1e-12 * diff;
}


x86 assembly (clang, -O0):
<DiffLitchfield>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xeee(%rip),%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xed9(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xec4(%rip),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xeaf(%rip),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xe9a(%rip),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
divsd  -0x10(%rbp),%xmm0
call   1030 <exp@plt>
movsd  -0x60(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x28(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
call   1040 <pow@plt>
movsd  -0x58(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
mov    %eax,%ecx
mov    $0x1,%eax
sub    %ecx,%eax
mov    %eax,-0x44(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
call   1040 <pow@plt>
movsd  -0x50(%rbp),%xmm0
mov    %eax,%ecx
mov    -0x44(%rbp),%eax
add    %ecx,%eax
cvtsi2sd %eax,%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xdcd(%rip),%xmm0
mulsd  -0x40(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DiffLitchfield>:
push   %rbx
sub    $0x10,%rsp
movsd  %xmm0,(%rsp)
movsd  0xece(%rip),%xmm0
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xebe(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xeb8(%rip),%xmm1
movsd  (%rsp),%xmm0
call   1040 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xea7(%rip),%xmm0
call   1030 <exp@plt>
mov    %eax,%ebx
movsd  0xea0(%rip),%xmm1
movsd  (%rsp),%xmm0
call   1040 <pow@plt>
sub    %ebx,%eax
add    $0x1,%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
mulsd  0xe84(%rip),%xmm0
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @DiffLitchfield(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
%9 = alloca double
%10 = alloca double
store double %0, double* %3
store double %1, double* %4
store double 2.392000e+05, double* %5
store double 3.156300e+03, double* %6
store double 7.908200e+14, double* %7
store double 1.570600e+01, double* %8
store double 6.858900e-01, double* %9
%11 = load double, double* %5
%12 = load double, double* %6
%13 = fneg double %12
%14 = load double, double* %4
%15 = fdiv double %13, %14
%16 = call i32 @exp(double %15)
%17 = sitofp i32 %16 to double
%18 = fmul double %11, %17
%19 = load double, double* %7
%20 = fneg double %19
%21 = load double, double* %3
%22 = load double, double* %8
%23 = call i32 @pow(double %21, double %22)
%24 = sitofp i32 %23 to double
%25 = fmul double %20, %24
%26 = call i32 @exp(double %25)
%27 = sub nsw i32 1, %26
%28 = load double, double* %3
%29 = load double, double* %9
%30 = call i32 @pow(double %28, double %29)
%31 = add nsw i32 %27, %30
%32 = sitofp i32 %31 to double
%33 = fmul double %18, %32
store double %33, double* %10
%34 = load double, double* %10
%35 = fmul double 0x3D719799812DEA11, %34
ret double %35
}

LLVM IR (-O2):
define double @DiffLitchfield(double %0, double %1) {
%3 = fdiv double -3.156300e+03, %1
%4 = tail call i32 @exp(double %3)
%5 = sitofp i32 %4 to double
%6 = fmul double %5, 2.392000e+05
%7 = tail call i32 @pow(double %0, double 1.570600e+01)
%8 = sitofp i32 %7 to double
%9 = fmul double %8, -7.908200e+14
%10 = tail call i32 @exp(double %9)
%11 = sub i32 1, %10
%12 = tail call i32 @pow(double %0, double 6.858900e-01)
%13 = add nsw i32 %11, %12
%14 = sitofp i32 %13 to double
%15 = fmul double %6, %14
%16 = fmul double %15, 0x3D719799812DEA11
ret double %16
}