mirror of
https://github.com/Z3Prover/z3
synced 2025-06-05 21:53:23 +00:00
Fix bug
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
3344151aca
commit
5d938a5fe2
1 changed files with 38 additions and 30 deletions
|
@ -4236,7 +4236,14 @@ namespace realclosure {
|
|||
bool refine_algebraic_interval(algebraic * a, unsigned prec) {
|
||||
save_interval_if_too_small(a, prec);
|
||||
if (a->sdt() != 0) {
|
||||
// we can't bisect the interval, since it contains more than one root.
|
||||
// We don't bisect the interval, since it contains more than one root.
|
||||
// To bisect this kind of interval we would have to use Tarski queries.
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
mpbqi & a_i = a->interval();
|
||||
if (a_i.lower_is_inf() || a_i.upper_is_inf()) {
|
||||
// we can't bisect the infinite intervals
|
||||
return false;
|
||||
}
|
||||
else {
|
||||
|
@ -4277,6 +4284,7 @@ namespace realclosure {
|
|||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool refine_algebraic_interval(rational_function_value * v, unsigned prec) {
|
||||
SASSERT(v->ext()->is_algebraic());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue