mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
cave in to supporting proofs (partially) in simplifiers, updated doc
This commit is contained in:
parent
aaabbfb594
commit
80033e8744
36 changed files with 157 additions and 108 deletions
|
@ -293,11 +293,12 @@ static void parse_cmd_line_args(std::string& input_file, int argc, char ** argv)
|
|||
if (!opt_arg)
|
||||
help_tactics();
|
||||
else
|
||||
help_tactic(opt_arg);
|
||||
help_tactic(opt_arg, false);
|
||||
}
|
||||
else if (strcmp(opt_name, "probes") == 0) {
|
||||
else if (strcmp(opt_name, "tacticsmd") == 0 && opt_arg)
|
||||
help_tactic(opt_arg, true);
|
||||
else if (strcmp(opt_name, "probes") == 0)
|
||||
help_probes();
|
||||
}
|
||||
else {
|
||||
std::cerr << "Error: invalid command line option: " << arg << "\n";
|
||||
std::cerr << "For usage information: z3 -h\n";
|
||||
|
|
|
@ -88,14 +88,17 @@ void help_tactics() {
|
|||
std::cout << "- " << cmd->get_name() << " " << cmd->get_descr() << "\n";
|
||||
}
|
||||
|
||||
void help_tactic(char const* name) {
|
||||
void help_tactic(char const* name, bool markdown) {
|
||||
cmd_context ctx;
|
||||
for (auto cmd : ctx.tactics()) {
|
||||
if (cmd->get_name() == name) {
|
||||
tactic_ref t = cmd->mk(ctx.m());
|
||||
param_descrs descrs;
|
||||
t->collect_param_descrs(descrs);
|
||||
descrs.display(std::cout, 4);
|
||||
if (markdown)
|
||||
descrs.display_markdown(std::cout);
|
||||
else
|
||||
descrs.display(std::cout, 4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -22,6 +22,6 @@ unsigned read_smtlib_file(char const * benchmark_file);
|
|||
unsigned read_smtlib2_commands(char const * command_file);
|
||||
void help_tactics();
|
||||
void help_probes();
|
||||
void help_tactic(char const* name);
|
||||
void help_tactic(char const* name, bool markdown);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue