mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
print success #1068
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a8ff97c0f4
commit
d5f646929e
2 changed files with 3 additions and 1 deletions
|
@ -100,6 +100,7 @@ public:
|
|||
rational weight = ps().get_rat(symbol("weight"), rational::one());
|
||||
symbol id = ps().get_sym(symbol("id"), symbol::null);
|
||||
get_opt(ctx, m_opt).add_soft_constraint(m_formula, weight, id);
|
||||
ctx.print_success();
|
||||
reset(ctx);
|
||||
}
|
||||
|
||||
|
@ -131,6 +132,7 @@ public:
|
|||
throw cmd_exception("malformed objective term: it cannot be a quantifier or bound variable");
|
||||
}
|
||||
get_opt(ctx, m_opt).add_objective(to_app(t), m_is_max);
|
||||
ctx.print_success();
|
||||
}
|
||||
|
||||
virtual void failure_cleanup(cmd_context & ctx) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue