diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-04-06 16:44:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 16:44:01 -0500 |
commit | 45e489e2d48e3edde15be2187e32893fc35d859b (patch) | |
tree | 6a6d267aefc48283a6c5de4b4f7b2f87abd23367 /src/options | |
parent | 49c5a2aef84d1c17b4401eae9c60a92190b0b5a7 (diff) |
Remove links field in all toml files (#4201)
This includes:
All options pertaining to SMTEngine are now handled at the top of setDefaults.
smtlibStrict was deleted in favor of a script.
statsEveryQuery enables stats by modifying a public option function. This is a slight hack but this code will likely get refactored as well soon.
A few other changes:
Fix a bug in SMTEngine: defineFunction should finalize options.
Call setDefaults before initilizing the TheoryEngine and ProofManager. This is necessary so that the PROOF(...) macro works earlier during initialization.
The next step will be to remove the links infrastructure for the options infrastructure. This will enable further detangling of our options dependencies.
Diffstat (limited to 'src/options')
-rw-r--r-- | src/options/base_options.toml | 7 | ||||
-rw-r--r-- | src/options/bv_options.toml | 3 | ||||
-rw-r--r-- | src/options/options_public_functions.cpp | 3 | ||||
-rw-r--r-- | src/options/smt_options.toml | 12 |
4 files changed, 2 insertions, 23 deletions
diff --git a/src/options/base_options.toml b/src/options/base_options.toml index 43060bc54..65eeda3ae 100644 --- a/src/options/base_options.toml +++ b/src/options/base_options.toml @@ -99,7 +99,6 @@ header = "options/base_options.h" long = "stats-every-query" type = "bool" default = "false" - links = ["--stats"] read_only = true help = "in incremental mode, print stats after every satisfiability or validity query" @@ -155,9 +154,3 @@ header = "options/base_options.h" notifies = ["notifyPrintSuccess"] read_only = true help = "print the \"success\" output required of SMT-LIBv2" - -[[alias]] - category = "regular" - long = "smtlib-strict" - links = ["--lang=smt2", "--output-lang=smt2", "--strict-parsing", "--default-expr-depth=-1", "--print-success", "--incremental", "--abstract-values"] - help = "SMT-LIBv2 compliance mode (implies other options)" diff --git a/src/options/bv_options.toml b/src/options/bv_options.toml index 489f33ed7..05dc6b716 100644 --- a/src/options/bv_options.toml +++ b/src/options/bv_options.toml @@ -88,7 +88,6 @@ header = "options/bv_options.h" long = "bv-aig-simp=COMMAND" type = "std::string" predicates = ["abcEnabledBuild"] - links = ["--bitblast-aig"] help = "abc command to run AIG simplifications (implies --bitblast-aig, default is \"balance;drw\")" [[option]] @@ -113,7 +112,6 @@ header = "options/bv_options.h" long = "bv-eq-slicer=MODE" type = "BvSlicerMode" default = "OFF" - links = ["--bv-eq-solver"] help = "turn on the slicing equality solver for the bit-vector theory (only if --bitblast=lazy)" help_mode = "Bit-vector equality slicer modes." [[option.mode.ON]] @@ -148,7 +146,6 @@ header = "options/bv_options.h" long = "bv-algebraic-budget=N" type = "unsigned" default = "1500" - links = ["--bv-algebraic-solver"] help = "the budget allowed for the algebraic solver in number of SAT conflicts" [[option]] diff --git a/src/options/options_public_functions.cpp b/src/options/options_public_functions.cpp index bae60a374..a9b8b0714 100644 --- a/src/options/options_public_functions.cpp +++ b/src/options/options_public_functions.cpp @@ -135,7 +135,8 @@ bool Options::getSemanticChecks() const{ } bool Options::getStatistics() const{ - return (*this)[options::statistics]; + // statsEveryQuery enables stats + return (*this)[options::statistics] || (*this)[options::statsEveryQuery]; } bool Options::getStatsEveryQuery() const{ diff --git a/src/options/smt_options.toml b/src/options/smt_options.toml index a0e3014b0..9f9d58aad 100644 --- a/src/options/smt_options.toml +++ b/src/options/smt_options.toml @@ -72,7 +72,6 @@ header = "options/smt_options.h" type = "bool" default = "false" notifies = ["notifyBeforeSearch"] - read_only = true help = "support the get-value and get-model commands" [[option]] @@ -81,7 +80,6 @@ header = "options/smt_options.h" long = "check-models" type = "bool" notifies = ["notifyBeforeSearch"] - links = ["--produce-models", "--produce-assertions"] read_only = true help = "after SAT/INVALID/UNKNOWN, check that the generated model satisfies user assertions" @@ -91,7 +89,6 @@ header = "options/smt_options.h" long = "dump-models" type = "bool" default = "false" - links = ["--produce-models"] read_only = true help = "output models after every SAT/INVALID/UNKNOWN response" @@ -140,7 +137,6 @@ header = "options/smt_options.h" default = "false" predicates = ["proofEnabledBuild"] notifies = ["notifyBeforeSearch"] - read_only = true help = "turn on proof generation" [[option]] @@ -150,7 +146,6 @@ header = "options/smt_options.h" type = "bool" predicates = ["LFSCEnabledBuild"] notifies = ["notifyBeforeSearch"] - links = ["--proof"] help = "after UNSAT/VALID, machine-check the generated proof" [[option]] @@ -159,7 +154,6 @@ header = "options/smt_options.h" long = "dump-proofs" type = "bool" default = "false" - links = ["--proof"] read_only = true help = "output proofs after every UNSAT/VALID response" @@ -224,7 +218,6 @@ header = "options/smt_options.h" category = "regular" long = "check-unsat-cores" type = "bool" - links = ["--produce-unsat-cores"] help = "after UNSAT/VALID, produce and check an unsat core (expensive)" [[option]] @@ -234,8 +227,6 @@ header = "options/smt_options.h" type = "bool" default = "false" notifies = ["notifyBeforeSearch"] - links = ["--produce-unsat-cores"] - read_only = true help = "output unsat cores after every UNSAT/VALID response" [[option]] @@ -245,7 +236,6 @@ header = "options/smt_options.h" type = "bool" default = "false" notifies = ["notifyBeforeSearch"] - links = ["--dump-unsat-cores"] read_only = true help = "dump the full unsat core, including unlabeled assertions" @@ -255,7 +245,6 @@ header = "options/smt_options.h" long = "produce-unsat-assumptions" type = "bool" default = "false" - links = ["--produce-unsat-cores"] predicates = ["proofEnabledBuild"] notifies = ["notifyBeforeSearch"] read_only = true @@ -277,7 +266,6 @@ header = "options/smt_options.h" type = "bool" default = "false" notifies = ["notifyBeforeSearch"] - read_only = true help = "support the get-assignment command" [[option]] |