mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +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
|
@ -1323,7 +1323,7 @@ extern "C" {
|
|||
SET_ERROR_CODE(Z3_INVALID_ARG, nullptr);
|
||||
RETURN_Z3(nullptr);
|
||||
}
|
||||
// yo! SASSERT(mk_c(c)->m().contains(to_ast(a)));
|
||||
SASSERT(mk_c(c)->m().contains(to_ast(a)));
|
||||
ast_translation translator(mk_c(c)->m(), mk_c(target)->m());
|
||||
ast * _result = translator(to_ast(a));
|
||||
mk_c(target)->save_ast_trail(_result);
|
||||
|
|
|
@ -224,7 +224,7 @@ namespace api {
|
|||
|
||||
|
||||
void context::save_ast_trail(ast * n) {
|
||||
// cherry on top? SASSERT(m().contains(n));
|
||||
SASSERT(m().contains(n));
|
||||
if (m_user_ref_count) {
|
||||
// Corner case bug: n may be in m_last_result, and this is the only reference to n.
|
||||
// When, we execute reset() it is deleted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue