mirror of
https://github.com/Z3Prover/z3
synced 2025-08-11 13:40:52 +00:00
revert my mess with the ast hashtable
will share results form the experiments later
This commit is contained in:
parent
4f9117a921
commit
bcad4d9435
4 changed files with 6 additions and 4 deletions
|
@ -1667,6 +1667,8 @@ public:
|
|||
bool are_equal(expr * a, expr * b) const;
|
||||
|
||||
bool are_distinct(expr * a, expr * b) const;
|
||||
|
||||
bool contains(ast * a) const { return m_ast_table.contains(a); }
|
||||
|
||||
bool is_lambda_def(quantifier* q) const { return q->get_qid() == m_lambda_def; }
|
||||
void add_lambda_def(func_decl* f, quantifier* q);
|
||||
|
|
|
@ -76,9 +76,9 @@ public:
|
|||
template<typename T>
|
||||
T * translate(T const * n) {
|
||||
if (&from() == &to()) return const_cast<T*>(n);
|
||||
// A Valentine? SASSERT(!n || from().contains(const_cast<T*>(n)));
|
||||
SASSERT(!n || from().contains(const_cast<T*>(n)));
|
||||
ast * r = process(n);
|
||||
// Pretty please SASSERT((!n && !r) || to().contains(const_cast<ast*>(r)));
|
||||
SASSERT((!n && !r) || to().contains(const_cast<ast*>(r)));
|
||||
return static_cast<T*>(r);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue