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

(Re-)added option to disable lemma deletion in the smt_context.

This commit is contained in:
Christoph M. Wintersteiger 2017-08-23 12:14:19 +01:00
parent ed5058d225
commit 3e960eadd2
2 changed files with 295 additions and 292 deletions

View file

@ -52,7 +52,8 @@ enum restart_strategy {
enum lemma_gc_strategy {
LGC_FIXED,
LGC_GEOMETRIC,
LGC_AT_RESTART
LGC_AT_RESTART,
LGC_NONE
};
enum initial_activity {

View file

@ -2709,7 +2709,9 @@ namespace smt {
\brief Delete low activity lemmas
*/
inline void context::del_inactive_lemmas() {
if (m_fparams.m_lemma_gc_half)
if (m_fparams.m_lemma_gc_strategy == LGC_NONE)
return;
else if (m_fparams.m_lemma_gc_half)
del_inactive_lemmas1();
else
del_inactive_lemmas2();