mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 11:55:51 +00:00
Change unknown set-logic behavior in SMTLIB2 compliant mode (Thanks to David Cok)
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
c4f762028f
commit
62c841c320
3 changed files with 15 additions and 6 deletions
|
@ -214,8 +214,11 @@ ATOMIC_CMD(labels_cmd, "labels", "retrieve Simplify-like labels", {
|
|||
ATOMIC_CMD(get_assertions_cmd, "get-assertions", "retrieve asserted terms when in interactive mode", ctx.display_assertions(););
|
||||
|
||||
UNARY_CMD(set_logic_cmd, "set-logic", "<symbol>", "set the background logic.", CPK_SYMBOL, symbol const &,
|
||||
ctx.set_logic(arg);
|
||||
ctx.print_success(););
|
||||
if (ctx.set_logic(arg))
|
||||
ctx.print_success();
|
||||
else
|
||||
ctx.print_unsupported(symbol::null);
|
||||
);
|
||||
|
||||
UNARY_CMD(pp_cmd, "display", "<term>", "display the given term.", CPK_EXPR, expr *, {
|
||||
ctx.display(ctx.regular_stream(), arg);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue