mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 15:55:46 +00:00
copy declarations
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
19fa5f8cb3
commit
0c9711aad7
6 changed files with 73 additions and 16 deletions
|
@ -37,11 +37,9 @@ void ast_translation::cleanup() {
|
|||
}
|
||||
|
||||
void ast_translation::reset_cache() {
|
||||
obj_map<ast, ast*>::iterator it = m_cache.begin();
|
||||
obj_map<ast, ast*>::iterator end = m_cache.end();
|
||||
for (; it != end; ++it) {
|
||||
m_from_manager.dec_ref(it->m_key);
|
||||
m_to_manager.dec_ref(it->m_value);
|
||||
for (auto & kv : m_cache) {
|
||||
m_from_manager.dec_ref(kv.m_key);
|
||||
m_to_manager.dec_ref(kv.m_value);
|
||||
}
|
||||
m_cache.reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue