mirror of
https://github.com/Z3Prover/z3
synced 2025-08-14 14:55:25 +00:00
more updates
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3996f58a8e
commit
3dd72f8f16
4 changed files with 54 additions and 42 deletions
|
@ -138,7 +138,10 @@ public:
|
|||
virtual cmd_arg_kind next_arg_kind(cmd_context & ctx) const { return CPK_EXPR; }
|
||||
|
||||
virtual void set_next_arg(cmd_context & ctx, expr * t) {
|
||||
m_opt_ctx().add_objective(t, m_is_max);
|
||||
if (!is_app(t)) {
|
||||
throw cmd_exception("malformed objective term: it cannot be a quantifier or bound variable");
|
||||
}
|
||||
m_opt_ctx().add_objective(to_app(t), m_is_max);
|
||||
}
|
||||
|
||||
virtual void failure_cleanup(cmd_context & ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue