3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

use the trail to undo add_term

Signed-off-by: Lev Nachmanson <levnach@hotmail.com>
This commit is contained in:
Lev Nachmanson 2025-01-29 16:56:41 -10:00 committed by Lev Nachmanson
parent 9c510018b3
commit 3e7e903d19
3 changed files with 16 additions and 9 deletions

View file

@ -1558,11 +1558,8 @@ namespace lp {
if (col.term() != nullptr) {
if (s.m_need_register_terms)
s.deregister_normalized_term(*col.term());
if (s.m_remove_term_callback)
s.m_remove_term_callback(col.term());
delete col.term();
s.m_terms.pop_back();
}
s.remove_last_column_from_tableau();
s.m_columns.pop_back();