3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-08 00:05:46 +00:00

Fixed potential SAT solver cleanup problem. Renamed functions for consistency. Relates to #570.

This commit is contained in:
Christoph M. Wintersteiger 2016-11-10 17:06:55 +00:00
parent 520e868add
commit bfaa9ddf63
6 changed files with 13 additions and 9 deletions

View file

@ -239,7 +239,7 @@ namespace sat {
m_counter *= 2;
}
CASSERT("probing", s.check_invariant());
free_memory();
finalize();
return r;
}
@ -255,9 +255,10 @@ namespace sat {
// TODO
}
void probing::free_memory() {
void probing::finalize() {
m_assigned.finalize();
m_to_assert.finalize();
m_cached_bins.finalize();
}
void probing::collect_statistics(statistics & st) const {