Not adding the argument description for non-{bool,void} options is now an error.
Further, adds missing argument descriptions.
[[option]]
name = "maxCutsInContext"
category = "regular"
- long = "maxCutsInContext"
+ long = "maxCutsInContext=N"
type = "unsigned"
default = "65535"
read_only = true
[[option]]
name = "maxApproxDepth"
category = "regular"
- long = "approx-branch-depth"
+ long = "approx-branch-depth=N"
type = "int16_t"
default = "200"
help = "maximum branch depth the approximate solver is allowed to take"
[[option]]
name = "arithPropAsLemmaLength"
category = "regular"
- long = "arith-prop-clauses"
+ long = "arith-prop-clauses=N"
type = "uint16_t"
default = "8"
help = "rows shorter than this are propagated as clauses"
[[option]]
name = "dioSolverTurns"
category = "regular"
- long = "dio-turns"
+ long = "dio-turns=N"
type = "int"
default = "10"
read_only = true
[[option]]
name = "rrTurns"
category = "regular"
- long = "rr-turns"
+ long = "rr-turns=N"
type = "int"
default = "3"
read_only = true
[[option]]
name = "replayEarlyCloseDepths"
category = "regular"
- long = "replay-early-close-depth"
+ long = "replay-early-close-depth=N"
type = "int"
default = "1"
read_only = true
[[option]]
name = "replayFailurePenalty"
category = "regular"
- long = "replay-failure-penalty"
+ long = "replay-failure-penalty=N"
type = "int"
default = "100"
read_only = true
[[option]]
name = "replayNumericFailurePenalty"
category = "regular"
- long = "replay-num-err-penalty"
+ long = "replay-num-err-penalty=N"
type = "int"
default = "4194304"
read_only = true
[[option]]
name = "replayRejectCutSize"
category = "regular"
- long = "replay-reject-cut"
+ long = "replay-reject-cut=N"
type = "unsigned"
default = "25500"
read_only = true
[[option]]
name = "lemmaRejectCutSize"
category = "regular"
- long = "replay-lemma-reject-cut"
+ long = "replay-lemma-reject-cut=N"
type = "unsigned"
default = "25500"
read_only = true
[[option]]
name = "soiApproxMajorFailure"
category = "regular"
- long = "replay-soi-major-threshold"
+ long = "replay-soi-major-threshold=T"
type = "double"
default = ".01"
read_only = true
[[option]]
name = "soiApproxMajorFailurePen"
category = "regular"
- long = "replay-soi-major-threshold-pen"
+ long = "replay-soi-major-threshold-pen=N"
type = "int"
default = "50"
read_only = true
[[option]]
name = "soiApproxMinorFailure"
category = "regular"
- long = "replay-soi-minor-threshold"
+ long = "replay-soi-minor-threshold=T"
type = "double"
default = ".0001"
read_only = true
[[option]]
name = "soiApproxMinorFailurePen"
category = "regular"
- long = "replay-soi-minor-threshold-pen"
+ long = "replay-soi-minor-threshold-pen=N"
type = "int"
default = "10"
read_only = true
[[option]]
name = "ppAssertMaxSubSize"
category = "regular"
- long = "pp-assert-max-sub-size"
+ long = "pp-assert-max-sub-size=N"
type = "unsigned"
default = "2"
read_only = true
[[option]]
name = "arraysConfig"
category = "regular"
- long = "arrays-config"
+ long = "arrays-config=N"
type = "int"
default = "0"
help = "set different array option configurations - for developers only"
[[option]]
name = "arraysPropagate"
category = "regular"
- long = "arrays-prop"
+ long = "arrays-prop=N"
type = "int"
default = "2"
help = "propagation effort for arrays: 0 is none, 1 is some, 2 is full"
[[option]]
name = "bitvectorAlgebraicBudget"
category = "expert"
- long = "bv-algebraic-budget"
+ long = "bv-algebraic-budget=N"
type = "unsigned"
default = "1500"
links = ["--bv-algebraic-solver"]
[[option]]
name = "bvNumFunc"
category = "expert"
- long = "bv-num-func=NUM"
+ long = "bv-num-func=N"
type = "unsigned"
default = "1"
read_only = true
name = "seed"
category = "common"
short = "s"
- long = "seed"
+ long = "seed=N"
type = "uint64_t"
default = "0"
read_only = true
else:
specs.append(TPL_DECL_ASSIGN.format(name=option.name))
+ if option.long and option.type not in ['bool', 'void'] and \
+ '=' not in option.long:
+ die("module '{}': option '{}' with type '{}' needs an argument " \
+ "description ('{}=...')".format(
+ module.id, option.long, option.type, option.long))
+ elif option.long and option.type in ['bool', 'void'] and \
+ '=' in option.long:
+ die("module '{}': option '{}' with type '{}' must not have an " \
+ "argument description".format(
+ module.id, option.long, option.type))
+
# Generate module inlines
inls.append(TPL_IMPL_OP_PAR.format(name=option.name))
inls.append(TPL_IMPL_OPTION_WAS_SET_BY_USER.format(name=option.name))
[[option]]
name = "termDbMode"
category = "regular"
- long = "term-db-mode"
+ long = "term-db-mode=MODE"
type = "CVC4::theory::quantifiers::TermDbMode"
default = "CVC4::theory::quantifiers::TERM_DB_ALL"
handler = "stringToTermDbMode"
[[option]]
name = "triggerSelMode"
category = "regular"
- long = "trigger-sel"
+ long = "trigger-sel=MODE"
type = "CVC4::theory::quantifiers::TriggerSelMode"
default = "CVC4::theory::quantifiers::TRIGGER_SEL_MIN"
handler = "stringToTriggerSelMode"
[[option]]
name = "triggerActiveSelMode"
category = "regular"
- long = "trigger-active-sel"
+ long = "trigger-active-sel=MODE"
type = "CVC4::theory::quantifiers::TriggerActiveSelMode"
default = "CVC4::theory::quantifiers::TRIGGER_ACTIVE_SEL_ALL"
handler = "stringToTriggerActiveSelMode"
[[option]]
name = "sygusRewSynthCheckTimeout"
category = "regular"
- long = "sygus-rr-synth-check-timeout"
+ long = "sygus-rr-synth-check-timeout=N"
type = "unsigned long"
help = "timeout (in milliseconds) for the satisfiability check to verify correctness of candidate rewrites"
[[option]]
name = "zombieHuntThreshold"
category = "regular"
- long = "simp-ite-hunt-zombies"
+ long = "simp-ite-hunt-zombies=N"
type = "uint32_t"
default = "524288"
read_only = true
[[option]]
name = "rewriteStep"
category = "expert"
- long = "rewrite-step"
+ long = "rewrite-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "theoryCheckStep"
category = "expert"
- long = "theory-check-step"
+ long = "theory-check-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "decisionStep"
category = "expert"
- long = "decision-step"
+ long = "decision-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "bitblastStep"
category = "expert"
- long = "bitblast-step"
+ long = "bitblast-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "parseStep"
category = "expert"
- long = "parse-step"
+ long = "parse-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "lemmaStep"
category = "expert"
- long = "lemma-step"
+ long = "lemma-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "restartStep"
category = "expert"
- long = "restart-step"
+ long = "restart-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "cnfStep"
category = "expert"
- long = "cnf-step"
+ long = "cnf-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "preprocessStep"
category = "expert"
- long = "preprocess-step"
+ long = "preprocess-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "quantifierStep"
category = "expert"
- long = "quantifier-step"
+ long = "quantifier-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "satConflictStep"
category = "expert"
- long = "sat-conflict-step"
+ long = "sat-conflict-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "bvSatConflictStep"
category = "expert"
- long = "bv-sat-conflict-step"
+ long = "bv-sat-conflict-step=N"
type = "unsigned"
default = "1"
read_only = true
[[option]]
name = "solveIntAsBV"
category = "undocumented"
- long = "solve-int-as-bv"
+ long = "solve-int-as-bv=N"
type = "uint32_t"
default = "0"
read_only = true