#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 sqrt(double);
double efp_get_pol_damp_tt(double r, double pa, double pb) {
  double ab = sqrt(pa * pb);
  double r2 = r * r;
  return 1.0 - exp(-ab * r2) * (1.0 + ab * r2);
}


x86 assembly (clang, -O0):
<efp_get_pol_damp_tt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  %xmm2,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
call   1040 <sqrt@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  -0x28(%rbp),%xmm0
call   1030 <exp@plt>
movsd  -0x20(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm2
mulsd  %xmm2,%xmm1
movsd  0xe6a(%rip),%xmm2
addsd  %xmm2,%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe43(%rip),%xmm1
addsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<efp_get_pol_damp_tt>:
sub    $0x28,%rsp
movsd  %xmm0,0x8(%rsp)
mulsd  %xmm2,%xmm1
xorpd  %xmm0,%xmm0
ucomisd %xmm0,%xmm1
jb     113e <efp_get_pol_damp_tt+0x1e>
sqrtsd %xmm1,%xmm1
jmp    114b <efp_get_pol_damp_tt+0x2b>
movapd %xmm1,%xmm0
call   1040 <sqrt@plt>
movapd %xmm0,%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm2
mulsd  %xmm2,%xmm2
movsd  %xmm2,0x8(%rsp)
movapd 0xe97(%rip),%xmm0
xorpd  %xmm1,%xmm0
mulsd  %xmm2,%xmm0
call   1030 <exp@plt>
movsd  0x8(%rsp),%xmm2
mulsd  0x10(%rsp),%xmm2
movsd  0xe86(%rip),%xmm1
addsd  %xmm1,%xmm2
mulsd  %xmm0,%xmm2
subsd  %xmm2,%xmm1
movapd %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @efp_get_pol_damp_tt(double %0, double %1, double %2) {
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca double
%8 = alloca double
store double %0, double* %4
store double %1, double* %5
store double %2, double* %6
%9 = load double, double* %5
%10 = load double, double* %6
%11 = fmul double %9, %10
%12 = call double @sqrt(double %11)
store double %12, double* %7
%13 = load double, double* %4
%14 = load double, double* %4
%15 = fmul double %13, %14
store double %15, double* %8
%16 = load double, double* %7
%17 = fneg double %16
%18 = load double, double* %8
%19 = fmul double %17, %18
%20 = call double @exp(double %19)
%21 = load double, double* %7
%22 = load double, double* %8
%23 = call double @llvm.fmuladd.f64(double %21, double %22, double 1.000000e+00)
%24 = fneg double %20
%25 = call double @llvm.fmuladd.f64(double %24, double %23, double 1.000000e+00)
ret double %25
}

LLVM IR (-O2):
define double @efp_get_pol_damp_tt(double %0, double %1, double %2) {
%4 = fmul double %1, %2
%5 = tail call double @sqrt(double %4)
%6 = fmul double %0, %0
%7 = fneg double %5
%8 = fmul double %6, %7
%9 = tail call double @exp(double %8)
%10 = tail call double @llvm.fmuladd.f64(double %5, double %6, double 1.000000e+00)
%11 = fneg double %9
%12 = tail call double @llvm.fmuladd.f64(double %11, double %10, double 1.000000e+00)
ret double %12
}