3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-27 00:18:45 +00:00

fix sat model converter to work with incrementality

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2017-12-18 11:12:27 -08:00
parent a5b663c52d
commit c199344bbf
8 changed files with 198 additions and 200 deletions

View file

@ -324,6 +324,11 @@ namespace sat {
m_entries.append(src.m_entries);
}
void model_converter::flush(model_converter & src) {
m_entries.append(src.m_entries);
src.m_entries.reset();
}
void model_converter::collect_vars(bool_var_set & s) const {
for (entry const & e : m_entries) s.insert(e.m_var);
}