Commit 871684d2 by Baruch Sterin

pyabc changes with main branch

parents b879786e 99e7d1d1
......@@ -159,8 +159,15 @@ Vec_Int_t * Amap_LibDeriveGatePerm_rec( Amap_Lib_t * pLib, Kit_DsdNtk_t * pNtk,
iDsdLit = 0;
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++ );
Vec_IntPush( vPerm, iDsdFanin );
continue;
......
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