#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 H(double);
double M(double, double, double);
double pow(double, int);
double psi(double);
double V(double r) {
  return (2.01458 * 1e2 * M(r, 0.83591, 2.97758) +
          6.59288 * 1e-3 * M(r, 4.46867, 1.54927) + 0.86225 * 1e-2) *
             psi((r - 5.50679) / 0.50037) -
         H(2.24 - r) * 4. * pow(2.24 - r, 4.) -
         H(1.8 - r) * 40. * pow(1.8 - r, 4.) -
         H(1.2 - r) * 1.15 * 1e3 * pow(1.2 - r, 4.);
}


x86 assembly (clang, -O0):
<V>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xf16(%rip),%xmm1
movsd  0xf16(%rip),%xmm2
call   1050 <M@plt>
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xee7(%rip),%xmm1
movsd  0xee7(%rip),%xmm2
call   1050 <M@plt>
movaps %xmm0,%xmm2
movsd  -0x48(%rbp),%xmm0
movsd  0xec2(%rip),%xmm1
mulsd  %xmm2,%xmm1
movsd  0xeae(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe96(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe78(%rip),%xmm1
subsd  %xmm1,%xmm0
movsd  0xe64(%rip),%xmm1
divsd  %xmm1,%xmm0
call   1040 <psi@plt>
movsd  %xmm0,-0x38(%rbp)
movsd  0xe3e(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
call   1030 <H@plt>
movsd  0xe34(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  0xe1b(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1060 <pow@plt>
movsd  -0x40(%rbp),%xmm1
movsd  -0x38(%rbp),%xmm2
movaps %xmm0,%xmm3
movsd  -0x30(%rbp),%xmm0
mulsd  %xmm3,%xmm1
movq   %xmm1,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xdba(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
call   1030 <H@plt>
movsd  0xdb0(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xd97(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1060 <pow@plt>
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xd37(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
call   1030 <H@plt>
movsd  0xd35(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xd21(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  0xd08(%rip),%xmm0
subsd  -0x8(%rbp),%xmm0
mov    $0x4,%edi
call   1060 <pow@plt>
movsd  -0x18(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x10(%rbp),%xmm0
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<V>:
sub    $0x28,%rsp
movsd  %xmm0,0x8(%rsp)
movsd  0xeae(%rip),%xmm1
movsd  0xeae(%rip),%xmm2
call   1050 <M@plt>
movsd  %xmm0,(%rsp)
movsd  0xea4(%rip),%xmm1
movsd  0xea4(%rip),%xmm2
movsd  0x8(%rsp),%xmm0
call   1050 <M@plt>
mulsd  0xe99(%rip),%xmm0
movsd  (%rsp),%xmm1
mulsd  0xe94(%rip),%xmm1
addsd  %xmm1,%xmm0
addsd  0xe90(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe8b(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
divsd  0xe85(%rip),%xmm0
call   1040 <psi@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0xe7a(%rip),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x20(%rsp)
call   1030 <H@plt>
movsd  %xmm0,0x18(%rsp)
movsd  0x20(%rsp),%xmm0
mov    $0x4,%edi
call   1060 <pow@plt>
movsd  0x18(%rsp),%xmm1
mulsd  0xe4d(%rip),%xmm1
mulsd  %xmm1,%xmm0
movsd  0x10(%rsp),%xmm1
mulsd  (%rsp),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
movsd  0xe35(%rip),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x18(%rsp)
call   1030 <H@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x18(%rsp),%xmm0
mov    $0x4,%edi
call   1060 <pow@plt>
movsd  0x10(%rsp),%xmm1
mulsd  0xe08(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0xdfa(%rip),%xmm0
subsd  0x8(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
call   1030 <H@plt>
mulsd  0xde9(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x10(%rsp),%xmm0
mov    $0x4,%edi
call   1060 <pow@plt>
movsd  0x8(%rsp),%xmm1
mulsd  0xdcd(%rip),%xmm1
mulsd  %xmm1,%xmm0
addsd  (%rsp),%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @V(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = call double @M(double %3, double 8.359100e-01, double 2.977580e+00)
%5 = load double, double* %2
%6 = call double @M(double %5, double 4.468670e+00, double 1.549270e+00)
%7 = fmul double 0x3F7B0122BFC88266, %6
%8 = call double @llvm.fmuladd.f64(double 2.014580e+02, double %4, double %7)
%9 = fadd double %8, 0x3F81A8AC5C13FD0D
%10 = load double, double* %2
%11 = fsub double %10, 5.506790e+00
%12 = fdiv double %11, 5.003700e-01
%13 = call double @psi(double %12)
%14 = load double, double* %2
%15 = fsub double 2.240000e+00, %14
%16 = call double @H(double %15)
%17 = fmul double %16, 4.000000e+00
%18 = load double, double* %2
%19 = fsub double 2.240000e+00, %18
%20 = call double @pow(double %19, i32 4)
%21 = fmul double %17, %20
%22 = fneg double %21
%23 = call double @llvm.fmuladd.f64(double %9, double %13, double %22)
%24 = load double, double* %2
%25 = fsub double 1.800000e+00, %24
%26 = call double @H(double %25)
%27 = fmul double %26, 4.000000e+01
%28 = load double, double* %2
%29 = fsub double 1.800000e+00, %28
%30 = call double @pow(double %29, i32 4)
%31 = fneg double %27
%32 = call double @llvm.fmuladd.f64(double %31, double %30, double %23)
%33 = load double, double* %2
%34 = fsub double 1.200000e+00, %33
%35 = call double @H(double %34)
%36 = fmul double %35, 1.150000e+00
%37 = fmul double %36, 1.000000e+03
%38 = load double, double* %2
%39 = fsub double 1.200000e+00, %38
%40 = call double @pow(double %39, i32 4)
%41 = fneg double %37
%42 = call double @llvm.fmuladd.f64(double %41, double %40, double %32)
ret double %42
}

LLVM IR (-O2):
define double @V(double %0) {
%2 = tail call double @M(double %0, double 8.359100e-01, double 2.977580e+00)
%3 = tail call double @M(double %0, double 4.468670e+00, double 1.549270e+00)
%4 = fmul double %3, 0x3F7B0122BFC88266
%5 = tail call double @llvm.fmuladd.f64(double %2, double 2.014580e+02, double %4)
%6 = fadd double %5, 0x3F81A8AC5C13FD0D
%7 = fadd double %0, -5.506790e+00
%8 = fdiv double %7, 5.003700e-01
%9 = tail call double @psi(double %8)
%10 = fsub double 2.240000e+00, %0
%11 = tail call double @H(double %10)
%12 = tail call double @pow(double %10, i32 4)
%13 = fmul double %11, -4.000000e+00
%14 = fmul double %13, %12
%15 = tail call double @llvm.fmuladd.f64(double %6, double %9, double %14)
%16 = fsub double 1.800000e+00, %0
%17 = tail call double @H(double %16)
%18 = tail call double @pow(double %16, i32 4)
%19 = fmul double %17, -4.000000e+01
%20 = tail call double @llvm.fmuladd.f64(double %19, double %18, double %15)
%21 = fsub double 1.200000e+00, %0
%22 = tail call double @H(double %21)
%23 = fmul double %22, 1.150000e+00
%24 = tail call double @pow(double %21, i32 4)
%25 = fmul double %23, -1.000000e+03
%26 = tail call double @llvm.fmuladd.f64(double %25, double %24, double %20)
ret double %26
}