Commit 0fa4c868 by Alan Mishchenko

Small bug in a recently added Satoko API.

parent 4b286feb
...@@ -354,7 +354,7 @@ int satoko_solve_assumptions(solver_t *s, int * plits, int nlits) ...@@ -354,7 +354,7 @@ int satoko_solve_assumptions(solver_t *s, int * plits, int nlits)
int satoko_solve_assumptions_limit(satoko_t *s, int * plits, int nlits, int nconflim) int satoko_solve_assumptions_limit(satoko_t *s, int * plits, int nlits, int nconflim)
{ {
int temp = s->opts.conf_limit, status; int temp = s->opts.conf_limit, status;
s->opts.conf_limit = s->stats.n_conflicts + nconflim; s->opts.conf_limit = nconflim ? s->stats.n_conflicts + nconflim : 0;
status = satoko_solve_assumptions(s, plits, nlits); status = satoko_solve_assumptions(s, plits, nlits);
s->opts.conf_limit = temp; s->opts.conf_limit = temp;
return status; return status;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment