mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 07:45:46 +00:00
remove disjunctive lemma feature
This commit is contained in:
parent
fa3886136b
commit
02a38009b9
4 changed files with 2 additions and 36 deletions
|
@ -196,6 +196,7 @@ namespace polysat {
|
|||
}
|
||||
|
||||
bool constraint_manager::should_gc() {
|
||||
return false;
|
||||
// TODO control gc decay rate
|
||||
return m_constraints.size() > m_num_external + 100;
|
||||
}
|
||||
|
|
|
@ -59,7 +59,6 @@ namespace polysat {
|
|||
|
||||
lbool solver::check_sat() {
|
||||
LOG("Starting");
|
||||
m_disjunctive_lemma.reset();
|
||||
while (inc()) {
|
||||
m_stats.m_num_iterations++;
|
||||
LOG_H1("Next solving loop iteration (#" << m_stats.m_num_iterations << ")");
|
||||
|
@ -68,7 +67,6 @@ namespace polysat {
|
|||
COND_LOG(is_conflict(), "Conflict: " << m_conflict);
|
||||
IF_LOGGING(m_viable.log());
|
||||
if (!is_conflict() && m_constraints.should_gc()) m_constraints.gc(*this);
|
||||
if (pending_disjunctive_lemma()) { LOG_H2("UNDEF (handle lemma externally)"); return l_undef; }
|
||||
else if (is_conflict() && at_base_level()) { LOG_H2("UNSAT"); return l_false; }
|
||||
else if (is_conflict()) resolve_conflict();
|
||||
else if (can_propagate()) propagate();
|
||||
|
|
|
@ -86,8 +86,6 @@ namespace polysat {
|
|||
// Per constraint state
|
||||
constraint_manager m_constraints;
|
||||
|
||||
svector<sat::bool_var> m_disjunctive_lemma;
|
||||
|
||||
// Per variable information
|
||||
vector<rational> m_value; // assigned value
|
||||
vector<justification> m_justification; // justification for variable assignment
|
||||
|
@ -252,12 +250,6 @@ namespace polysat {
|
|||
*/
|
||||
lbool check_sat();
|
||||
|
||||
/**
|
||||
* Returns the disjunctive lemma that should be learned,
|
||||
* or an empty vector if check_sat() terminated for a different reason.
|
||||
*/
|
||||
svector<sat::bool_var> get_lemma() { return m_disjunctive_lemma; }
|
||||
bool pending_disjunctive_lemma() { return !m_disjunctive_lemma.empty(); }
|
||||
|
||||
/**
|
||||
* retrieve unsat core dependencies
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue