mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 07:45:46 +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
|
@ -29,16 +29,16 @@ namespace polysat {
|
|||
return *dynamic_cast<eq_constraint const*>(this);
|
||||
}
|
||||
|
||||
constraint* constraint::eq(unsigned lvl, pdd const& p, p_dependency_ref& d) {
|
||||
return alloc(eq_constraint, lvl, p, d);
|
||||
constraint* constraint::eq(unsigned lvl, bool_var bvar, csign_t sign, pdd const& p, p_dependency_ref& d) {
|
||||
return alloc(eq_constraint, lvl, bvar, sign, p, d);
|
||||
}
|
||||
|
||||
constraint* constraint::viable(unsigned lvl, pvar v, bdd const& b, p_dependency_ref& d) {
|
||||
return alloc(var_constraint, lvl, v, b, d);
|
||||
constraint* constraint::viable(unsigned lvl, bool_var bvar, csign_t sign, pvar v, bdd const& b, p_dependency_ref& d) {
|
||||
return alloc(var_constraint, lvl, bvar, sign, v, b, d);
|
||||
}
|
||||
|
||||
constraint* constraint::ule(unsigned lvl, pdd const& a, pdd const& b, p_dependency_ref& d) {
|
||||
return alloc(ule_constraint, lvl, a, b, d);
|
||||
constraint* constraint::ule(unsigned lvl, bool_var bvar, csign_t sign, pdd const& a, pdd const& b, p_dependency_ref& d) {
|
||||
return alloc(ule_constraint, lvl, bvar, sign, a, b, d);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue