diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-11 09:10:34 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-02-11 09:10:34 -0800 |
commit | 2a214a9283e4a5e1540f64a0c29c11f505f7c464 (patch) | |
tree | 791c1d25c3f975076ee546ec50f8bcff9a7edc66 /src/base | |
parent | f74fb87dae78ecc87dd8f4929c5ca3d00701d47b (diff) | |
download | abc-2a214a9283e4a5e1540f64a0c29c11f505f7c464.tar.gz abc-2a214a9283e4a5e1540f64a0c29c11f505f7c464.tar.bz2 abc-2a214a9283e4a5e1540f64a0c29c11f505f7c464.zip |
Bug fix in zeropo.
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/abc/abcNtk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/base/abc/abcNtk.c b/src/base/abc/abcNtk.c index 166d79e6..821cca4c 100644 --- a/src/base/abc/abcNtk.c +++ b/src/base/abc/abcNtk.c @@ -1464,6 +1464,11 @@ 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) ) + { + Abc_ObjXorFaninC( pObj, 0 ); + return; + } pConst0 = Abc_ObjNot( Abc_AigConst1(pNtk) ); pFaninNew = Abc_ObjNotCond( pConst0, Abc_ObjFaninC0(pObj) ); Abc_ObjPatchFanin( pObj, Abc_ObjFanin0(pObj), pFaninNew ); |