/*
 *  Copyright (C) 2004-2026 Edward F. Valeev
 *
 *  This file is part of Libint library.
 *
 *  Libint library is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  Libint library is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Libint library.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include <libint2.h>
#include <CR_DerivGaussP0InBra_aB_s001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <CR_DerivGaussP0InBra_aB_s010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <CR_DerivGaussP0InBra_aB_s100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0.h>
#include <CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0.h>
#include <CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0.h>
#include <GenericContract.h>
#include <HRRPart1bra0ket0sp.h>
#include <OSVRRP0InBra_aB_d__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_d__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_d__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_d001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_d010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_d100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_p001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_p010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <OSVRRP0InBra_aB_p100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0.h>
#include <OSVRRP1InBra_aB_s__0__p__1___TwoPRep_unit__0__s__1___Ab__up_0.h>

#ifdef __cplusplus
LIBINT_PRAGMA_CLANG(diagnostic push)
LIBINT_PRAGMA_CLANG(diagnostic ignored "-Wunused-variable")
LIBINT_PRAGMA_GCC(diagnostic push)
LIBINT_PRAGMA_GCC(diagnostic ignored "-Wunused-variable")
extern "C" {
#endif
void deriv1eri3_aB_D__0__S__1___TwoPRep_unit__0__S__1___Ab__up_0_prereq(const Libint_t* inteval, LIBINT2_REALTYPE* parent_stack) {

LIBINT2_REALTYPE*const  stack = parent_stack;
{
const int hsi = 0;
{
const int lsi = 0;
{
const int vi = 0;
OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+36)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
OSVRRP1InBra_aB_s__0__p__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+39)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_1[vi]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
HRRPart1bra0ket0sp(inteval, &(stack[((hsi*3+42)*1+lsi)*1]), &(stack[((hsi*3+39)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_1[vi]),1);
LIBINT2_REALTYPE fp16;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0(inteval, &(fp16), &(stack[((hsi*3+42)*1+lsi)*1]));
OSVRRP1InBra_aB_s__0__p__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+39)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_0[vi]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_1[vi]));
HRRPart1bra0ket0sp(inteval, &(stack[((hsi*3+45)*1+lsi)*1]), &(stack[((hsi*3+39)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_0[vi]),1);
LIBINT2_REALTYPE fp15;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0(inteval, &(fp15), &(stack[((hsi*3+45)*1+lsi)*1]));
OSVRRP1InBra_aB_s__0__p__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+39)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_3[vi]));
HRRPart1bra0ket0sp(inteval, &(stack[((hsi*3+48)*1+lsi)*1]), &(stack[((hsi*3+39)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]),1);
LIBINT2_REALTYPE fp17;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0(inteval, &(fp17), &(stack[((hsi*3+48)*1+lsi)*1]));
OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0(inteval, &(stack[((hsi*3+39)*1+lsi)*1]), &(fp17), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
OSVRRP0InBra_aB_d__0__s__1___TwoPRep_unit__0__s001__1___Ab__up_0(inteval, &(stack[((hsi*6+51)*1+lsi)*1]), &(stack[((hsi*3+39)*1+lsi)*1]), &(fp15), &(fp16), &(stack[((hsi*3+36)*1+lsi)*1]));
_libint2_static_api_inc1_short_(&(stack[((hsi*6+30)*1+lsi)*1]),&(stack[((hsi*6+51)*1+lsi)*1]),6);
LIBINT2_REALTYPE fp13;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0(inteval, &(fp13), &(stack[((hsi*3+42)*1+lsi)*1]));
LIBINT2_REALTYPE fp12;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0(inteval, &(fp12), &(stack[((hsi*3+45)*1+lsi)*1]));
LIBINT2_REALTYPE fp14;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0(inteval, &(fp14), &(stack[((hsi*3+48)*1+lsi)*1]));
OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0(inteval, &(stack[((hsi*3+39)*1+lsi)*1]), &(fp14), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
OSVRRP0InBra_aB_d__0__s__1___TwoPRep_unit__0__s010__1___Ab__up_0(inteval, &(stack[((hsi*6+57)*1+lsi)*1]), &(stack[((hsi*3+39)*1+lsi)*1]), &(fp12), &(fp13), &(stack[((hsi*3+36)*1+lsi)*1]));
_libint2_static_api_inc1_short_(&(stack[((hsi*6+24)*1+lsi)*1]),&(stack[((hsi*6+57)*1+lsi)*1]),6);
LIBINT2_REALTYPE fp10;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0(inteval, &(fp10), &(stack[((hsi*3+42)*1+lsi)*1]));
LIBINT2_REALTYPE fp9;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0(inteval, &(fp9), &(stack[((hsi*3+45)*1+lsi)*1]));
LIBINT2_REALTYPE fp11;
CR_DerivGaussP1InKet_aB_s__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0(inteval, &(fp11), &(stack[((hsi*3+48)*1+lsi)*1]));
OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0(inteval, &(stack[((hsi*3+39)*1+lsi)*1]), &(fp11), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
OSVRRP0InBra_aB_d__0__s__1___TwoPRep_unit__0__s100__1___Ab__up_0(inteval, &(stack[((hsi*6+63)*1+lsi)*1]), &(stack[((hsi*3+39)*1+lsi)*1]), &(fp9), &(fp10), &(stack[((hsi*3+36)*1+lsi)*1]));
_libint2_static_api_inc1_short_(&(stack[((hsi*6+18)*1+lsi)*1]),&(stack[((hsi*6+63)*1+lsi)*1]),6);
LIBINT2_REALTYPE fp7;
CR_DerivGaussP0InBra_aB_s001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp7), &(stack[((hsi*3+36)*1+lsi)*1]));
OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+39)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_1[vi]));
LIBINT2_REALTYPE fp6;
CR_DerivGaussP0InBra_aB_s001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp6), &(stack[((hsi*3+39)*1+lsi)*1]));
OSVRRP0InBra_aB_p__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+69)*1+lsi)*1]), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_3[vi]));
LIBINT2_REALTYPE fp8;
CR_DerivGaussP0InBra_aB_s001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp8), &(stack[((hsi*3+69)*1+lsi)*1]));
OSVRRP0InBra_aB_p001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+72)*1+lsi)*1]), &(fp8), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
OSVRRP0InBra_aB_d001__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*6+75)*1+lsi)*1]), &(stack[((hsi*3+72)*1+lsi)*1]), &(fp6), &(fp7), &(stack[((hsi*3+36)*1+lsi)*1]));
_libint2_static_api_inc1_short_(&(stack[((hsi*6+12)*1+lsi)*1]),&(stack[((hsi*6+75)*1+lsi)*1]),6);
LIBINT2_REALTYPE fp4;
CR_DerivGaussP0InBra_aB_s010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp4), &(stack[((hsi*3+36)*1+lsi)*1]));
LIBINT2_REALTYPE fp3;
CR_DerivGaussP0InBra_aB_s010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp3), &(stack[((hsi*3+39)*1+lsi)*1]));
LIBINT2_REALTYPE fp5;
CR_DerivGaussP0InBra_aB_s010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp5), &(stack[((hsi*3+69)*1+lsi)*1]));
OSVRRP0InBra_aB_p010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+72)*1+lsi)*1]), &(fp5), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
OSVRRP0InBra_aB_d010__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*6+81)*1+lsi)*1]), &(stack[((hsi*3+72)*1+lsi)*1]), &(fp3), &(fp4), &(stack[((hsi*3+36)*1+lsi)*1]));
_libint2_static_api_inc1_short_(&(stack[((hsi*6+6)*1+lsi)*1]),&(stack[((hsi*6+81)*1+lsi)*1]),6);
LIBINT2_REALTYPE fp1;
CR_DerivGaussP0InBra_aB_s100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp1), &(stack[((hsi*3+36)*1+lsi)*1]));
LIBINT2_REALTYPE fp0;
CR_DerivGaussP0InBra_aB_s100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp0), &(stack[((hsi*3+39)*1+lsi)*1]));
LIBINT2_REALTYPE fp2;
CR_DerivGaussP0InBra_aB_s100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(fp2), &(stack[((hsi*3+69)*1+lsi)*1]));
OSVRRP0InBra_aB_p100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*3+72)*1+lsi)*1]), &(fp2), &(inteval->_aB_s___0__s___1___TwoPRep_s___0__s___1___Ab__up_2[vi]));
OSVRRP0InBra_aB_d100__0__s__1___TwoPRep_unit__0__s__1___Ab__up_0(inteval, &(stack[((hsi*6+87)*1+lsi)*1]), &(stack[((hsi*3+72)*1+lsi)*1]), &(fp0), &(fp1), &(stack[((hsi*3+36)*1+lsi)*1]));
_libint2_static_api_inc1_short_(&(stack[((hsi*6+0)*1+lsi)*1]),&(stack[((hsi*6+87)*1+lsi)*1]),6);
}
}
}
const int hsi = 0;
const int lsi = 0;
const int vi = 0;
/** Number of flops = 36 */
}

#ifdef __cplusplus
};
LIBINT_PRAGMA_CLANG(diagnostic pop)
LIBINT_PRAGMA_GCC(diagnostic pop)
#endif
