3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-29 20:05:51 +00:00

throttle ackerman on arrays

This commit is contained in:
Nikolaj Bjorner 2022-01-01 15:33:33 -08:00
parent a20b577b2f
commit 84f514a4f4
8 changed files with 54 additions and 6 deletions

View file

@ -751,6 +751,18 @@ namespace euf {
}
}
bool solver::enable_ackerman_axioms(expr* e) const {
euf::enode* n = get_enode(e);
if (!n)
return false;
for (auto const& thv : enode_th_vars(n)) {
auto* th = m_id2solver.get(thv.get_id(), nullptr);
if (th && !th->enable_ackerman_axioms(n))
return false;
}
return true;
}
void solver::pre_simplify() {
for (auto* e : m_solvers)
e->pre_simplify();