mirror of https://github.com/YosysHQ/abc.git
Adding option to &saveaig to compare AIGs by node count.
This commit is contained in:
parent
b661fdeee7
commit
5d580c05de
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in New Issue