#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.882435 * exp(-8.900114 * (r / 2.74084 - 1.))) /
              (1. + pow(r / 2.74084 - 0.139209, 20.)) -
          (1.394592 * exp(-4.746728 * (r / 2.74084 - 1.))) /
              (1. + pow(r / 2.74084 - 0.278417, 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, 2.740840e+00
%5 = fsub double %4, 1.000000e+00
%6 = fmul double 0xC021CCDBBE0157EF, %5
%7 = call double @exp(double %6)
%8 = fmul double 8.824350e-01, %7
%9 = load double, double* %2
%10 = fdiv double %9, 2.740840e+00
%11 = fsub double %10, 1.392090e-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, 2.740840e+00
%18 = fsub double %17, 1.000000e+00
%19 = fmul double 0xC012FCA643CC07AB, %18
%20 = call double @exp(double %19)
%21 = fmul double 0x3FF6503FB3743633, %20
%22 = load double, double* %2
%23 = fdiv double %22, 2.740840e+00
%24 = fsub double %23, 2.784170e-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, 2.740840e+00
%3 = fadd double %2, -1.000000e+00
%4 = fmul double %3, 0xC021CCDBBE0157EF
%5 = tail call double @exp(double %4)
%6 = fadd double %2, -1.392090e-01
%7 = tail call i32 @pow(double %6, i32 20)
%8 = fmul double %3, 0xC012FCA643CC07AB
%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 8.824350e-01, double 0x3FF6503FB3743633>
%13 = fadd double %2, -2.784170e-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
}