mirror of https://github.com/YosysHQ/abc.git
Bug fix in stadard cell library representation.
This commit is contained in:
parent
1d25ae3b1a
commit
99e7d1d193
|
|
@ -159,8 +159,15 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk,
|
||||||
iDsdLit = 0;
|
iDsdLit = 0;
|
||||||
Vec_IntForEachEntry( vNodFanin, iNodFanin, k )
|
Vec_IntForEachEntry( vNodFanin, iNodFanin, k )
|
||||||
{
|
{
|
||||||
if ( iNodFanin == 0 && iDsdLit < Vec_IntSize(vDsdLits) )
|
if ( iNodFanin == 0 )
|
||||||
{
|
{
|
||||||
|
if ( iDsdLit >= Vec_IntSize(vDsdLits) )
|
||||||
|
{
|
||||||
|
Vec_IntFree( vPerm );
|
||||||
|
Vec_IntFree( vDsdLits );
|
||||||
|
Vec_IntFree( vNodFanin );
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
iDsdFanin = Vec_IntEntry( vDsdLits, iDsdLit++ );
|
iDsdFanin = Vec_IntEntry( vDsdLits, iDsdLit++ );
|
||||||
Vec_IntPush( vPerm, iDsdFanin );
|
Vec_IntPush( vPerm, iDsdFanin );
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue