3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-23 17:15:31 +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;

View file

@ -25,6 +25,8 @@ Revision History:
#include "util/warning.h"
#include "ast/ast_smt2_pp.h"
namespace {
struct well_sorted_proc {
ast_manager & m_manager;
bool m_error;
@ -76,6 +78,8 @@ struct well_sorted_proc {
}
};
}
bool is_well_sorted(ast_manager const & m, expr * n) {
well_sorted_proc p(const_cast<ast_manager&>(m));
for_each_expr(p, n);