# This is the set of command line arguments that is required to be strictly
# complaint with the input and output requirements of the current SMT-LIB
# standard.
-"$cvc4" --lang=smt2 --output-lang=smt2 --strict-parsing --default-expr-depth=-1 --print-success --incremental --abstract-values $@
+"$cvc4" --lang=smt2 --output-lang=smt2 --strict-parsing --expr-depth=-1 --print-success --incremental --abstract-values $@
Solver slv;
slv.setOption("produce-models", "true"); // Produce Models
slv.setOption("output-language", "cvc4"); // Set the output-language to CVC's
- slv.setOption("default-dag-thresh", "0"); // Disable dagifying the output
+ slv.setOption("dag-thresh", "0"); // Disable dagifying the output
slv.setOption("output-language", "smt2"); // use smt-lib v2 as output language
slv.setLogic(string("QF_UFLIRA"));
SmtEngine smt(&em);
smt.setOption("produce-models", true); // Produce Models
smt.setOption("output-language", "cvc4"); // Set the output-language to CVC's
- smt.setOption("default-dag-thresh", 0); //Disable dagifying the output
+ smt.setOption("dag-thresh", 0); //Disable dagifying the output
smt.setLogic(string("QF_UFLIRA"));
// Sorts
smt.setOption("tlimit", new SExpr(100));
smt.setOption("produce-models", new SExpr(true)); // Produce Models
smt.setOption("output-language", new SExpr("cvc4")); // output-language
- smt.setOption("default-dag-thresh", new SExpr(0)); //Disable dagifying the output
+ smt.setOption("dag-thresh", new SExpr(0)); //Disable dagifying the output
smt.setLogic("QF_UFLIRA");
// Sorts
slv = pycvc4.Solver()
slv.setOption("produce-models", "true") # Produce Models
slv.setOption("output-language", "cvc4") # Set the output-language to CVC's
- slv.setOption("default-dag-thresh", "0") # Disable dagifying the output
+ slv.setOption("dag-thresh", "0") # Disable dagifying the output
slv.setOption("output-language", "smt2") # use smt-lib v2 as output language
slv.setLogic("QF_UFLIRA")
{ "output-language", required_argument, NULL, OUTPUT_LANG },
{ "expand-definitions", no_argument, NULL, EXPAND_DEFINITIONS },
{ "combine-assertions", no_argument, NULL, COMBINE_ASSERTIONS },
- { "default-dag-thresh", required_argument, NULL, DEFAULT_DAG_THRESH },
+ { "dag-thresh", required_argument, NULL, DEFAULT_DAG_THRESH },
{ "lang", required_argument, NULL, INPUT_LANG },
{ "language", required_argument, NULL, INPUT_LANG },
{ "out", required_argument, NULL, OUTPUT_FILE },
<< " --output-language | -O set output language (default smt2)" << endl
<< " --input-language | -L set input language (default auto)" << endl
<< " --out | -o set output file (- for stdout)" << endl
- << " --default-dag-thresh=N set DAG threshold" << endl
+ << " --dag-thresh=N set DAG threshold" << endl
<< " --expand-definitions expand define-funs" << endl
<< " --combine-assertions combine all assertions into one" << endl
<< " --help | -h this help" << endl
break;
case DEFAULT_DAG_THRESH: {
if(!isdigit(*optarg)) {
- cerr << "error: --default-dag-thresh requires non-negative argument: `"
+ cerr << "error: --dag-thresh requires non-negative argument: `"
<< optarg << "' invalid." << endl;
exit(1);
}
char* end;
unsigned long ul = strtoul(optarg, &end, 10);
if(errno != 0 || *end != '\0') {
- cerr << "error: --default-dag-thresh argument malformed: `"
+ cerr << "error: --dag-thresh argument malformed: `"
<< optarg << "'." << endl;
exit(1);
}
[[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)"
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.
[[option]]
name = "defaultExprDepth"
category = "regular"
- long = "default-expr-depth=N"
+ long = "expr-depth=N"
type = "int"
default = "0"
predicates = ["setDefaultExprDepthPredicate"]
[[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"]
// 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.");
}
}
smt.setOption("tlimit", new SExpr(100));
smt.setOption("produce-models", new SExpr(true)); // Produce Models
smt.setOption("output-language", new SExpr("cvc4")); // output-language
- smt.setOption("default-dag-thresh", new SExpr(0)); //Disable dagifying the output
+ smt.setOption("dag-thresh", new SExpr(0)); //Disable dagifying the output
smt.setLogic("QF_UFLIRA");
// Sorts