/*
 *  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>

#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 CR_aB_p__0___Kinetic_p__0___Ab__up_(const Libint_t* inteval, LIBINT2_REALTYPE* target, const LIBINT2_REALTYPE* src0, const LIBINT2_REALTYPE* src1, const LIBINT2_REALTYPE* src2) {

LIBINT2_REALTYPE*const  stack = target;
{
const int hsi = 0;
{
const int lsi = 0;
{
const int vi = 0;
LIBINT2_REALTYPE fp1;
fp1 = 5.0000000000000000e-01 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp44;
fp44 = 5.0000000000000000e-01 * inteval->two_alpha0_bra[vi];
LIBINT2_REALTYPE fp3;
fp3 = fp44 * src2[((hsi*9+6)*1+lsi)*1];
LIBINT2_REALTYPE fp41;
fp41 = 5.0000000000000000e-01 * inteval->two_alpha0_ket[vi];
LIBINT2_REALTYPE fp5;
fp5 = fp41 * src2[((hsi*9+2)*1+lsi)*1];
LIBINT2_REALTYPE fp43;
fp43 = fp44 * inteval->two_alpha0_ket[vi];
LIBINT2_REALTYPE fp6;
fp6 = fp43 * src2[((hsi*9+8)*1+lsi)*1];
LIBINT2_REALTYPE fp4;
fp4 = fp6 - fp5;
LIBINT2_REALTYPE fp2;
fp2 = fp4 - fp3;
LIBINT2_REALTYPE fp0;
fp0 = fp2 + fp1;
LIBINT2_REALTYPE fp47;
fp47 = src0[((hsi*9+0)*1+lsi)*1] * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp46;
fp46 = fp47 * fp0;
LIBINT2_REALTYPE fp27;
fp27 = fp43 * src1[((hsi*9+4)*1+lsi)*1];
LIBINT2_REALTYPE fp50;
fp50 = src0[((hsi*9+0)*1+lsi)*1] * fp27;
LIBINT2_REALTYPE fp49;
fp49 = fp50 * src2[((hsi*9+4)*1+lsi)*1];
LIBINT2_REALTYPE fp28;
fp28 = fp43 * src0[((hsi*9+4)*1+lsi)*1];
LIBINT2_REALTYPE fp52;
fp52 = fp28 * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp51;
fp51 = fp52 * src2[((hsi*9+4)*1+lsi)*1];
LIBINT2_REALTYPE fp48;
fp48 = fp51 + fp49;
LIBINT2_REALTYPE fp45;
fp45 = fp48 + fp46;
target[((hsi*9+8)*1+lsi)*1] = fp45;
LIBINT2_REALTYPE fp8;
fp8 = fp41 * src2[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp9;
fp9 = fp43 * src2[((hsi*9+7)*1+lsi)*1];
LIBINT2_REALTYPE fp7;
fp7 = fp9 - fp8;
LIBINT2_REALTYPE fp55;
fp55 = src0[((hsi*9+0)*1+lsi)*1] * src1[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp54;
fp54 = fp55 * fp7;
LIBINT2_REALTYPE fp25;
fp25 = fp44 * src1[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp26;
fp26 = fp43 * src1[((hsi*9+5)*1+lsi)*1];
LIBINT2_REALTYPE fp24;
fp24 = fp26 - fp25;
LIBINT2_REALTYPE fp58;
fp58 = src0[((hsi*9+0)*1+lsi)*1] * fp24;
LIBINT2_REALTYPE fp57;
fp57 = fp58 * src2[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp60;
fp60 = fp28 * src1[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp59;
fp59 = fp60 * src2[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp56;
fp56 = fp59 + fp57;
LIBINT2_REALTYPE fp53;
fp53 = fp56 + fp54;
target[((hsi*9+7)*1+lsi)*1] = fp53;
LIBINT2_REALTYPE fp63;
fp63 = src0[((hsi*9+1)*1+lsi)*1] * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp62;
fp62 = fp63 * fp7;
LIBINT2_REALTYPE fp66;
fp66 = src0[((hsi*9+1)*1+lsi)*1] * fp27;
LIBINT2_REALTYPE fp65;
fp65 = fp66 * src2[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp30;
fp30 = fp44 * src0[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp31;
fp31 = fp43 * src0[((hsi*9+5)*1+lsi)*1];
LIBINT2_REALTYPE fp29;
fp29 = fp31 - fp30;
LIBINT2_REALTYPE fp68;
fp68 = fp29 * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp67;
fp67 = fp68 * src2[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp64;
fp64 = fp67 + fp65;
LIBINT2_REALTYPE fp61;
fp61 = fp64 + fp62;
target[((hsi*9+6)*1+lsi)*1] = fp61;
LIBINT2_REALTYPE fp11;
fp11 = fp44 * src2[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp12;
fp12 = fp43 * src2[((hsi*9+5)*1+lsi)*1];
LIBINT2_REALTYPE fp10;
fp10 = fp12 - fp11;
LIBINT2_REALTYPE fp71;
fp71 = src0[((hsi*9+0)*1+lsi)*1] * src1[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp70;
fp70 = fp71 * fp10;
LIBINT2_REALTYPE fp22;
fp22 = fp41 * src1[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp23;
fp23 = fp43 * src1[((hsi*9+7)*1+lsi)*1];
LIBINT2_REALTYPE fp21;
fp21 = fp23 - fp22;
LIBINT2_REALTYPE fp74;
fp74 = src0[((hsi*9+0)*1+lsi)*1] * fp21;
LIBINT2_REALTYPE fp73;
fp73 = fp74 * src2[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp76;
fp76 = fp28 * src1[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp75;
fp75 = fp76 * src2[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp72;
fp72 = fp75 + fp73;
LIBINT2_REALTYPE fp69;
fp69 = fp72 + fp70;
target[((hsi*9+5)*1+lsi)*1] = fp69;
LIBINT2_REALTYPE fp13;
fp13 = fp43 * src2[((hsi*9+4)*1+lsi)*1];
LIBINT2_REALTYPE fp79;
fp79 = src0[((hsi*9+0)*1+lsi)*1] * src1[((hsi*9+4)*1+lsi)*1];
LIBINT2_REALTYPE fp78;
fp78 = fp79 * fp13;
LIBINT2_REALTYPE fp15;
fp15 = 5.0000000000000000e-01 * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp17;
fp17 = fp44 * src1[((hsi*9+6)*1+lsi)*1];
LIBINT2_REALTYPE fp19;
fp19 = fp41 * src1[((hsi*9+2)*1+lsi)*1];
LIBINT2_REALTYPE fp20;
fp20 = fp43 * src1[((hsi*9+8)*1+lsi)*1];
LIBINT2_REALTYPE fp18;
fp18 = fp20 - fp19;
LIBINT2_REALTYPE fp16;
fp16 = fp18 - fp17;
LIBINT2_REALTYPE fp14;
fp14 = fp16 + fp15;
LIBINT2_REALTYPE fp82;
fp82 = src0[((hsi*9+0)*1+lsi)*1] * fp14;
LIBINT2_REALTYPE fp81;
fp81 = fp82 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp84;
fp84 = fp28 * src1[((hsi*9+4)*1+lsi)*1];
LIBINT2_REALTYPE fp83;
fp83 = fp84 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp80;
fp80 = fp83 + fp81;
LIBINT2_REALTYPE fp77;
fp77 = fp80 + fp78;
target[((hsi*9+4)*1+lsi)*1] = fp77;
LIBINT2_REALTYPE fp87;
fp87 = src0[((hsi*9+1)*1+lsi)*1] * src1[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp86;
fp86 = fp87 * fp13;
LIBINT2_REALTYPE fp90;
fp90 = src0[((hsi*9+1)*1+lsi)*1] * fp21;
LIBINT2_REALTYPE fp89;
fp89 = fp90 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp92;
fp92 = fp29 * src1[((hsi*9+3)*1+lsi)*1];
LIBINT2_REALTYPE fp91;
fp91 = fp92 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp88;
fp88 = fp91 + fp89;
LIBINT2_REALTYPE fp85;
fp85 = fp88 + fp86;
target[((hsi*9+3)*1+lsi)*1] = fp85;
LIBINT2_REALTYPE fp95;
fp95 = src0[((hsi*9+3)*1+lsi)*1] * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp94;
fp94 = fp95 * fp10;
LIBINT2_REALTYPE fp98;
fp98 = src0[((hsi*9+3)*1+lsi)*1] * fp27;
LIBINT2_REALTYPE fp97;
fp97 = fp98 * src2[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp33;
fp33 = fp41 * src0[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp34;
fp34 = fp43 * src0[((hsi*9+7)*1+lsi)*1];
LIBINT2_REALTYPE fp32;
fp32 = fp34 - fp33;
LIBINT2_REALTYPE fp100;
fp100 = fp32 * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp99;
fp99 = fp100 * src2[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp96;
fp96 = fp99 + fp97;
LIBINT2_REALTYPE fp93;
fp93 = fp96 + fp94;
target[((hsi*9+2)*1+lsi)*1] = fp93;
LIBINT2_REALTYPE fp103;
fp103 = src0[((hsi*9+3)*1+lsi)*1] * src1[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp102;
fp102 = fp103 * fp13;
LIBINT2_REALTYPE fp106;
fp106 = src0[((hsi*9+3)*1+lsi)*1] * fp24;
LIBINT2_REALTYPE fp105;
fp105 = fp106 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp108;
fp108 = fp32 * src1[((hsi*9+1)*1+lsi)*1];
LIBINT2_REALTYPE fp107;
fp107 = fp108 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp104;
fp104 = fp107 + fp105;
LIBINT2_REALTYPE fp101;
fp101 = fp104 + fp102;
target[((hsi*9+1)*1+lsi)*1] = fp101;
LIBINT2_REALTYPE fp111;
fp111 = src0[((hsi*9+4)*1+lsi)*1] * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp110;
fp110 = fp111 * fp13;
LIBINT2_REALTYPE fp114;
fp114 = src0[((hsi*9+4)*1+lsi)*1] * fp27;
LIBINT2_REALTYPE fp113;
fp113 = fp114 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp36;
fp36 = 5.0000000000000000e-01 * src0[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp38;
fp38 = fp44 * src0[((hsi*9+6)*1+lsi)*1];
LIBINT2_REALTYPE fp40;
fp40 = fp41 * src0[((hsi*9+2)*1+lsi)*1];
LIBINT2_REALTYPE fp42;
fp42 = fp43 * src0[((hsi*9+8)*1+lsi)*1];
LIBINT2_REALTYPE fp39;
fp39 = fp42 - fp40;
LIBINT2_REALTYPE fp37;
fp37 = fp39 - fp38;
LIBINT2_REALTYPE fp35;
fp35 = fp37 + fp36;
LIBINT2_REALTYPE fp116;
fp116 = fp35 * src1[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp115;
fp115 = fp116 * src2[((hsi*9+0)*1+lsi)*1];
LIBINT2_REALTYPE fp112;
fp112 = fp115 + fp113;
LIBINT2_REALTYPE fp109;
fp109 = fp112 + fp110;
target[((hsi*9+0)*1+lsi)*1] = fp109;
}
}
}
const int hsi = 0;
const int lsi = 0;
const int vi = 0;
/** Number of flops = 117 */
}

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