MESmAsk

decompiled_code:
__int64 __fastcall MESmAsk(__int64 a1, __int64 a2, int a3, _QWORD *a4)
{
__int64 result; // rax

if ( a3 > 112 )
{
if ( (unsigned int)(a3 - 301) > 4 )
{
result = 7LL;
}
else
{
switch ( a3 )
{
case 301:
*a4 = *(_QWORD *)(a2 + 152);
result = 0LL;
break;
case 302:
*a4 = *(_QWORD *)(a2 + 160);
result = 0LL;
break;
case 303:
*a4 = *(_QWORD *)(a2 + 168);
result = 0LL;
break;
case 304:
*a4 = *(_QWORD *)(a2 + 200);
result = 0LL;
break;
case 305:
if ( *(_DWORD *)(a2 + 32) == 1 )
*a4 = &LC0;
else
*a4 = &LC1;
result = 7LL;
break;
default:
result = 7LL;
break;
}
}
}
else if ( a3 <= 100 )
{
result = 7LL;
}
else
{
switch ( a3 )
{
case 'e':
*a4 = *(_QWORD *)(a2 + 40);
result = 0LL;
break;
case 'f':
*a4 = *(_QWORD *)(a2 + 48);
result = 0LL;
break;
case 'g':
*a4 = *(_QWORD *)(a2 + 56);
result = 0LL;
break;
case 'h':
*a4 = *(_QWORD *)(a2 + 64);
result = 0LL;
break;
case 'i':
*a4 = *(_QWORD *)(a2 + 72);
result = 0LL;
break;
case 'j':
*a4 = *(_QWORD *)(a2 + 80);
result = 0LL;
break;
case 'k':
*a4 = *(_QWORD *)(a2 + 88);
result = 0LL;
break;
case 'l':
*a4 = *(_QWORD *)(a2 + 96);
result = 0LL;
break;
case 'm':
*a4 = *(_QWORD *)(a2 + 104);
result = 0LL;
break;
case 'n':
*a4 = *(_QWORD *)(a2 + 112);
result = 0LL;
break;
case 'o':
*a4 = *(_QWORD *)(a2 + 120);
result = 0LL;
break;
case 'p':
*a4 = *(_QWORD *)(a2 + 128);
result = 0LL;
break;
default:
result = 7LL;
break;
}
}
return result;
}

canonical_decompiled_code:
__int64 __fastcall func0(__int64 a1, __int64 a2, int a3, _QWORD *a4)
{
__int64 result; // rax

if ( a3 > 112 )
{
if ( (unsigned int)(a3 - 301) > 4 )
{
result = 7LL;
}
else
{
switch ( a3 )
{
case 301:
*a4 = *(_QWORD *)(a2 + 152);
result = 0LL;
break;
case 302:
*a4 = *(_QWORD *)(a2 + 160);
result = 0LL;
break;
case 303:
*a4 = *(_QWORD *)(a2 + 168);
result = 0LL;
break;
case 304:
*a4 = *(_QWORD *)(a2 + 200);
result = 0LL;
break;
case 305:
if ( *(_DWORD *)(a2 + 32) == 1 )
*a4 = &LC0;
else
*a4 = &LC1;
result = 7LL;
break;
default:
result = 7LL;
break;
}
}
}
else if ( a3 <= 100 )
{
result = 7LL;
}
else
{
switch ( a3 )
{
case 'e':
*a4 = *(_QWORD *)(a2 + 40);
result = 0LL;
break;
case 'f':
*a4 = *(_QWORD *)(a2 + 48);
result = 0LL;
break;
case 'g':
*a4 = *(_QWORD *)(a2 + 56);
result = 0LL;
break;
case 'h':
*a4 = *(_QWORD *)(a2 + 64);
result = 0LL;
break;
case 'i':
*a4 = *(_QWORD *)(a2 + 72);
result = 0LL;
break;
case 'j':
*a4 = *(_QWORD *)(a2 + 80);
result = 0LL;
break;
case 'k':
*a4 = *(_QWORD *)(a2 + 88);
result = 0LL;
break;
case 'l':
*a4 = *(_QWORD *)(a2 + 96);
result = 0LL;
break;
case 'm':
*a4 = *(_QWORD *)(a2 + 104);
result = 0LL;
break;
case 'n':
*a4 = *(_QWORD *)(a2 + 112);
result = 0LL;
break;
case 'o':
*a4 = *(_QWORD *)(a2 + 120);
result = 0LL;
break;
case 'p':
*a4 = *(_QWORD *)(a2 + 128);
result = 0LL;
break;
default:
result = 7LL;
break;
}
}
return result;
}

original_code:
int
MESmAsk(CKTcircuit *ckt, GENmodel *inst, int which, IFvalue *value)
{
    MESmodel *here = (MESmodel*)inst;
    switch(which) {
        case 101:
            value->rValue = here->MESthreshold;
            return (0);
        case 102:
            value->rValue = here->MESalpha;
            return (0);
        case 103:
            value->rValue = here->MESbeta;
            return (0);
        case 104:
            value->rValue = here->MESlModulation;
            return (0);
        case 105:
            value->rValue = here->MESb;
            return (0);
        case 106:
            value->rValue = here->MESdrainResist;
            return (0);
        case 107:
            value->rValue = here->MESsourceResist;
            return (0);
        case 108:
            value->rValue = here->MEScapGS;
            return (0);
        case 109:
            value->rValue = here->MEScapGD;
            return (0);
        case 110:
            value->rValue = here->MESgatePotential;
            return (0);
        case 111:
            value->rValue = here->MESgateSatCurrent;
            return (0);
        case 112:
            value->rValue = here->MESdepletionCapCoeff;
            return (0);
        case 301:
            value->rValue = here->MESdrainConduct;
            return (0);
        case 302:
            value->rValue = here->MESsourceConduct;
            return (0);
        case 303:
            value->rValue = here->MESdepletionCap;
            return (0);
        case 304:
            value->rValue = here->MESvcrit;
            return (0);
 case 305:
     if (here->MEStype == 1)
                value->sValue = "nmf";
     else
                value->sValue = "pmf";
        default:
            return (7);
    }
}

canonical_original_code:
int MESmAsk(struct CKTcircuit *ckt, struct sGENmodel *inst, int which, union uIFvalue *value)
{
    struct sMESmodel *here = (MESmodel*)inst;
    switch(which) {
        case 101:
            value->rValue = here->MESthreshold;
            return (0);
        case 102:
            value->rValue = here->MESalpha;
            return (0);
        case 103:
            value->rValue = here->MESbeta;
            return (0);
        case 104:
            value->rValue = here->MESlModulation;
            return (0);
        case 105:
            value->rValue = here->MESb;
            return (0);
        case 106:
            value->rValue = here->MESdrainResist;
            return (0);
        case 107:
            value->rValue = here->MESsourceResist;
            return (0);
        case 108:
            value->rValue = here->MEScapGS;
            return (0);
        case 109:
            value->rValue = here->MEScapGD;
            return (0);
        case 110:
            value->rValue = here->MESgatePotential;
            return (0);
        case 111:
            value->rValue = here->MESgateSatCurrent;
            return (0);
        case 112:
            value->rValue = here->MESdepletionCapCoeff;
            return (0);
        case 301:
            value->rValue = here->MESdrainConduct;
            return (0);
        case 302:
            value->rValue = here->MESsourceConduct;
            return (0);
        case 303:
            value->rValue = here->MESdepletionCap;
            return (0);
        case 304:
            value->rValue = here->MESvcrit;
            return (0);
 case 305:
     if (here->MEStype == 1)
                value->sValue = "nmf";
     else
                value->sValue = "pmf";
        default:
            return (7);
    }
}

variable_types: struct sMESmodel { int MESmodType; struct sMESmodel *MESnextModel; struct sMESinstance { struct sMESmodel *MESmodPtr; struct sMESinstance *MESnextInstance; char *MESname; int MESowner; int MESstate; int MESdrainNode; int MESgateNode; int MESsourceNode; int MESdrainPrimeNode; int MESsourcePrimeNode; double MESarea; double MESm; double MESicVDS; double MESicVGS; double *MESdrainDrainPrimePtr; double *MESgateDrainPrimePtr; double *MESgateSourcePrimePtr; double *MESsourceSourcePrimePtr; double *MESdrainPrimeDrainPtr; double *MESdrainPrimeGatePtr; double *MESdrainPrimeSourcePrimePtr; double *MESsourcePrimeGatePtr; double *MESsourcePrimeSourcePtr; double *MESsourcePrimeDrainPrimePtr; double *MESdrainDrainPtr; double *MESgateGatePtr; double *MESsourceSourcePtr; double *MESdrainPrimeDrainPrimePtr; double *MESsourcePrimeSourcePrimePtr; int MESoff; unsigned int MESareaGiven; unsigned int MESmGiven; unsigned int MESicVDSGiven; unsigned int MESicVGSGiven; int MESmode; double MESdCoeffs[27]; double MESnVar[3][5]; } *MESinstances; char *MESmodName; int MEStype; double MESthreshold; double MESalpha; double MESbeta; double MESlModulation; double MESb; double MESdrainResist; double MESsourceResist; double MEScapGS; double MEScapGD; double MESgatePotential; double MESgateSatCurrent; double MESdepletionCapCoeff; double MESfNcoef; double MESfNexp; double MESdrainConduct; double MESsourceConduct; double MESdepletionCap; double MESf1; double MESf2; double MESf3; double MESvcrit; unsigned int MESthresholdGiven; unsigned int MESalphaGiven; unsigned int MESbetaGiven; unsigned int MESlModulationGiven; unsigned int MESbGiven; unsigned int MESdrainResistGiven; unsigned int MESsourceResistGiven; unsigned int MEScapGSGiven; unsigned int MEScapGDGiven; unsigned int MESgatePotentialGiven; unsigned int MESgateSatCurrentGiven; unsigned int MESdepletionCapCoeffGiven; unsigned int MESfNcoefGiven; unsigned int MESfNexpGiven; } *

user_defined_types: struct sMESmodel { int MESmodType; struct sMESmodel *MESnextModel; struct sMESinstance *MESinstances; char *MESmodName; int MEStype; double MESthreshold; double MESalpha; double MESbeta; double MESlModulation; double MESb; double MESdrainResist; double MESsourceResist; double MEScapGS; double MEScapGD; double MESgatePotential; double MESgateSatCurrent; double MESdepletionCapCoeff; double MESfNcoef; double MESfNexp; double MESdrainConduct; double MESsourceConduct; double MESdepletionCap; double MESf1; double MESf2; double MESf3; double MESvcrit; unsigned int MESthresholdGiven; unsigned int MESalphaGiven; unsigned int MESbetaGiven; unsigned int MESlModulationGiven; unsigned int MESbGiven; unsigned int MESdrainResistGiven; unsigned int MESsourceResistGiven; unsigned int MEScapGSGiven; unsigned int MEScapGDGiven; unsigned int MESgatePotentialGiven; unsigned int MESgateSatCurrentGiven; unsigned int MESdepletionCapCoeffGiven; unsigned int MESfNcoefGiven; unsigned int MESfNexpGiven; }

user_defined_types: struct sIFcomplex { double real; double imag; }

user_defined_types: struct sIFparseTree { int numVars; int *varTypes; union uIFvalue *vars; int (*IFeval)(struct sIFparseTree *, double, double *, double *, double *); }


repo: gserdyuk/gnucap-a

original_code:
int
B2acLoad(GENmodel *inModel, CKTcircuit *ckt)
{
    B2model *model = (B2model*)inModel;
    B2instance *here;
    int xnrm;
    int xrev;
    double gdpr;
    double gspr;
    double gm;
    double gds;
    double gmbs;
    double gbd;
    double gbs;
    double capbd;
    double capbs;
    double xcggb;
    double xcgdb;
    double xcgsb;
    double xcbgb;
    double xcbdb;
    double xcbsb;
    double xcddb;
    double xcssb;
    double xcdgb;
    double xcsgb;
    double xcdsb;
    double xcsdb;
    double cggb;
    double cgdb;
    double cgsb;
    double cbgb;
    double cbdb;
    double cbsb;
    double cddb;
    double cdgb;
    double cdsb;
    double omega;
    double m;
    omega = ckt->CKTomega;
    for( ; model != ((void *)0); model = model->B2nextModel) {
        for(here = model->B2instances; here!= ((void *)0);
                here = here->B2nextInstance) {
     if (here->B2owner != ARCHme) continue;
            if (here->B2mode >= 0) {
                xnrm=1;
                xrev=0;
            } else {
                xnrm=0;
                xrev=1;
            }
            gdpr=here->B2drainConductance;
            gspr=here->B2sourceConductance;
            gm= *(ckt->CKTstates[0] + here->B2states+ 7);
            gds= *(ckt->CKTstates[0] + here->B2states+ 8);
            gmbs= *(ckt->CKTstates[0] + here->B2states+ 9);
            gbd= *(ckt->CKTstates[0] + here->B2states+ 10);
            gbs= *(ckt->CKTstates[0] + here->B2states+ 11);
            capbd= *(ckt->CKTstates[0] + here->B2states+ 24);
            capbs= *(ckt->CKTstates[0] + here->B2states+ 26);
            cggb = *(ckt->CKTstates[0] + here->B2states+ 18);
            cgsb = *(ckt->CKTstates[0] + here->B2states+ 20);
            cgdb = *(ckt->CKTstates[0] + here->B2states+ 19);
            cbgb = *(ckt->CKTstates[0] + here->B2states+ 21);
            cbsb = *(ckt->CKTstates[0] + here->B2states+ 23);
            cbdb = *(ckt->CKTstates[0] + here->B2states+ 22);
            cdgb = *(ckt->CKTstates[0] + here->B2states+ 28);
            cdsb = *(ckt->CKTstates[0] + here->B2states+ 30);
            cddb = *(ckt->CKTstates[0] + here->B2states+ 29);
            xcdgb = (cdgb - here->pParam->B2GDoverlapCap) * omega;
            xcddb = (cddb + capbd + here->pParam->B2GDoverlapCap) * omega;
            xcdsb = cdsb * omega;
            xcsgb = -(cggb + cbgb + cdgb + here->pParam->B2GSoverlapCap)
    * omega;
            xcsdb = -(cgdb + cbdb + cddb) * omega;
            xcssb = (capbs + here->pParam->B2GSoverlapCap
    - (cgsb+cbsb+cdsb)) * omega;
            xcggb = (cggb + here->pParam->B2GDoverlapCap
    + here->pParam->B2GSoverlapCap
    + here->pParam->B2GBoverlapCap) * omega;
            xcgdb = (cgdb - here->pParam->B2GDoverlapCap ) * omega;
            xcgsb = (cgsb - here->pParam->B2GSoverlapCap) * omega;
            xcbgb = (cbgb - here->pParam->B2GBoverlapCap) * omega;
            xcbdb = (cbdb - capbd ) * omega;
            xcbsb = (cbsb - capbs ) * omega;
            m = here->B2m;
            *(here->B2GgPtr +1) += m * (xcggb);
            *(here->B2BbPtr +1) += m * (-xcbgb-xcbdb-xcbsb);
            *(here->B2DPdpPtr +1) += m * (xcddb);
            *(here->B2SPspPtr +1) += m * (xcssb);
            *(here->B2GbPtr +1) += m * (-xcggb-xcgdb-xcgsb);
            *(here->B2GdpPtr +1) += m * (xcgdb);
            *(here->B2GspPtr +1) += m * (xcgsb);
            *(here->B2BgPtr +1) += m * (xcbgb);
            *(here->B2BdpPtr +1) += m * (xcbdb);
            *(here->B2BspPtr +1) += m * (xcbsb);
            *(here->B2DPgPtr +1) += m * (xcdgb);
            *(here->B2DPbPtr +1) += m * (-xcdgb-xcddb-xcdsb);
            *(here->B2DPspPtr +1) += m * (xcdsb);
            *(here->B2SPgPtr +1) += m * (xcsgb);
            *(here->B2SPbPtr +1) += m * (-xcsgb-xcsdb-xcssb);
            *(here->B2SPdpPtr +1) += m * (xcsdb);
            *(here->B2DdPtr) += m * (gdpr);
            *(here->B2SsPtr) += m * (gspr);
            *(here->B2BbPtr) += m * (gbd+gbs);
            *(here->B2DPdpPtr) += m * (gdpr+gds+gbd+xrev*(gm+gmbs));
            *(here->B2SPspPtr) += m * (gspr+gds+gbs+xnrm*(gm+gmbs));
            *(here->B2DdpPtr) -= m * (gdpr);
            *(here->B2SspPtr) -= m * (gspr);
            *(here->B2BdpPtr) -= m * (gbd);
            *(here->B2BspPtr) -= m * (gbs);
            *(here->B2DPdPtr) -= m * (gdpr);
            *(here->B2DPgPtr) += m * ((xnrm-xrev)*gm);
            *(here->B2DPbPtr) += m * (-gbd+(xnrm-xrev)*gmbs);
            *(here->B2DPspPtr) += m * (-gds-xnrm*(gm+gmbs));
            *(here->B2SPgPtr) += m * (-(xnrm-xrev)*gm);
            *(here->B2SPsPtr) -= m * (gspr);
            *(here->B2SPbPtr) += m * (-gbs-(xnrm-xrev)*gmbs);
            *(here->B2SPdpPtr) += m * (-gds-xrev*(gm+gmbs));
        }
    }
return(0);
}

canonical_original_code:
int B2acLoad(struct sGENmodel *inModel, struct CKTcircuit *ckt)
{
    struct sBSIM2model *model = (B2model*)inModel;
    struct sBSIM2instance *here;
    int xnrm;
    int xrev;
    double gdpr;
    double gspr;
    double gm;
    double gds;
    double gmbs;
    double gbd;
    double gbs;
    double capbd;
    double capbs;
    double xcggb;
    double xcgdb;
    double xcgsb;
    double xcbgb;
    double xcbdb;
    double xcbsb;
    double xcddb;
    double xcssb;
    double xcdgb;
    double xcsgb;
    double xcdsb;
    double xcsdb;
    double cggb;
    double cgdb;
    double cgsb;
    double cbgb;
    double cbdb;
    double cbsb;
    double cddb;
    double cdgb;
    double cdsb;
    double omega;
    double m;
    omega = ckt->CKTomega;
    for( ; model != ((void *)0); model = model->B2nextModel) {
        for(here = model->B2instances; here!= ((void *)0);
                here = here->B2nextInstance) {
     if (here->B2owner != ARCHme) continue;
            if (here->B2mode >= 0) {
                xnrm=1;
                xrev=0;
            } else {
                xnrm=0;
                xrev=1;
            }
            gdpr=here->B2drainConductance;
            gspr=here->B2sourceConductance;
            gm= *(ckt->CKTstates[0] + here->B2states+ 7);
            gds= *(ckt->CKTstates[0] + here->B2states+ 8);
            gmbs= *(ckt->CKTstates[0] + here->B2states+ 9);
            gbd= *(ckt->CKTstates[0] + here->B2states+ 10);
            gbs= *(ckt->CKTstates[0] + here->B2states+ 11);
            capbd= *(ckt->CKTstates[0] + here->B2states+ 24);
            capbs= *(ckt->CKTstates[0] + here->B2states+ 26);
            cggb = *(ckt->CKTstates[0] + here->B2states+ 18);
            cgsb = *(ckt->CKTstates[0] + here->B2states+ 20);
            cgdb = *(ckt->CKTstates[0] + here->B2states+ 19);
            cbgb = *(ckt->CKTstates[0] + here->B2states+ 21);
            cbsb = *(ckt->CKTstates[0] + here->B2states+ 23);
            cbdb = *(ckt->CKTstates[0] + here->B2states+ 22);
            cdgb = *(ckt->CKTstates[0] + here->B2states+ 28);
            cdsb = *(ckt->CKTstates[0] + here->B2states+ 30);
            cddb = *(ckt->CKTstates[0] + here->B2states+ 29);
            xcdgb = (cdgb - here->pParam->B2GDoverlapCap) * omega;
            xcddb = (cddb + capbd + here->pParam->B2GDoverlapCap) * omega;
            xcdsb = cdsb * omega;
            xcsgb = -(cggb + cbgb + cdgb + here->pParam->B2GSoverlapCap)
    * omega;
            xcsdb = -(cgdb + cbdb + cddb) * omega;
            xcssb = (capbs + here->pParam->B2GSoverlapCap
    - (cgsb+cbsb+cdsb)) * omega;
            xcggb = (cggb + here->pParam->B2GDoverlapCap
    + here->pParam->B2GSoverlapCap
    + here->pParam->B2GBoverlapCap) * omega;
            xcgdb = (cgdb - here->pParam->B2GDoverlapCap ) * omega;
            xcgsb = (cgsb - here->pParam->B2GSoverlapCap) * omega;
            xcbgb = (cbgb - here->pParam->B2GBoverlapCap) * omega;
            xcbdb = (cbdb - capbd ) * omega;
            xcbsb = (cbsb - capbs ) * omega;
            m = here->B2m;
            *(here->B2GgPtr +1) += m * (xcggb);
            *(here->B2BbPtr +1) += m * (-xcbgb-xcbdb-xcbsb);
            *(here->B2DPdpPtr +1) += m * (xcddb);
            *(here->B2SPspPtr +1) += m * (xcssb);
            *(here->B2GbPtr +1) += m * (-xcggb-xcgdb-xcgsb);
            *(here->B2GdpPtr +1) += m * (xcgdb);
            *(here->B2GspPtr +1) += m * (xcgsb);
            *(here->B2BgPtr +1) += m * (xcbgb);
            *(here->B2BdpPtr +1) += m * (xcbdb);
            *(here->B2BspPtr +1) += m * (xcbsb);
            *(here->B2DPgPtr +1) += m * (xcdgb);
            *(here->B2DPbPtr +1) += m * (-xcdgb-xcddb-xcdsb);
            *(here->B2DPspPtr +1) += m * (xcdsb);
            *(here->B2SPgPtr +1) += m * (xcsgb);
            *(here->B2SPbPtr +1) += m * (-xcsgb-xcsdb-xcssb);
            *(here->B2SPdpPtr +1) += m * (xcsdb);
            *(here->B2DdPtr) += m * (gdpr);
            *(here->B2SsPtr) += m * (gspr);
            *(here->B2BbPtr) += m * (gbd+gbs);
            *(here->B2DPdpPtr) += m * (gdpr+gds+gbd+xrev*(gm+gmbs));
            *(here->B2SPspPtr) += m * (gspr+gds+gbs+xnrm*(gm+gmbs));
            *(here->B2DdpPtr) -= m * (gdpr);
            *(here->B2SspPtr) -= m * (gspr);
            *(here->B2BdpPtr) -= m * (gbd);
            *(here->B2BspPtr) -= m * (gbs);
            *(here->B2DPdPtr) -= m * (gdpr);
            *(here->B2DPgPtr) += m * ((xnrm-xrev)*gm);
            *(here->B2DPbPtr) += m * (-gbd+(xnrm-xrev)*gmbs);
            *(here->B2DPspPtr) += m * (-gds-xnrm*(gm+gmbs));
            *(here->B2SPgPtr) += m * (-(xnrm-xrev)*gm);
            *(here->B2SPsPtr) -= m * (gspr);
            *(here->B2SPbPtr) += m * (-gbs-(xnrm-xrev)*gmbs);
            *(here->B2SPdpPtr) += m * (-gds-xrev*(gm+gmbs));
        }
    }
return(0);
}

variable_types: struct sGENmodel { int GENmodType; struct sGENmodel *GENnextModel; struct sGENinstance { struct sGENmodel *GENmodPtr; struct sGENinstance *GENnextInstance; char *GENname; int GENowner; int GENstate; int GENnode1; int GENnode2; int GENnode3; int GENnode4; int GENnode5; int GENnode6; int GENnode7; } *GENinstances; char *GENmodName; } *

variable_types: struct CKTcircuit { struct sGENmodel **CKThead; struct STATistics { int STATnumIter; int STATtranIter; int STAToldIter; int STATtimePts; int STATaccepted; int STATrejected; double STATtotAnalTime; double STATloadTime; double STATdecompTime; double STATsolveTime; double STATreorderTime; double STATcombineTime; double STATsyncTime; double STATtranTime; double STATtranDecompTime; double STATtranSolveTime; double STATtranLoadTime; double STATtranTruncTime; double STATtranCombTime; double STATtranSyncTime; double STATacTime; double STATacDecompTime; double STATacSolveTime; double STATacLoadTime; double STATacCombTime; double STATacSyncTime; } *CKTstat; double *CKTstates[8]; double CKTtime; double CKTdelta; double CKTdeltaOld[7]; double CKTtemp; double CKTnomTemp; double CKTvt; double CKTag[7]; double CKTagp[7]; int CKTorder; int CKTmaxOrder; int CKTintegrateMethod; void *CKTmatrix; int CKTniState; double *CKTrhs; double *CKTrhsOld; double *CKTrhsSpare; double *CKTirhs; double *CKTirhsOld; double *CKTirhsSpare; double *CKTpred; double *CKTsols[8]; double *CKTrhsOp; double *CKTsenRhs; double *CKTseniRhs; int CKTmaxEqNum; int CKTcurrentAnalysis; struct sCKTnode { char *name; int type; int number; double ic; double nodeset; double *ptr; struct sCKTnode *next; unsigned int icGiven; unsigned int nsGiven; } *CKTnodes; struct sCKTnode *CKTlastNode; int CKTnumStates; long CKTmode; int CKTbypass; int CKTdcMaxIter; int CKTdcTrcvMaxIter; int CKTtranMaxIter; int CKTbreakSize; int CKTbreak; double CKTsaveDelta; double CKTminBreak; double *CKTbreaks; double CKTabstol; double CKTpivotAbsTol; double CKTpivotRelTol; double CKTreltol; double CKTchgtol; double CKTvoltTol; double CKTgmin; double CKTgshunt; double CKTdelmin; double CKTtrtol; double CKTfinalTime; double CKTstep; double CKTmaxStep; double CKTinitTime; double CKTomega; double CKTsrcFact; double CKTdiagGmin; int CKTnumSrcSteps; int CKTnumGminSteps; double CKTgminFactor; int CKTnoncon; double CKTdefaultMosM; double CKTdefaultMosL; double CKTdefaultMosW; double CKTdefaultMosAD; double CKTdefaultMosAS; unsigned int CKThadNodeset; unsigned int CKTfixLimit; unsigned int CKTnoOpIter; unsigned int CKTisSetup; struct sJOB { int JOBtype; struct sJOB *JOBnextJob; char *JOBname; } *CKTcurJob; struct SENstruct { int JOBtype; struct sJOB *JOBnextJob; char *JOBname; int SENnumVal; char **SENdevices; char **SENparmNames; unsigned int SENinitflag; unsigned int SENicflag; unsigned int SENstatus; unsigned int SENacpertflag; int SENmode; int SENparms; double SENpertfac; double **SEN_Sap; double **SEN_RHS; double **SEN_iRHS; int SENsize; void *SEN_Jacmat; double *SEN_parmVal; char **SEN_parmName; } *CKTsenInfo; double *CKTtimePoints; double *CKTdeltaList; int CKTtimeListSize; int CKTtimeIndex; int CKTsizeIncr; unsigned int CKTtryToCompact; unsigned int CKTbadMos3; unsigned int CKTkeepOpInfo; unsigned int CKTcopyNodesets; unsigned int CKTnodeDamping; double CKTabsDv; double CKTrelDv; int CKTtroubleNode; struct sGENinstance *CKTtroubleElt; } *

variable_types: struct sBSIM2model { int B2modType; struct sBSIM2model *B2nextModel; struct sBSIM2instance { struct sBSIM2model *B2modPtr; struct sBSIM2instance *B2nextInstance; char *B2name; int B2owner; int B2states; int B2dNode; int B2gNode; int B2sNode; int B2bNode; int B2dNodePrime; int B2sNodePrime; double B2l; double B2w; double B2m; double B2drainArea; double B2sourceArea; double B2drainSquares; double B2sourceSquares; double B2drainPerimeter; double B2sourcePerimeter; double B2sourceConductance; double B2drainConductance; double B2icVBS; double B2icVDS; double B2icVGS; double B2von; double B2vdsat; int B2off; int B2mode; struct bsim2SizeDependParam { double Width; double Length; double B2vfb; double B2phi; double B2k1; double B2k2; double B2eta0; double B2etaB; double B2beta0; double B2beta0B; double B2betas0; double B2betasB; double B2beta20; double B2beta2B; double B2beta2G; double B2beta30; double B2beta3B; double B2beta3G; double B2beta40; double B2beta4B; double B2beta4G; double B2ua0; double B2uaB; double B2ub0; double B2ubB; double B2u10; double B2u1B; double B2u1D; double B2n0; double B2nB; double B2nD; double B2vof0; double B2vofB; double B2vofD; double B2ai0; double B2aiB; double B2bi0; double B2biB; double B2vghigh; double B2vglow; double B2GDoverlapCap; double B2GSoverlapCap; double B2GBoverlapCap; double SqrtPhi; double Phis3; double CoxWL; double One_Third_CoxWL; double Two_Third_CoxWL; double Arg; double B2vt0; struct bsim2SizeDependParam *pNext; } *pParam; unsigned int B2lGiven; unsigned int B2wGiven; unsigned int B2mGiven; unsigned int B2drainAreaGiven; unsigned int B2sourceAreaGiven; unsigned int B2drainSquaresGiven; unsigned int B2sourceSquaresGiven; unsigned int B2drainPerimeterGiven; unsigned int B2sourcePerimeterGiven; unsigned int B2dNodePrimeSet; unsigned int B2sNodePrimeSet; unsigned int B2icVBSGiven; unsigned int B2icVDSGiven; unsigned int B2icVGSGiven; unsigned int B2vonGiven; unsigned int B2vdsatGiven; double *B2DdPtr; double *B2GgPtr; double *B2SsPtr; double *B2BbPtr; double *B2DPdpPtr; double *B2SPspPtr; double *B2DdpPtr; double *B2GbPtr; double *B2GdpPtr; double *B2GspPtr; double *B2SspPtr; double *B2BdpPtr; double *B2BspPtr; double *B2DPspPtr; double *B2DPdPtr; double *B2BgPtr; double *B2DPgPtr; double *B2SPgPtr; double *B2SPsPtr; double *B2DPbPtr; double *B2SPbPtr; double *B2SPdpPtr; double B2nVar[3][5]; } *B2instances; char *B2modName; int B2type; int pad; double B2vfb0; double B2vfbL; double B2vfbW; double B2phi0; double B2phiL; double B2phiW; double B2k10; double B2k1L; double B2k1W; double B2k20; double B2k2L; double B2k2W; double B2eta00; double B2eta0L; double B2eta0W; double B2etaB0; double B2etaBL; double B2etaBW; double B2deltaL; double B2deltaW; double B2mob00; double B2mob0B0; double B2mob0BL; double B2mob0BW; double B2mobs00; double B2mobs0L; double B2mobs0W; double B2mobsB0; double B2mobsBL; double B2mobsBW; double B2mob200; double B2mob20L; double B2mob20W; double B2mob2B0; double B2mob2BL; double B2mob2BW; double B2mob2G0; double B2mob2GL; double B2mob2GW; double B2mob300; double B2mob30L; double B2mob30W; double B2mob3B0; double B2mob3BL; double B2mob3BW; double B2mob3G0; double B2mob3GL; double B2mob3GW; double B2mob400; double B2mob40L; double B2mob40W; double B2mob4B0; double B2mob4BL; double B2mob4BW; double B2mob4G0; double B2mob4GL; double B2mob4GW; double B2ua00; double B2ua0L; double B2ua0W; double B2uaB0; double B2uaBL; double B2uaBW; double B2ub00; double B2ub0L; double B2ub0W; double B2ubB0; double B2ubBL; double B2ubBW; double B2u100; double B2u10L; double B2u10W; double B2u1B0; double B2u1BL; double B2u1BW; double B2u1D0; double B2u1DL; double B2u1DW; double B2n00; double B2n0L; double B2n0W; double B2nB0; double B2nBL; double B2nBW; double B2nD0; double B2nDL; double B2nDW; double B2vof00; double B2vof0L; double B2vof0W; double B2vofB0; double B2vofBL; double B2vofBW; double B2vofD0; double B2vofDL; double B2vofDW; double B2ai00; double B2ai0L; double B2ai0W; double B2aiB0; double B2aiBL; double B2aiBW; double B2bi00; double B2bi0L; double B2bi0W; double B2biB0; double B2biBL; double B2biBW; double B2vghigh0; double B2vghighL; double B2vghighW; double B2vglow0; double B2vglowL; double B2vglowW; double B2tox; double B2Cox; double B2temp; double B2vdd; double B2vdd2; double B2vgg; double B2vgg2; double B2vbb; double B2vbb2; double B2gateSourceOverlapCap; double B2gateDrainOverlapCap; double B2gateBulkOverlapCap; double B2Vtm; double B2sheetResistance; double B2jctSatCurDensity; double B2bulkJctPotential; double B2bulkJctBotGradingCoeff; double B2bulkJctSideGradingCoeff; double B2sidewallJctPotential; double B2unitAreaJctCap; double B2unitLengthSidewallJctCap; double B2defaultWidth; double B2deltaLength; double B2fNcoef; double B2fNexp; struct bsim2SizeDependParam *pSizeDependParamKnot; unsigned int B2channelChargePartitionFlag; unsigned int B2vfb0Given; unsigned int B2vfbLGiven; unsigned int B2vfbWGiven; unsigned int B2phi0Given; unsigned int B2phiLGiven; unsigned int B2phiWGiven; unsigned int B2k10Given; unsigned int B2k1LGiven; unsigned int B2k1WGiven; unsigned int B2k20Given; unsigned int B2k2LGiven; unsigned int B2k2WGiven; unsigned int B2eta00Given; unsigned int B2eta0LGiven; unsigned int B2eta0WGiven; unsigned int B2etaB0Given; unsigned int B2etaBLGiven; unsigned int B2etaBWGiven; unsigned int B2deltaLGiven; unsigned int B2deltaWGiven; unsigned int B2mob00Given; unsigned int B2mob0B0Given; unsigned int B2mob0BLGiven; unsigned int B2mob0BWGiven; unsigned int B2mobs00Given; unsigned int B2mobs0LGiven; unsigned int B2mobs0WGiven; unsigned int B2mobsB0Given; unsigned int B2mobsBLGiven; unsigned int B2mobsBWGiven; unsigned int B2mob200Given; unsigned int B2mob20LGiven; unsigned int B2mob20WGiven; unsigned int B2mob2B0Given; unsigned int B2mob2BLGiven; unsigned int B2mob2BWGiven; unsigned int B2mob2G0Given; unsigned int B2mob2GLGiven; unsigned int B2mob2GWGiven; unsigned int B2mob300Given; unsigned int B2mob30LGiven; unsigned int B2mob30WGiven; unsigned int B2mob3B0Given; unsigned int B2mob3BLGiven; unsigned int B2mob3BWGiven; unsigned int B2mob3G0Given; unsigned int B2mob3GLGiven; unsigned int B2mob3GWGiven; unsigned int B2mob400Given; unsigned int B2mob40LGiven; unsigned int B2mob40WGiven; unsigned int B2mob4B0Given; unsigned int B2mob4BLGiven; unsigned int B2mob4BWGiven; unsigned int B2mob4G0Given; unsigned int B2mob4GLGiven; unsigned int B2mob4GWGiven; unsigned int B2ua00Given; unsigned int B2ua0LGiven; unsigned int B2ua0WGiven; unsigned int B2uaB0Given; unsigned int B2uaBLGiven; unsigned int B2uaBWGiven; unsigned int B2ub00Given; unsigned int B2ub0LGiven; unsigned int B2ub0WGiven; unsigned int B2ubB0Given; unsigned int B2ubBLGiven; unsigned int B2ubBWGiven; unsigned int B2u100Given; unsigned int B2u10LGiven; unsigned int B2u10WGiven; unsigned int B2u1B0Given; unsigned int B2u1BLGiven; unsigned int B2u1BWGiven; unsigned int B2u1D0Given; unsigned int B2u1DLGiven; unsigned int B2u1DWGiven; unsigned int B2n00Given; unsigned int B2n0LGiven; unsigned int B2n0WGiven; unsigned int B2nB0Given; unsigned int B2nBLGiven; unsigned int B2nBWGiven; unsigned int B2nD0Given; unsigned int B2nDLGiven; unsigned int B2nDWGiven; unsigned int B2vof00Given; unsigned int B2vof0LGiven; unsigned int B2vof0WGiven; unsigned int B2vofB0Given; unsigned int B2vofBLGiven; unsigned int B2vofBWGiven; unsigned int B2vofD0Given; unsigned int B2vofDLGiven; unsigned int B2vofDWGiven; unsigned int B2ai00Given; unsigned int B2ai0LGiven; unsigned int B2ai0WGiven; unsigned int B2aiB0Given; unsigned int B2aiBLGiven; unsigned int B2aiBWGiven; unsigned int B2bi00Given; unsigned int B2bi0LGiven; unsigned int B2bi0WGiven; unsigned int B2biB0Given; unsigned int B2biBLGiven; unsigned int B2biBWGiven; unsigned int B2vghigh0Given; unsigned int B2vghighLGiven; unsigned int B2vghighWGiven; unsigned int B2vglow0Given; unsigned int B2vglowLGiven; unsigned int B2vglowWGiven; unsigned int B2toxGiven; unsigned int B2tempGiven; unsigned int B2vddGiven; unsigned int B2vggGiven; unsigned int B2vbbGiven; unsigned int B2gateSourceOverlapCapGiven; unsigned int B2gateDrainOverlapCapGiven; unsigned int B2gateBulkOverlapCapGiven; unsigned int B2channelChargePartitionFlagGiven; unsigned int B2sheetResistanceGiven; unsigned int B2jctSatCurDensityGiven; unsigned int B2bulkJctPotentialGiven; unsigned int B2bulkJctBotGradingCoeffGiven; unsigned int B2sidewallJctPotentialGiven; unsigned int B2bulkJctSideGradingCoeffGiven; unsigned int B2unitAreaJctCapGiven; unsigned int B2unitLengthSidewallJctCapGiven; unsigned int B2defaultWidthGiven; unsigned int B2deltaLengthGiven; unsigned int B2fNcoefGiven; unsigned int B2fNexpGiven; unsigned int B2typeGiven; } *

variable_types: struct sBSIM2instance { struct sBSIM2model { int B2modType; struct sBSIM2model *B2nextModel; struct sBSIM2instance *B2instances; char *B2modName; int B2type; int pad; double B2vfb0; double B2vfbL; double B2vfbW; double B2phi0; double B2phiL; double B2phiW; double B2k10; double B2k1L; double B2k1W; double B2k20; double B2k2L; double B2k2W; double B2eta00; double B2eta0L; double B2eta0W; double B2etaB0; double B2etaBL; double B2etaBW; double B2deltaL; double B2deltaW; double B2mob00; double B2mob0B0; double B2mob0BL; double B2mob0BW; double B2mobs00; double B2mobs0L; double B2mobs0W; double B2mobsB0; double B2mobsBL; double B2mobsBW; double B2mob200; double B2mob20L; double B2mob20W; double B2mob2B0; double B2mob2BL; double B2mob2BW; double B2mob2G0; double B2mob2GL; double B2mob2GW; double B2mob300; double B2mob30L; double B2mob30W; double B2mob3B0; double B2mob3BL; double B2mob3BW; double B2mob3G0; double B2mob3GL; double B2mob3GW; double B2mob400; double B2mob40L; double B2mob40W; double B2mob4B0; double B2mob4BL; double B2mob4BW; double B2mob4G0; double B2mob4GL; double B2mob4GW; double B2ua00; double B2ua0L; double B2ua0W; double B2uaB0; double B2uaBL; double B2uaBW; double B2ub00; double B2ub0L; double B2ub0W; double B2ubB0; double B2ubBL; double B2ubBW; double B2u100; double B2u10L; double B2u10W; double B2u1B0; double B2u1BL; double B2u1BW; double B2u1D0; double B2u1DL; double B2u1DW; double B2n00; double B2n0L; double B2n0W; double B2nB0; double B2nBL; double B2nBW; double B2nD0; double B2nDL; double B2nDW; double B2vof00; double B2vof0L; double B2vof0W; double B2vofB0; double B2vofBL; double B2vofBW; double B2vofD0; double B2vofDL; double B2vofDW; double B2ai00; double B2ai0L; double B2ai0W; double B2aiB0; double B2aiBL; double B2aiBW; double B2bi00; double B2bi0L; double B2bi0W; double B2biB0; double B2biBL; double B2biBW; double B2vghigh0; double B2vghighL; double B2vghighW; double B2vglow0; double B2vglowL; double B2vglowW; double B2tox; double B2Cox; double B2temp; double B2vdd; double B2vdd2; double B2vgg; double B2vgg2; double B2vbb; double B2vbb2; double B2gateSourceOverlapCap; double B2gateDrainOverlapCap; double B2gateBulkOverlapCap; double B2Vtm; double B2sheetResistance; double B2jctSatCurDensity; double B2bulkJctPotential; double B2bulkJctBotGradingCoeff; double B2bulkJctSideGradingCoeff; double B2sidewallJctPotential; double B2unitAreaJctCap; double B2unitLengthSidewallJctCap; double B2defaultWidth; double B2deltaLength; double B2fNcoef; double B2fNexp; struct bsim2SizeDependParam { double Width; double Length; double B2vfb; double B2phi; double B2k1; double B2k2; double B2eta0; double B2etaB; double B2beta0; double B2beta0B; double B2betas0; double B2betasB; double B2beta20; double B2beta2B; double B2beta2G; double B2beta30; double B2beta3B; double B2beta3G; double B2beta40; double B2beta4B; double B2beta4G; double B2ua0; double B2uaB; double B2ub0; double B2ubB; double B2u10; double B2u1B; double B2u1D; double B2n0; double B2nB; double B2nD; double B2vof0; double B2vofB; double B2vofD; double B2ai0; double B2aiB; double B2bi0; double B2biB; double B2vghigh; double B2vglow; double B2GDoverlapCap; double B2GSoverlapCap; double B2GBoverlapCap; double SqrtPhi; double Phis3; double CoxWL; double One_Third_CoxWL; double Two_Third_CoxWL; double Arg; double B2vt0; struct bsim2SizeDependParam *pNext; } *pSizeDependParamKnot; unsigned int B2channelChargePartitionFlag; unsigned int B2vfb0Given; unsigned int B2vfbLGiven; unsigned int B2vfbWGiven; unsigned int B2phi0Given; unsigned int B2phiLGiven; unsigned int B2phiWGiven; unsigned int B2k10Given; unsigned int B2k1LGiven; unsigned int B2k1WGiven; unsigned int B2k20Given; unsigned int B2k2LGiven; unsigned int B2k2WGiven; unsigned int B2eta00Given; unsigned int B2eta0LGiven; unsigned int B2eta0WGiven; unsigned int B2etaB0Given; unsigned int B2etaBLGiven; unsigned int B2etaBWGiven; unsigned int B2deltaLGiven; unsigned int B2deltaWGiven; unsigned int B2mob00Given; unsigned int B2mob0B0Given; unsigned int B2mob0BLGiven; unsigned int B2mob0BWGiven; unsigned int B2mobs00Given; unsigned int B2mobs0LGiven; unsigned int B2mobs0WGiven; unsigned int B2mobsB0Given; unsigned int B2mobsBLGiven; unsigned int B2mobsBWGiven; unsigned int B2mob200Given; unsigned int B2mob20LGiven; unsigned int B2mob20WGiven; unsigned int B2mob2B0Given; unsigned int B2mob2BLGiven; unsigned int B2mob2BWGiven; unsigned int B2mob2G0Given; unsigned int B2mob2GLGiven; unsigned int B2mob2GWGiven; unsigned int B2mob300Given; unsigned int B2mob30LGiven; unsigned int B2mob30WGiven; unsigned int B2mob3B0Given; unsigned int B2mob3BLGiven; unsigned int B2mob3BWGiven; unsigned int B2mob3G0Given; unsigned int B2mob3GLGiven; unsigned int B2mob3GWGiven; unsigned int B2mob400Given; unsigned int B2mob40LGiven; unsigned int B2mob40WGiven; unsigned int B2mob4B0Given; unsigned int B2mob4BLGiven; unsigned int B2mob4BWGiven; unsigned int B2mob4G0Given; unsigned int B2mob4GLGiven; unsigned int B2mob4GWGiven; unsigned int B2ua00Given; unsigned int B2ua0LGiven; unsigned int B2ua0WGiven; unsigned int B2uaB0Given; unsigned int B2uaBLGiven; unsigned int B2uaBWGiven; unsigned int B2ub00Given; unsigned int B2ub0LGiven; unsigned int B2ub0WGiven; unsigned int B2ubB0Given; unsigned int B2ubBLGiven; unsigned int B2ubBWGiven; unsigned int B2u100Given; unsigned int B2u10LGiven; unsigned int B2u10WGiven; unsigned int B2u1B0Given; unsigned int B2u1BLGiven; unsigned int B2u1BWGiven; unsigned int B2u1D0Given; unsigned int B2u1DLGiven; unsigned int B2u1DWGiven; unsigned int B2n00Given; unsigned int B2n0LGiven; unsigned int B2n0WGiven; unsigned int B2nB0Given; unsigned int B2nBLGiven; unsigned int B2nBWGiven; unsigned int B2nD0Given; unsigned int B2nDLGiven; unsigned int B2nDWGiven; unsigned int B2vof00Given; unsigned int B2vof0LGiven; unsigned int B2vof0WGiven; unsigned int B2vofB0Given; unsigned int B2vofBLGiven; unsigned int B2vofBWGiven; unsigned int B2vofD0Given; unsigned int B2vofDLGiven; unsigned int B2vofDWGiven; unsigned int B2ai00Given; unsigned int B2ai0LGiven; unsigned int B2ai0WGiven; unsigned int B2aiB0Given; unsigned int B2aiBLGiven; unsigned int B2aiBWGiven; unsigned int B2bi00Given; unsigned int B2bi0LGiven; unsigned int B2bi0WGiven; unsigned int B2biB0Given; unsigned int B2biBLGiven; unsigned int B2biBWGiven; unsigned int B2vghigh0Given; unsigned int B2vghighLGiven; unsigned int B2vghighWGiven; unsigned int B2vglow0Given; unsigned int B2vglowLGiven; unsigned int B2vglowWGiven; unsigned int B2toxGiven; unsigned int B2tempGiven; unsigned int B2vddGiven; unsigned int B2vggGiven; unsigned int B2vbbGiven; unsigned int B2gateSourceOverlapCapGiven; unsigned int B2gateDrainOverlapCapGiven; unsigned int B2gateBulkOverlapCapGiven; unsigned int B2channelChargePartitionFlagGiven; unsigned int B2sheetResistanceGiven; unsigned int B2jctSatCurDensityGiven; unsigned int B2bulkJctPotentialGiven; unsigned int B2bulkJctBotGradingCoeffGiven; unsigned int B2sidewallJctPotentialGiven; unsigned int B2bulkJctSideGradingCoeffGiven; unsigned int B2unitAreaJctCapGiven; unsigned int B2unitLengthSidewallJctCapGiven; unsigned int B2defaultWidthGiven; unsigned int B2deltaLengthGiven; unsigned int B2fNcoefGiven; unsigned int B2fNexpGiven; unsigned int B2typeGiven; } *B2modPtr; struct sBSIM2instance *B2nextInstance; char *B2name; int B2owner; int B2states; int B2dNode; int B2gNode; int B2sNode; int B2bNode; int B2dNodePrime; int B2sNodePrime; double B2l; double B2w; double B2m; double B2drainArea; double B2sourceArea; double B2drainSquares; double B2sourceSquares; double B2drainPerimeter; double B2sourcePerimeter; double B2sourceConductance; double B2drainConductance; double B2icVBS; double B2icVDS; double B2icVGS; double B2von; double B2vdsat; int B2off; int B2mode; struct bsim2SizeDependParam *pParam; unsigned int B2lGiven; unsigned int B2wGiven; unsigned int B2mGiven; unsigned int B2drainAreaGiven; unsigned int B2sourceAreaGiven; unsigned int B2drainSquaresGiven; unsigned int B2sourceSquaresGiven; unsigned int B2drainPerimeterGiven; unsigned int B2sourcePerimeterGiven; unsigned int B2dNodePrimeSet; unsigned int B2sNodePrimeSet; unsigned int B2icVBSGiven; unsigned int B2icVDSGiven; unsigned int B2icVGSGiven; unsigned int B2vonGiven; unsigned int B2vdsatGiven; double *B2DdPtr; double *B2GgPtr; double *B2SsPtr; double *B2BbPtr; double *B2DPdpPtr; double *B2SPspPtr; double *B2DdpPtr; double *B2GbPtr; double *B2GdpPtr; double *B2GspPtr; double *B2SspPtr; double *B2BdpPtr; double *B2BspPtr; double *B2DPspPtr; double *B2DPdPtr; double *B2BgPtr; double *B2DPgPtr; double *B2SPgPtr; double *B2SPsPtr; double *B2DPbPtr; double *B2SPbPtr; double *B2SPdpPtr; double B2nVar[3][5]; } *

variable_types: xnrm int

variable_types: xrev int

variable_types: gdpr double

variable_types: gspr double

variable_types: gm double

variable_types: gds double

variable_types: gmbs double

variable_types: gbd double

variable_types: gbs double

variable_types: capbd double

variable_types: capbs double

variable_types: xcggb double

variable_types: xcgdb double

variable_types: xcgsb double

variable_types: xcbgb double

variable_types: xcbdb double

variable_types: xcbsb double

variable_types: xcddb double

variable_types: xcssb double

variable_types: xcdgb double

variable_types: xcsgb double

variable_types: xcdsb double

variable_types: xcsdb double

variable_types: cggb double

variable_types: cgdb double

variable_types: cgsb double

variable_types: cbgb double

variable_types: cbdb double

variable_types: cbsb double

variable_types: cddb double

variable_types: cdgb double

variable_types: cdsb double

variable_types: omega double

variable_types: m double

return_type: int

user_defined_types: struct sGENmodel { int GENmodType; struct sGENmodel *GENnextModel; struct sGENinstance *GENinstances; char *GENmodName; }

user_defined_types: struct CKTcircuit { struct sGENmodel **CKThead; struct STATistics *CKTstat; double *CKTstates[8]; double CKTtime; double CKTdelta; double CKTdeltaOld[7]; double CKTtemp; double CKTnomTemp; double CKTvt; double CKTag[7]; double CKTagp[7]; int CKTorder; int CKTmaxOrder; int CKTintegrateMethod; void *CKTmatrix; int CKTniState; double *CKTrhs; double *CKTrhsOld; double *CKTrhsSpare; double *CKTirhs; double *CKTirhsOld; double *CKTirhsSpare; double *CKTpred; double *CKTsols[8]; double *CKTrhsOp; double *CKTsenRhs; double *CKTseniRhs; int CKTmaxEqNum; int CKTcurrentAnalysis; struct sCKTnode *CKTnodes; struct sCKTnode *CKTlastNode; int CKTnumStates; long CKTmode; int CKTbypass; int CKTdcMaxIter; int CKTdcTrcvMaxIter; int CKTtranMaxIter; int CKTbreakSize; int CKTbreak; double CKTsaveDelta; double CKTminBreak; double *CKTbreaks; double CKTabstol; double CKTpivotAbsTol; double CKTpivotRelTol; double CKTreltol; double CKTchgtol; double CKTvoltTol; double CKTgmin; double CKTgshunt; double CKTdelmin; double CKTtrtol; double CKTfinalTime; double CKTstep; double CKTmaxStep; double CKTinitTime; double CKTomega; double CKTsrcFact; double CKTdiagGmin; int CKTnumSrcSteps; int CKTnumGminSteps; double CKTgminFactor; int CKTnoncon; double CKTdefaultMosM; double CKTdefaultMosL; double CKTdefaultMosW; double CKTdefaultMosAD; double CKTdefaultMosAS; unsigned int CKThadNodeset; unsigned int CKTfixLimit; unsigned int CKTnoOpIter; unsigned int CKTisSetup; struct sJOB *CKTcurJob; struct SENstruct *CKTsenInfo; double *CKTtimePoints; double *CKTdeltaList; int CKTtimeListSize; int CKTtimeIndex; int CKTsizeIncr; unsigned int CKTtryToCompact; unsigned int CKTbadMos3; unsigned int CKTkeepOpInfo; unsigned int CKTcopyNodesets; unsigned int CKTnodeDamping; double CKTabsDv; double CKTrelDv; int CKTtroubleNode; struct sGENinstance *CKTtroubleElt; }

user_defined_types: struct sBSIM2model { int B2modType; struct sBSIM2model *B2nextModel; struct sBSIM2instance *B2instances; char *B2modName; int B2type; int pad; double B2vfb0; double B2vfbL; double B2vfbW; double B2phi0; double B2phiL; double B2phiW; double B2k10; double B2k1L; double B2k1W; double B2k20; double B2k2L; double B2k2W; double B2eta00; double B2eta0L; double B2eta0W; double B2etaB0; double B2etaBL; double B2etaBW; double B2deltaL; double B2deltaW; double B2mob00; double B2mob0B0; double B2mob0BL; double B2mob0BW; double B2mobs00; double B2mobs0L; double B2mobs0W; double B2mobsB0; double B2mobsBL; double B2mobsBW; double B2mob200; double B2mob20L; double B2mob20W; double B2mob2B0; double B2mob2BL; double B2mob2BW; double B2mob2G0; double B2mob2GL; double B2mob2GW; double B2mob300; double B2mob30L; double B2mob30W; double B2mob3B0; double B2mob3BL; double B2mob3BW; double B2mob3G0; double B2mob3GL; double B2mob3GW; double B2mob400; double B2mob40L; double B2mob40W; double B2mob4B0; double B2mob4BL; double B2mob4BW; double B2mob4G0; double B2mob4GL; double B2mob4GW; double B2ua00; double B2ua0L; double B2ua0W; double B2uaB0; double B2uaBL; double B2uaBW; double B2ub00; double B2ub0L; double B2ub0W; double B2ubB0; double B2ubBL; double B2ubBW; double B2u100; double B2u10L; double B2u10W; double B2u1B0; double B2u1BL; double B2u1BW; double B2u1D0; double B2u1DL; double B2u1DW; double B2n00; double B2n0L; double B2n0W; double B2nB0; double B2nBL; double B2nBW; double B2nD0; double B2nDL; double B2nDW; double B2vof00; double B2vof0L; double B2vof0W; double B2vofB0; double B2vofBL; double B2vofBW; double B2vofD0; double B2vofDL; double B2vofDW; double B2ai00; double B2ai0L; double B2ai0W; double B2aiB0; double B2aiBL; double B2aiBW; double B2bi00; double B2bi0L; double B2bi0W; double B2biB0; double B2biBL; double B2biBW; double B2vghigh0; double B2vghighL; double B2vghighW; double B2vglow0; double B2vglowL; double B2vglowW; double B2tox; double B2Cox; double B2temp; double B2vdd; double B2vdd2; double B2vgg; double B2vgg2; double B2vbb; double B2vbb2; double B2gateSourceOverlapCap; double B2gateDrainOverlapCap; double B2gateBulkOverlapCap; double B2Vtm; double B2sheetResistance; double B2jctSatCurDensity; double B2bulkJctPotential; double B2bulkJctBotGradingCoeff; double B2bulkJctSideGradingCoeff; double B2sidewallJctPotential; double B2unitAreaJctCap; double B2unitLengthSidewallJctCap; double B2defaultWidth; double B2deltaLength; double B2fNcoef; double B2fNexp; struct bsim2SizeDependParam *pSizeDependParamKnot; unsigned int B2channelChargePartitionFlag; unsigned int B2vfb0Given; unsigned int B2vfbLGiven; unsigned int B2vfbWGiven; unsigned int B2phi0Given; unsigned int B2phiLGiven; unsigned int B2phiWGiven; unsigned int B2k10Given; unsigned int B2k1LGiven; unsigned int B2k1WGiven; unsigned int B2k20Given; unsigned int B2k2LGiven; unsigned int B2k2WGiven; unsigned int B2eta00Given; unsigned int B2eta0LGiven; unsigned int B2eta0WGiven; unsigned int B2etaB0Given; unsigned int B2etaBLGiven; unsigned int B2etaBWGiven; unsigned int B2deltaLGiven; unsigned int B2deltaWGiven; unsigned int B2mob00Given; unsigned int B2mob0B0Given; unsigned int B2mob0BLGiven; unsigned int B2mob0BWGiven; unsigned int B2mobs00Given; unsigned int B2mobs0LGiven; unsigned int B2mobs0WGiven; unsigned int B2mobsB0Given; unsigned int B2mobsBLGiven; unsigned int B2mobsBWGiven; unsigned int B2mob200Given; unsigned int B2mob20LGiven; unsigned int B2mob20WGiven; unsigned int B2mob2B0Given; unsigned int B2mob2BLGiven; unsigned int B2mob2BWGiven; unsigned int B2mob2G0Given; unsigned int B2mob2GLGiven; unsigned int B2mob2GWGiven; unsigned int B2mob300Given; unsigned int B2mob30LGiven; unsigned int B2mob30WGiven; unsigned int B2mob3B0Given; unsigned int B2mob3BLGiven; unsigned int B2mob3BWGiven; unsigned int B2mob3G0Given; unsigned int B2mob3GLGiven; unsigned int B2mob3GWGiven; unsigned int B2mob400Given; unsigned int B2mob40LGiven; unsigned int B2mob40WGiven; unsigned int B2mob4B0Given; unsigned int B2mob4BLGiven; unsigned int B2mob4BWGiven; unsigned int B2mob4G0Given; unsigned int B2mob4GLGiven; unsigned int B2mob4GWGiven; unsigned int B2ua00Given; unsigned int B2ua0LGiven; unsigned int B2ua0WGiven; unsigned int B2uaB0Given; unsigned int B2uaBLGiven; unsigned int B2uaBWGiven; unsigned int B2ub00Given; unsigned int B2ub0LGiven; unsigned int B2ub0WGiven; unsigned int B2ubB0Given; unsigned int B2ubBLGiven; unsigned int B2ubBWGiven; unsigned int B2u100Given; unsigned int B2u10LGiven; unsigned int B2u10WGiven; unsigned int B2u1B0Given; unsigned int B2u1BLGiven; unsigned int B2u1BWGiven; unsigned int B2u1D0Given; unsigned int B2u1DLGiven; unsigned int B2u1DWGiven; unsigned int B2n00Given; unsigned int B2n0LGiven; unsigned int B2n0WGiven; unsigned int B2nB0Given; unsigned int B2nBLGiven; unsigned int B2nBWGiven; unsigned int B2nD0Given; unsigned int B2nDLGiven; unsigned int B2nDWGiven; unsigned int B2vof00Given; unsigned int B2vof0LGiven; unsigned int B2vof0WGiven; unsigned int B2vofB0Given; unsigned int B2vofBLGiven; unsigned int B2vofBWGiven; unsigned int B2vofD0Given; unsigned int B2vofDLGiven; unsigned int B2vofDWGiven; unsigned int B2ai00Given; unsigned int B2ai0LGiven; unsigned int B2ai0WGiven; unsigned int B2aiB0Given; unsigned int B2aiBLGiven; unsigned int B2aiBWGiven; unsigned int B2bi00Given; unsigned int B2bi0LGiven; unsigned int B2bi0WGiven; unsigned int B2biB0Given; unsigned int B2biBLGiven; unsigned int B2biBWGiven; unsigned int B2vghigh0Given; unsigned int B2vghighLGiven; unsigned int B2vghighWGiven; unsigned int B2vglow0Given; unsigned int B2vglowLGiven; unsigned int B2vglowWGiven; unsigned int B2toxGiven; unsigned int B2tempGiven; unsigned int B2vddGiven; unsigned int B2vggGiven; unsigned int B2vbbGiven; unsigned int B2gateSourceOverlapCapGiven; unsigned int B2gateDrainOverlapCapGiven; unsigned int B2gateBulkOverlapCapGiven; unsigned int B2channelChargePartitionFlagGiven; unsigned int B2sheetResistanceGiven; unsigned int B2jctSatCurDensityGiven; unsigned int B2bulkJctPotentialGiven; unsigned int B2bulkJctBotGradingCoeffGiven; unsigned int B2sidewallJctPotentialGiven; unsigned int B2bulkJctSideGradingCoeffGiven; unsigned int B2unitAreaJctCapGiven; unsigned int B2unitLengthSidewallJctCapGiven; unsigned int B2defaultWidthGiven; unsigned int B2deltaLengthGiven; unsigned int B2fNcoefGiven; unsigned int B2fNexpGiven; unsigned int B2typeGiven; }

user_defined_types: struct sBSIM2instance { struct sBSIM2model *B2modPtr; struct sBSIM2instance *B2nextInstance; char *B2name; int B2owner; int B2states; int B2dNode; int B2gNode; int B2sNode; int B2bNode; int B2dNodePrime; int B2sNodePrime; double B2l; double B2w; double B2m; double B2drainArea; double B2sourceArea; double B2drainSquares; double B2sourceSquares; double B2drainPerimeter; double B2sourcePerimeter; double B2sourceConductance; double B2drainConductance; double B2icVBS; double B2icVDS; double B2icVGS; double B2von; double B2vdsat; int B2off; int B2mode; struct bsim2SizeDependParam *pParam; unsigned int B2lGiven; unsigned int B2wGiven; unsigned int B2mGiven; unsigned int B2drainAreaGiven; unsigned int B2sourceAreaGiven; unsigned int B2drainSquaresGiven; unsigned int B2sourceSquaresGiven; unsigned int B2drainPerimeterGiven; unsigned int B2sourcePerimeterGiven; unsigned int B2dNodePrimeSet; unsigned int B2sNodePrimeSet; unsigned int B2icVBSGiven; unsigned int B2icVDSGiven; unsigned int B2icVGSGiven; unsigned int B2vonGiven; unsigned int B2vdsatGiven; double *B2DdPtr; double *B2GgPtr; double *B2SsPtr; double *B2BbPtr; double *B2DPdpPtr; double *B2SPspPtr; double *B2DdpPtr; double *B2GbPtr; double *B2GdpPtr; double *B2GspPtr; double *B2SspPtr; double *B2BdpPtr; double *B2BspPtr; double *B2DPspPtr; double *B2DPdPtr; double *B2BgPtr; double *B2DPgPtr; double *B2SPgPtr; double *B2SPsPtr; double *B2DPbPtr; double *B2SPbPtr; double *B2SPdpPtr; double B2nVar[3][5]; }


JFETnoise

decompiled_code:
__int64 __fastcall JFETnoise(int a1, int a2, __int64 a3, __int64 a4, __int64 a5, double *a6)
{
__int64 result; // rax
__int64 v9; // r14
__int64 v10; // r14
void **v11; // rbp
__int64 v12; // rax
void (__fastcall *v13)(__int64, __int64, _QWORD, char *, __int64, _QWORD); // r10
int v14; // edx
const char **v15; // r12
const char *v16; // r15
__int64 v17; // rax
void (__fastcall *v18)(__int64, __int64, _QWORD, char *, __int64, _QWORD); // r10
int v19; // edx
__int64 v20; // rax
void (__fastcall *v21)(__int64, __int64, _QWORD, char *, __int64, _QWORD); // r10
int v22; // edx
double v23; // xmm0_8
double v24; // xmm0_8
double v25; // xmm0_8
double v26; // xmm0_8
double v27; // xmm0_8
double v28; // xmm0_8
__int64 i; // rbp
double v30; // xmm0_8
double v31; // r14
double v32; // r12
double *v33; // r12
double *v34; // r14
double *v35; // r15
double v36; // xmm0_8
char *v37; // rdx
__int64 v38; // rcx
int v39; // eax
_QWORD *j; // r8
_QWORD *v41; // rax
__int64 v42; // rcx
int v43; // edx
__int64 v44; // rcx
int v45; // edx
double v46; // [rsp+0h] [rbp-F8h]
__int64 v47; // [rsp+8h] [rbp-F0h]
__int64 v49; // [rsp+20h] [rbp-D8h] BYREF
__int64 v50; // [rsp+28h] [rbp-D0h] BYREF
__int64 v51; // [rsp+30h] [rbp-C8h] BYREF
double v52; // [rsp+38h] [rbp-C0h]
double v53; // [rsp+40h] [rbp-B8h]
double v54; // [rsp+50h] [rbp-A8h] BYREF
double v55; // [rsp+58h] [rbp-A0h] BYREF
double v56; // [rsp+60h] [rbp-98h] BYREF
double v57; // [rsp+68h] [rbp-90h] BYREF
double v58; // [rsp+70h] [rbp-88h]
char v59; // [rsp+78h] [rbp-80h] BYREF
char s[120]; // [rsp+80h] [rbp-78h] BYREF

v47 = a3;
if ( a2 == 1 )
{
result = *(unsigned int *)(*(_QWORD *)(a4 + 968) + 64LL);
if ( (_DWORD)result )
{
if ( a1 == 1 )
{
if ( a3 )
{
while ( 1 )
{
v10 = *(_QWORD *)(v47 + 16);
if ( v10 )
break;
LABEL_13:
result = *(_QWORD *)(v47 + 8);
v47 = result;
if ( !result )
return result;
}
LABEL_16:
v11 = (void **)JFETnNames;
while ( 1 )
{
sprintf(s, "onoise.%s%s", *(const char **)(v10 + 16), (const char *)*v11);
v12 = trealloc(*(_QWORD *)(a5 + 112), 8LL * (*(_DWORD *)(a5 + 84) + 1));
*(_QWORD *)(a5 + 112) = v12;
if ( !v12 )
break;
v13 = (void (__fastcall *)(__int64, __int64, _QWORD, char *, __int64, _QWORD))*SPfrontEnd;
v14 = *(_DWORD *)(a5 + 84);
*(_DWORD *)(a5 + 84) = v14 + 1;
v13(a4, v12 + 8LL * v14, 0LL, s, 32LL, 0LL);
if ( &off_860 + 1 == ++v11 )
{
v10 = *(_QWORD *)(v10 + 8);
if ( !v10 )
goto LABEL_13;
goto LABEL_16;
}
}
result = 8LL;
}
else
{
result = 0LL;
}
}
else
{
result = 0LL;
if ( a1 == 2 )
{
if ( a3 )
{
while ( 1 )
{
v9 = *(_QWORD *)(v47 + 16);
if ( v9 )
break;
LABEL_9:
result = *(_QWORD *)(v47 + 8);
v47 = result;
if ( !result )
return result;
}
LABEL_21:
v15 = (const char **)JFETnNames;
while ( 1 )
{
v16 = *v15;
sprintf(s, "onoise_total.%s%s", *(const char **)(v9 + 16), *v15);
v17 = trealloc(*(_QWORD *)(a5 + 112), 8LL * (*(_DWORD *)(a5 + 84) + 1));
*(_QWORD *)(a5 + 112) = v17;
if ( !v17 )
return 8LL;
v18 = (void (__fastcall *)(__int64, __int64, _QWORD, char *, __int64, _QWORD))*SPfrontEnd;
v19 = *(_DWORD *)(a5 + 84);
*(_DWORD *)(a5 + 84) = v19 + 1;
v18(a4, v17 + 8LL * v19, 0LL, s, 32LL, 0LL);
sprintf(s, "inoise_total.%s%s", *(const char **)(v9 + 16), v16);
v20 = trealloc(*(_QWORD *)(a5 + 112), 8LL * (*(_DWORD *)(a5 + 84) + 1));
*(_QWORD *)(a5 + 112) = v20;
if ( !v20 )
break;
v21 = (void (__fastcall *)(__int64, __int64, _QWORD, char *, __int64, _QWORD))*SPfrontEnd;
v22 = *(_DWORD *)(a5 + 84);
*(_DWORD *)(a5 + 84) = v22 + 1;
v21(a4, v20 + 8LL * v22, 0LL, s, 32LL, 0LL);
if ( &off_860 + 1 == (void **)++v15 )
{
v9 = *(_QWORD *)(v9 + 8);
if ( !v9 )
goto LABEL_9;
goto LABEL_21;
}
}
result = 8LL;
}
else
{
result = 0LL;
}
}
}
}
}
else
{
result = 0LL;
if ( a2 == 2 )
{
if ( a1 == 1 )
{
if ( a3 )
{
do
{
for ( i = *(_QWORD *)(v47 + 16); i; i = *(_QWORD *)(i + 8) )
{
NevalSrc(
&v54,
&v49,
a4,
2LL,
*(unsigned int *)(i + 40),
*(unsigned int *)(i + 28),
*(double *)(v47 + 136) * *(double *)(i + 472));
NevalSrc(
&v55,
&v50,
a4,
2LL,
*(unsigned int *)(i + 44),
*(unsigned int *)(i + 36),
*(double *)(v47 + 144) * *(double *)(i + 472));
v30 = *(double *)(*(_QWORD *)(a4 + 280) + 8LL * *(int *)(i + 24) + 40);
if ( v30 < 0.0 )
*(_QWORD *)&v30 ^= LC5;
NevalSrc(
&v56,
&v51,
a4,
2LL,
*(unsigned int *)(i + 40),
*(unsigned int *)(i + 44),
v30 * 0.6666666666666666);
NevalSrc(&v57, 0LL, a4, 3LL, *(unsigned int *)(i + 40), *(unsigned int *)(i + 44), 0.0);
v31 = *(double *)(v47 + 120);
v32 = *(double *)(v47 + 128);
v23 = *(double *)(*(_QWORD *)(a4 + 280) + 8LL * *(int *)(i + 24) + 24);
if ( v23 < 0.0 )
{
if ( v23 < -1.0e-38 )
*(_QWORD *)&v23 ^= LC5;
else
v23 = LC0;
}
else if ( v23 <= 1.0e-38 )
{
v23 = LC0;
}
v24 = log(v23);
v25 = exp(v32 * v24);
v26 = v31 * v25 / *(double *)a5 * v57;
v57 = v26;
if ( v26 <= 1.0e-38 )
v26 = LC0;
v52 = log(v26);
v27 = v54 + v55 + v56 + v57;
v58 = v27;
if ( v27 <= 1.0e-38 )
v27 = LC0;
v28 = log(v27);
v53 = v28;
*a6 = *a6 + v58;
if ( *(double *)(a5 + 16) == 0.0 )
{
*(_QWORD *)(i + 344) = v49;
*(_QWORD *)(i + 352) = v50;
*(_QWORD *)(i + 360) = v51;
*(double *)(i + 368) = v52;
*(double *)(i + 376) = v28;
if ( *(double *)a5 == *(double *)(*(_QWORD *)(a4 + 968) + 96LL) )
{
*(_QWORD *)(i + 384) = 0LL;
*(_QWORD *)(i + 424) = 0LL;
*(_QWORD *)(i + 392) = 0LL;
*(_QWORD *)(i + 432) = 0LL;
*(_QWORD *)(i + 400) = 0LL;
*(_QWORD *)(i + 440) = 0LL;
*(_QWORD *)(i + 408) = 0LL;
*(_QWORD *)(i + 448) = 0LL;
*(_QWORD *)(i + 416) = 0LL;
*(_QWORD *)(i + 456) = 0LL;
}
}
else
{
v33 = (double *)(i + 344);
v34 = (double *)&v49;
v35 = &v54;
do
{
v46 = Nintegrate(a5, *v35, *v34, *v33);
v36 = Nintegrate(
a5,
*v35 * *(double *)(a5 + 40),
*(double *)(a5 + 48) + *v34,
*(double *)(a5 + 48) + *v33);
*v33 = *v34;
*(double *)(a5 + 24) = v46 + *(double *)(a5 + 24);
*(double *)(a5 + 32) = v36 + *(double *)(a5 + 32);
if ( *(_DWORD *)(*(_QWORD *)(a4 + 968) + 64LL) )
{
v33[5] = v46 + v33[5];
*(double *)(i + 416) = v46 + *(double *)(i + 416);
v33[10] = v36 + v33[10];
*(double *)(i + 456) = v36 + *(double *)(i + 456);
}
++v33;
++v34;
++v35;
}
while ( (double *)(i + 376) != v33 );
}
if ( *(_DWORD *)(a5 + 88) )
{
v37 = (char *)&v54;
do
{
v38 = *(_QWORD *)(a5 + 96);
v39 = *(_DWORD *)(a5 + 80);
*(_DWORD *)(a5 + 80) = v39 + 1;
*(_QWORD *)(v38 + 8LL * v39) = *(_QWORD *)v37;
v37 += 8;
}
while ( v37 != &v59 );
}
}
result = *(_QWORD *)(v47 + 8);
v47 = result;
}
while ( result );
}
else
{
result = 0LL;
}
}
else
{
result = 0LL;
if ( a1 == 2 )
{
result = *(unsigned int *)(*(_QWORD *)(a4 + 968) + 64LL);
if ( (_DWORD)result )
{
if ( a3 )
{
do
{
for ( j = *(_QWORD **)(v47 + 16); j; j = (_QWORD *)j[1] )
{
v41 = j + 48;
do
{
v42 = *(_QWORD *)(a5 + 96);
v43 = *(_DWORD *)(a5 + 80);
*(_DWORD *)(a5 + 80) = v43 + 1;
*(_QWORD *)(v42 + 8LL * v43) = *v41;
v44 = *(_QWORD *)(a5 + 96);
v45 = *(_DWORD *)(a5 + 80);
*(_DWORD *)(a5 + 80) = v45 + 1;
*(_QWORD *)(v44 + 8LL * v45) = v41[5];
++v41;
}
while ( v41 != j + 53 );
}
result = *(_QWORD *)(v47 + 8);
v47 = result;
}
while ( result );
}
else
{
result = 0LL;
}
}
}
}
}
}
return result;
}

canonical_decompiled_code:
__int64 __fastcall func0(int a1, int a2, __int64 a3, __int64 a4, __int64 a5, double *a6)
{
__int64 result; // rax
__int64 v9; // r14
__int64 v10; // r14
void **v11; // rbp
__int64 v12; // rax
void (__fastcall *v13)(__int64, __int64, _QWORD, char *, __int64, _QWORD); // r10
int v14; // edx
const char **v15; // r12
const char *v16; // r15
__int64 v17; // rax
void (__fastcall *v18)(__int64, __int64, _QWORD, char *, __int64, _QWORD); // r10
int v19; // edx
__int64 v20; // rax
void (__fastcall *v21)(__int64, __int64, _QWORD, char *, __int64, _QWORD); // r10
int v22; // edx
double v23; // xmm0_8
double v24; // xmm0_8
double v25; // xmm0_8
double v26; // xmm0_8
double v27; // xmm0_8
double v28; // xmm0_8
__int64 i; // rbp
double v30; // xmm0_8
double v31; // r14
double v32; // r12
double *v33; // r12
double *v34; // r14
double *v35; // r15
double v36; // xmm0_8
char *v37; // rdx
__int64 v38; // rcx
int v39; // eax
_QWORD *j; // r8
_QWORD *v41; // rax
__int64 v42; // rcx
int v43; // edx
__int64 v44; // rcx
int v45; // edx
double v46; // [rsp+0h] [rbp-F8h]
__int64 v47; // [rsp+8h] [rbp-F0h]
__int64 v49; // [rsp+20h] [rbp-D8h] BYREF
__int64 v50; // [rsp+28h] [rbp-D0h] BYREF
__int64 v51; // [rsp+30h] [rbp-C8h] BYREF
double v52; // [rsp+38h] [rbp-C0h]
double v53; // [rsp+40h] [rbp-B8h]
double v54; // [rsp+50h] [rbp-A8h] BYREF
double v55; // [rsp+58h] [rbp-A0h] BYREF
double v56; // [rsp+60h] [rbp-98h] BYREF
double v57; // [rsp+68h] [rbp-90h] BYREF
double v58; // [rsp+70h] [rbp-88h]
char v59; // [rsp+78h] [rbp-80h] BYREF
char s[120]; // [rsp+80h] [rbp-78h] BYREF

v47 = a3;
if ( a2 == 1 )
{
result = *(unsigned int *)(*(_QWORD *)(a4 + 968) + 64LL);
if ( (_DWORD)result )
{
if ( a1 == 1 )
{
if ( a3 )
{
while ( 1 )
{
v10 = *(_QWORD *)(v47 + 16);
if ( v10 )
break;
LABEL_13:
result = *(_QWORD *)(v47 + 8);
v47 = result;
if ( !result )
return result;
}
LABEL_16:
v11 = (void **)JFETnNames;
while ( 1 )
{
sprintf(s, "onoise.%s%s", *(const char **)(v10 + 16), (const char *)*v11);
v12 = trealloc(*(_QWORD *)(a5 + 112), 8LL * (*(_DWORD *)(a5 + 84) + 1));
*(_QWORD *)(a5 + 112) = v12;
if ( !v12 )
break;
v13 = (void (__fastcall *)(__int64, __int64, _QWORD, char *, __int64, _QWORD))*SPfrontEnd;
v14 = *(_DWORD *)(a5 + 84);
*(_DWORD *)(a5 + 84) = v14 + 1;
v13(a4, v12 + 8LL * v14, 0LL, s, 32LL, 0LL);
if ( &off_860 + 1 == ++v11 )
{
v10 = *(_QWORD *)(v10 + 8);
if ( !v10 )
goto LABEL_13;
goto LABEL_16;
}
}
result = 8LL;
}
else
{
result = 0LL;
}
}
else
{
result = 0LL;
if ( a1 == 2 )
{
if ( a3 )
{
while ( 1 )
{
v9 = *(_QWORD *)(v47 + 16);
if ( v9 )
break;
LABEL_9:
result = *(_QWORD *)(v47 + 8);
v47 = result;
if ( !result )
return result;
}
LABEL_21:
v15 = (const char **)JFETnNames;
while ( 1 )
{
v16 = *v15;
sprintf(s, "onoise_total.%s%s", *(const char **)(v9 + 16), *v15);
v17 = trealloc(*(_QWORD *)(a5 + 112), 8LL * (*(_DWORD *)(a5 + 84) + 1));
*(_QWORD *)(a5 + 112) = v17;
if ( !v17 )
return 8LL;
v18 = (void (__fastcall *)(__int64, __int64, _QWORD, char *, __int64, _QWORD))*SPfrontEnd;
v19 = *(_DWORD *)(a5 + 84);
*(_DWORD *)(a5 + 84) = v19 + 1;
v18(a4, v17 + 8LL * v19, 0LL, s, 32LL, 0LL);
sprintf(s, "inoise_total.%s%s", *(const char **)(v9 + 16), v16);
v20 = trealloc(*(_QWORD *)(a5 + 112), 8LL * (*(_DWORD *)(a5 + 84) + 1));
*(_QWORD *)(a5 + 112) = v20;
if ( !v20 )
break;
v21 = (void (__fastcall *)(__int64, __int64, _QWORD, char *, __int64, _QWORD))*SPfrontEnd;
v22 = *(_DWORD *)(a5 + 84);
*(_DWORD *)(a5 + 84) = v22 + 1;
v21(a4, v20 + 8LL * v22, 0LL, s, 32LL, 0LL);
if ( &off_860 + 1 == (void **)++v15 )
{
v9 = *(_QWORD *)(v9 + 8);
if ( !v9 )
goto LABEL_9;
goto LABEL_21;
}
}
result = 8LL;
}
else
{
result = 0LL;
}
}
}
}
}
else
{
result = 0LL;
if ( a2 == 2 )
{
if ( a1 == 1 )
{
if ( a3 )
{
do
{
for ( i = *(_QWORD *)(v47 + 16); i; i = *(_QWORD *)(i + 8) )
{
NevalSrc(
&v54,
&v49,
a4,
2LL,
*(unsigned int *)(i + 40),
*(unsigned int *)(i + 28),
*(double *)(v47 + 136) * *(double *)(i + 472));
NevalSrc(
&v55,
&v50,
a4,
2LL,
*(unsigned int *)(i + 44),
*(unsigned int *)(i + 36),
*(double *)(v47 + 144) * *(double *)(i + 472));
v30 = *(double *)(*(_QWORD *)(a4 + 280) + 8LL * *(int *)(i + 24) + 40);
if ( v30 < 0.0 )
*(_QWORD *)&v30 ^= LC5;
NevalSrc(
&v56,
&v51,
a4,
2LL,
*(unsigned int *)(i + 40),
*(unsigned int *)(i + 44),
v30 * 0.6666666666666666);
NevalSrc(&v57, 0LL, a4, 3LL, *(unsigned int *)(i + 40), *(unsigned int *)(i + 44), 0.0);
v31 = *(double *)(v47 + 120);
v32 = *(double *)(v47 + 128);
v23 = *(double *)(*(_QWORD *)(a4 + 280) + 8LL * *(int *)(i + 24) + 24);
if ( v23 < 0.0 )
{
if ( v23 < -1.0e-38 )
*(_QWORD *)&v23 ^= LC5;
else
v23 = LC0;
}
else if ( v23 <= 1.0e-38 )
{
v23 = LC0;
}
v24 = log(v23);
v25 = exp(v32 * v24);
v26 = v31 * v25 / *(double *)a5 * v57;
v57 = v26;
if ( v26 <= 1.0e-38 )
v26 = LC0;
v52 = log(v26);
v27 = v54 + v55 + v56 + v57;
v58 = v27;
if ( v27 <= 1.0e-38 )
v27 = LC0;
v28 = log(v27);
v53 = v28;
*a6 = *a6 + v58;
if ( *(double *)(a5 + 16) == 0.0 )
{
*(_QWORD *)(i + 344) = v49;
*(_QWORD *)(i + 352) = v50;
*(_QWORD *)(i + 360) = v51;
*(double *)(i + 368) = v52;
*(double *)(i + 376) = v28;
if ( *(double *)a5 == *(double *)(*(_QWORD *)(a4 + 968) + 96LL) )
{
*(_QWORD *)(i + 384) = 0LL;
*(_QWORD *)(i + 424) = 0LL;
*(_QWORD *)(i + 392) = 0LL;
*(_QWORD *)(i + 432) = 0LL;
*(_QWORD *)(i + 400) = 0LL;
*(_QWORD *)(i + 440) = 0LL;
*(_QWORD *)(i + 408) = 0LL;
*(_QWORD *)(i + 448) = 0LL;
*(_QWORD *)(i + 416) = 0LL;
*(_QWORD *)(i + 456) = 0LL;
}
}
else
{
v33 = (double *)(i + 344);
v34 = (double *)&v49;
v35 = &v54;
do
{
v46 = Nintegrate(a5, *v35, *v34, *v33);
v36 = Nintegrate(
a5,
*v35 * *(double *)(a5 + 40),
*(double *)(a5 + 48) + *v34,
*(double *)(a5 + 48) + *v33);
*v33 = *v34;
*(double *)(a5 + 24) = v46 + *(double *)(a5 + 24);
*(double *)(a5 + 32) = v36 + *(double *)(a5 + 32);
if ( *(_DWORD *)(*(_QWORD *)(a4 + 968) + 64LL) )
{
v33[5] = v46 + v33[5];
*(double *)(i + 416) = v46 + *(double *)(i + 416);
v33[10] = v36 + v33[10];
*(double *)(i + 456) = v36 + *(double *)(i + 456);
}
++v33;
++v34;
++v35;
}
while ( (double *)(i + 376) != v33 );
}
if ( *(_DWORD *)(a5 + 88) )
{
v37 = (char *)&v54;
do
{
v38 = *(_QWORD *)(a5 + 96);
v39 = *(_DWORD *)(a5 + 80);
*(_DWORD *)(a5 + 80) = v39 + 1;
*(_QWORD *)(v38 + 8LL * v39) = *(_QWORD *)v37;
v37 += 8;
}
while ( v37 != &v59 );
}
}
result = *(_QWORD *)(v47 + 8);
v47 = result;
}
while ( result );
}
else
{
result = 0LL;
}
}
else
{
result = 0LL;
if ( a1 == 2 )
{
result = *(unsigned int *)(*(_QWORD *)(a4 + 968) + 64LL);
if ( (_DWORD)result )
{
if ( a3 )
{
do
{
for ( j = *(_QWORD **)(v47 + 16); j; j = (_QWORD *)j[1] )
{
v41 = j + 48;
do
{
v42 = *(_QWORD *)(a5 + 96);
v43 = *(_DWORD *)(a5 + 80);
*(_DWORD *)(a5 + 80) = v43 + 1;
*(_QWORD *)(v42 + 8LL * v43) = *v41;
v44 = *(_QWORD *)(a5 + 96);
v45 = *(_DWORD *)(a5 + 80);
*(_DWORD *)(a5 + 80) = v45 + 1;
*(_QWORD *)(v44 + 8LL * v45) = v41[5];
++v41;
}
while ( v41 != j + 53 );
}
result = *(_QWORD *)(v47 + 8);
v47 = result;
}
while ( result );
}
else
{
result = 0LL;
}
}
}
}
}
}
return result;
}

original_code:
int
JFETnoise (int mode, int operation, GENmodel *genmodel, CKTcircuit *ckt, Ndata *data,
           double *OnDens)
{
    JFETmodel *firstModel = (JFETmodel *) genmodel;
    JFETmodel *model;
    JFETinstance *inst;
    char name[64];
    double tempOnoise;
    double tempInoise;
    double noizDens[5];
    double lnNdens[5];
    int i;
    static char *JFETnNames[5] = {
 "_rd",
 "_rs",
 "_id",
 "_1overf",
 ""
    };
    for (model=firstModel; model != ((void *)0); model=model->JFETnextModel) {
 for (inst=model->JFETinstances; inst != ((void *)0); inst=inst->JFETnextInstance) {
     if (inst->JFETowner != ARCHme) continue;
     switch (operation) {
     case 1:
  if (((NOISEAN*)ckt->CKTcurJob)->NStpsSm != 0) {
      switch (mode) {
      case 1:
   for (i=0; i < 5; i++) {
       (void)sprintf(name,"onoise_%s%s",inst->JFETname,JFETnNames[i]);
data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid));
if (!data->namelist) return(8);
  (*(SPfrontEnd->IFnewUid))(ckt,
   &(data->namelist[data->numPlots++]),
   (IFuid)((void *)0),name,0x20,(void **)((void *)0));
   }
   break;
      case 2:
   for (i=0; i < 5; i++) {
       (void)sprintf(name,"onoise_total_%s%s",inst->JFETname,JFETnNames[i]);
data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid));
if (!data->namelist) return(8);
  (*(SPfrontEnd->IFnewUid))(ckt,
   &(data->namelist[data->numPlots++]),
   (IFuid)((void *)0),name,0x20,(void **)((void *)0));
       (void)sprintf(name,"inoise_total_%s%s",inst->JFETname,JFETnNames[i]);
data->namelist = (IFuid *)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid));
if (!data->namelist) return(8);
  (*(SPfrontEnd->IFnewUid))(ckt,
   &(data->namelist[data->numPlots++]),
   (IFuid)((void *)0),name,0x20,(void **)((void *)0));
   }
   break;
      }
  }
  break;
     case 2:
  switch (mode) {
  case 1:
      NevalSrc(&noizDens[0],&lnNdens[0],
     ckt,2,inst->JFETdrainPrimeNode,inst->JFETdrainNode,
     model->JFETdrainConduct * inst->JFETarea * inst->JFETm);
      NevalSrc(&noizDens[1],&lnNdens[1],
     ckt,2,inst->JFETsourcePrimeNode,
     inst->JFETsourceNode,model->JFETsourceConduct
                                 * inst->JFETarea * inst->JFETm);
      NevalSrc(&noizDens[2],&lnNdens[2],
     ckt,2,inst->JFETdrainPrimeNode,
     inst->JFETsourcePrimeNode,
     (2.0/3.0 * inst->JFETm * fabs(*(ckt->CKTstates[0] + inst->JFETstate+5))));
      NevalSrc(&noizDens[3],(double*)((void *)0),ckt,
     3,inst->JFETdrainPrimeNode,
     inst->JFETsourcePrimeNode, (double)0.0);
      noizDens[3] *= inst->JFETm * model->JFETfNcoef *
     exp(model->JFETfNexp *
     log(((fabs(*(ckt->CKTstates[0] + inst->JFETstate+3))) > (1E-38) ? (fabs(*(ckt->CKTstates[0] + inst->JFETstate+3))) : (1E-38)))) /
     data->freq;
      lnNdens[3] =
     log(((noizDens[3]) > (1E-38) ? (noizDens[3]) : (1E-38)));
      noizDens[4] = noizDens[0] +
           noizDens[1] +
           noizDens[2] +
           noizDens[3];
      lnNdens[4] =
     log(((noizDens[4]) > (1E-38) ? (noizDens[4]) : (1E-38)));
      *OnDens += noizDens[4];
      if (data->delFreq == 0.0) {
   for (i=0; i < 5; i++) {
       inst->JFETnVar[0][i] = lnNdens[i];
   }
   if (data->freq == ((NOISEAN*)ckt->CKTcurJob)->NstartFreq) {
       for (i=0; i < 5; i++) {
    inst->JFETnVar[1][i] = 0.0;
    inst->JFETnVar[2][i] = 0.0;
       }
   }
      } else {
   for (i=0; i < 5; i++) {
       if (i != 4) {
    tempOnoise = Nintegrate(noizDens[i], lnNdens[i],
          inst->JFETnVar[0][i], data);
    tempInoise = Nintegrate(noizDens[i] * data->GainSqInv ,
          lnNdens[i] + data->lnGainInv,
          inst->JFETnVar[0][i] + data->lnGainInv,
          data);
    inst->JFETnVar[0][i] = lnNdens[i];
    data->outNoiz += tempOnoise;
    data->inNoise += tempInoise;
    if (((NOISEAN*)ckt->CKTcurJob)->NStpsSm != 0) {
        inst->JFETnVar[1][i] += tempOnoise;
        inst->JFETnVar[1][4] += tempOnoise;
        inst->JFETnVar[2][i] += tempInoise;
        inst->JFETnVar[2][4] += tempInoise;
                                }
       }
   }
      }
      if (data->prtSummary) {
   for (i=0; i < 5; i++) {
       data->outpVector[data->outNumber++] = noizDens[i];
   }
      }
      break;
  case 2:
      if (((NOISEAN*)ckt->CKTcurJob)->NStpsSm != 0) {
   for (i=0; i < 5; i++) {
       data->outpVector[data->outNumber++] = inst->JFETnVar[1][i];
       data->outpVector[data->outNumber++] = inst->JFETnVar[2][i];
   }
      }
      break;
  }
  break;
     case 3:
  return (0);
  break;
     }
 }
    }
return(0);
}

canonical_original_code:
int JFETnoise(int mode, int operation, struct sGENmodel *genmodel, struct CKTcircuit *ckt, struct Ndata *data, double *OnDens)
{
    struct sJFETmodel *firstModel = (JFETmodel *) genmodel;
    struct sJFETmodel *model;
    struct sJFETinstance *inst;
    char name[64];
    double tempOnoise;
    double tempInoise;
    double noizDens[5];
    double lnNdens[5];
    int i;
    static char *JFETnNames[5] = {
 "_rd",
 "_rs",
 "_id",
 "_1overf",
 ""
    };
    for (model=firstModel; model != ((void *)0); model=model->JFETnextModel) {
 for (inst=model->JFETinstances; inst != ((void *)0); inst=inst->JFETnextInstance) {
     if (inst->JFETowner != ARCHme) continue;
     switch (operation) {
     case 1:
  if (((struct NOISEAN *)ckt->CKTcurJob)->NStpsSm != 0) {
      switch (mode) {
      case 1:
   for (i=0; i < 5; i++) {
       (void)sprintf(name,"onoise_%s%s",inst->JFETname,JFETnNames[i]);
data->namelist = (char **)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid));
if (!data->namelist) return(8);
  (*(SPfrontEnd->IFnewUid))(ckt,
   &(data->namelist[data->numPlots++]),
   (IFuid)((void *)0),name,0x20,(void **)((void *)0));
   }
   break;
      case 2:
   for (i=0; i < 5; i++) {
       (void)sprintf(name,"onoise_total_%s%s",inst->JFETname,JFETnNames[i]);
data->namelist = (char **)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid));
if (!data->namelist) return(8);
  (*(SPfrontEnd->IFnewUid))(ckt,
   &(data->namelist[data->numPlots++]),
   (IFuid)((void *)0),name,0x20,(void **)((void *)0));
       (void)sprintf(name,"inoise_total_%s%s",inst->JFETname,JFETnNames[i]);
data->namelist = (char **)trealloc((char *)data->namelist,(data->numPlots + 1)*sizeof(IFuid));
if (!data->namelist) return(8);
  (*(SPfrontEnd->IFnewUid))(ckt,
   &(data->namelist[data->numPlots++]),
   (IFuid)((void *)0),name,0x20,(void **)((void *)0));
   }
   break;
      }
  }
  break;
     case 2:
  switch (mode) {
  case 1:
      NevalSrc(&noizDens[0],&lnNdens[0],
     ckt,2,inst->JFETdrainPrimeNode,inst->JFETdrainNode,
     model->JFETdrainConduct * inst->JFETarea * inst->JFETm);
      NevalSrc(&noizDens[1],&lnNdens[1],
     ckt,2,inst->JFETsourcePrimeNode,
     inst->JFETsourceNode,model->JFETsourceConduct
                                 * inst->JFETarea * inst->JFETm);
      NevalSrc(&noizDens[2],&lnNdens[2],
     ckt,2,inst->JFETdrainPrimeNode,
     inst->JFETsourcePrimeNode,
     (2.0/3.0 * inst->JFETm * fabs(*(ckt->CKTstates[0] + inst->JFETstate+5))));
      NevalSrc(&noizDens[3],(double *)((void *)0),ckt,
     3,inst->JFETdrainPrimeNode,
     inst->JFETsourcePrimeNode, (double)0.0);
      noizDens[3] *= inst->JFETm * model->JFETfNcoef *
     exp(model->JFETfNexp *
     log(((fabs(*(ckt->CKTstates[0] + inst->JFETstate+3))) > (1E-38) ? (fabs(*(ckt->CKTstates[0] + inst->JFETstate+3))) : (1E-38)))) /
     data->freq;
      lnNdens[3] =
     log(((noizDens[3]) > (1E-38) ? (noizDens[3]) : (1E-38)));
      noizDens[4] = noizDens[0] +
           noizDens[1] +
           noizDens[2] +
           noizDens[3];
      lnNdens[4] =
     log(((noizDens[4]) > (1E-38) ? (noizDens[4]) : (1E-38)));
      *OnDens += noizDens[4];
      if (data->delFreq == 0.0) {
   for (i=0; i < 5; i++) {
       inst->JFETnVar[0][i] = lnNdens[i];
   }
   if (data->freq == ((struct NOISEAN *)ckt->CKTcurJob)->NstartFreq) {
       for (i=0; i < 5; i++) {
    inst->JFETnVar[1][i] = 0.0;
    inst->JFETnVar[2][i] = 0.0;
       }
   }
      } else {
   for (i=0; i < 5; i++) {
       if (i != 4) {
    tempOnoise = Nintegrate(noizDens[i], lnNdens[i],
          inst->JFETnVar[0][i], data);
    tempInoise = Nintegrate(noizDens[i] * data->GainSqInv ,
          lnNdens[i] + data->lnGainInv,
          inst->JFETnVar[0][i] + data->lnGainInv,
          data);
    inst->JFETnVar[0][i] = lnNdens[i];
    data->outNoiz += tempOnoise;
    data->inNoise += tempInoise;
    if (((struct NOISEAN *)ckt->CKTcurJob)->NStpsSm != 0) {
        inst->JFETnVar[1][i] += tempOnoise;
        inst->JFETnVar[1][4] += tempOnoise;
        inst->JFETnVar[2][i] += tempInoise;
        inst->JFETnVar[2][4] += tempInoise;
                                }
       }
   }
      }
      if (data->prtSummary) {
   for (i=0; i < 5; i++) {
       data->outpVector[data->outNumber++] = noizDens[i];
   }
      }
      break;
  case 2:
      if (((struct NOISEAN *)ckt->CKTcurJob)->NStpsSm != 0) {
   for (i=0; i < 5; i++) {
       data->outpVector[data->outNumber++] = inst->JFETnVar[1][i];
       data->outpVector[data->outNumber++] = inst->JFETnVar[2][i];
   }
      }
      break;
  }
  break;
     case 3:
  return (0);
  break;
     }
 }
    }
return(0);
}

variable_types: mode int

variable_types: operation int

variable_types: struct sGENmodel { int GENmodType; struct sGENmodel *GENnextModel; struct sGENinstance { struct sGENmodel *GENmodPtr; struct sGENinstance *GENnextInstance; char *GENname; int GENowner; int GENstate; int GENnode1; int GENnode2; int GENnode3; int GENnode4; int GENnode5; int GENnode6; int GENnode7; } *GENinstances; char *GENmodName; } *

variable_types: struct CKTcircuit { struct sGENmodel **CKThead; struct STATistics { int STATnumIter; int STATtranIter; int STAToldIter; int STATtimePts; int STATaccepted; int STATrejected; double STATtotAnalTime; double STATloadTime; double STATdecompTime; double STATsolveTime; double STATreorderTime; double STATcombineTime; double STATsyncTime; double STATtranTime; double STATtranDecompTime; double STATtranSolveTime; double STATtranLoadTime; double STATtranTruncTime; double STATtranCombTime; double STATtranSyncTime; double STATacTime; double STATacDecompTime; double STATacSolveTime; double STATacLoadTime; double STATacCombTime; double STATacSyncTime; } *CKTstat; double *CKTstates[8]; double CKTtime; double CKTdelta; double CKTdeltaOld[7]; double CKTtemp; double CKTnomTemp; double CKTvt; double CKTag[7]; double CKTagp[7]; int CKTorder; int CKTmaxOrder; int CKTintegrateMethod; void *CKTmatrix; int CKTniState; double *CKTrhs; double *CKTrhsOld; double *CKTrhsSpare; double *CKTirhs; double *CKTirhsOld; double *CKTirhsSpare; double *CKTpred; double *CKTsols[8]; double *CKTrhsOp; double *CKTsenRhs; double *CKTseniRhs; int CKTmaxEqNum; int CKTcurrentAnalysis; struct sCKTnode { char *name; int type; int number; double ic; double nodeset; double *ptr; struct sCKTnode *next; unsigned int icGiven; unsigned int nsGiven; } *CKTnodes; struct sCKTnode *CKTlastNode; int CKTnumStates; long CKTmode; int CKTbypass; int CKTdcMaxIter; int CKTdcTrcvMaxIter; int CKTtranMaxIter; int CKTbreakSize; int CKTbreak; double CKTsaveDelta; double CKTminBreak; double *CKTbreaks; double CKTabstol; double CKTpivotAbsTol; double CKTpivotRelTol; double CKTreltol; double CKTchgtol; double CKTvoltTol; double CKTgmin; double CKTgshunt; double CKTdelmin; double CKTtrtol; double CKTfinalTime; double CKTstep; double CKTmaxStep; double CKTinitTime; double CKTomega; double CKTsrcFact; double CKTdiagGmin; int CKTnumSrcSteps; int CKTnumGminSteps; double CKTgminFactor; int CKTnoncon; double CKTdefaultMosM; double CKTdefaultMosL; double CKTdefaultMosW; double CKTdefaultMosAD; double CKTdefaultMosAS; unsigned int CKThadNodeset; unsigned int CKTfixLimit; unsigned int CKTnoOpIter; unsigned int CKTisSetup; struct sJOB { int JOBtype; struct sJOB *JOBnextJob; char *JOBname; } *CKTcurJob; struct SENstruct { int JOBtype; struct sJOB *JOBnextJob; char *JOBname; int SENnumVal; char **SENdevices; char **SENparmNames; unsigned int SENinitflag; unsigned int SENicflag; unsigned int SENstatus; unsigned int SENacpertflag; int SENmode; int SENparms; double SENpertfac; double **SEN_Sap; double **SEN_RHS; double **SEN_iRHS; int SENsize; void *SEN_Jacmat; double *SEN_parmVal; char **SEN_parmName; } *CKTsenInfo; double *CKTtimePoints; double *CKTdeltaList; int CKTtimeListSize; int CKTtimeIndex; int CKTsizeIncr; unsigned int CKTtryToCompact; unsigned int CKTbadMos3; unsigned int CKTkeepOpInfo; unsigned int CKTcopyNodesets; unsigned int CKTnodeDamping; double CKTabsDv; double CKTrelDv; int CKTtroubleNode; struct sGENinstance *CKTtroubleElt; } *

variable_types: struct Ndata { double freq; double lstFreq; double delFreq; double outNoiz; double inNoise; double GainSqInv; double lnGainInv; double lnFreq; double lnLastFreq; double delLnFreq; int outNumber; int numPlots; unsigned int prtSummary; double *outpVector; void *NplotPtr; char **namelist; } *

variable_types:
OnDens
double *

variable_types: struct sJFETmodel { int JFETmodType; struct sJFETmodel *JFETnextModel; struct sJFETinstance { struct sJFETmodel *JFETmodPtr; struct sJFETinstance *JFETnextInstance; char *JFETname; int JFETowner; int JFETstate; int JFETdrainNode; int JFETgateNode; int JFETsourceNode; int JFETdrainPrimeNode; int JFETsourcePrimeNode; double *JFETdrainDrainPrimePtr; double *JFETgateDrainPrimePtr; double *JFETgateSourcePrimePtr; double *JFETsourceSourcePrimePtr; double *JFETdrainPrimeDrainPtr; double *JFETdrainPrimeGatePtr; double *JFETdrainPrimeSourcePrimePtr; double *JFETsourcePrimeGatePtr; double *JFETsourcePrimeSourcePtr; double *JFETsourcePrimeDrainPrimePtr; double *JFETdrainDrainPtr; double *JFETgateGatePtr; double *JFETsourceSourcePtr; double *JFETdrainPrimeDrainPrimePtr; double *JFETsourcePrimeSourcePrimePtr; int JFETmode; double JFETdCoeffs[21]; double JFETnVar[3][5]; unsigned int JFEToff; unsigned int JFETareaGiven; unsigned int JFETmGiven; unsigned int JFETicVDSGiven; unsigned int JFETicVGSGiven; unsigned int JFETtempGiven; unsigned int JFETdtempGiven; double JFETarea; double JFETm; double JFETicVDS; double JFETicVGS; double JFETtemp; double JFETdtemp; double JFETtSatCur; double JFETtGatePot; double JFETtCGS; double JFETtCGD; double JFETcorDepCap; double JFETvcrit; double JFETf1; } *JFETinstances; char *JFETmodName; int JFETtype; double JFETthreshold; double JFETbeta; double JFETlModulation; double JFETdrainResist; double JFETsourceResist; double JFETcapGS; double JFETcapGD; double JFETgatePotential; double JFETgateSatCurrent; double JFETdepletionCapCoeff; double JFETfNcoef; double JFETfNexp; double JFETdrainConduct; double JFETsourceConduct; double JFETf2; double JFETf3; double JFETb; double JFETbFac; double JFETtnom; unsigned int JFETthresholdGiven; unsigned int JFETbetaGiven; unsigned int JFETlModulationGiven; unsigned int JFETdrainResistGiven; unsigned int JFETsourceResistGiven; unsigned int JFETcapGSGiven; unsigned int JFETcapGDGiven; unsigned int JFETgatePotentialGiven; unsigned int JFETgateSatCurrentGiven; unsigned int JFETdepletionCapCoeffGiven; unsigned int JFETbGiven; unsigned int JFETtnomGiven; unsigned int JFETfNcoefGiven; unsigned int JFETfNexpGiven; } *

variable_types: struct sJFETinstance { struct sJFETmodel { int JFETmodType; struct sJFETmodel *JFETnextModel; struct sJFETinstance *JFETinstances; char *JFETmodName; int JFETtype; double JFETthreshold; double JFETbeta; double JFETlModulation; double JFETdrainResist; double JFETsourceResist; double JFETcapGS; double JFETcapGD; double JFETgatePotential; double JFETgateSatCurrent; double JFETdepletionCapCoeff; double JFETfNcoef; double JFETfNexp; double JFETdrainConduct; double JFETsourceConduct; double JFETf2; double JFETf3; double JFETb; double JFETbFac; double JFETtnom; unsigned int JFETthresholdGiven; unsigned int JFETbetaGiven; unsigned int JFETlModulationGiven; unsigned int JFETdrainResistGiven; unsigned int JFETsourceResistGiven; unsigned int JFETcapGSGiven; unsigned int JFETcapGDGiven; unsigned int JFETgatePotentialGiven; unsigned int JFETgateSatCurrentGiven; unsigned int JFETdepletionCapCoeffGiven; unsigned int JFETbGiven; unsigned int JFETtnomGiven; unsigned int JFETfNcoefGiven; unsigned int JFETfNexpGiven; } *JFETmodPtr; struct sJFETinstance *JFETnextInstance; char *JFETname; int JFETowner; int JFETstate; int JFETdrainNode; int JFETgateNode; int JFETsourceNode; int JFETdrainPrimeNode; int JFETsourcePrimeNode; double *JFETdrainDrainPrimePtr; double *JFETgateDrainPrimePtr; double *JFETgateSourcePrimePtr; double *JFETsourceSourcePrimePtr; double *JFETdrainPrimeDrainPtr; double *JFETdrainPrimeGatePtr; double *JFETdrainPrimeSourcePrimePtr; double *JFETsourcePrimeGatePtr; double *JFETsourcePrimeSourcePtr; double *JFETsourcePrimeDrainPrimePtr; double *JFETdrainDrainPtr; double *JFETgateGatePtr; double *JFETsourceSourcePtr; double *JFETdrainPrimeDrainPrimePtr; double *JFETsourcePrimeSourcePrimePtr; int JFETmode; double JFETdCoeffs[21]; double JFETnVar[3][5]; unsigned int JFEToff; unsigned int JFETareaGiven; unsigned int JFETmGiven; unsigned int JFETicVDSGiven; unsigned int JFETicVGSGiven; unsigned int JFETtempGiven; unsigned int JFETdtempGiven; double JFETarea; double JFETm; double JFETicVDS; double JFETicVGS; double JFETtemp; double JFETdtemp; double JFETtSatCur; double JFETtGatePot; double JFETtCGS; double JFETtCGD; double JFETcorDepCap; double JFETvcrit; double JFETf1; } *

variable_types:
name
char [64]

variable_types: tempOnoise double

variable_types: tempInoise double

variable_types:
noizDens
double [5]

variable_types:
lnNdens
double [5]

variable_types: i int

variable_types:
JFETnNames
char *[5]

user_defined_types: struct NOISEAN { int JOBtype; struct sJOB *JOBnextJob; char *JOBname; void *output; void *outputRef; char *input; double NstartFreq; double NstopFreq; double NfreqDelta; double NsavFstp; double NsavOnoise; double NsavInoise; int NstpType; int NnumSteps; int NStpsSm; }