mirror of
https://github.com/Z3Prover/z3
synced 2025-08-15 07:15:26 +00:00
don't reinit assumptions when the solver is unsat. fixes #1502
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
41e0a12678
commit
9279cbfbac
2 changed files with 9 additions and 15 deletions
|
@ -1139,7 +1139,7 @@ namespace sat {
|
|||
}
|
||||
|
||||
void solver::reinit_assumptions() {
|
||||
if (tracking_assumptions() && scope_lvl() == 0) {
|
||||
if (tracking_assumptions() && scope_lvl() == 0 && !inconsistent()) {
|
||||
TRACE("sat", tout << m_assumptions << "\n";);
|
||||
push();
|
||||
for (unsigned i = 0; !inconsistent() && i < m_user_scope_literals.size(); ++i) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue