3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-08 00:05:46 +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

@ -26,7 +26,7 @@ Revision History:
//
// -----------------------------------
namespace occurs_namespace {
namespace {
struct found {};
struct proc {
@ -49,27 +49,26 @@ namespace occurs_namespace {
void operator()(quantifier const * n) { }
};
};
}
// Return true if n1 occurs in n2
bool occurs(expr * n1, expr * n2) {
occurs_namespace::proc p(n1);
proc p(n1);
try {
quick_for_each_expr(p, n2);
}
catch (const occurs_namespace::found &) {
catch (const found &) {
return true;
}
return false;
}
bool occurs(func_decl * d, expr * n) {
occurs_namespace::decl_proc p(d);
decl_proc p(d);
try {
quick_for_each_expr(p, n);
}
catch (const occurs_namespace::found &) {
catch (const found &) {
return true;
}
return false;