summaryrefslogtreecommitdiff
path: root/src/options/decision_options.toml
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2019-12-17 13:43:44 -0800
committerGitHub <noreply@github.com>2019-12-17 13:43:44 -0800
commite9499c41f405df8b42fd9ae10004b1b91a869106 (patch)
treefa1475f43a3e61b8f6ffdcb903b65919eba28661 /src/options/decision_options.toml
parent9b2914ed9f7b14ecf535ffe9e1328d0fa042e072 (diff)
Generate code for options with modes. (#3561)
This commit adds support for code generation of options with modes (enums). From now on option enums can be specified in the corresponding *.toml files without the need of extra code. All option enums are now in the options namespace.
Diffstat (limited to 'src/options/decision_options.toml')
-rw-r--r--src/options/decision_options.toml34
1 files changed, 26 insertions, 8 deletions
diff --git a/src/options/decision_options.toml b/src/options/decision_options.toml
index 5826368c8..c614ab3db 100644
--- a/src/options/decision_options.toml
+++ b/src/options/decision_options.toml
@@ -7,11 +7,20 @@ header = "options/decision_options.h"
smt_name = "decision-mode"
category = "regular"
long = "decision=MODE"
- type = "decision::DecisionMode"
- default = "decision::DECISION_STRATEGY_INTERNAL"
- handler = "stringToDecisionMode"
- includes = ["options/decision_mode.h"]
+ type = "DecisionMode"
+ default = "INTERNAL"
+ predicates = ["setDecisionModeStopOnly"]
help = "choose decision mode, see --decision=help"
+ help_mode = "Decision modes."
+[[option.mode.INTERNAL]]
+ name = "internal"
+ help = "Use the internal decision heuristics of the SAT solver."
+[[option.mode.JUSTIFICATION]]
+ name = "justification"
+ help = "An ATGP-inspired justification heuristic."
+[[option.mode.RELEVANCY]]
+ name = "justification-stoponly"
+ help = "Use the justification heuristic only to stop early, not for decisions."
[[option]]
name = "decisionStopOnly"
@@ -37,6 +46,7 @@ header = "options/decision_options.h"
read_only = true
help = "use the weight nodes (locally, by looking at children) to direct recursive search"
+
[[option]]
name = "decisionRandomWeight"
category = "expert"
@@ -50,8 +60,16 @@ header = "options/decision_options.h"
name = "decisionWeightInternal"
category = "expert"
long = "decision-weight-internal=HOW"
- type = "decision::DecisionWeightInternal"
- default = "decision::DECISION_WEIGHT_INTERNAL_OFF"
- handler = "stringToDecisionWeightInternal"
+ type = "DecisionWeightInternal"
+ default = "OFF"
read_only = true
- help = "computer weights of internal nodes using children: off, max, sum, usr1 (meaning evolving)"
+ help = "compute weights of internal nodes using children: off, max, sum, usr1"
+ help_mode = "Decision weight internal mode."
+[[option.mode.OFF]]
+ name = "off"
+[[option.mode.MAX]]
+ name = "max"
+[[option.mode.SUM]]
+ name = "sum"
+[[option.mode.USR1]]
+ name = "usr1"
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback