#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_4S(double rij, double xii) {
  double S;
  S = 1.0 / rij - (1260.0 + 2205.0 * rij * xii +
                   1890.0 * (pow((double)(rij), (double)(2.0))) *
                       (pow((double)(xii), (double)(2.0))) +
                   1050.0 * (pow((double)(rij), (double)(3.0))) *
                       (pow((double)(xii), (double)(3.0))) +
                   420.0 * (pow((double)(rij), (double)(4.0))) *
                       (pow((double)(xii), (double)(4.0))) +
                   126.0 * (pow((double)(rij), (double)(5.0))) *
                       (pow((double)(xii), (double)(5.0))) +
                   28.0 * (pow((double)(rij), (double)(6.0))) *
                       (pow((double)(xii), (double)(6.0))) +
                   4.0 * (pow((double)(rij), (double)(7.0))) *
                       (pow((double)(xii), (double)(7.0)))) /
                      (1260. *
                       (pow((double)(2.71828182845904523536029),
                            (double)(2.0 * rij * xii))) *
                       rij);
  return S;
}


x86 assembly (clang, -O0):
<Nuclear_4S>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movsd  %xmm0,-0x8(%rbp)
movsd  %xmm1,-0x10(%rbp)
movsd  0xf43(%rip),%xmm0
divsd  -0x8(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  0xf29(%rip),%xmm0
mulsd  -0x8(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm1
mulsd  %xmm1,%xmm0
movsd  0xeab(%rip),%xmm1
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xea5(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xee4(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x10(%rbp),%xmm0
movsd  0xe7b(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x88(%rbp),%xmm0
ff
movsd  -0x80(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe8b(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe82(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe64(%rip),%xmm1
call   1030 <pow@plt>
movsd  -0x78(%rbp),%xmm0
movsd  -0x70(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x8(%rbp),%xmm0
movsd  0xe07(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xe1e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xde0(%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  0xdcb(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xdc2(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xda4(%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  0xd67(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xd5e(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd40(%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  0xd03(%rip),%xmm1
call   1030 <pow@plt>
cvtsi2sd %eax,%xmm1
movsd  0xcfa(%rip),%xmm0
mulsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xcdc(%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  0xcac(%rip),%xmm1
mulsd  -0x8(%rbp),%xmm1
mulsd  -0x10(%rbp),%xmm1
movsd  0xc92(%rip),%xmm0
call   1030 <pow@plt>
movsd  -0x28(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
cvtsi2sd %eax,%xmm3
movsd  0xc6f(%rip),%xmm2
mulsd  %xmm3,%xmm2
mulsd  -0x8(%rbp),%xmm2
divsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Nuclear_4S>:
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
mulsd  0xdfb(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xde0(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xdcb(%rip),%xmm1
movaps 0x20(%rsp),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xdba(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xd9f(%rip),%xmm1
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  (%rsp),%xmm0
addsd  0x10(%rsp),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0xd8a(%rip),%xmm1
movaps 0x20(%rsp),%xmm0
call   1030 <pow@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
mulsd  0xd41(%rip),%xmm0
movsd  %xmm0,(%rsp)
movsd  0x8(%rsp),%xmm0
movsd  0xd5e(%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  0xd31(%rip),%xmm0
call   1030 <pow@plt>
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  0xcbd(%rip),%xmm1
movapd 0x20(%rsp),%xmm2
mulsd  %xmm2,%xmm1
movapd 0xd13(%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_4S(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 2.205000e+03, %8
%10 = load double, double* %4
%11 = call double @llvm.fmuladd.f64(double %9, double %10, double 1.260000e+03)
%12 = load double, double* %3
%13 = call i32 @pow(double %12, double 2.000000e+00)
%14 = sitofp i32 %13 to double
%15 = fmul double 1.890000e+03, %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 1.050000e+03, %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 4.200000e+02, %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 1.260000e+02, %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 = call i32 @pow(double %44, double 6.000000e+00)
%46 = sitofp i32 %45 to double
%47 = fmul double 2.800000e+01, %46
%48 = load double, double* %4
%49 = call i32 @pow(double %48, double 6.000000e+00)
%50 = sitofp i32 %49 to double
%51 = call double @llvm.fmuladd.f64(double %47, double %50, double %43)
%52 = load double, double* %3
%53 = call i32 @pow(double %52, double 7.000000e+00)
%54 = sitofp i32 %53 to double
%55 = fmul double 4.000000e+00, %54
%56 = load double, double* %4
%57 = call i32 @pow(double %56, double 7.000000e+00)
%58 = sitofp i32 %57 to double
%59 = call double @llvm.fmuladd.f64(double %55, double %58, double %51)
%60 = load double, double* %3
%61 = fmul double 2.000000e+00, %60
%62 = load double, double* %4
%63 = fmul double %61, %62
%64 = call i32 @pow(double 0x4005BF0A8B145769, double %63)
%65 = sitofp i32 %64 to double
%66 = fmul double 1.260000e+03, %65
%67 = load double, double* %3
%68 = fmul double %66, %67
%69 = fdiv double %59, %68
%70 = fsub double %7, %69
store double %70, double* %5
%71 = load double, double* %5
ret double %71
}

LLVM IR (-O2):
define double @Nuclear_4S(double %0, double %1) {
%3 = fmul double %0, 2.205000e+03
%4 = tail call double @llvm.fmuladd.f64(double %3, double %1, double 1.260000e+03)
%5 = tail call i32 @pow(double %0, double 2.000000e+00)
%6 = sitofp i32 %5 to double
%7 = fmul double %6, 1.890000e+03
%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, 1.050000e+03
%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, 4.200000e+02
%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, 1.260000e+02
%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 = tail call i32 @pow(double %0, double 6.000000e+00)
%30 = sitofp i32 %29 to double
%31 = fmul double %30, 2.800000e+01
%32 = tail call i32 @pow(double %1, double 6.000000e+00)
%33 = sitofp i32 %32 to double
%34 = tail call double @llvm.fmuladd.f64(double %31, double %33, double %28)
%35 = tail call i32 @pow(double %0, double 7.000000e+00)
%36 = sitofp i32 %35 to double
%37 = fmul double %36, 4.000000e+00
%38 = tail call i32 @pow(double %1, double 7.000000e+00)
%39 = sitofp i32 %38 to double
%40 = tail call double @llvm.fmuladd.f64(double %37, double %39, double %34)
%41 = fmul double %0, 2.000000e+00
%42 = fmul double %41, %1
%43 = tail call i32 @pow(double 0x4005BF0A8B145769, double %42)
%44 = sitofp i32 %43 to double
%45 = fmul double %44, 1.260000e+03
%46 = fmul double %45, %0
%47 = insertelement <2 x double> <double 1.000000e+00, double poison>, double %40, i64 1
%48 = insertelement <2 x double> poison, double %0, i64 0
%49 = insertelement <2 x double> %48, double %46, i64 1
%50 = fdiv <2 x double> %47, %49
%51 = shufflevector <2 x double> %50, <2 x double> poison, <2 x i32> <i32 1, i32 undef>
%52 = fsub <2 x double> %50, %51
%53 = extractelement <2 x double> %52, i64 0
ret double %53
}