summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mishchenko <alanmi@berkeley.edu>2015-10-07 17:48:07 -0700
committerAlan Mishchenko <alanmi@berkeley.edu>2015-10-07 17:48:07 -0700
commit46223f903b69349135ccb1345720f2b4d6530a71 (patch)
tree4f470d445a78aa4dfb8cadfa442c95d611d0e8be
parenta2692b70fb1d05029486f784bf364cea83cb6b47 (diff)
downloadabc-46223f903b69349135ccb1345720f2b4d6530a71.tar.gz
abc-46223f903b69349135ccb1345720f2b4d6530a71.tar.bz2
abc-46223f903b69349135ccb1345720f2b4d6530a71.zip
Two fixes in 'dsd_filter'.
-rw-r--r--src/base/abci/abc.c3
-rw-r--r--src/map/if/ifDsd.c2
2 files changed, 3 insertions, 2 deletions
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