diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2008-04-11 08:01:00 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2008-04-11 08:01:00 -0700 |
commit | 651a32cdc379d2341c631b719ed9af16ce5a66c9 (patch) | |
tree | 9c4ffb213ac4a958db8134e21c5e83bafe48005b /src/aig/nwk/nwkObj.c | |
parent | c645bac3663c265470024b44ed91b0afdbe59b88 (diff) | |
download | abc-651a32cdc379d2341c631b719ed9af16ce5a66c9.tar.gz abc-651a32cdc379d2341c631b719ed9af16ce5a66c9.tar.bz2 abc-651a32cdc379d2341c631b719ed9af16ce5a66c9.zip |
Version abc80411
Diffstat (limited to 'src/aig/nwk/nwkObj.c')
-rw-r--r-- | src/aig/nwk/nwkObj.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/aig/nwk/nwkObj.c b/src/aig/nwk/nwkObj.c index 6d1f0428..58587f07 100644 --- a/src/aig/nwk/nwkObj.c +++ b/src/aig/nwk/nwkObj.c @@ -154,10 +154,8 @@ void Nwk_ManDeleteNode( Nwk_Obj_t * pObj ) Vec_Ptr_t * vNodes = pObj->pMan->vTemp; Nwk_Obj_t * pTemp; int i; - // delete fanins and fanouts - Nwk_ObjCollectFanouts( pObj, vNodes ); - Vec_PtrForEachEntry( vNodes, pTemp, i ) - Nwk_ObjDeleteFanin( pTemp, pObj ); + assert( Nwk_ObjFanoutNum(pObj) == 0 ); + // delete fanins Nwk_ObjCollectFanins( pObj, vNodes ); Vec_PtrForEachEntry( vNodes, pTemp, i ) Nwk_ObjDeleteFanin( pObj, pTemp ); |