3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-12 22:20:54 +00:00

testing mbi

This commit is contained in:
Nikolaj Bjorner 2020-12-26 13:49:52 -08:00
parent d8eba2d72f
commit 374ae52d70
8 changed files with 101 additions and 118 deletions

View file

@ -37,6 +37,8 @@ void expr_safe_replace::insert(expr* src, expr* dst) {
}
void expr_safe_replace::operator()(expr_ref_vector& es) {
if (empty())
return;
expr_ref val(m);
for (unsigned i = 0; i < es.size(); ++i) {
(*this)(es.get(i), val);
@ -65,6 +67,10 @@ expr* expr_safe_replace::cache_find(expr* a) {
void expr_safe_replace::operator()(expr* e, expr_ref& res) {
if (empty()) {
res = e;
return;
}
m_todo.push_back(e);
expr* a, *b;