mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 00:18:45 +00:00
fix gc
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
1e4681e0bc
commit
445546b684
1 changed files with 3 additions and 1 deletions
|
@ -1570,6 +1570,7 @@ namespace sat {
|
||||||
++m_stats.m_num_resolves;
|
++m_stats.m_num_resolves;
|
||||||
ext_justification_idx index = js.get_ext_justification_idx();
|
ext_justification_idx index = js.get_ext_justification_idx();
|
||||||
constraint& cnstr = index2constraint(index);
|
constraint& cnstr = index2constraint(index);
|
||||||
|
SASSERT(!cnstr.was_removed());
|
||||||
switch (cnstr.tag()) {
|
switch (cnstr.tag()) {
|
||||||
case card_t:
|
case card_t:
|
||||||
case pb_t: {
|
case pb_t: {
|
||||||
|
@ -2660,7 +2661,8 @@ namespace sat {
|
||||||
}
|
}
|
||||||
|
|
||||||
void ba_solver::gc() {
|
void ba_solver::gc() {
|
||||||
if (m_learned.size() >= 2 * m_constraints.size()) {
|
if (m_learned.size() >= 2 * m_constraints.size() &&
|
||||||
|
(s().at_search_lvl() || s().at_base_lvl())) {
|
||||||
for (auto & c : m_learned) update_psm(*c);
|
for (auto & c : m_learned) update_psm(*c);
|
||||||
std::stable_sort(m_learned.begin(), m_learned.end(), constraint_glue_psm_lt());
|
std::stable_sort(m_learned.begin(), m_learned.end(), constraint_glue_psm_lt());
|
||||||
gc_half("glue-psm");
|
gc_half("glue-psm");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue