From 5d580c05de6d6275dba2fd991837bef4cbd835f5 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Tue, 7 Apr 2020 13:14:31 -0700 Subject: Adding option to &saveaig to compare AIGs by node count. --- src/base/abci/abc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 ); -- cgit v1.2.3