mirror of
https://github.com/Z3Prover/z3
synced 2025-06-08 23:23:23 +00:00
fix lack of warning/error for unbounded objectives in context of quantifiers #1382
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
d7042c234f
commit
8357210d3c
4 changed files with 27 additions and 5 deletions
|
@ -161,6 +161,14 @@ namespace opt {
|
|||
return l_true;
|
||||
}
|
||||
|
||||
bool optsmt::is_unbounded(unsigned obj_index, bool is_maximize) {
|
||||
if (is_maximize) {
|
||||
return !m_upper[obj_index].is_finite();
|
||||
}
|
||||
else {
|
||||
return !m_lower[obj_index].is_finite();
|
||||
}
|
||||
}
|
||||
|
||||
lbool optsmt::geometric_lex(unsigned obj_index, bool is_maximize) {
|
||||
arith_util arith(m);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue