mirror of https://github.com/YosysHQ/abc.git
Corner-case bug fix in balancing.
This commit is contained in:
parent
233e12610a
commit
a5e93ff075
|
|
@ -81,6 +81,8 @@ void Dar_BalanceUniqify( Aig_Obj_t * pObj, Vec_Ptr_t * vNodes, int fExor )
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
Vec_PtrShrink( vNodes, k );
|
Vec_PtrShrink( vNodes, k );
|
||||||
|
if ( Vec_PtrSize(vNodes) < 2 )
|
||||||
|
return;
|
||||||
// check that there is no duplicates
|
// check that there is no duplicates
|
||||||
pTemp = (Aig_Obj_t *)Vec_PtrEntry( vNodes, 0 );
|
pTemp = (Aig_Obj_t *)Vec_PtrEntry( vNodes, 0 );
|
||||||
Vec_PtrForEachEntryStart( Aig_Obj_t *, vNodes, pTempNext, i, 1 )
|
Vec_PtrForEachEntryStart( Aig_Obj_t *, vNodes, pTempNext, i, 1 )
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue