3
0
Fork 0
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:
Jakob Rath 2021-04-26 18:55:58 +02:00 committed by GitHub
parent 2fac9e6e66
commit 9e505d60f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 244 additions and 73 deletions

View file

@ -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);
}