#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 DNuclear_2S(double rij, double xii) {
  double S;
  S = (pow((double)(rij), (double)(-2.0))) -
      (3.0 + 6.0 * rij * xii +
       6.0 * (pow((double)(rij), (double)(2.0))) *
           (pow((double)(xii), (double)(2.0))) +
       4.0 * (pow((double)(rij), (double)(3.0))) *
           (pow((double)(xii), (double)(3.0))) +
       2.0 * (pow((double)(rij), (double)(4.0))) *
           (pow((double)(xii), (double)(4.0)))) /
          (3. *
           (pow((double)(2.71828182845904523536029),
                (double)(2.0 * rij * xii))) *
           (pow((double)(rij), (double)(2.0))));
  return S;
}


x86 assembly (clang, -O0):
<DNuclear_2S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xef9(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xedb(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xead(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe8f(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe9e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe68(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe43(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe42(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe1c(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x50(%rbp),%xmm0
movsd  -0x48(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xdff(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xdd6(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xdd8(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x40(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xd98(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xd96(%rip),%xmm0
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd7d(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xd5f(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DNuclear_2S>:
sub    $0x28,%rsp
movsd  %xmm1,0x8(%rsp)
movsd  %xmm0,0x18(%rsp)
movsd  0xed8(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x18(%rsp),%xmm0
movapd %xmm0,%xmm1
mulsd  0xebc(%rip),%xmm1
mulsd  0x8(%rsp),%xmm1
addsd  0xeb6(%rip),%xmm1
movsd  %xmm1,(%rsp)
movsd  0xeb1(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe8d(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xe89(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0xe57(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe53(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xe2f(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0xe15(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
addsd  %xmm0,%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xdf1(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x10(%rsp),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x18(%rsp),%xmm1
addsd  %xmm1,%xmm1
mulsd  0x8(%rsp),%xmm1
movsd  0xdc5(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd99(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x18(%rsp),%xmm0
movsd  0xd8d(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  0x20(%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0x28,%rsp
ret

LLVM IR (-O0):
define double @DNuclear_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 = call i32 @pow(double %6, double -2.000000e+00)
%8 = sitofp i32 %7 to double
%9 = load double, double* %3
%10 = fmul double 6.000000e+00, %9
%11 = load double, double* %4
%12 = call double @llvm.fmuladd.f64(double %10, double %11, double 3.000000e+00)
%13 = load double, double* %3
%14 = call i32 @pow(double %13, double 2.000000e+00)
%15 = sitofp i32 %14 to double
%16 = fmul double 6.000000e+00, %15
%17 = load double, double* %4
%18 = call i32 @pow(double %17, double 2.000000e+00)
%19 = sitofp i32 %18 to double
%20 = call double @llvm.fmuladd.f64(double %16, double %19, double %12)
%21 = load double, double* %3
%22 = call i32 @pow(double %21, double 3.000000e+00)
%23 = sitofp i32 %22 to double
%24 = fmul double 4.000000e+00, %23
%25 = load double, double* %4
%26 = call i32 @pow(double %25, double 3.000000e+00)
%27 = sitofp i32 %26 to double
%28 = call double @llvm.fmuladd.f64(double %24, double %27, double %20)
%29 = load double, double* %3
%30 = call i32 @pow(double %29, double 4.000000e+00)
%31 = sitofp i32 %30 to double
%32 = fmul double 2.000000e+00, %31
%33 = load double, double* %4
%34 = call i32 @pow(double %33, double 4.000000e+00)
%35 = sitofp i32 %34 to double
%36 = call double @llvm.fmuladd.f64(double %32, double %35, double %28)
%37 = load double, double* %3
%38 = fmul double 2.000000e+00, %37
%39 = load double, double* %4
%40 = fmul double %38, %39
%41 = call i32 @pow(double 0x4005BF0A8B145769, double %40)
%42 = sitofp i32 %41 to double
%43 = fmul double 3.000000e+00, %42
%44 = load double, double* %3
%45 = call i32 @pow(double %44, double 2.000000e+00)
%46 = sitofp i32 %45 to double
%47 = fmul double %43, %46
%48 = fdiv double %36, %47
%49 = fsub double %8, %48
store double %49, double* %5
%50 = load double, double* %5
ret double %50
}

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