diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2018-03-21 15:48:57 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-21 15:48:57 -0700 |
commit | bdba2bf65eb2f68daa1a5e488c4e50f5dac1b312 (patch) | |
tree | 3f97efe21f089d3abb5d9a2b53c0c7ee63ba06bb /src/options/theory_options.toml | |
parent | 966960b424aa5901a03abbfaa1bcdac6e3ed90dc (diff) |
Refactor mkoptions (#1631)
This commit refactors code generation for options. It uses a new configuration format for defining options (*.toml) and a new Python script mkoptions.py to generate the source code and option documentation.
The option behavior did not change for most of the options, except that for bool --enable-/--disable- long options enable/disable was removed. E.g. --enable-miplib-trick and --disable-miplib-trick got changed to --miplib-trick and --no-miplib-trick.
This commit fixes also an issues with set-option/get-option via the SMT2 interface. Before long options were only accessible if the name included the =ARG part.
Diffstat (limited to 'src/options/theory_options.toml')
-rw-r--r-- | src/options/theory_options.toml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/options/theory_options.toml b/src/options/theory_options.toml new file mode 100644 index 000000000..2b1f75072 --- /dev/null +++ b/src/options/theory_options.toml @@ -0,0 +1,25 @@ +id = "THEORY" +name = "Theory layer" +header = "options/theory_options.h" + +[[option]] + name = "theoryOfMode" + smt_name = "theoryof-mode" + category = "expert" + long = "theoryof-mode=MODE" + type = "CVC4::theory::TheoryOfMode" + default = "CVC4::theory::THEORY_OF_TYPE_BASED" + handler = "stringToTheoryOfMode" + includes = ["options/theoryof_mode.h"] + help = "mode for Theory::theoryof()" + +[[option]] + name = "useTheoryList" + smt_name = "use-theory" + category = "regular" + long = "use-theory=NAME" + type = "std::string" + handler = "handleUseTheoryList" + notifies = ["notifyUseTheoryList"] + read_only = true + help = "use alternate theory implementation NAME (--use-theory=help for a list). This option may be repeated or a comma separated list." |