mirror of
https://github.com/Z3Prover/z3
synced 2025-04-11 19:53:34 +00:00
parent
193a99da29
commit
ca4a78f2ab
|
@ -178,6 +178,8 @@ void asserted_formulas::get_assertions(ptr_vector<expr> & result) const {
|
|||
}
|
||||
|
||||
void asserted_formulas::push_scope() {
|
||||
reduce();
|
||||
commit();
|
||||
SASSERT(inconsistent() || m_qhead == m_formulas.size() || m.canceled());
|
||||
TRACE("asserted_formulas_scopes", tout << "before push: " << m_scopes.size() << "\n";);
|
||||
m_scoped_substitution.push();
|
||||
|
@ -278,8 +280,6 @@ void asserted_formulas::reduce() {
|
|||
flush_cache();
|
||||
CASSERT("well_sorted",check_well_sorted());
|
||||
|
||||
// display(std::cout);
|
||||
// exit(0);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -82,7 +82,7 @@ namespace smt {
|
|||
unsigned nf = 0, nc = 0, ns = 0, bound = 2000, n = 0;
|
||||
for (bool_var v : vars) {
|
||||
if (!ctx.bool_var2expr(v)) continue;
|
||||
literal lit(v, false);
|
||||
literal lit(v, false);
|
||||
ctx.push_scope();
|
||||
ctx.assign(lit, b_justification::mk_axiom(), true);
|
||||
ctx.propagate();
|
||||
|
|
Loading…
Reference in a new issue