3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 10:25:18 +00:00

#1948 remove memory allocation in nlsat::solver::~solver

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-12-11 09:08:53 -08:00
parent b40c2b2926
commit 796689f708

View file

@ -190,7 +190,7 @@ namespace nlsat {
}
~imp() {
reset();
clear();
}
void mk_true_bvar() {
@ -230,6 +230,11 @@ namespace nlsat {
m_assignment.reset();
}
void clear() {
undo_until_size(0);
del_clauses();
del_unref_atoms();
}
void checkpoint() {
if (!m_rlimit.inc()) throw solver_exception(m_rlimit.get_cancel_msg());