#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 pow(double, double);
double DNuclear_1S(double rij, double xii) {
  double S;
  S = (pow((double)(rij), (double)(-2.0))) -
      (1.0 + 2.0 * rij * xii +
       2.0 * (pow((double)(rij), (double)(2.0))) *
           (pow((double)(xii), (double)(2.0)))) /
          ((pow((double)(2.71828182845904523536029),
                (double)(2.0 * rij * xii))) *
           (pow((double)(rij), (double)(2.0))));
  return S;
}


x86 assembly (clang, -O0):
<DNuclear_1S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xee9(%rip),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,-0x20(%rbp)
movsd  0xebf(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeb9(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe93(%rip),%xmm1
call   1030 <pow@plt>
movaps %xmm0,%xmm1
movsd  0xe83(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe6d(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x40(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe46(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xe3c(%rip),%xmm0
call   1030 <pow@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe1d(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x30(%rbp),%xmm2
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm3
movsd  -0x20(%rbp),%xmm0
mulsd  %xmm3,%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DNuclear_1S>:
sub    $0x18,%rsp
movsd  %xmm1,(%rsp)
movsd  %xmm0,0x8(%rsp)
movsd  0xed9(%rip),%xmm1
call   1030 <pow@plt>
movsd  %xmm0,0x10(%rsp)
movsd  0x8(%rsp),%xmm2
movapd %xmm2,%xmm1
addsd  %xmm2,%xmm1
movsd  (%rsp),%xmm3
mulsd  %xmm3,%xmm1
movsd  0xeb7(%rip),%xmm0
addsd  %xmm1,%xmm0
mulsd  %xmm2,%xmm2
movsd  %xmm2,0x8(%rsp)
addsd  %xmm2,%xmm2
mulsd  %xmm3,%xmm3
mulsd  %xmm2,%xmm3
addsd  %xmm0,%xmm3
movsd  %xmm3,(%rsp)
movsd  0xe94(%rip),%xmm0
call   1030 <pow@plt>
mulsd  0x8(%rsp),%xmm0
movsd  (%rsp),%xmm1
divsd  %xmm0,%xmm1
movsd  0x10(%rsp),%xmm0
subsd  %xmm1,%xmm0
add    $0x18,%rsp
ret

LLVM IR (-O0):
define double @DNuclear_1S(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 double @pow(double %6, double -2.000000e+00)
%8 = load double, double* %3
%9 = fmul double 2.000000e+00, %8
%10 = load double, double* %4
%11 = call double @llvm.fmuladd.f64(double %9, double %10, double 1.000000e+00)
%12 = load double, double* %3
%13 = call double @pow(double %12, double 2.000000e+00)
%14 = fmul double 2.000000e+00, %13
%15 = load double, double* %4
%16 = call double @pow(double %15, double 2.000000e+00)
%17 = call double @llvm.fmuladd.f64(double %14, double %16, double %11)
%18 = load double, double* %3
%19 = fmul double 2.000000e+00, %18
%20 = load double, double* %4
%21 = fmul double %19, %20
%22 = call double @pow(double 0x4005BF0A8B145769, double %21)
%23 = load double, double* %3
%24 = call double @pow(double %23, double 2.000000e+00)
%25 = fmul double %22, %24
%26 = fdiv double %17, %25
%27 = fsub double %7, %26
store double %27, double* %5
%28 = load double, double* %5
ret double %28
}

LLVM IR (-O2):
define double @DNuclear_1S(double %0, double %1) {
%3 = tail call double @pow(double %0, double -2.000000e+00)
%4 = fmul double %0, 2.000000e+00
%5 = tail call double @llvm.fmuladd.f64(double %4, double %1, double 1.000000e+00)
%6 = fmul double %0, %0
%7 = fmul double %6, 2.000000e+00
%8 = fmul double %1, %1
%9 = tail call double @llvm.fmuladd.f64(double %7, double %8, double %5)
%10 = fmul double %4, %1
%11 = tail call double @pow(double 0x4005BF0A8B145769, double %10)
%12 = fmul double %6, %11
%13 = fdiv double %9, %12
%14 = fsub double %3, %13
ret double %14
}