#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_3S(double rij, double xii) {
  double S;
  S = 1.0 / rij - (45.0 + 75.0 * rij * xii +
                   60.0 * (pow((double)(rij), (double)(2.0))) *
                       (pow((double)(xii), (double)(2.0))) +
                   30.0 * (pow((double)(rij), (double)(3.0))) *
                       (pow((double)(xii), (double)(3.0))) +
                   10.0 * (pow((double)(rij), (double)(4.0))) *
                       (pow((double)(xii), (double)(4.0))) +
                   2.0 * (pow((double)(rij), (double)(5.0))) *
                       (pow((double)(xii), (double)(5.0)))) /
                      (45. *
                       (pow((double)(2.71828182845904523536029),
                            (double)(2.0 * rij * xii))) *
                       rij);
  return S;
}


x86 assembly (clang, -O0):
<Nuclear_3S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf26(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xf0c(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeae(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xea8(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xec7(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe81(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x68(%rbp),%xmm0
movsd  -0x60(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe74(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe6b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe4d(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x58(%rbp),%xmm0
movsd  -0x50(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe10(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe07(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xde9(%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  0xdb4(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd9b(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd8d(%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  0xd5d(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xd43(%rip),%xmm0
call   1030 <pow@plt>
movsd  -0x28(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
movsd  0xd20(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  -0x8(%rbp),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Nuclear_3S>:
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  0xebe(%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  0xe8e(%rip),%xmm1
movaps 0x20(%rsp),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe7d(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xe62(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe4d(%rip),%xmm1
movaps 0x20(%rsp),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xe3c(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xe21(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xe0c(%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  0xde4(%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  0xdb7(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xd63(%rip),%xmm1
movapd 0x20(%rsp),%xmm2
mulsd  %xmm2,%xmm1
movapd 0xd99(%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_3S(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 7.500000e+01, %8
%10 = load double, double* %4
%11 = call double @llvm.fmuladd.f64(double %9, double %10, double 4.500000e+01)
%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+01, %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 3.000000e+01, %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 = call i32 @pow(double %28, double 4.000000e+00)
%30 = sitofp i32 %29 to double
%31 = fmul double 1.000000e+01, %30
%32 = load double, double* %4
%33 = call i32 @pow(double %32, double 4.000000e+00)
%34 = sitofp i32 %33 to double
%35 = call double @llvm.fmuladd.f64(double %31, double %34, double %27)
%36 = load double, double* %3
%37 = call i32 @pow(double %36, double 5.000000e+00)
%38 = sitofp i32 %37 to double
%39 = fmul double 2.000000e+00, %38
%40 = load double, double* %4
%41 = call i32 @pow(double %40, double 5.000000e+00)
%42 = sitofp i32 %41 to double
%43 = call double @llvm.fmuladd.f64(double %39, double %42, double %35)
%44 = load double, double* %3
%45 = fmul double 2.000000e+00, %44
%46 = load double, double* %4
%47 = fmul double %45, %46
%48 = call i32 @pow(double 0x4005BF0A8B145769, double %47)
%49 = sitofp i32 %48 to double
%50 = fmul double 4.500000e+01, %49
%51 = load double, double* %3
%52 = fmul double %50, %51
%53 = fdiv double %43, %52
%54 = fsub double %7, %53
store double %54, double* %5
%55 = load double, double* %5
ret double %55
}

LLVM IR (-O2):
define double @Nuclear_3S(double %0, double %1) {
%3 = fmul double %0, 7.500000e+01
%4 = tail call double @llvm.fmuladd.f64(double %3, double %1, double 4.500000e+01)
%5 = tail call i32 @pow(double %0, double 2.000000e+00)
%6 = sitofp i32 %5 to double
%7 = fmul double %6, 6.000000e+01
%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, 3.000000e+01
%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 = tail call i32 @pow(double %0, double 4.000000e+00)
%18 = sitofp i32 %17 to double
%19 = fmul double %18, 1.000000e+01
%20 = tail call i32 @pow(double %1, double 4.000000e+00)
%21 = sitofp i32 %20 to double
%22 = tail call double @llvm.fmuladd.f64(double %19, double %21, double %16)
%23 = tail call i32 @pow(double %0, double 5.000000e+00)
%24 = sitofp i32 %23 to double
%25 = fmul double %24, 2.000000e+00
%26 = tail call i32 @pow(double %1, double 5.000000e+00)
%27 = sitofp i32 %26 to double
%28 = tail call double @llvm.fmuladd.f64(double %25, double %27, double %22)
%29 = fmul double %0, 2.000000e+00
%30 = fmul double %29, %1
%31 = tail call i32 @pow(double 0x4005BF0A8B145769, double %30)
%32 = sitofp i32 %31 to double
%33 = fmul double %32, 4.500000e+01
%34 = fmul double %33, %0
%35 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %28, i64 1
%36 = insertelement <2 x double> poison, double %0, i64 0
%37 = insertelement <2 x double> %36, double %34, i64 1
%38 = fdiv <2 x double> %35, %37
%39 = shufflevector <2 x double> %38, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%40 = fsub <2 x double> %38, %39
%41 = extractelement <2 x double> %40, i64 0
ret double %41
}