diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-18 11:03:32 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2013-05-18 11:03:32 -0700 |
commit | f9da2c790f68462fd68924c94ecf6f02d442632a (patch) | |
tree | 9d8fb12b346b065018c490704efac4050e6974ac /src/sat/bsat | |
parent | 0328488bdf845b711f74d2e1a30cbab4f63de825 (diff) | |
download | abc-f9da2c790f68462fd68924c94ecf6f02d442632a.tar.gz abc-f9da2c790f68462fd68924c94ecf6f02d442632a.tar.bz2 abc-f9da2c790f68462fd68924c94ecf6f02d442632a.zip |
SAT variable profiling.
Diffstat (limited to 'src/sat/bsat')
-rw-r--r-- | src/sat/bsat/satClause.h | 4 | ||||
-rw-r--r-- | src/sat/bsat/satSolver.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sat/bsat/satClause.h b/src/sat/bsat/satClause.h index 6a034326..0b1756ff 100644 --- a/src/sat/bsat/satClause.h +++ b/src/sat/bsat/satClause.h @@ -35,8 +35,8 @@ ABC_NAMESPACE_HEADER_START //#define LEARNT_MAX_START_DEFAULT 0 #define LEARNT_MAX_START_DEFAULT 10000 -#define LEARNT_MAX_INCRE_DEFAULT 2000 -#define LEARNT_MAX_RATIO_DEFAULT 80 +#define LEARNT_MAX_INCRE_DEFAULT 1000 +#define LEARNT_MAX_RATIO_DEFAULT 50 //////////////////////////////////////////////////////////////////////// /// STRUCTURE DEFINITIONS /// diff --git a/src/sat/bsat/satSolver.c b/src/sat/bsat/satSolver.c index 31d4b0df..50df6a84 100644 --- a/src/sat/bsat/satSolver.c +++ b/src/sat/bsat/satSolver.c @@ -1039,7 +1039,7 @@ void sat_solver_setnvars(sat_solver* s,int n) s->activity = ABC_REALLOC(unsigned, s->activity, s->cap); s->activity2 = ABC_REALLOC(unsigned, s->activity2,s->cap); #endif - s->pFreqs = ABC_REALLOC(char, s->tags, s->cap); + s->pFreqs = ABC_REALLOC(char, s->pFreqs, s->cap); if ( s->factors ) s->factors = ABC_REALLOC(double, s->factors, s->cap); @@ -1331,7 +1331,7 @@ void sat_solver_reducedb(sat_solver* s) // report the results TimeTotal += clock() - clk; -// if ( s->fVerbose ) + if ( s->fVerbose ) { Abc_Print(1, "reduceDB: Keeping %7d out of %7d clauses (%5.2f %%) ", s->stats.learnts, nLearnedOld, 100.0 * s->stats.learnts / nLearnedOld ); |