3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-23 04:38:53 +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:44:55 -08:00
parent da63ac809e
commit aec5a38b14
10 changed files with 82 additions and 30 deletions

View file

@ -4025,8 +4025,9 @@ namespace smt {
return false;
}
case 1: {
if (m_qmanager->is_shared(n))
if (m_qmanager->is_shared(n)) {
return true;
}
// the variabe is shared if the equivalence class of n
// contains a parent application.
@ -4071,7 +4072,8 @@ namespace smt {
// the theories of (array int int) and (array (array int int) int).
// Remark: The inconsistency is not going to be detected if they are
// not marked as shared.
return get_theory(th_id)->is_shared(l->get_th_var());
bool result = get_theory(th_id)->is_shared(l->get_th_var());
return result;
}
default:
return true;