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:
parent
b40c2b2926
commit
796689f708
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue