#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 pow(double, int);
double psi(double);
double rho(double r) {
  return (3.80362 * exp(-0.17394 * pow(r - -2.19885, 2.)) +
          exp(-5.35661 * 1e2 * (r - -2.61984 * 1e2))) *
         psi((r - 5.50679) / 0.50037);
}


x86 assembly (clang, -O0):
<rho>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xee6(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xec5(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <exp@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xea2(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe8e(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1040 <exp@plt>
movaps %xmm0,%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xe6d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe4b(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe37(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1030 <psi@plt>
movaps %xmm0,%xmm1
movsd  -0x10(%rbp),%xmm0
mulsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<rho>:
sub    $0x18,%rsp
movapd %xmm0,%xmm1
movsd  %xmm0,0x10(%rsp)
movsd  0xeba(%rip),%xmm0
addsd  %xmm1,%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulsd  0xeac(%rip),%xmm0
call   1040 <exp@plt>
movsd  %xmm0,0x8(%rsp)
movsd  0xea1(%rip),%xmm0
addsd  0x10(%rsp),%xmm0
mulsd  0xe9b(%rip),%xmm0
call   1040 <exp@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0xe90(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
addsd  0xe80(%rip),%xmm0
divsd  0xe80(%rip),%xmm0
call   1030 <psi@plt>
mulsd  0x8(%rsp),%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @rho(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fsub double %3, -2.198850e+00
%5 = call double @pow(double %4, i32 2)
%6 = fmul double -1.739400e-01, %5
%7 = call double @exp(double %6)
%8 = load double, double* %2
%9 = fsub double %8, -2.619840e+02
%10 = fmul double -5.356610e+02, %9
%11 = call double @exp(double %10)
%12 = call double @llvm.fmuladd.f64(double 3.803620e+00, double %7, double %11)
%13 = load double, double* %2
%14 = fsub double %13, 5.506790e+00
%15 = fdiv double %14, 5.003700e-01
%16 = call double @psi(double %15)
%17 = fmul double %12, %16
ret double %17
}

LLVM IR (-O2):
define double @rho(double %0) {
%2 = fadd double %0, 2.198850e+00
%3 = tail call double @pow(double %2, i32 2)
%4 = fmul double %3, -1.739400e-01
%5 = tail call double @exp(double %4)
%6 = fadd double %0, 2.619840e+02
%7 = fmul double %6, -5.356610e+02
%8 = tail call double @exp(double %7)
%9 = tail call double @llvm.fmuladd.f64(double %5, double 3.803620e+00, double %8)
%10 = fadd double %0, -5.506790e+00
%11 = fdiv double %10, 5.003700e-01
%12 = tail call double @psi(double %11)
%13 = fmul double %9, %12
ret double %13
}