3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-28 19:35:50 +00:00

fix lower/upper bound updates

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2013-12-14 09:04:48 +02:00
parent 8c85ee6b7c
commit 5225ea18b7
5 changed files with 23 additions and 17 deletions

View file

@ -381,12 +381,10 @@ namespace opt {
objective & obj = m_objectives[i];
switch(obj.m_type) {
case O_MINIMIZE:
obj.m_index = m_optsmt.get_num_objectives();
m_optsmt.add(obj.m_term, false);
obj.m_index = m_optsmt.add(obj.m_term, false);
break;
case O_MAXIMIZE:
obj.m_index = m_optsmt.get_num_objectives();
m_optsmt.add(obj.m_term, true);
obj.m_index = m_optsmt.add(obj.m_term, true);
break;
case O_MAXSMT: {
maxsmt& ms = *m_maxsmts.find(obj.m_id);