mirror of
https://github.com/Z3Prover/z3
synced 2025-06-27 08:28:44 +00:00
add command-line help descriptions on tactics
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
c0a07f9229
commit
fae206b738
7 changed files with 65 additions and 13 deletions
|
@ -93,6 +93,8 @@ void display_usage() {
|
|||
std::cout << " -pd display Z3 global (and module) parameter descriptions.\n";
|
||||
std::cout << " -pm:name display Z3 module ('name') parameters.\n";
|
||||
std::cout << " -pp:name display Z3 parameter description, if 'name' is not provided, then all module names are listed.\n";
|
||||
std::cout << " -tactics[:name] display built-in tactics or if argument is given, display detailed information on tactic.\n";
|
||||
std::cout << " -probes display avilable probes.\n";
|
||||
std::cout << " --" << " all remaining arguments are assumed to be part of the input file name. This option allows Z3 to read files with strange names such as: -foo.smt2.\n";
|
||||
std::cout << "\nResources:\n";
|
||||
// timeout and memout are now available on Linux and macOS too.
|
||||
|
@ -272,6 +274,15 @@ static void parse_cmd_line_args(int argc, char ** argv) {
|
|||
error("option argument (-memory:val) is missing.");
|
||||
gparams::set("memory_max_size", opt_arg);
|
||||
}
|
||||
else if (strcmp(opt_name, "tactics") == 0) {
|
||||
if (!opt_arg)
|
||||
help_tactics();
|
||||
else
|
||||
help_tactic(opt_arg);
|
||||
}
|
||||
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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue