mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 17:15:31 +00:00
fix model generation for tc/po
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
551d72b294
commit
6fee9b90cb
13 changed files with 117 additions and 177 deletions
|
@ -222,10 +222,8 @@ public:
|
|||
*/
|
||||
template<typename Key, typename Value>
|
||||
void reset_dealloc_values(obj_map<Key, Value*> & m) {
|
||||
typename obj_map<Key, Value*>::iterator it = m.begin();
|
||||
typename obj_map<Key, Value*>::iterator end = m.end();
|
||||
for (; it != end; ++it) {
|
||||
dealloc(it->m_value);
|
||||
for (auto & kv : m) {
|
||||
dealloc(kv.m_value);
|
||||
}
|
||||
m.reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue