#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);
int pow(double, int);
double V(double r) {
  return ((0.251519 * exp(-6.942419 * (r / 2.886166 - 1.))) /
              (1. + pow(r / 2.886166 - 0.395132, 20.)) -
          (0.313394 * exp(-3.702623 * (r / 2.886166 - 1.))) /
              (1. + pow(r / 2.886166 - 0.790264, 20.)));
}


x86 assembly (clang, -O0):
<V>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xed6(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xeba(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xee6(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xeca(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe94(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xea0(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    $0x14,%edi
call   1040 <pow@plt>
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm2
movsd  0xe59(%rip),%xmm1
addsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm1
movsd  0xe4f(%rip),%xmm0
divsd  %xmm0,%xmm1
movsd  0xe33(%rip),%xmm0
subsd  %xmm0,%xmm1
movsd  0xe47(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movaps %xmm0,%xmm1
movsd  0xe2b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe0d(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  0xdf9(%rip),%xmm1
subsd  %xmm1,%xmm0
mov    $0x14,%edi
call   1040 <pow@plt>
movsd  -0x18(%rbp),%xmm1
movsd  -0x10(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
movsd  0xdcd(%rip),%xmm2
addsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<V>:
push   %rbx
sub    $0x30,%rsp
divsd  0xed3(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0xecd(%rip),%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x28(%rsp)
movsd  0xec3(%rip),%xmm0
mulsd  %xmm1,%xmm0
call   1030 <exp@plt>
movapd %xmm0,0x10(%rsp)
movsd  0xeb4(%rip),%xmm0
addsd  0x8(%rsp),%xmm0
mov    $0x14,%edi
call   1040 <pow@plt>
mov    %eax,%ebx
movsd  0x28(%rsp),%xmm0
mulsd  0xe9c(%rip),%xmm0
call   1030 <exp@plt>
movapd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm1
mulpd  0xe95(%rip),%xmm1
movapd %xmm1,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
addsd  0xe79(%rip),%xmm0
mov    $0x14,%edi
call   1040 <pow@plt>
movd   %ebx,%xmm0
movd   %eax,%xmm1
punpckldq %xmm1,%xmm0
cvtdq2pd %xmm0,%xmm1
addpd  0xe6f(%rip),%xmm1
movapd 0x10(%rsp),%xmm0
divpd  %xmm1,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
subsd  %xmm1,%xmm0
add    $0x30,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define double @V(double %0) {
%2 = alloca double
store double %0, double* %2
%3 = load double, double* %2
%4 = fdiv double %3, 0x400716DE33269DF9
%5 = fsub double %4, 1.000000e+00
%6 = fmul double 0xC01BC5097C80841F, %5
%7 = call double @exp(double %6)
%8 = fmul double 2.515190e-01, %7
%9 = load double, double* %2
%10 = fdiv double %9, 0x400716DE33269DF9
%11 = fsub double %10, 3.951320e-01
%12 = call i32 @pow(double %11, i32 20)
%13 = sitofp i32 %12 to double
%14 = fadd double 1.000000e+00, %13
%15 = fdiv double %8, %14
%16 = load double, double* %2
%17 = fdiv double %16, 0x400716DE33269DF9
%18 = fsub double %17, 1.000000e+00
%19 = fmul double 0xC00D9EF8CEB356DA, %18
%20 = call double @exp(double %19)
%21 = fmul double 3.133940e-01, %20
%22 = load double, double* %2
%23 = fdiv double %22, 0x400716DE33269DF9
%24 = fsub double %23, 7.902640e-01
%25 = call i32 @pow(double %24, i32 20)
%26 = sitofp i32 %25 to double
%27 = fadd double 1.000000e+00, %26
%28 = fdiv double %21, %27
%29 = fsub double %15, %28
ret double %29
}

LLVM IR (-O2):
define double @V(double %0) {
%2 = fdiv double %0, 0x400716DE33269DF9
%3 = fadd double %2, -1.000000e+00
%4 = fmul double %3, 0xC01BC5097C80841F
%5 = tail call double @exp(double %4)
%6 = fadd double %2, -3.951320e-01
%7 = tail call i32 @pow(double %6, i32 20)
%8 = fmul double %3, 0xC00D9EF8CEB356DA
%9 = tail call double @exp(double %8)
%10 = insertelement <2 x double> poison, double %5, i64 0
%11 = insertelement <2 x double> %10, double %9, i64 1
%12 = fmul <2 x double> %11, <double 2.515190e-01, double 3.133940e-01>
%13 = fadd double %2, -7.902640e-01
%14 = tail call i32 @pow(double %13, i32 20)
%15 = insertelement <2 x i32> poison, i32 %7, i64 0
%16 = insertelement <2 x i32> %15, i32 %14, i64 1
%17 = sitofp <2 x i32> %16 to <2 x double>
%18 = fadd <2 x double> %17, <double 1.000000e+00, double 1.000000e+00>
%19 = fdiv <2 x double> %12, %18
%20 = shufflevector <2 x double> %19, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%21 = fsub <2 x double> %19, %20
%22 = extractelement <2 x double> %21, i64 0
ret double %22
}