mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 03:27:52 +00:00
This commit is contained in:
parent
fea14245a0
commit
b016465ad2
6 changed files with 15 additions and 12 deletions
|
@ -699,9 +699,9 @@ namespace euf {
|
|||
return result;
|
||||
}
|
||||
|
||||
void solver::add_assumptions() {
|
||||
void solver::add_assumptions(sat::literal_set& assumptions) {
|
||||
for (auto* e : m_solvers)
|
||||
e->add_assumptions();
|
||||
e->add_assumptions(assumptions);
|
||||
}
|
||||
|
||||
bool solver::tracking_assumptions() {
|
||||
|
|
|
@ -276,7 +276,7 @@ namespace euf {
|
|||
bool propagated(literal l, ext_constraint_idx idx) override;
|
||||
bool unit_propagate() override;
|
||||
bool should_research(sat::literal_vector const& core) override;
|
||||
void add_assumptions() override;
|
||||
void add_assumptions(sat::literal_set& assumptions) override;
|
||||
bool tracking_assumptions() override;
|
||||
|
||||
void propagate(literal lit, ext_justification_idx idx);
|
||||
|
|
|
@ -279,13 +279,18 @@ namespace recfun {
|
|||
return true;
|
||||
}
|
||||
|
||||
void solver::add_assumptions() {
|
||||
void solver::add_assumptions(sat::literal_set& assumptions) {
|
||||
if (u().has_defs() || m_disabled_guards.empty()) {
|
||||
app_ref dlimit = m_util.mk_num_rounds_pred(m_num_rounds);
|
||||
TRACEFN("add_theory_assumption " << dlimit);
|
||||
s().assign_scoped(mk_literal(dlimit));
|
||||
for (auto g : m_disabled_guards)
|
||||
s().assign_scoped(~mk_literal(g));
|
||||
sat::literal assumption = mk_literal(dlimit);
|
||||
assumptions.insert(assumption);
|
||||
s().assign_scoped(assumption);
|
||||
for (auto g : m_disabled_guards) {
|
||||
assumption = ~mk_literal(g);
|
||||
assumptions.insert(assumption);
|
||||
s().assign_scoped(assumption);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -108,7 +108,7 @@ namespace recfun {
|
|||
bool is_shared(euf::theory_var v) const override { return true; }
|
||||
void init_search() override {}
|
||||
bool should_research(sat::literal_vector const& core) override;
|
||||
void add_assumptions() override;
|
||||
void add_assumptions(sat::literal_set& assumptions) override;
|
||||
bool tracking_assumptions() override { return true; }
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue