mirror of
https://github.com/Z3Prover/z3
synced 2025-04-29 20:05:51 +00:00
add line/position information to unsupported command reports per zeph pull request
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
eb2193f5ae
commit
ac3edbbaaa
5 changed files with 20 additions and 12 deletions
|
@ -205,7 +205,7 @@ UNARY_CMD(set_logic_cmd, "set-logic", "<symbol>", "set the background logic.", C
|
|||
if (ctx.set_logic(arg))
|
||||
ctx.print_success();
|
||||
else
|
||||
ctx.print_unsupported(symbol::null);
|
||||
ctx.print_unsupported(symbol::null, m_line, m_pos);
|
||||
);
|
||||
|
||||
UNARY_CMD(pp_cmd, "display", "<term>", "display the given term.", CPK_EXPR, expr *, {
|
||||
|
@ -436,7 +436,7 @@ public:
|
|||
|
||||
virtual void execute(cmd_context & ctx) {
|
||||
if (m_unsupported)
|
||||
ctx.print_unsupported(m_option);
|
||||
ctx.print_unsupported(m_option, m_line, m_pos);
|
||||
else
|
||||
ctx.print_success();
|
||||
}
|
||||
|
@ -472,7 +472,7 @@ public:
|
|||
// print_bool(ctx, );
|
||||
// }
|
||||
else if (opt == m_expand_definitions) {
|
||||
ctx.print_unsupported(m_expand_definitions);
|
||||
ctx.print_unsupported(m_expand_definitions, m_line, m_pos);
|
||||
}
|
||||
else if (opt == m_interactive_mode) {
|
||||
print_bool(ctx, ctx.interactive_mode());
|
||||
|
@ -523,7 +523,7 @@ public:
|
|||
ctx.regular_stream() << gparams::get_value(opt) << std::endl;
|
||||
}
|
||||
catch (gparams::exception ex) {
|
||||
ctx.print_unsupported(opt);
|
||||
ctx.print_unsupported(opt, m_line, m_pos);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -585,7 +585,7 @@ public:
|
|||
ctx.display_statistics();
|
||||
}
|
||||
else {
|
||||
ctx.print_unsupported(opt);
|
||||
ctx.print_unsupported(opt, m_line, m_pos);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue