diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-19 13:24:21 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-19 13:24:21 -0800 |
commit | 443cc01782ac3845183990ef86fdfe3d650341c5 (patch) | |
tree | b0280be77bb19cd11898b55a2f4cc8feae5bc5dc /src/base | |
parent | 0656af22fd9291f208598dc960686bf01d006677 (diff) | |
download | abc-443cc01782ac3845183990ef86fdfe3d650341c5.tar.gz abc-443cc01782ac3845183990ef86fdfe3d650341c5.tar.bz2 abc-443cc01782ac3845183990ef86fdfe3d650341c5.zip |
Another corner-case bug in zeropo.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abc/abcNtk.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/base/abc/abcNtk.c b/src/base/abc/abcNtk.c index d58e9c72..e6a8a5ba 100644 --- a/src/base/abc/abcNtk.c +++ b/src/base/abc/abcNtk.c @@ -1462,9 +1462,10 @@ void Abc_NtkDropOneOutput( Abc_Ntk_t * pNtk, int iOutput ) { Abc_Obj_t * pObj, * pConst0, * pFaninNew; pObj = Abc_NtkPo( pNtk, iOutput ); - if ( Abc_ObjFanin0(pObj) == Abc_AigConst1(pNtk) && !Abc_ObjFaninC0(pObj) ) + if ( Abc_ObjFanin0(pObj) == Abc_AigConst1(pNtk) ) { - Abc_ObjXorFaninC( pObj, 0 ); + if ( !Abc_ObjFaninC0(pObj) ) + Abc_ObjXorFaninC( pObj, 0 ); return; } pConst0 = Abc_ObjNot( Abc_AigConst1(pNtk) ); |