mirror of
https://github.com/Z3Prover/z3
synced 2025-06-22 05:43:39 +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) {
|
if (all_unit) {
|
||||||
|
SASSERT(!intersection.is_currently_empty());
|
||||||
// Unit intervals from all constraints
|
// Unit intervals from all constraints
|
||||||
// => build constraint from intersection of forbidden intervals
|
// => build constraint from intersection of forbidden intervals
|
||||||
// z \not\in [l;u[ <=> z - l >= u - l
|
// z \not\in [l;u[ <=> z - l >= u - l
|
||||||
|
if (intersection.is_proper()) {
|
||||||
auto c_new = ule(intersection.hi() - intersection.lo(), z - intersection.lo());
|
auto c_new = ule(intersection.hi() - intersection.lo(), z - intersection.lo());
|
||||||
out_lits.push_back(c_new.blit());
|
out_lits.push_back(c_new.blit());
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
out_lits.shrink(out_lits_original_size);
|
out_lits.shrink(out_lits_original_size);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue