mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
wreckfun
This commit is contained in:
parent
612cc5cfba
commit
83f4a006c6
11 changed files with 402 additions and 219 deletions
|
@ -207,26 +207,6 @@ namespace q {
|
|||
return val;
|
||||
}
|
||||
|
||||
unsigned solver::get_max_generation(expr* e) const {
|
||||
unsigned g = 0;
|
||||
expr_fast_mark1 mark;
|
||||
m_todo.push_back(e);
|
||||
while (!m_todo.empty()) {
|
||||
e = m_todo.back();
|
||||
m_todo.pop_back();
|
||||
if (mark.is_marked(e))
|
||||
continue;
|
||||
mark.mark(e);
|
||||
euf::enode* n = ctx.get_egraph().find(e);
|
||||
if (n)
|
||||
g = std::max(g, n->generation());
|
||||
else if (is_app(e))
|
||||
for (expr* arg : *to_app(e))
|
||||
m_todo.push_back(arg);
|
||||
}
|
||||
return g;
|
||||
}
|
||||
|
||||
expr_ref_vector const& solver::expand(quantifier* q) {
|
||||
m_expanded.reset();
|
||||
if (is_forall(q))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue