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:
parent
35aa98436f
commit
d79692b185
14 changed files with 58 additions and 297 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue