summaryrefslogtreecommitdiff
path: root/src/options
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-04-15 08:37:46 -0500
committerGitHub <noreply@github.com>2020-04-15 08:37:46 -0500
commit681fece601a4f156f2d39b4813d16535b7e2cee3 (patch)
treef2d39cffdb307ad21277d8cd3c815eb443a1fb77 /src/options
parent42c765eb255e5bfa65682cd812973f0f3c90017c (diff)
Change option names --default-dag-thresh and --default-expr-depth (#4309)
Diffstat (limited to 'src/options')
-rw-r--r--src/options/README4
-rw-r--r--src/options/expr_options.toml6
-rw-r--r--src/options/options_handler.cpp4
3 files changed, 7 insertions, 7 deletions
diff --git a/src/options/README b/src/options/README
index ac371e835..47a7d9db7 100644
--- a/src/options/README
+++ b/src/options/README
@@ -111,7 +111,7 @@ Aliases
[[alias]]
category = "regular"
long = "smtlib-strict"
- links = ["--lang=smt2", "--output-lang=smt2", "--strict-parsing", "--default-expr-depth=-1", "--print-success", "--incremental", "--abstract-values"]
+ links = ["--lang=smt2", "--output-lang=smt2", "--strict-parsing", "--expr-depth=-1", "--print-success", "--incremental", "--abstract-values"]
help = "SMT-LIBv2 compliance mode (implies other options)"
@@ -123,7 +123,7 @@ Aliases
is equivalent to specifying the options
- --lang=smt2 --output-lang=smt2 --strict-parsing --default-expr-depth=-1 --print-success --incremental --abstract-values
+ --lang=smt2 --output-lang=smt2 --strict-parsing --expr-depth=-1 --print-success --incremental --abstract-values
It's also possible to pass an argument through to another option.
diff --git a/src/options/expr_options.toml b/src/options/expr_options.toml
index b64758fd2..c26622fef 100644
--- a/src/options/expr_options.toml
+++ b/src/options/expr_options.toml
@@ -5,7 +5,7 @@ header = "options/expr_options.h"
[[option]]
name = "defaultExprDepth"
category = "regular"
- long = "default-expr-depth=N"
+ long = "expr-depth=N"
type = "int"
default = "0"
predicates = ["setDefaultExprDepthPredicate"]
@@ -15,9 +15,9 @@ header = "options/expr_options.h"
[[option]]
name = "defaultDagThresh"
- smt_name = "default-dag-thresh"
+ smt_name = "dag-thresh"
category = "regular"
- long = "default-dag-thresh=N"
+ long = "dag-thresh=N"
type = "int"
default = "1"
predicates = ["setDefaultDagThreshPredicate"]
diff --git a/src/options/options_handler.cpp b/src/options/options_handler.cpp
index 7fcc8f2ae..9253ea1c8 100644
--- a/src/options/options_handler.cpp
+++ b/src/options/options_handler.cpp
@@ -350,13 +350,13 @@ void OptionsHandler::notifyDumpMode(std::string option)
// expr/options_handlers.h
void OptionsHandler::setDefaultExprDepthPredicate(std::string option, int depth) {
if(depth < -1) {
- throw OptionException("--default-expr-depth requires a positive argument, or -1.");
+ throw OptionException("--expr-depth requires a positive argument, or -1.");
}
}
void OptionsHandler::setDefaultDagThreshPredicate(std::string option, int dag) {
if(dag < 0) {
- throw OptionException("--default-dag-thresh requires a nonnegative argument.");
+ throw OptionException("--dag-thresh requires a nonnegative argument.");
}
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback