diff options
author | Alan Mishchenko <alanmi@berkeley.edu> | 2017-09-06 08:33:34 -0700 |
---|---|---|
committer | Alan Mishchenko <alanmi@berkeley.edu> | 2017-09-06 08:33:34 -0700 |
commit | 0fa4c868990596a6385debc94f09f3aa73c7832d (patch) | |
tree | ee93953e639a8d765219a7052f1a62db7f29364e /src/sat | |
parent | 4b286febe0742221b65fbc08f5a61726cffc2b56 (diff) | |
download | abc-0fa4c868990596a6385debc94f09f3aa73c7832d.tar.gz abc-0fa4c868990596a6385debc94f09f3aa73c7832d.tar.bz2 abc-0fa4c868990596a6385debc94f09f3aa73c7832d.zip |
Small bug in a recently added Satoko API.
Diffstat (limited to 'src/sat')
-rw-r--r-- | src/sat/satoko/solver_api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sat/satoko/solver_api.c b/src/sat/satoko/solver_api.c index 975066a4..a0b26b5c 100644 --- a/src/sat/satoko/solver_api.c +++ b/src/sat/satoko/solver_api.c @@ -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 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); s->opts.conf_limit = temp; return status; |