diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2011-12-23 00:43:31 -0800 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2011-12-23 00:43:31 -0800 |
commit | 94174d0f041819a273208c5b5bbe3aee7a16e698 (patch) | |
tree | 3a72b0af2101eb866d7732de330d1d82bf24f0a5 /src/sat/bsat | |
parent | 9d2893040ea7c69f384b0735a1407e9d91f89e35 (diff) | |
download | abc-94174d0f041819a273208c5b5bbe3aee7a16e698.tar.gz abc-94174d0f041819a273208c5b5bbe3aee7a16e698.tar.bz2 abc-94174d0f041819a273208c5b5bbe3aee7a16e698.zip |
Transforming the solver to use different clause representation.
Diffstat (limited to 'src/sat/bsat')
-rw-r--r-- | src/sat/bsat/satSolver2.c | 4 | ||||
-rw-r--r-- | src/sat/bsat/satSolver2.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/sat/bsat/satSolver2.c b/src/sat/bsat/satSolver2.c index 0cda3295..7bb6336e 100644 --- a/src/sat/bsat/satSolver2.c +++ b/src/sat/bsat/satSolver2.c @@ -72,7 +72,7 @@ static const int var0 = 1; static const int var1 = 0; static const int varX = 3; -struct varinfo_t +struct varinfo2_t { // unsigned val : 2; // variable value unsigned pol : 1; // last polarity @@ -1263,7 +1263,7 @@ void sat_solver2_setnvars(sat_solver2* s,int n) while (s->cap < n) s->cap = s->cap*2+1; s->wlists = ABC_REALLOC(veci, s->wlists, s->cap*2); - s->vi = ABC_REALLOC(varinfo, s->vi, s->cap); + s->vi = ABC_REALLOC(varinfo2, s->vi, s->cap); s->levels = ABC_REALLOC(int, s->levels, s->cap); s->assigns = ABC_REALLOC(char, s->assigns, s->cap); s->trail = ABC_REALLOC(lit, s->trail, s->cap); diff --git a/src/sat/bsat/satSolver2.h b/src/sat/bsat/satSolver2.h index 21dc3b21..ebd999b1 100644 --- a/src/sat/bsat/satSolver2.h +++ b/src/sat/bsat/satSolver2.h @@ -80,7 +80,7 @@ extern void Sat_ProofCheck( sat_solver2 * s ); // Solver representation: struct varinfo_t; -typedef struct varinfo_t varinfo; +typedef struct varinfo2_t varinfo2; struct sat_solver2_t { @@ -125,7 +125,7 @@ struct sat_solver2_t veci claProofs; // clause proofs // internal state - varinfo * vi; // variable information + varinfo2 * vi; // variable information int* levels; // char* assigns; // lit* trail; // sequence of assignment and implications |