3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

fix memory leak in SAT solver exposed by regression tests

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2016-01-06 11:47:45 -08:00
parent aec5a38b14
commit 00f3a1fe81
2 changed files with 0 additions and 3 deletions

View file

@ -461,7 +461,6 @@ namespace sat {
}
void solver::dettach_clause(clause & c) {
TRACE("sat", tout << c.id() << "\n";);
if (c.size() == 3)
dettach_ter_clause(c);
else

View file

@ -618,10 +618,8 @@ namespace smt {
template<typename Ext>
void theory_arith<Ext>::remove_fixed_vars_from_base() {
int num = get_num_vars();
//std::cout << "num vars " << num << "\n";
for (theory_var v = 0; v < num; v++) {
if (is_base(v) && is_fixed(v)) {
//std::cout << "fixed base " << v << " \n"; // << mk_pp(get_enode(v)->get_owner(), get_manager()) << "\n";
row const & r = m_rows[get_var_row(v)];
typename vector<row_entry>::const_iterator it = r.begin_entries();
typename vector<row_entry>::const_iterator end = r.end_entries();