MESmAsk

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

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

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

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

decompiled_code:
__int64 __fastcall B2acLoad(__int64 a1, __int64 a2)
{
double v2; // xmm10_8
__int64 v3; // r14
__int64 v4; // rax
__int64 v5; // rdx
double v6; // xmm12_8
double v7; // xmm8_8
__int64 v8; // rcx
double *v9; // rsi
double v10; // xmm15_8
double v11; // xmm2_8
double v12; // xmm14_8
double v13; // xmm9_8
double v14; // xmm0_8
double v15; // xmm5_8
double v16; // xmm6_8
double v17; // xmm13_8
double v18; // xmm3_8
double v19; // rcx
double v20; // xmm7_8
double *v21; // r13
double *v22; // r12
double *v23; // rbp
double v24; // xmm1_8
double v25; // xmm13_8
double v26; // xmm15_8
double v27; // xmm0_8
double v28; // xmm5_8
double v29; // xmm6_8
double v30; // xmm15_8
double v31; // xmm3_8
double v32; // xmm2_8
double v33; // xmm6_8
double v34; // xmm1_8
double v35; // xmm14_8
double v36; // xmm15_8
double v37; // xmm13_8
double v38; // xmm14_8
double v39; // xmm0_8
double v40; // xmm4_8
__int64 v41; // rsi
double *v42; // rbx
double *v43; // r11
double *v44; // r10
double *v45; // r9
double *v46; // r8
double *v47; // rdi
double *v48; // rsi
double *v49; // r15
double v50; // xmm0_8
double *v51; // rcx
double v52; // xmm2_8
double v53; // xmm1_8
double *v54; // rdi
double v56; // [rsp+0h] [rbp-A8h]
double v57; // [rsp+8h] [rbp-A0h]
double v58; // [rsp+10h] [rbp-98h]
double v59; // [rsp+18h] [rbp-90h]
double v60; // [rsp+20h] [rbp-88h]
double v61; // [rsp+28h] [rbp-80h]
double v62; // [rsp+30h] [rbp-78h]
double v63; // [rsp+38h] [rbp-70h]
double v64; // [rsp+40h] [rbp-68h]
double v65; // [rsp+48h] [rbp-60h]
double v66; // [rsp+50h] [rbp-58h]
double v67; // [rsp+58h] [rbp-50h]
__int64 v68; // [rsp+60h] [rbp-48h]
__int64 v69; // [rsp+68h] [rbp-40h]

if ( a1 )
{
v2 = *(double *)(a2 + 888);
v3 = a1;
do
{
v4 = *(_QWORD *)(v3 + 16);
if ( v4 )
{
v5 = *(_QWORD *)(a2 + 280);
do
{
if ( *(int *)(v4 + 180) >= 0 )
{
v66 = 0.0;
v69 = LC0;
v68 = LC1;
v67 = *(double *)&LC1;
}
else
{
v67 = 0.0;
v69 = LC1;
v68 = LC0;
v66 = *(double *)&LC1;
}
v6 = *(double *)(v4 + 120);
v7 = *(double *)(v4 + 128);
v8 = 8 * (*(int *)(v4 + 24) + 7LL);
v9 = *(double **)(v4 + 184);
v10 = *(double *)(v5 + v8 + 168);
v59 = *(double *)(v5 + v8);
v56 = *(double *)(v5 + v8 + 152);
v62 = *(double *)(v5 + v8 + 24);
v58 = *(double *)(v5 + v8 + 128);
v11 = v9[40];
v12 = *(double *)(v5 + v8 + 176);
v13 = *(double *)(v5 + v8 + 32);
v14 = *(double *)(v5 + v8 + 88);
v60 = *(double *)(v5 + v8 + 8);
v15 = *(double *)(v5 + v8 + 104);
v16 = *(double *)(v5 + v8 + 96);
v57 = *(double *)(v5 + v8 + 112);
v17 = *(double *)(v5 + v8 + 184);
v18 = *(double *)(v5 + v8 + 120);
v61 = *(double *)(v5 + v8 + 16);
v63 = *(double *)(v5 + v8 + 136);
v19 = (v10 - v11) * v2;
v65 = v2 * v17;
v20 = v9[41];
v64 = (v63 + v12 + v11) * v2;
v21 = *(double **)(v4 + 224);
v22 = *(double **)(v4 + 232);
v23 = *(double **)(v4 + 240);
v24 = v57 + v14 + v10;
v25 = v17 + v58 + v15;
v26 = v16 + v18;
v27 = v14 + v11 + v20;
v28 = (v15 - v20) * v2;
v29 = v16 - v11;
v30 = v26 + v12;
v31 = (v18 - v63) * v2;
v32 = (v58 - v56) * v2;
v33 = v29 * v2;
v34 = COERCE_DOUBLE(COERCE_UNSIGNED_INT64(v24 + v20) ^ LC3) * v2;
v35 = v56 + v20 - v25;
v36 = COERCE_DOUBLE(*(_QWORD *)&v30 ^ LC3) * v2;
v37 = v9[42];
v38 = v35 * v2;
v39 = (v27 + v37) * v2;
v40 = (v57 - v37) * v2;
*(double *)(*(_QWORD *)(v4 + 208) + 8LL) = *(double *)(*(_QWORD *)(v4 + 208) + 8LL) + v39;
v41 = *(_QWORD *)(v4 + 256);
v21[1] = COERCE_DOUBLE(*(_QWORD *)&v40 ^ LC3) - v31 - v32 + v21[1];
v22[1] = v22[1] + v64;
v23[1] = v23[1] + v38;
*(double *)(v41 + 8) = COERCE_DOUBLE(*(_QWORD *)&v39 ^ LC3) - v33 - v28 + *(double *)(v41 + 8);
*(double *)(*(_QWORD *)(v4 + 264) + 8LL) = v33 + *(double *)(*(_QWORD *)(v4 + 264) + 8LL);
*(double *)(*(_QWORD *)(v4 + 272) + 8LL) = v28 + *(double *)(*(_QWORD *)(v4 + 272) + 8LL);
*(double *)(*(_QWORD *)(v4 + 320) + 8LL) = v40 + *(double *)(*(_QWORD *)(v4 + 320) + 8LL);
v42 = *(double **)(v4 + 288);
v43 = *(double **)(v4 + 296);
v44 = *(double **)(v4 + 328);
v45 = *(double **)(v4 + 352);
v46 = *(double **)(v4 + 304);
v47 = *(double **)(v4 + 336);
v48 = *(double **)(v4 + 360);
v49 = *(double **)(v4 + 200);
v42[1] = v31 + v42[1];
v43[1] = v32 + v43[1];
v44[1] = v19 + v44[1];
v50 = v19;
v51 = *(double **)(v4 + 368);
v45[1] = COERCE_DOUBLE(*(_QWORD *)&v50 ^ LC3) - v64 - v65 + v45[1];
v46[1] = v65 + v46[1];
v47[1] = v47[1] + v34;
v48[1] = COERCE_DOUBLE(*(_QWORD *)&v34 ^ LC3) - v36 - v38 + v48[1];
v51[1] = v36 + v51[1];
*v49 = *v49 + v7;
**(double **)(v4 + 216) = **(double **)(v4 + 216) + v6;
*v21 = v62 + v13 + *v21;
v52 = v66 * (v59 + v61);
v53 = (v59 + v61) * v67;
*v22 = v60 + v7 + v62 + v52 + *v22;
*v23 = v60 + v6 + v13 + v53 + *v23;
**(double **)(v4 + 248) = **(double **)(v4 + 248) - v7;
**(double **)(v4 + 280) = **(double **)(v4 + 280) - v6;
*v42 = *v42 - v62;
*v43 = *v43 - v13;
**(double **)(v4 + 312) = **(double **)(v4 + 312) - v7;
*v44 = v59 * *(double *)&v68 + *v44;
*v45 = v61 * *(double *)&v68 - v62 + *v45;
*v46 = COERCE_DOUBLE(*(_QWORD *)&v60 ^ LC3) - v53 + *v46;
*v47 = *v47 + v59 * *(double *)&v69;
v54 = *(double **)(v4 + 344);
v4 = *(_QWORD *)(v4 + 8);
*v54 = *v54 - v6;
*v48 = COERCE_DOUBLE(*(_QWORD *)&v13 ^ LC3) - v61 * *(double *)&v68 + *v48;
*v51 = COERCE_DOUBLE(*(_QWORD *)&v60 ^ LC3) - v52 + *v51;
}
while ( v4 );
}
v3 = *(_QWORD *)(v3 + 8);
}
while ( v3 );
}
return 0LL;
}

canonical_decompiled_code:
__int64 __fastcall func0(__int64 a1, __int64 a2)
{
double v2; // xmm10_8
__int64 v3; // r14
__int64 v4; // rax
__int64 v5; // rdx
double v6; // xmm12_8
double v7; // xmm8_8
__int64 v8; // rcx
double *v9; // rsi
double v10; // xmm15_8
double v11; // xmm2_8
double v12; // xmm14_8
double v13; // xmm9_8
double v14; // xmm0_8
double v15; // xmm5_8
double v16; // xmm6_8
double v17; // xmm13_8
double v18; // xmm3_8
double v19; // rcx
double v20; // xmm7_8
double *v21; // r13
double *v22; // r12
double *v23; // rbp
double v24; // xmm1_8
double v25; // xmm13_8
double v26; // xmm15_8
double v27; // xmm0_8
double v28; // xmm5_8
double v29; // xmm6_8
double v30; // xmm15_8
double v31; // xmm3_8
double v32; // xmm2_8
double v33; // xmm6_8
double v34; // xmm1_8
double v35; // xmm14_8
double v36; // xmm15_8
double v37; // xmm13_8
double v38; // xmm14_8
double v39; // xmm0_8
double v40; // xmm4_8
__int64 v41; // rsi
double *v42; // rbx
double *v43; // r11
double *v44; // r10
double *v45; // r9
double *v46; // r8
double *v47; // rdi
double *v48; // rsi
double *v49; // r15
double v50; // xmm0_8
double *v51; // rcx
double v52; // xmm2_8
double v53; // xmm1_8
double *v54; // rdi
double v56; // [rsp+0h] [rbp-A8h]
double v57; // [rsp+8h] [rbp-A0h]
double v58; // [rsp+10h] [rbp-98h]
double v59; // [rsp+18h] [rbp-90h]
double v60; // [rsp+20h] [rbp-88h]
double v61; // [rsp+28h] [rbp-80h]
double v62; // [rsp+30h] [rbp-78h]
double v63; // [rsp+38h] [rbp-70h]
double v64; // [rsp+40h] [rbp-68h]
double v65; // [rsp+48h] [rbp-60h]
double v66; // [rsp+50h] [rbp-58h]
double v67; // [rsp+58h] [rbp-50h]
__int64 v68; // [rsp+60h] [rbp-48h]
__int64 v69; // [rsp+68h] [rbp-40h]

if ( a1 )
{
v2 = *(double *)(a2 + 888);
v3 = a1;
do
{
v4 = *(_QWORD *)(v3 + 16);
if ( v4 )
{
v5 = *(_QWORD *)(a2 + 280);
do
{
if ( *(int *)(v4 + 180) >= 0 )
{
v66 = 0.0;
v69 = LC0;
v68 = LC1;
v67 = *(double *)&LC1;
}
else
{
v67 = 0.0;
v69 = LC1;
v68 = LC0;
v66 = *(double *)&LC1;
}
v6 = *(double *)(v4 + 120);
v7 = *(double *)(v4 + 128);
v8 = 8 * (*(int *)(v4 + 24) + 7LL);
v9 = *(double **)(v4 + 184);
v10 = *(double *)(v5 + v8 + 168);
v59 = *(double *)(v5 + v8);
v56 = *(double *)(v5 + v8 + 152);
v62 = *(double *)(v5 + v8 + 24);
v58 = *(double *)(v5 + v8 + 128);
v11 = v9[40];
v12 = *(double *)(v5 + v8 + 176);
v13 = *(double *)(v5 + v8 + 32);
v14 = *(double *)(v5 + v8 + 88);
v60 = *(double *)(v5 + v8 + 8);
v15 = *(double *)(v5 + v8 + 104);
v16 = *(double *)(v5 + v8 + 96);
v57 = *(double *)(v5 + v8 + 112);
v17 = *(double *)(v5 + v8 + 184);
v18 = *(double *)(v5 + v8 + 120);
v61 = *(double *)(v5 + v8 + 16);
v63 = *(double *)(v5 + v8 + 136);
v19 = (v10 - v11) * v2;
v65 = v2 * v17;
v20 = v9[41];
v64 = (v63 + v12 + v11) * v2;
v21 = *(double **)(v4 + 224);
v22 = *(double **)(v4 + 232);
v23 = *(double **)(v4 + 240);
v24 = v57 + v14 + v10;
v25 = v17 + v58 + v15;
v26 = v16 + v18;
v27 = v14 + v11 + v20;
v28 = (v15 - v20) * v2;
v29 = v16 - v11;
v30 = v26 + v12;
v31 = (v18 - v63) * v2;
v32 = (v58 - v56) * v2;
v33 = v29 * v2;
v34 = COERCE_DOUBLE(COERCE_UNSIGNED_INT64(v24 + v20) ^ LC3) * v2;
v35 = v56 + v20 - v25;
v36 = COERCE_DOUBLE(*(_QWORD *)&v30 ^ LC3) * v2;
v37 = v9[42];
v38 = v35 * v2;
v39 = (v27 + v37) * v2;
v40 = (v57 - v37) * v2;
*(double *)(*(_QWORD *)(v4 + 208) + 8LL) = *(double *)(*(_QWORD *)(v4 + 208) + 8LL) + v39;
v41 = *(_QWORD *)(v4 + 256);
v21[1] = COERCE_DOUBLE(*(_QWORD *)&v40 ^ LC3) - v31 - v32 + v21[1];
v22[1] = v22[1] + v64;
v23[1] = v23[1] + v38;
*(double *)(v41 + 8) = COERCE_DOUBLE(*(_QWORD *)&v39 ^ LC3) - v33 - v28 + *(double *)(v41 + 8);
*(double *)(*(_QWORD *)(v4 + 264) + 8LL) = v33 + *(double *)(*(_QWORD *)(v4 + 264) + 8LL);
*(double *)(*(_QWORD *)(v4 + 272) + 8LL) = v28 + *(double *)(*(_QWORD *)(v4 + 272) + 8LL);
*(double *)(*(_QWORD *)(v4 + 320) + 8LL) = v40 + *(double *)(*(_QWORD *)(v4 + 320) + 8LL);
v42 = *(double **)(v4 + 288);
v43 = *(double **)(v4 + 296);
v44 = *(double **)(v4 + 328);
v45 = *(double **)(v4 + 352);
v46 = *(double **)(v4 + 304);
v47 = *(double **)(v4 + 336);
v48 = *(double **)(v4 + 360);
v49 = *(double **)(v4 + 200);
v42[1] = v31 + v42[1];
v43[1] = v32 + v43[1];
v44[1] = v19 + v44[1];
v50 = v19;
v51 = *(double **)(v4 + 368);
v45[1] = COERCE_DOUBLE(*(_QWORD *)&v50 ^ LC3) - v64 - v65 + v45[1];
v46[1] = v65 + v46[1];
v47[1] = v47[1] + v34;
v48[1] = COERCE_DOUBLE(*(_QWORD *)&v34 ^ LC3) - v36 - v38 + v48[1];
v51[1] = v36 + v51[1];
*v49 = *v49 + v7;
**(double **)(v4 + 216) = **(double **)(v4 + 216) + v6;
*v21 = v62 + v13 + *v21;
v52 = v66 * (v59 + v61);
v53 = (v59 + v61) * v67;
*v22 = v60 + v7 + v62 + v52 + *v22;
*v23 = v60 + v6 + v13 + v53 + *v23;
**(double **)(v4 + 248) = **(double **)(v4 + 248) - v7;
**(double **)(v4 + 280) = **(double **)(v4 + 280) - v6;
*v42 = *v42 - v62;
*v43 = *v43 - v13;
**(double **)(v4 + 312) = **(double **)(v4 + 312) - v7;
*v44 = v59 * *(double *)&v68 + *v44;
*v45 = v61 * *(double *)&v68 - v62 + *v45;
*v46 = COERCE_DOUBLE(*(_QWORD *)&v60 ^ LC3) - v53 + *v46;
*v47 = *v47 + v59 * *(double *)&v69;
v54 = *(double **)(v4 + 344);
v4 = *(_QWORD *)(v4 + 8);
*v54 = *v54 - v6;
*v48 = COERCE_DOUBLE(*(_QWORD *)&v13 ^ LC3) - v61 * *(double *)&v68 + *v48;
*v51 = COERCE_DOUBLE(*(_QWORD *)&v60 ^ LC3) - v52 + *v51;
}
while ( v4 );
}
v3 = *(_QWORD *)(v3 + 8);
}
while ( v3 );
}
return 0LL;
}

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

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; }