Suggested bug fix in 'amap'.

This commit is contained in:
Alan Mishchenko 2018-09-13 11:47:38 +03:00
parent 1f93bfb9af
commit d05fe039e1
1 changed files with 3 additions and 0 deletions

View File

@ -242,8 +242,11 @@ Amap_Gat_t * Amap_LibFindGate( Amap_Lib_t * p, unsigned uTruth )
Amap_Gat_t * pGate;
int i;
Vec_PtrForEachEntry( Amap_Gat_t *, p->vSorted, pGate, i )
{
if (( pGate == NULL ) || ( pGate->pFunc == NULL )) continue;
if ( pGate->nPins <= 5 && pGate->pFunc[0] == uTruth )
return pGate;
}
return NULL;
}