3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-03 09:50:23 +00:00

remove unused file & hide a few symbols

This commit is contained in:
Nuno Lopes 2020-01-31 17:13:28 +00:00
parent 35aa98436f
commit d79692b185
14 changed files with 58 additions and 297 deletions

View file

@ -25,7 +25,7 @@ bool uses_theory(expr * n, family_id fid) {
return uses_theory(n, fid, visited);
}
namespace uses_theory_ns {
namespace {
struct found {};
struct proc {
family_id m_fid;
@ -34,16 +34,15 @@ namespace uses_theory_ns {
void operator()(app * n) { if (n->get_family_id() == m_fid) throw found(); }
void operator()(quantifier * n) {}
};
};
}
bool uses_theory(expr * n, family_id fid, expr_mark & visited) {
uses_theory_ns::proc p(fid);
proc p(fid);
try {
for_each_expr(p, visited, n);
}
catch (const uses_theory_ns::found &) {
catch (const found &) {
return true;
}
return false;
}