mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 00:55:31 +00:00
adding argument restriction to mbqi, fix tracking of m_src/m_dst for expr_safe_replace and avoid resetting the cache.
This commit is contained in:
parent
24321e311b
commit
e2fbd05fe7
6 changed files with 159 additions and 58 deletions
|
@ -114,6 +114,17 @@ namespace mbp {
|
|||
|
||||
static void mark_rec(expr_mark& visited, expr* e);
|
||||
static void mark_rec(expr_mark& visited, expr_ref_vector const& es);
|
||||
|
||||
/**
|
||||
* mark sub-terms in e whether they contain a variable from vars.
|
||||
*/
|
||||
void mark_non_ground(app_ref_vector const& vars, expr* e) {
|
||||
for (app* v : vars)
|
||||
m_non_ground.mark(v);
|
||||
mark_non_ground(e);
|
||||
}
|
||||
|
||||
bool is_non_ground(expr* t) const { return m_non_ground.is_marked(t); }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue