mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 13:28:47 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
48e7da7487
commit
1d6f53c310
|
@ -197,6 +197,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(cmd_context & ctx) {
|
virtual void execute(cmd_context & ctx) {
|
||||||
|
if (!m_tactic) {
|
||||||
|
throw cmd_exception("check-sat-using needs a tactic argument");
|
||||||
|
}
|
||||||
params_ref p = ctx.params().merge_default_params(ps());
|
params_ref p = ctx.params().merge_default_params(ps());
|
||||||
tactic_ref tref = using_params(sexpr2tactic(ctx, m_tactic), p);
|
tactic_ref tref = using_params(sexpr2tactic(ctx, m_tactic), p);
|
||||||
tref->set_logic(ctx.get_logic());
|
tref->set_logic(ctx.get_logic());
|
||||||
|
|
|
@ -96,6 +96,9 @@ public:
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual void execute(cmd_context & ctx) {
|
virtual void execute(cmd_context & ctx) {
|
||||||
|
if (!m_formula) {
|
||||||
|
throw cmd_exception("assert-soft requires a formulas as argument.");
|
||||||
|
}
|
||||||
symbol w("weight");
|
symbol w("weight");
|
||||||
rational weight = ps().get_rat(symbol("weight"), rational::one());
|
rational weight = ps().get_rat(symbol("weight"), rational::one());
|
||||||
symbol id = ps().get_sym(symbol("id"), symbol::null);
|
symbol id = ps().get_sym(symbol("id"), symbol::null);
|
||||||
|
|
Loading…
Reference in a new issue