3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

remove 'change' just return

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-09-21 08:53:00 -07:00
parent 1020f38e1a
commit 0888f92efd
2 changed files with 6 additions and 4 deletions

View file

@ -157,6 +157,8 @@ namespace polysat {
UNREACHABLE(); // we don't follow the regular loop when backjumping
return false;
}
UNREACHABLE();
return false;
}
bool conflict::is_relevant(sat::literal lit) const {

View file

@ -22,10 +22,9 @@ namespace polysat {
{}
bool simplify_clause::apply(clause& cl) {
bool changed = false;
if (try_unilinear_subsumption(cl))
changed = true;
return changed;
if (try_constant_subsumptions(cl))
return true;
return false;
}
pdd simplify_clause::abstract(pdd const& p, pdd& v) {
@ -80,6 +79,7 @@ namespace polysat {
entry.valid = true;
}
/**
* Test simple subsumption between univariate and linear literals, i.e.,
* the case where both literals can be represented by a single contiguous forbidden interval.