#include <libint2.h>
#include <_elecpot_S_P_prereq.h>

#ifdef __cplusplus
extern "C" {
#endif
void _elecpot_S_P(const Libint_t* inteval) {

_libint2_static_api_bzero_short_(inteval->stack+0*1,4)
const int contrdepth = inteval->contrdepth;
#ifdef __INTEL_COMPILER
#pragma ivdep
#endif
for(int c = 0; c<contrdepth; c++) {
_elecpot_S_P_prereq(inteval+c, inteval->stack);
}

LIBINT2_REALTYPE*const  stack = inteval->stack;
{
const int hsi = 0;
{
const int lsi = 0;
{
const int vi = 0;
LIBINT2_REALTYPE fp1;
fp1 = inteval->AB_z[vi] * inteval->stack[((hsi*1+1)*1+lsi)*1];
LIBINT2_REALTYPE fp0;
fp0 = inteval->stack[((hsi*1+3)*1+lsi)*1] + fp1;
inteval->stack[((hsi*3+6)*1+lsi)*1] = fp0;
LIBINT2_REALTYPE fp3;
fp3 = inteval->AB_y[vi] * inteval->stack[((hsi*1+1)*1+lsi)*1];
LIBINT2_REALTYPE fp2;
fp2 = inteval->stack[((hsi*1+2)*1+lsi)*1] + fp3;
inteval->stack[((hsi*3+5)*1+lsi)*1] = fp2;
LIBINT2_REALTYPE fp5;
fp5 = inteval->AB_x[vi] * inteval->stack[((hsi*1+1)*1+lsi)*1];
LIBINT2_REALTYPE fp4;
fp4 = inteval->stack[((hsi*1+0)*1+lsi)*1] + fp5;
inteval->stack[((hsi*3+4)*1+lsi)*1] = fp4;
}
}
}
const int hsi = 0;
const int lsi = 0;
const int vi = 0;
inteval->targets[0] = &(inteval->stack[((hsi*3+4)*1+lsi)*1]);
/** Number of flops = 6 */
}

#ifdef __cplusplus
};
#endif
