mirror of https://github.com/YosysHQ/abc.git
Another corner-case bug in zeropo.
This commit is contained in:
parent
0656af22fd
commit
443cc01782
|
|
@ -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) );
|
||||
|
|
|
|||
Loading…
Reference in New Issue