mirror of
https://github.com/Z3Prover/z3
synced 2025-04-22 16:45:31 +00:00
fix
This commit is contained in:
parent
c3e7bd34d0
commit
ee208efdc5
1 changed files with 5 additions and 2 deletions
|
@ -1245,11 +1245,14 @@ namespace polysat {
|
|||
}
|
||||
|
||||
if (all_unit) {
|
||||
SASSERT(!intersection.is_currently_empty());
|
||||
// Unit intervals from all constraints
|
||||
// => build constraint from intersection of forbidden intervals
|
||||
// z \not\in [l;u[ <=> z - l >= u - l
|
||||
auto c_new = ule(intersection.hi() - intersection.lo(), z - intersection.lo());
|
||||
out_lits.push_back(c_new.blit());
|
||||
if (intersection.is_proper()) {
|
||||
auto c_new = ule(intersection.hi() - intersection.lo(), z - intersection.lo());
|
||||
out_lits.push_back(c_new.blit());
|
||||
}
|
||||
return;
|
||||
} else {
|
||||
out_lits.shrink(out_lits_original_size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue