#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 */
int pow(double, double);
double Nuclear_2S(double rij, double xii) {
  double S;
  S = 1.0 / rij - (6.0 + 9.0 * rij * xii +
                   6.0 * (pow((double)(rij), (double)(2.0))) *
                       (pow((double)(xii), (double)(2.0))) +
                   2.0 * (pow((double)(rij), (double)(3.0))) *
                       (pow((double)(xii), (double)(3.0)))) /
                      (6. *
                       (pow((double)(2.71828182845904523536029),
                            (double)(2.0 * rij * xii))) *
                       rij);
  return S;
}


x86 assembly (clang, -O0):
<Nuclear_2S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xefe(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xee4(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeae(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xea8(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe87(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe81(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x48(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe5c(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe43(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe35(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x38(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe05(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xdeb(%rip),%xmm0
call   1030 <pow@plt>
movsd  -0x28(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
movsd  0xdc8(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  -0x8(%rbp),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Nuclear_2S>:
sub    $0x38,%rsp
movsd  %xmm1,0x8(%rsp)
movapd %xmm0,0x20(%rsp)
movsd  0xed8(%rip),%xmm2
mulsd  %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  0xed0(%rip),%xmm2
movsd  %xmm2,0x10(%rsp)
movsd  0xeca(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xeae(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xea3(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe86(%rip),%xmm1
movaps 0x20(%rsp),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xe5e(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movapd %xmm0,0x10(%rsp)
movapd 0x20(%rsp),%xmm1
addsd  %xmm1,%xmm1
mulsd  0x8(%rsp),%xmm1
movsd  0xe31(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xe05(%rip),%xmm1
movapd 0x20(%rsp),%xmm2
mulsd  %xmm2,%xmm1
movapd 0xe1b(%rip),%xmm0
unpcklpd 0x10(%rsp),%xmm0
unpcklpd %xmm1,%xmm2
divpd  %xmm2,%xmm0
movapd %xmm0,%xmm1
unpckhpd %xmm0,%xmm1
subsd  %xmm1,%xmm0
add    $0x38,%rsp
ret

LLVM IR (-O0):
define double @Nuclear_2S(double %0, double %1) {
%3 = alloca double
%4 = alloca double
%5 = alloca double
store double %0, double* %3
store double %1, double* %4
%6 = load double, double* %3
%7 = fdiv double 1.000000e+00, %6
%8 = load double, double* %3
%9 = fmul double 9.000000e+00, %8
%10 = load double, double* %4
%11 = call double @llvm.fmuladd.f64(double %9, double %10, double 6.000000e+00)
%12 = load double, double* %3
%13 = call i32 @pow(double %12, double 2.000000e+00)
%14 = sitofp i32 %13 to double
%15 = fmul double 6.000000e+00, %14
%16 = load double, double* %4
%17 = call i32 @pow(double %16, double 2.000000e+00)
%18 = sitofp i32 %17 to double
%19 = call double @llvm.fmuladd.f64(double %15, double %18, double %11)
%20 = load double, double* %3
%21 = call i32 @pow(double %20, double 3.000000e+00)
%22 = sitofp i32 %21 to double
%23 = fmul double 2.000000e+00, %22
%24 = load double, double* %4
%25 = call i32 @pow(double %24, double 3.000000e+00)
%26 = sitofp i32 %25 to double
%27 = call double @llvm.fmuladd.f64(double %23, double %26, double %19)
%28 = load double, double* %3
%29 = fmul double 2.000000e+00, %28
%30 = load double, double* %4
%31 = fmul double %29, %30
%32 = call i32 @pow(double 0x4005BF0A8B145769, double %31)
%33 = sitofp i32 %32 to double
%34 = fmul double 6.000000e+00, %33
%35 = load double, double* %3
%36 = fmul double %34, %35
%37 = fdiv double %27, %36
%38 = fsub double %7, %37
store double %38, double* %5
%39 = load double, double* %5
ret double %39
}

LLVM IR (-O2):
define double @Nuclear_2S(double %0, double %1) {
%3 = fmul double %0, 9.000000e+00
%4 = tail call double @llvm.fmuladd.f64(double %3, double %1, double 6.000000e+00)
%5 = tail call i32 @pow(double %0, double 2.000000e+00)
%6 = sitofp i32 %5 to double
%7 = fmul double %6, 6.000000e+00
%8 = tail call i32 @pow(double %1, double 2.000000e+00)
%9 = sitofp i32 %8 to double
%10 = tail call double @llvm.fmuladd.f64(double %7, double %9, double %4)
%11 = tail call i32 @pow(double %0, double 3.000000e+00)
%12 = sitofp i32 %11 to double
%13 = fmul double %12, 2.000000e+00
%14 = tail call i32 @pow(double %1, double 3.000000e+00)
%15 = sitofp i32 %14 to double
%16 = tail call double @llvm.fmuladd.f64(double %13, double %15, double %10)
%17 = fmul double %0, 2.000000e+00
%18 = fmul double %17, %1
%19 = tail call i32 @pow(double 0x4005BF0A8B145769, double %18)
%20 = sitofp i32 %19 to double
%21 = fmul double %20, 6.000000e+00
%22 = fmul double %21, %0
%23 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %16, i64 1
%24 = insertelement <2 x double> poison, double %0, i64 0
%25 = insertelement <2 x double> %24, double %22, i64 1
%26 = fdiv <2 x double> %23, %25
%27 = shufflevector <2 x double> %26, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%28 = fsub <2 x double> %26, %27
%29 = extractelement <2 x double> %28, i64 0
ret double %29
}