mirror of
https://github.com/Z3Prover/z3
synced 2025-08-22 19:17:53 +00:00
fix lower/upper bound updates
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
8c85ee6b7c
commit
5225ea18b7
5 changed files with 23 additions and 17 deletions
|
@ -349,7 +349,7 @@ namespace opt {
|
|||
}
|
||||
}
|
||||
|
||||
void optsmt::add(app* t, bool is_max) {
|
||||
unsigned optsmt::add(app* t, bool is_max) {
|
||||
expr_ref t1(t, m), t2(m);
|
||||
th_rewriter rw(m);
|
||||
if (!is_max) {
|
||||
|
@ -362,6 +362,7 @@ namespace opt {
|
|||
m_is_max.push_back(is_max);
|
||||
m_lower.push_back(inf_eps(rational(-1),inf_rational(0)));
|
||||
m_upper.push_back(inf_eps(rational(1), inf_rational(0)));
|
||||
return m_objs.size()-1;
|
||||
}
|
||||
|
||||
void optsmt::updt_params(params_ref& p) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue