mirror of
https://github.com/Z3Prover/z3
synced 2025-05-31 11:21:31 +00:00
disable local optimization in presence of non-linear constraints, addresses issue #758
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
b476784f23
commit
4f3f21bff1
1 changed files with 7 additions and 1 deletions
|
@ -1056,6 +1056,11 @@ namespace smt {
|
|||
inf_eps_rational<inf_rational> theory_arith<Ext>::maximize(theory_var v, expr_ref& blocker, bool& has_shared) {
|
||||
TRACE("bound_bug", display_var(tout, v); display(tout););
|
||||
has_shared = false;
|
||||
if (!m_nl_monomials.empty()) {
|
||||
has_shared = true;
|
||||
blocker = mk_gt(v);
|
||||
return inf_eps_rational<inf_rational>(get_value(v));
|
||||
}
|
||||
max_min_t r = max_min(v, true, true, has_shared);
|
||||
if (r == UNBOUNDED) {
|
||||
has_shared = false;
|
||||
|
@ -1301,6 +1306,7 @@ namespace smt {
|
|||
*/
|
||||
|
||||
|
||||
|
||||
template<typename Ext>
|
||||
bool theory_arith<Ext>::pick_var_to_leave(
|
||||
theory_var x_j, // non-base variable to increment/decrement
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue