Commit dfb43b2f by Alan Mishchenko

Fix a bug in 'zeropo'.

parent 5b6b7c5b
...@@ -1771,7 +1771,7 @@ void Abc_NtkDropOneOutput( Abc_Ntk_t * pNtk, int iOutput, int fSkipSweep, int fU ...@@ -1771,7 +1771,7 @@ void Abc_NtkDropOneOutput( Abc_Ntk_t * pNtk, int iOutput, int fSkipSweep, int fU
pObj = Abc_NtkPo( pNtk, iOutput ); pObj = Abc_NtkPo( pNtk, iOutput );
if ( Abc_ObjFanin0(pObj) == Abc_AigConst1(pNtk) ) if ( Abc_ObjFanin0(pObj) == Abc_AigConst1(pNtk) )
{ {
if ( !Abc_ObjFaninC0(pObj) ) if ( !Abc_ObjFaninC0(pObj) ^ fUseConst1 )
Abc_ObjXorFaninC( pObj, 0 ); Abc_ObjXorFaninC( pObj, 0 );
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment