Z3 maximization API: possible bug?
问题 I'm currently playing with the maximization API for Z3 (opt branch), and I've stumbled upon a following bug: Whenever I give it any unbounded problem, it simply returns me OPT and gives zero in the resulting model (e.g. maximize Real('x') with no constraints on the model). Python example: from z3 import * context = main_ctx() x = Real('x') optimize_context = Z3_mk_optimize(context.ctx) Z3_optimize_assert(context.ctx, optimize_context, (x >= 0).ast) Z3_optimize_maximize(context.ctx, optimize