3
0
Fork 0
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:
Nikolaj Bjorner 2019-04-11 11:39:27 -07:00
parent 551d72b294
commit 6fee9b90cb
13 changed files with 117 additions and 177 deletions

View file

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