From 46223f903b69349135ccb1345720f2b4d6530a71 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Wed, 7 Oct 2015 17:48:07 -0700 Subject: Two fixes in 'dsd_filter'. --- src/base/abci/abc.c | 3 ++- src/map/if/ifDsd.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/base/abci/abc.c b/src/base/abci/abc.c index 8e7e418c..8133440b 100644 --- a/src/base/abci/abc.c +++ b/src/base/abci/abc.c @@ -16805,7 +16805,8 @@ int Abc_CommandDsdFilter( Abc_Frame_t * pAbc, int argc, char ** argv ) If_DsdManCleanMarks( pDsd, fVerbose ); if ( fInvMarks ) If_DsdManInvertMarks( pDsd, fVerbose ); - Id_DsdManTuneThresh( pDsd, fUnate, fThresh, fThreshHeuristic, fVerbose ); + else + Id_DsdManTuneThresh( pDsd, fUnate, fThresh, fThreshHeuristic, fVerbose ); return 0; usage: diff --git a/src/map/if/ifDsd.c b/src/map/if/ifDsd.c index e05e9a6f..5d9077c3 100644 --- a/src/map/if/ifDsd.c +++ b/src/map/if/ifDsd.c @@ -2772,7 +2772,7 @@ void Id_DsdManTuneThresh( If_DsdMan_t * p, int fUnate, int fThresh, int fThreshH word * pTruth, Perm; int i, nVars, Value; abctime clk = Abc_Clock(); - assert( fUnate != fThresh || fUnate != fThreshHeuristic ); + assert( fUnate + fThresh + fThreshHeuristic <= 1 ); if ( p->nObjsPrev > 0 ) printf( "Starting the tuning process from object %d (out of %d).\n", p->nObjsPrev, Vec_PtrSize(&p->vObjs) ); // clean the attributes -- cgit v1.2.3