mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
translate optimize from c++ API #2859
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
0d614b8c36
commit
773b27296f
3 changed files with 33 additions and 1 deletions
|
@ -217,7 +217,7 @@ namespace opt {
|
|||
break;
|
||||
case O_MAXIMIZE:
|
||||
result = o.m_term;
|
||||
if (m_arith.is_arith_expr(result)) {
|
||||
if (m_arith.is_int_real(result)) {
|
||||
result = m_arith.mk_uminus(result);
|
||||
}
|
||||
else if (m_bv.is_bv(result)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue