mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 02:04:43 +00:00
Separate constraint creation from activation; add sign/polarity to constraints (#5217)
* Separate constraint creation from activation * Basic recursive handling of disjunctive lemmas for unit tests * Set learned constraint to true immediately * Preliminary support for negated constraints
This commit is contained in:
parent
2fac9e6e66
commit
9e505d60f0
12 changed files with 244 additions and 73 deletions
|
@ -39,6 +39,10 @@ namespace polysat {
|
|||
return s.m_viable[m_var].is_false();
|
||||
}
|
||||
|
||||
bool var_constraint::is_currently_true(solver& s) {
|
||||
return !s.m_viable[m_var].is_false();
|
||||
}
|
||||
|
||||
void var_constraint::narrow(solver& s) {
|
||||
s.intersect_viable(m_var, m_viable);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue