3
0
Fork 0
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:
Nikolaj Bjorner 2020-01-15 04:24:51 -08:00
parent 0d614b8c36
commit 773b27296f
3 changed files with 33 additions and 1 deletions

View file

@ -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)) {