Adding option to &saveaig to compare AIGs by node count.

This commit is contained in:
Alan Mishchenko 2020-04-07 13:14:31 -07:00
parent b661fdeee7
commit 5d580c05de
1 changed files with 1 additions and 1 deletions

View File

@ -30622,7 +30622,7 @@ int Abc_CommandAbc9SaveAig( Abc_Frame_t * pAbc, int argc, char ** argv )
Abc_Print( -1, "Empty network.\n" );
return 1;
}
if ( pAbc->pGiaSaved != NULL && Gia_ManAndNum(pAbc->pGiaSaved) <= Gia_ManAndNum(pAbc->pGia) )
if ( fArea && pAbc->pGiaSaved != NULL && Gia_ManAndNum(pAbc->pGiaSaved) <= Gia_ManAndNum(pAbc->pGia) )
return 0;
// save the design as best
Gia_ManStopP( &pAbc->pGiaSaved );