diff options
author | Bruno Schmitt <bruno@oschmitt.com> | 2018-02-20 20:31:39 +0100 |
---|---|---|
committer | Bruno Schmitt <bruno@oschmitt.com> | 2018-02-20 20:31:39 +0100 |
commit | eb4bee3e1dabffc90deb5966954f946637d59d13 (patch) | |
tree | 77911168721630330537a2b14d5acafbba42053c /src/sat | |
parent | 76b00a2d3e14efe21a086ec401db4ab08a6f287a (diff) | |
download | abc-eb4bee3e1dabffc90deb5966954f946637d59d13.tar.gz abc-eb4bee3e1dabffc90deb5966954f946637d59d13.tar.bz2 abc-eb4bee3e1dabffc90deb5966954f946637d59d13.zip |
Small fix in satoko.
Diffstat (limited to 'src/sat')
-rw-r--r-- | src/sat/satoko/solver.c | 1 | ||||
-rw-r--r-- | src/sat/satoko/solver.h | 3 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/sat/satoko/solver.c b/src/sat/satoko/solver.c index 6ea1a0b4..b1596345 100644 --- a/src/sat/satoko/solver.c +++ b/src/sat/satoko/solver.c @@ -521,7 +521,6 @@ void solver_cancel_until(solver_t *s, unsigned level) for (i = vec_uint_size(s->trail); i --> vec_uint_at(s->trail_lim, level);) { unsigned var = lit2var(vec_uint_at(s->trail, i)); - vec_char_assign(s->polarity, var, vec_char_at(s->assigns, var)); vec_char_assign(s->assigns, var, SATOKO_VAR_UNASSING); vec_uint_assign(s->reasons, var, UNDEF); if (!heap_in_heap(s->var_order, var)) diff --git a/src/sat/satoko/solver.h b/src/sat/satoko/solver.h index 1a20632f..52a81163 100644 --- a/src/sat/satoko/solver.h +++ b/src/sat/satoko/solver.h @@ -209,8 +209,7 @@ static inline int solver_enqueue(solver_t *s, unsigned lit, unsigned reason) unsigned var = lit2var(lit); vec_char_assign(s->assigns, var, lit_polarity(lit)); - if ( solver_dlevel(s) == 0 ) - vec_char_assign(s->polarity, var, lit_polarity(lit)); + vec_char_assign(s->polarity, var, lit_polarity(lit)); vec_uint_assign(s->levels, var, solver_dlevel(s)); vec_uint_assign(s->reasons, var, reason); vec_uint_push_back(s->trail, lit); |