3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-12 12:08:18 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2020-03-03 12:39:25 -08:00
parent 794c09425e
commit 2989d9c241
2 changed files with 6 additions and 1 deletions

View file

@ -3681,7 +3681,7 @@ namespace sat {
SASSERT(num_scopes <= scope_lvl());
unsigned new_lvl = scope_lvl() - num_scopes;
scope & s = m_scopes[new_lvl];
m_inconsistent = false;
m_inconsistent = false; // TBD: use model seems to make this redundant: s.m_inconsistent;
unassign_vars(s.m_trail_lim, new_lvl);
m_scope_lvl -= num_scopes;
m_scopes.shrink(new_lvl);
@ -3766,6 +3766,7 @@ namespace sat {
//
void solver::user_push() {
pop_to_base_level();
literal lit;
bool_var new_v = mk_var(true, false);
lit = literal(new_v, false);

View file

@ -572,6 +572,10 @@ public:
private:
lbool internalize_goal(goal_ref& g, dep2asm_t& dep2asm, bool is_lemma) {
m_solver.pop_to_base_level();
if (m_solver.inconsistent())
return l_false;
m_pc.reset();
m_subgoals.reset();
init_preprocess();