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


x86 assembly (clang, -O0):
<Nuclear_1S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xee6(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xec6(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xead(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xe93(%rip),%xmm0
call   1030 <pow@plt>
movsd  -0x28(%rbp),%xmm1
movaps %xmm0,%xmm2
movsd  -0x20(%rbp),%xmm0
mulsd  -0x8(%rbp),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Nuclear_1S>:
sub    $0x28,%rsp
movapd %xmm0,(%rsp)
movapd %xmm0,%xmm2
mulsd  %xmm1,%xmm2
addsd  0xed7(%rip),%xmm2
movapd %xmm2,0x10(%rsp)
movapd %xmm0,%xmm2
addsd  %xmm0,%xmm2
mulsd  %xmm2,%xmm1
movsd  0xec5(%rip),%xmm0
call   1030 <pow@plt>
movapd (%rsp),%xmm2
mulsd  %xmm2,%xmm0
movapd 0xeb7(%rip),%xmm1
unpcklpd 0x10(%rsp),%xmm1
unpcklpd %xmm0,%xmm2
divpd  %xmm2,%xmm1
movapd %xmm1,%xmm0
unpckhpd %xmm1,%xmm0
subsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
add    $0x28,%rsp
ret

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

LLVM IR (-O2):
define double @Nuclear_1S(double %0, double %1) {
%3 = tail call double @llvm.fmuladd.f64(double %0, double %1, double 1.000000e+00)
%4 = fmul double %0, 2.000000e+00
%5 = fmul double %4, %1
%6 = tail call double @pow(double 0x4005BF0A8B145769, double %5)
%7 = fmul double %6, %0
%8 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %3, i64 1
%9 = insertelement <2 x double> poison, double %0, i64 0
%10 = insertelement <2 x double> %9, double %7, i64 1
%11 = fdiv <2 x double> %8, %10
%12 = shufflevector <2 x double> %11, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%13 = fsub <2 x double> %11, %12
%14 = extractelement <2 x double> %13, i64 0
ret double %14
}