3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-08-05 10:50:24 +00:00

revert my mess with the ast hashtable

will share results form the experiments later
This commit is contained in:
Nuno Lopes 2021-02-17 14:29:07 +00:00
parent 4f9117a921
commit bcad4d9435
4 changed files with 6 additions and 4 deletions

View file

@ -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);
}