mirror of https://github.com/YosysHQ/abc.git
Fixed "bm" command hang issue.
This commit is contained in:
parent
f0044175ee
commit
83a47278a9
|
|
@ -1909,15 +1909,14 @@ void bmGateWay( Abc_Ntk_t * pNtk1, Abc_Ntk_t * pNtk2, int p_equivalence )
|
||||||
}
|
}
|
||||||
|
|
||||||
if( iLastItem2 < Abc_NtkPiNum(pNtk2) )
|
if( iLastItem2 < Abc_NtkPiNum(pNtk2) )
|
||||||
{
|
|
||||||
iNumOfItemsAdded = iSplitByDep(pNtk2, iDep2, iMatch2, iGroup2, &iLastItem2, oGroup2);
|
iNumOfItemsAdded = iSplitByDep(pNtk2, iDep2, iMatch2, iGroup2, &iLastItem2, oGroup2);
|
||||||
|
else
|
||||||
|
iNumOfItemsAdded = 0;
|
||||||
|
|
||||||
if( oLastItem2 < Abc_NtkPoNum(pNtk2) )
|
if( oLastItem2 < Abc_NtkPoNum(pNtk2) )
|
||||||
oNumOfItemsAdded = oSplitByDep(pNtk2, oDep2, oMatch2, oGroup2, &oLastItem2, iGroup2);
|
oNumOfItemsAdded = oSplitByDep(pNtk2, oDep2, oMatch2, oGroup2, &oLastItem2, iGroup2);
|
||||||
else
|
else
|
||||||
oNumOfItemsAdded = 0;
|
oNumOfItemsAdded = 0;
|
||||||
}
|
|
||||||
else
|
|
||||||
iNumOfItemsAdded = 0;
|
|
||||||
|
|
||||||
if(!checkListConsistency(iMatch1, oMatch1, iMatch2, oMatch2, iLastItem1, oLastItem1, iLastItem2, oLastItem2))
|
if(!checkListConsistency(iMatch1, oMatch1, iMatch2, oMatch2, iLastItem1, oLastItem1, iLastItem2, oLastItem2))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue