3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-10-16 20:40:27 +00:00

add find_two

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-12-17 19:41:09 -08:00
parent 3c035daaa6
commit 4e8bd4425f
3 changed files with 45 additions and 13 deletions

View file

@ -799,11 +799,7 @@ namespace polysat {
}
lbool viable::query_find_fallback(pvar v, univariate_solver& us, rational& lo, rational& hi) {
if (!us.find_min(lo))
return l_undef;
if (!us.find_max(hi))
return l_undef;
return l_true;
return us.find_two(lo, hi) ? l_true : l_undef;
}
lbool viable::query_min_fallback(pvar v, univariate_solver& us, rational& lo) {