diff options
Diffstat (limited to 'src/opt/res/resWin.c')
-rw-r--r-- | src/opt/res/resWin.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opt/res/resWin.c b/src/opt/res/resWin.c index b5fe0641..fa74b219 100644 --- a/src/opt/res/resWin.c +++ b/src/opt/res/resWin.c @@ -243,6 +243,7 @@ void Res_WinAddMissing_rec( Res_Win_t * p, Abc_Obj_t * pObj ) return; if ( !Abc_NodeIsTravIdCurrent(pObj) || (int)pObj->Level <= p->nLevLeaves ) { + p->nLeavesPlus++; Vec_PtrPush( p->vLeaves, pObj ); pObj->fMarkA = 1; return; @@ -349,6 +350,7 @@ int Res_WinCompute( Abc_Obj_t * pNode, int nWinTfiMax, int nWinTfoMax, Res_Win_t p->pNode = pNode; p->nWinTfiMax = nWinTfiMax; p->nWinTfoMax = nWinTfoMax; + p->nLeavesPlus = 0; p->nLevLeaves = ABC_MAX( 0, ((int)p->pNode->Level) - p->nWinTfiMax - 1 ); // collect the nodes in TFI cone of pNode above the level of leaves (p->nLevLeaves) Res_WinCollectNodeTfi( p ); |