/** 4097620211 **/
/***********************************************************************************
 ** Copyright (c) 2003 Cadence Design Systems, Inc. All rights reserved.          **
 **                                                                               **
 ** This work may not be copied, modified, re-published, uploaded, executed, or   **
 ** distributed in any way, in any medium, whether in whole or in part, without   **
 ** prior written permission from Cadence Design Systems, Inc.                    **
 **                                                                               **
 ** This file is automatically generated and will be overwritten. The interfaces  **
 ** used within this generated code are subject to change without notice.         **
 ***********************************************************************************/
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "PLL_CP_inst_static.h"

static long   __BITWISE_LOGIC_OP_TEMP_VAR__;int PLL_CP_DcFuncDerLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */_I_Static_OUT_616 = 0.0;
_Static_d_by_dv_OUT_488 = 0.0;
_Static_d_by_dv_VDD_504 = 0.0;
_V_Static_CP_ITEST_25u_648 = 0.0;
_Static_d_by_dv_VDD_536 = 0.0;
_V_Static_IPLY_25u_680 = 0.0;
_Static_d_by_dv_VDD_560 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 16);ahdlDoSetLineNum ((long) 16);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VSS_68)));__tmpStkVar_1 = ((1.00000000000000000000e+00));(_VSS_value_264) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 17);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VDD_60)));__tmpStkVar_2 = ((1.00000000000000000000e+00));(_VDD_value_304) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 18);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00)))));__tmpStkVar_3 = ((__FLOAT_DIV((__tmpStkVar_2), ((2.00000000000000000000e+00)))));(_thr_344) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 22);if (0 /* Cross Event not valid in DC mode. */){ahdlDoSetLineNum ((long) 22);;}if ((((getAcrossSolution1(_UP_52))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +476) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_8, &__tmpStkVar_7));__tmpStkVar_10 = ((((__tmpStkVar_2)) * ((__tmpStkVar_7))));__tmpStkVar_9 = (__tmpStkVar_8);(_OUT_up_current_104) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 25);(_I_Static_OUT_616) += ((((_OUT_up_current_104)) * __INT_TO_DBL((-1L))));_Static_d_by_dv_OUT_488 += ((((__tmpStkVar_9)) * (__INT_TO_DBL((-1L)))));_Static_d_by_dv_VDD_504 += ((((__tmpStkVar_10)) * (__INT_TO_DBL((-1L)))));}}ahdlDoSetLineNum ((long) 28);if (0 /* Cross Event not valid in DC mode. */){ahdlDoSetLineNum ((long) 28);;}if ((((getAcrossSolution1(_DN_36))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +516) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_12, &__tmpStkVar_11));__tmpStkVar_14 = ((((__tmpStkVar_2)) * ((__tmpStkVar_11))));__tmpStkVar_13 = (__tmpStkVar_12);(_OUT_down_current_144) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 31);(_I_Static_OUT_616) += ((((_OUT_down_current_144)) * __INT_TO_DBL((-1L))));_Static_d_by_dv_OUT_488 += ((((__tmpStkVar_13)) * (__INT_TO_DBL((-1L)))));_Static_d_by_dv_VDD_504 += ((((__tmpStkVar_14)) * (__INT_TO_DBL((-1L)))));}}ahdlDoSetLineNum ((long) 34);(_I_Static_OUT_616) += (__FLOAT_DIV(((getAcrossSolution1(_OUT_20))), ((1.00000000000000000000e+15))));_Static_d_by_dv_OUT_488 += ((__FLOAT_DIV(((1.00000000000000000000e+00)), ((1.00000000000000000000e+15)))));ahdlDoSetLineNum ((long) 36);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +520) , (_VDD_value_304), &__tmpStkVar_15));__tmpStkVar_16 = ((((__tmpStkVar_2)) * ((__tmpStkVar_15))));(_CP_ITEST_25u_voltage_184) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 37);(_V_Static_CP_ITEST_25u_648) += ((((_VDD_value_304)) + ((_CP_ITEST_25u_voltage_184))));_Static_d_by_dv_VDD_536 += ((((__tmpStkVar_2)) + ((__tmpStkVar_16))));ahdlDoSetLineNum ((long) 38);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +544) , (_VDD_value_304), &__tmpStkVar_17));__tmpStkVar_18 = ((((__tmpStkVar_2)) * ((__tmpStkVar_17))));(_IPLY_25u_voltage_224) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 39);(_V_Static_IPLY_25u_680) += ((((_VDD_value_304)) + ((_IPLY_25u_voltage_224))));_Static_d_by_dv_VDD_560 += ((((__tmpStkVar_2)) + ((__tmpStkVar_18))));}ahdlDoSetLineNum ((long) 40);   if (ahdlWhatsNeeded IS devStaticFuncNeeded) {
      ahdlStaticRHS[_OUT_20] -= _I_Static_OUT_616;
      ahdlStaticRHS[*(long*)(instData + 0)] += _I_Static_OUT_616;
      ahdlStaticRHS_AbsSum[_OUT_20] += ABS(_I_Static_OUT_616);
      ahdlStaticRHS_AbsSum[*(long*)(instData + 0)] += ABS(_I_Static_OUT_616);
   }

      ahdlInterAddStaticQuartet(*(void**)(instData + 480),_Static_d_by_dv_OUT_488);
      ahdlInterAddStaticQuartet(*(void**)(instData + 496),_Static_d_by_dv_VDD_504);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 636),
       _CP_ITEST_25u_12,       *(long*)(instData + 0),       _CP_ITEST_25u_flow_632,      _V_Static_CP_ITEST_25u_648   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 528), _Static_d_by_dv_VDD_536);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 524), -_Static_d_by_dv_VDD_536);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 668),
       _IPLY_25u_28,       *(long*)(instData + 0),       _IPLY_25u_flow_664,      _V_Static_IPLY_25u_680   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 552), _Static_d_by_dv_VDD_560);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 548), -_Static_d_by_dv_VDD_560);
    return __msgSeverity__;
} /** end of PLL_CP_DcFuncDerLoad **/

int PLL_CP_DcFuncLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */_I_Static_OUT_616 = 0.0;
_Static_d_by_dv_OUT_488 = 0.0;
_Static_d_by_dv_VDD_504 = 0.0;
_V_Static_CP_ITEST_25u_648 = 0.0;
_Static_d_by_dv_VDD_536 = 0.0;
_V_Static_IPLY_25u_680 = 0.0;
_Static_d_by_dv_VDD_560 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 16);ahdlDoSetLineNum ((long) 16);(_VSS_value_264) = ((getAcrossSolution1(_VSS_68)));ahdlDoSetLineNum ((long) 17);(_VDD_value_304) = ((getAcrossSolution1(_VDD_60)));ahdlDoSetLineNum ((long) 18);(_thr_344) = ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 22);if (0 /* Cross Event not valid in DC mode. */){ahdlDoSetLineNum ((long) 22);;}if ((((getAcrossSolution1(_UP_52))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);(_OUT_up_current_104) = (evalTableModelC( *(void**)(instData +476) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_8, &__tmpStkVar_7));ahdlDoSetLineNum ((long) 25);(_I_Static_OUT_616) += ((((_OUT_up_current_104)) * __INT_TO_DBL((-1L))));}}ahdlDoSetLineNum ((long) 28);if (0 /* Cross Event not valid in DC mode. */){ahdlDoSetLineNum ((long) 28);;}if ((((getAcrossSolution1(_DN_36))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);(_OUT_down_current_144) = (evalTableModelC( *(void**)(instData +516) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_12, &__tmpStkVar_11));ahdlDoSetLineNum ((long) 31);(_I_Static_OUT_616) += ((((_OUT_down_current_144)) * __INT_TO_DBL((-1L))));}}ahdlDoSetLineNum ((long) 34);(_I_Static_OUT_616) += (__FLOAT_DIV(((getAcrossSolution1(_OUT_20))), ((1.00000000000000000000e+15))));ahdlDoSetLineNum ((long) 36);(_CP_ITEST_25u_voltage_184) = (evalTableModelC( *(void**)(instData +520) , (_VDD_value_304), &__tmpStkVar_15));ahdlDoSetLineNum ((long) 37);(_V_Static_CP_ITEST_25u_648) += ((((_VDD_value_304)) + ((_CP_ITEST_25u_voltage_184))));ahdlDoSetLineNum ((long) 38);(_IPLY_25u_voltage_224) = (evalTableModelC( *(void**)(instData +544) , (_VDD_value_304), &__tmpStkVar_17));ahdlDoSetLineNum ((long) 39);(_V_Static_IPLY_25u_680) += ((((_VDD_value_304)) + ((_IPLY_25u_voltage_224))));}ahdlDoSetLineNum ((long) 40);   if (ahdlWhatsNeeded IS devStaticFuncNeeded) {
      ahdlStaticRHS[_OUT_20] -= _I_Static_OUT_616;
      ahdlStaticRHS[*(long*)(instData + 0)] += _I_Static_OUT_616;
      ahdlStaticRHS_AbsSum[_OUT_20] += ABS(_I_Static_OUT_616);
      ahdlStaticRHS_AbsSum[*(long*)(instData + 0)] += ABS(_I_Static_OUT_616);
   }

    ahdlInterSetAcrossQuan(      *(void **)(instData + 636),
       _CP_ITEST_25u_12,       *(long*)(instData + 0),       _CP_ITEST_25u_flow_632,      _V_Static_CP_ITEST_25u_648   ,       1.0    );
    ahdlInterSetAcrossQuan(      *(void **)(instData + 668),
       _IPLY_25u_28,       *(long*)(instData + 0),       _IPLY_25u_flow_664,      _V_Static_IPLY_25u_680   ,       1.0    );
    return __msgSeverity__;
} /** end of PLL_CP_DcFuncLoad **/

int PLL_CP_TranFuncDerLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */_I_Dynamic_UP_VSS_576 = 0.0;
_Dynamic_d_by_dv_UP_VSS_384 = 0.0;
_Dynamic_d_by_dv_VDD_400 = 0.0;
_I_Dynamic_DN_VSS_592 = 0.0;
_Dynamic_d_by_dv_DN_VSS_416 = 0.0;
_Dynamic_d_by_dv_VDD_432 = 0.0;
_I_Dynamic_PD_VSS_608 = 0.0;
_Dynamic_d_by_dv_PD_VSS_448 = 0.0;
_Dynamic_d_by_dv_VDD_464 = 0.0;
_I_Static_OUT_616 = 0.0;
_Static_d_by_dv_OUT_488 = 0.0;
_Static_d_by_dv_VDD_504 = 0.0;
_V_Static_CP_ITEST_25u_648 = 0.0;
_Static_d_by_dv_VDD_536 = 0.0;
_V_Static_IPLY_25u_680 = 0.0;
_Static_d_by_dv_VDD_560 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 16);ahdlDoSetLineNum ((long) 16);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VSS_68)));__tmpStkVar_1 = ((1.00000000000000000000e+00));(_VSS_value_264) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 17);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((getAcrossSolution1(_VDD_60)));__tmpStkVar_2 = ((1.00000000000000000000e+00));(_VDD_value_304) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 18);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00)))));__tmpStkVar_3 = ((__FLOAT_DIV((__tmpStkVar_2), ((2.00000000000000000000e+00)))));(_thr_344) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 19);(_I_Dynamic_UP_VSS_576) += (((evalTableModelC( *(void**)(instData +376) , (_VDD_value_304), &__tmpStkVar_4))) * (((getAcrossSolution2(_UP_52, _VSS_68)))));_Dynamic_d_by_dv_UP_VSS_384 += (evalTableModelC( *(void**)(instData +376) , (_VDD_value_304), &__tmpStkVar_4));_Dynamic_d_by_dv_VDD_400 += (((((((__tmpStkVar_2)) * ((__tmpStkVar_4))))) * (((getAcrossSolution2(_UP_52, _VSS_68))))));ahdlDoSetLineNum ((long) 20);(_I_Dynamic_DN_VSS_592) += (((evalTableModelC( *(void**)(instData +408) , (_VDD_value_304), &__tmpStkVar_5))) * (((getAcrossSolution2(_DN_36, _VSS_68)))));_Dynamic_d_by_dv_DN_VSS_416 += (evalTableModelC( *(void**)(instData +408) , (_VDD_value_304), &__tmpStkVar_5));_Dynamic_d_by_dv_VDD_432 += (((((((__tmpStkVar_2)) * ((__tmpStkVar_5))))) * (((getAcrossSolution2(_DN_36, _VSS_68))))));ahdlDoSetLineNum ((long) 21);(_I_Dynamic_PD_VSS_608) += (((evalTableModelC( *(void**)(instData +440) , (_VDD_value_304), &__tmpStkVar_6))) * (((getAcrossSolution2(_PD_44, _VSS_68)))));_Dynamic_d_by_dv_PD_VSS_448 += (evalTableModelC( *(void**)(instData +440) , (_VDD_value_304), &__tmpStkVar_6));_Dynamic_d_by_dv_VDD_464 += (((((((__tmpStkVar_2)) * ((__tmpStkVar_6))))) * (((getAcrossSolution2(_PD_44, _VSS_68))))));ahdlDoSetLineNum ((long) 22);if (ahdlIsCrossEvent (*(void **) (instData + 472), ((((getAcrossSolution1(_UP_52))) - ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))), (0L), _ttol_80, -1)){ahdlDoSetLineNum ((long) 22);;}if ((((getAcrossSolution1(_UP_52))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +476) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_8, &__tmpStkVar_7));__tmpStkVar_10 = ((((__tmpStkVar_2)) * ((__tmpStkVar_7))));__tmpStkVar_9 = (__tmpStkVar_8);(_OUT_up_current_104) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 25);(_I_Static_OUT_616) += ((((_OUT_up_current_104)) * __INT_TO_DBL((-1L))));_Static_d_by_dv_OUT_488 += ((((__tmpStkVar_9)) * (__INT_TO_DBL((-1L)))));_Static_d_by_dv_VDD_504 += ((((__tmpStkVar_10)) * (__INT_TO_DBL((-1L)))));}}ahdlDoSetLineNum ((long) 28);if (ahdlIsCrossEvent (*(void **) (instData + 512), ((((getAcrossSolution1(_DN_36))) - ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))), (0L), _ttol_80, -1)){ahdlDoSetLineNum ((long) 28);;}if ((((getAcrossSolution1(_DN_36))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +516) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_12, &__tmpStkVar_11));__tmpStkVar_14 = ((((__tmpStkVar_2)) * ((__tmpStkVar_11))));__tmpStkVar_13 = (__tmpStkVar_12);(_OUT_down_current_144) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 31);(_I_Static_OUT_616) += ((((_OUT_down_current_144)) * __INT_TO_DBL((-1L))));_Static_d_by_dv_OUT_488 += ((((__tmpStkVar_13)) * (__INT_TO_DBL((-1L)))));_Static_d_by_dv_VDD_504 += ((((__tmpStkVar_14)) * (__INT_TO_DBL((-1L)))));}}ahdlDoSetLineNum ((long) 34);(_I_Static_OUT_616) += (__FLOAT_DIV(((getAcrossSolution1(_OUT_20))), ((1.00000000000000000000e+15))));_Static_d_by_dv_OUT_488 += ((__FLOAT_DIV(((1.00000000000000000000e+00)), ((1.00000000000000000000e+15)))));ahdlDoSetLineNum ((long) 36);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +520) , (_VDD_value_304), &__tmpStkVar_15));__tmpStkVar_16 = ((((__tmpStkVar_2)) * ((__tmpStkVar_15))));(_CP_ITEST_25u_voltage_184) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 37);(_V_Static_CP_ITEST_25u_648) += ((((_VDD_value_304)) + ((_CP_ITEST_25u_voltage_184))));_Static_d_by_dv_VDD_536 += ((((__tmpStkVar_2)) + ((__tmpStkVar_16))));ahdlDoSetLineNum ((long) 38);{double __tempValueResultStatic;double __tempValueResultDynamic;
__tempValueResultStatic = (evalTableModelC( *(void**)(instData +544) , (_VDD_value_304), &__tmpStkVar_17));__tmpStkVar_18 = ((((__tmpStkVar_2)) * ((__tmpStkVar_17))));(_IPLY_25u_voltage_224) = __tempValueResultStatic;}ahdlDoSetLineNum ((long) 39);(_V_Static_IPLY_25u_680) += ((((_VDD_value_304)) + ((_IPLY_25u_voltage_224))));_Static_d_by_dv_VDD_560 += ((((__tmpStkVar_2)) + ((__tmpStkVar_18))));}ahdlDoSetLineNum ((long) 40);   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_UP_52] -= _I_Dynamic_UP_VSS_576;
      ahdlDynamicRHS[_VSS_68] += _I_Dynamic_UP_VSS_576;
      ahdlDynamicRHS_AbsSum[_UP_52] += ABS(_I_Dynamic_UP_VSS_576);
      ahdlDynamicRHS_AbsSum[_VSS_68] += ABS(_I_Dynamic_UP_VSS_576);
   }

      ahdlInterAddDynamicQuartet(*(void**)(instData + 380),_Dynamic_d_by_dv_UP_VSS_384);
      ahdlInterAddDynamicQuartet(*(void**)(instData + 392),_Dynamic_d_by_dv_VDD_400);
   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_DN_36] -= _I_Dynamic_DN_VSS_592;
      ahdlDynamicRHS[_VSS_68] += _I_Dynamic_DN_VSS_592;
      ahdlDynamicRHS_AbsSum[_DN_36] += ABS(_I_Dynamic_DN_VSS_592);
      ahdlDynamicRHS_AbsSum[_VSS_68] += ABS(_I_Dynamic_DN_VSS_592);
   }

      ahdlInterAddDynamicQuartet(*(void**)(instData + 412),_Dynamic_d_by_dv_DN_VSS_416);
      ahdlInterAddDynamicQuartet(*(void**)(instData + 424),_Dynamic_d_by_dv_VDD_432);
   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_PD_44] -= _I_Dynamic_PD_VSS_608;
      ahdlDynamicRHS[_VSS_68] += _I_Dynamic_PD_VSS_608;
      ahdlDynamicRHS_AbsSum[_PD_44] += ABS(_I_Dynamic_PD_VSS_608);
      ahdlDynamicRHS_AbsSum[_VSS_68] += ABS(_I_Dynamic_PD_VSS_608);
   }

      ahdlInterAddDynamicQuartet(*(void**)(instData + 444),_Dynamic_d_by_dv_PD_VSS_448);
      ahdlInterAddDynamicQuartet(*(void**)(instData + 456),_Dynamic_d_by_dv_VDD_464);
   if (ahdlWhatsNeeded IS devStaticFuncNeeded) {
      ahdlStaticRHS[_OUT_20] -= _I_Static_OUT_616;
      ahdlStaticRHS[*(long*)(instData + 0)] += _I_Static_OUT_616;
      ahdlStaticRHS_AbsSum[_OUT_20] += ABS(_I_Static_OUT_616);
      ahdlStaticRHS_AbsSum[*(long*)(instData + 0)] += ABS(_I_Static_OUT_616);
   }

      ahdlInterAddStaticQuartet(*(void**)(instData + 480),_Static_d_by_dv_OUT_488);
      ahdlInterAddStaticQuartet(*(void**)(instData + 496),_Static_d_by_dv_VDD_504);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 636),
       _CP_ITEST_25u_12,       *(long*)(instData + 0),       _CP_ITEST_25u_flow_632,      _V_Static_CP_ITEST_25u_648   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 528), _Static_d_by_dv_VDD_536);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 524), -_Static_d_by_dv_VDD_536);
    ahdlInterSetAcrossQuan(      *(void **)(instData + 668),
       _IPLY_25u_28,       *(long*)(instData + 0),       _IPLY_25u_flow_664,      _V_Static_IPLY_25u_680   ,       1.0    );
      /* do positive component */      ahdlInterAddStaticElement(*(void**)(instData + 552), _Static_d_by_dv_VDD_560);
      /* do negative component */      ahdlInterAddStaticElement(*(void**)(instData + 548), -_Static_d_by_dv_VDD_560);
    return __msgSeverity__;
} /** end of PLL_CP_TranFuncDerLoad **/

int PLL_CP_TranFuncLoad(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


/*  Pre-Anal Load Code. */_I_Dynamic_UP_VSS_576 = 0.0;
_Dynamic_d_by_dv_UP_VSS_384 = 0.0;
_Dynamic_d_by_dv_VDD_400 = 0.0;
_I_Dynamic_DN_VSS_592 = 0.0;
_Dynamic_d_by_dv_DN_VSS_416 = 0.0;
_Dynamic_d_by_dv_VDD_432 = 0.0;
_I_Dynamic_PD_VSS_608 = 0.0;
_Dynamic_d_by_dv_PD_VSS_448 = 0.0;
_Dynamic_d_by_dv_VDD_464 = 0.0;
_I_Static_OUT_616 = 0.0;
_Static_d_by_dv_OUT_488 = 0.0;
_Static_d_by_dv_VDD_504 = 0.0;
_V_Static_CP_ITEST_25u_648 = 0.0;
_Static_d_by_dv_VDD_536 = 0.0;
_V_Static_IPLY_25u_680 = 0.0;
_Static_d_by_dv_VDD_560 = 0.0;

/*  C Code Every Code. */{ahdlDoSetLineNum ((long) 16);ahdlDoSetLineNum ((long) 16);(_VSS_value_264) = ((getAcrossSolution1(_VSS_68)));ahdlDoSetLineNum ((long) 17);(_VDD_value_304) = ((getAcrossSolution1(_VDD_60)));ahdlDoSetLineNum ((long) 18);(_thr_344) = ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00)))));ahdlDoSetLineNum ((long) 19);(_I_Dynamic_UP_VSS_576) += (((evalTableModelC( *(void**)(instData +376) , (_VDD_value_304), &__tmpStkVar_4))) * (((getAcrossSolution2(_UP_52, _VSS_68)))));ahdlDoSetLineNum ((long) 20);(_I_Dynamic_DN_VSS_592) += (((evalTableModelC( *(void**)(instData +408) , (_VDD_value_304), &__tmpStkVar_5))) * (((getAcrossSolution2(_DN_36, _VSS_68)))));ahdlDoSetLineNum ((long) 21);(_I_Dynamic_PD_VSS_608) += (((evalTableModelC( *(void**)(instData +440) , (_VDD_value_304), &__tmpStkVar_6))) * (((getAcrossSolution2(_PD_44, _VSS_68)))));ahdlDoSetLineNum ((long) 22);if (ahdlIsCrossEvent (*(void **) (instData + 472), ((((getAcrossSolution1(_UP_52))) - ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))), (0L), _ttol_80, -1)){ahdlDoSetLineNum ((long) 22);;}if ((((getAcrossSolution1(_UP_52))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 24);ahdlDoSetLineNum ((long) 24);(_OUT_up_current_104) = (evalTableModelC( *(void**)(instData +476) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_8, &__tmpStkVar_7));ahdlDoSetLineNum ((long) 25);(_I_Static_OUT_616) += ((((_OUT_up_current_104)) * __INT_TO_DBL((-1L))));}}ahdlDoSetLineNum ((long) 28);if (ahdlIsCrossEvent (*(void **) (instData + 512), ((((getAcrossSolution1(_DN_36))) - ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))), (0L), _ttol_80, -1)){ahdlDoSetLineNum ((long) 28);;}if ((((getAcrossSolution1(_DN_36))) > ((__FLOAT_DIV((_VDD_value_304), ((2.00000000000000000000e+00))))))){{ahdlDoSetLineNum ((long) 30);ahdlDoSetLineNum ((long) 30);(_OUT_down_current_144) = (evalTableModelC( *(void**)(instData +516) , (getAcrossSolution1(_OUT_20)), (_VDD_value_304), &__tmpStkVar_12, &__tmpStkVar_11));ahdlDoSetLineNum ((long) 31);(_I_Static_OUT_616) += ((((_OUT_down_current_144)) * __INT_TO_DBL((-1L))));}}ahdlDoSetLineNum ((long) 34);(_I_Static_OUT_616) += (__FLOAT_DIV(((getAcrossSolution1(_OUT_20))), ((1.00000000000000000000e+15))));ahdlDoSetLineNum ((long) 36);(_CP_ITEST_25u_voltage_184) = (evalTableModelC( *(void**)(instData +520) , (_VDD_value_304), &__tmpStkVar_15));ahdlDoSetLineNum ((long) 37);(_V_Static_CP_ITEST_25u_648) += ((((_VDD_value_304)) + ((_CP_ITEST_25u_voltage_184))));ahdlDoSetLineNum ((long) 38);(_IPLY_25u_voltage_224) = (evalTableModelC( *(void**)(instData +544) , (_VDD_value_304), &__tmpStkVar_17));ahdlDoSetLineNum ((long) 39);(_V_Static_IPLY_25u_680) += ((((_VDD_value_304)) + ((_IPLY_25u_voltage_224))));}ahdlDoSetLineNum ((long) 40);   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_UP_52] -= _I_Dynamic_UP_VSS_576;
      ahdlDynamicRHS[_VSS_68] += _I_Dynamic_UP_VSS_576;
      ahdlDynamicRHS_AbsSum[_UP_52] += ABS(_I_Dynamic_UP_VSS_576);
      ahdlDynamicRHS_AbsSum[_VSS_68] += ABS(_I_Dynamic_UP_VSS_576);
   }

   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_DN_36] -= _I_Dynamic_DN_VSS_592;
      ahdlDynamicRHS[_VSS_68] += _I_Dynamic_DN_VSS_592;
      ahdlDynamicRHS_AbsSum[_DN_36] += ABS(_I_Dynamic_DN_VSS_592);
      ahdlDynamicRHS_AbsSum[_VSS_68] += ABS(_I_Dynamic_DN_VSS_592);
   }

   if (ahdlWhatsNeeded IS devDynamicFuncNeeded) {
      ahdlDynamicRHS[_PD_44] -= _I_Dynamic_PD_VSS_608;
      ahdlDynamicRHS[_VSS_68] += _I_Dynamic_PD_VSS_608;
      ahdlDynamicRHS_AbsSum[_PD_44] += ABS(_I_Dynamic_PD_VSS_608);
      ahdlDynamicRHS_AbsSum[_VSS_68] += ABS(_I_Dynamic_PD_VSS_608);
   }

   if (ahdlWhatsNeeded IS devStaticFuncNeeded) {
      ahdlStaticRHS[_OUT_20] -= _I_Static_OUT_616;
      ahdlStaticRHS[*(long*)(instData + 0)] += _I_Static_OUT_616;
      ahdlStaticRHS_AbsSum[_OUT_20] += ABS(_I_Static_OUT_616);
      ahdlStaticRHS_AbsSum[*(long*)(instData + 0)] += ABS(_I_Static_OUT_616);
   }

    ahdlInterSetAcrossQuan(      *(void **)(instData + 636),
       _CP_ITEST_25u_12,       *(long*)(instData + 0),       _CP_ITEST_25u_flow_632,      _V_Static_CP_ITEST_25u_648   ,       1.0    );
    ahdlInterSetAcrossQuan(      *(void **)(instData + 668),
       _IPLY_25u_28,       *(long*)(instData + 0),       _IPLY_25u_flow_664,      _V_Static_IPLY_25u_680   ,       1.0    );
    return __msgSeverity__;
} /** end of PLL_CP_TranFuncLoad **/

int PLL_CP_NoiseLoadBiasDep(int anal_mode, char* instData, char* modelData, char** stringList) {

int __msgSeverity__ = 0;
double	__tmpStkVar_18 = 0.0;
double	__tmpStkVar_17 = 0.0;
double	__tmpStkVar_16 = 0.0;
double	__tmpStkVar_15 = 0.0;
double	__tmpStkVar_14 = 0.0;
double	__tmpStkVar_13 = 0.0;
double	__tmpStkVar_12 = 0.0;
double	__tmpStkVar_11 = 0.0;
double	__tmpStkVar_10 = 0.0;
double	__tmpStkVar_9 = 0.0;
double	__tmpStkVar_8 = 0.0;
double	__tmpStkVar_7 = 0.0;
double	__tmpStkVar_6 = 0.0;
double	__tmpStkVar_5 = 0.0;
double	__tmpStkVar_4 = 0.0;
double	__tmpStkVar_3 = 0.0;
double	__tmpStkVar_2 = 0.0;
double	__tmpStkVar_1 = 0.0;


    return __msgSeverity__;
} /** end of PLL_CP_NoiseLoadBiasDep **/

