diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2020-04-07 13:14:31 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2020-04-07 13:14:31 -0700 |
commit | 5d580c05de6d6275dba2fd991837bef4cbd835f5 (patch) | |
tree | e7988e66b6a337f7dd4f30e1b15e2419c2f37548 | |
parent | b661fdeee70ecc4b06fc15e90bad9e60048c8f14 (diff) | |
download | abc-5d580c05de6d6275dba2fd991837bef4cbd835f5.tar.gz abc-5d580c05de6d6275dba2fd991837bef4cbd835f5.tar.bz2 abc-5d580c05de6d6275dba2fd991837bef4cbd835f5.zip |
Adding option to &saveaig to compare AIGs by node count.
-rw-r--r-- | src/base/abci/abc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 46a77748..fd239185 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -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 ); |