#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 const);
double const pow(double const, int);
int sqrt(double const);
double ln_evaluate_exact_parametrised(const double Sigma, const double neff,
                                      const double bandwidth) {
  return exp((bandwidth * bandwidth + 2 * Sigma * Sigma) / 4) /
             (neff * bandwidth) +
         exp(Sigma * Sigma / 4) / Sigma +
         (exp((bandwidth * bandwidth + Sigma * Sigma) / 4) * (-1 + neff)) /
             (neff * sqrt(bandwidth * bandwidth + Sigma * Sigma)) -
         (2 * sqrt(2) *
          exp((bandwidth * bandwidth * Sigma * Sigma + pow(Sigma, 4)) /
              (2 * bandwidth * bandwidth + 4 * Sigma * Sigma))) /
             sqrt(bandwidth * bandwidth + 2 * Sigma * Sigma);
}


x86 assembly (clang, -O0):
<ln_evaluate_exact_parametrised>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  0xea7(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe95(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
cvtsi2sd %eax,%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  0xe63(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
movsd  -0x60(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
divsd  -0x8(%rbp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe1f(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
cvtsi2sd %eax,%xmm0
movsd  0xe12(%rip),%xmm1
addsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movsd  -0x58(%rbp),%xmm2
movsd  -0x50(%rbp),%xmm1
movsd  -0x48(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xd9d(%rip),%xmm0
call   1050 <sqrt@plt>
shl    $0x1,%eax
mov    %eax,-0x2c(%rbp)
movsd  -0x18(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1040 <pow@plt>
movsd  -0x40(%rbp),%xmm2
movaps %xmm0,%xmm1
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xd48(%rip),%xmm1
mulsd  -0x18(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm3
movsd  0xd3e(%rip),%xmm2
mulsd  -0x8(%rbp),%xmm2
mulsd  -0x8(%rbp),%xmm2
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
mov    %eax,%ecx
mov    -0x2c(%rbp),%eax
imul   %ecx,%eax
mov    %eax,-0x1c(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm2
movsd  0xcfe(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1050 <sqrt@plt>
movsd  -0x28(%rbp),%xmm0
mov    %eax,%ecx
mov    -0x1c(%rbp),%eax
cltd
idiv   %ecx
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ln_evaluate_exact_parametrised>:
push   %rbp
push   %rbx
sub    $0x88,%rsp
movapd %xmm2,0x60(%rsp)
movaps %xmm1,0x40(%rsp)
movapd %xmm0,%xmm1
movapd %xmm0,0x10(%rsp)
addsd  %xmm0,%xmm0
mulsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm2
movapd %xmm2,0x50(%rsp)
addsd  %xmm2,%xmm0
movapd %xmm0,0x70(%rsp)
mulsd  0xe8e(%rip),%xmm0
call   1030 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd %xmm0,(%rsp)
movapd 0x10(%rsp),%xmm0
mulsd  %xmm0,%xmm0
movapd %xmm0,0x20(%rsp)
mulsd  0xe65(%rip),%xmm0
call   1030 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
divsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x38(%rsp)
movapd 0x20(%rsp),%xmm1
addsd  0x50(%rsp),%xmm1
movapd %xmm1,0x20(%rsp)
movsd  0xe33(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0xe23(%rip),%xmm1
addsd  0x40(%rsp),%xmm1
mulsd  %xmm0,%xmm1
movapd (%rsp),%xmm0
unpcklpd %xmm1,%xmm0
movapd %xmm0,(%rsp)
movaps 0x20(%rsp),%xmm0
call   1050 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movapd 0x40(%rsp),%xmm2
unpcklpd %xmm2,%xmm2
movapd 0x60(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  %xmm2,%xmm1
movapd (%rsp),%xmm0
divpd  %xmm1,%xmm0
movsd  0x38(%rsp),%xmm1
addsd  %xmm0,%xmm1
unpckhpd %xmm0,%xmm0
addsd  %xmm1,%xmm0
movapd %xmm0,(%rsp)
movsd  0xdc2(%rip),%xmm0
call   1050 <sqrt@plt>
mov    %eax,%ebx
movapd 0x10(%rsp),%xmm0
mov    $0x4,%edi
call   1040 <pow@plt>
movapd 0x60(%rsp),%xmm4
movapd 0x50(%rsp),%xmm2
unpcklpd %xmm4,%xmm2
movapd 0xda3(%rip),%xmm1
movapd 0x10(%rsp),%xmm3
movsd  %xmm3,%xmm1
mulpd  %xmm2,%xmm1
movsd  0xd85(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  %xmm3,%xmm2
unpcklpd %xmm4,%xmm3
mulpd  %xmm1,%xmm3
unpcklpd %xmm2,%xmm0
addpd  %xmm3,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
divsd  %xmm1,%xmm0
call   1030 <exp@plt>
mov    %eax,%ebp
imul   %ebx,%ebp
add    %ebp,%ebp
movaps 0x70(%rsp),%xmm0
call   1050 <sqrt@plt>
mov    %eax,%ecx
mov    %ebp,%eax
cltd
idiv   %ecx
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movapd (%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0x88,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define double @ln_evaluate_exact_parametrised(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%7 = load double, double* %6
%8 = load double, double* %6
%9 = load double, double* %4
%10 = fmul double 2.000000e+00, %9
%11 = load double, double* %4
%12 = fmul double %10, %11
%13 = call double @llvm.fmuladd.f64(double %7, double %8, double %12)
%14 = fdiv double %13, 4.000000e+00
%15 = call i32 @exp(double %14)
%16 = sitofp i32 %15 to double
%17 = load double, double* %5
%18 = load double, double* %6
%19 = fmul double %17, %18
%20 = fdiv double %16, %19
%21 = load double, double* %4
%22 = load double, double* %4
%23 = fmul double %21, %22
%24 = fdiv double %23, 4.000000e+00
%25 = call i32 @exp(double %24)
%26 = sitofp i32 %25 to double
%27 = load double, double* %4
%28 = fdiv double %26, %27
%29 = fadd double %20, %28
%30 = load double, double* %6
%31 = load double, double* %6
%32 = load double, double* %4
%33 = load double, double* %4
%34 = fmul double %32, %33
%35 = call double @llvm.fmuladd.f64(double %30, double %31, double %34)
%36 = fdiv double %35, 4.000000e+00
%37 = call i32 @exp(double %36)
%38 = sitofp i32 %37 to double
%39 = load double, double* %5
%40 = fadd double -1.000000e+00, %39
%41 = fmul double %38, %40
%42 = load double, double* %5
%43 = load double, double* %6
%44 = load double, double* %6
%45 = load double, double* %4
%46 = load double, double* %4
%47 = fmul double %45, %46
%48 = call double @llvm.fmuladd.f64(double %43, double %44, double %47)
%49 = call i32 @sqrt(double %48)
%50 = sitofp i32 %49 to double
%51 = fmul double %42, %50
%52 = fdiv double %41, %51
%53 = fadd double %29, %52
%54 = call i32 @sqrt(double 2.000000e+00)
%55 = mul nsw i32 2, %54
%56 = load double, double* %6
%57 = load double, double* %6
%58 = fmul double %56, %57
%59 = load double, double* %4
%60 = fmul double %58, %59
%61 = load double, double* %4
%62 = load double, double* %4
%63 = call double @pow(double %62, i32 4)
%64 = call double @llvm.fmuladd.f64(double %60, double %61, double %63)
%65 = load double, double* %6
%66 = fmul double 2.000000e+00, %65
%67 = load double, double* %6
%68 = load double, double* %4
%69 = fmul double 4.000000e+00, %68
%70 = load double, double* %4
%71 = fmul double %69, %70
%72 = call double @llvm.fmuladd.f64(double %66, double %67, double %71)
%73 = fdiv double %64, %72
%74 = call i32 @exp(double %73)
%75 = mul nsw i32 %55, %74
%76 = load double, double* %6
%77 = load double, double* %6
%78 = load double, double* %4
%79 = fmul double 2.000000e+00, %78
%80 = load double, double* %4
%81 = fmul double %79, %80
%82 = call double @llvm.fmuladd.f64(double %76, double %77, double %81)
%83 = call i32 @sqrt(double %82)
%84 = sdiv i32 %75, %83
%85 = sitofp i32 %84 to double
%86 = fsub double %53, %85
ret double %86
}

LLVM IR (-O2):
define double @ln_evaluate_exact_parametrised(double %0, double %1, double %2) {
%4 = fmul double %0, 2.000000e+00
%5 = fmul double %4, %0
%6 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %5)
%7 = fmul double %6, 2.500000e-01
%8 = tail call i32 @exp(double %7)
%9 = sitofp i32 %8 to double
%10 = fmul double %0, %0
%11 = fmul double %10, 2.500000e-01
%12 = tail call i32 @exp(double %11)
%13 = sitofp i32 %12 to double
%14 = fdiv double %13, %0
%15 = tail call double @llvm.fmuladd.f64(double %2, double %2, double %10)
%16 = fmul double %15, 2.500000e-01
%17 = tail call i32 @exp(double %16)
%18 = sitofp i32 %17 to double
%19 = fadd double %1, -1.000000e+00
%20 = fmul double %19, %18
%21 = tail call i32 @sqrt(double %15)
%22 = sitofp i32 %21 to double
%23 = insertelement <2 x double> poison, double %1, i64 0
%24 = shufflevector <2 x double> %23, <2 x double> poison, <2 x i32> zeroinitializer
%25 = insertelement <2 x double> poison, double %2, i64 0
%26 = insertelement <2 x double> %25, double %22, i64 1
%27 = fmul <2 x double> %24, %26
%28 = insertelement <2 x double> poison, double %9, i64 0
%29 = insertelement <2 x double> %28, double %20, i64 1
%30 = fdiv <2 x double> %29, %27
%31 = extractelement <2 x double> %30, i64 0
%32 = fadd double %31, %14
%33 = extractelement <2 x double> %30, i64 1
%34 = fadd double %32, %33
%35 = tail call i32 @sqrt(double 2.000000e+00)
%36 = shl nsw i32 %35, 1
%37 = fmul double %2, %2
%38 = tail call double @pow(double %0, i32 4)
%39 = insertelement <2 x double> poison, double %2, i64 1
%40 = insertelement <2 x double> %39, double %37, i64 0
%41 = insertelement <2 x double> <double poison, double 2.000000e+00>, double %0, i64 0
%42 = fmul <2 x double> %40, %41
%43 = fmul double %0, 4.000000e+00
%44 = fmul double %43, %0
%45 = insertelement <2 x double> poison, double %0, i64 0
%46 = insertelement <2 x double> %45, double %2, i64 1
%47 = insertelement <2 x double> poison, double %38, i64 0
%48 = insertelement <2 x double> %47, double %44, i64 1
%49 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %42, <2 x double> %46, <2 x double> %48)
%50 = extractelement <2 x double> %49, i64 0
%51 = extractelement <2 x double> %49, i64 1
%52 = fdiv double %50, %51
%53 = tail call i32 @exp(double %52)
%54 = mul nsw i32 %36, %53
%55 = tail call i32 @sqrt(double %6)
%56 = sdiv i32 %54, %55
%57 = sitofp i32 %56 to double
%58 = fsub double %34, %57
ret double %58
}