diff options
author | Mathias Preiner <mathias.preiner@gmail.com> | 2019-12-17 13:43:44 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-17 13:43:44 -0800 |
commit | e9499c41f405df8b42fd9ae10004b1b91a869106 (patch) | |
tree | fa1475f43a3e61b8f6ffdcb903b65919eba28661 /src/theory/valuation.cpp | |
parent | 9b2914ed9f7b14ecf535ffe9e1328d0fa042e072 (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/theory/valuation.cpp')
-rw-r--r-- | src/theory/valuation.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/theory/valuation.cpp b/src/theory/valuation.cpp index 83a7e3bff..4ad8c8785 100644 --- a/src/theory/valuation.cpp +++ b/src/theory/valuation.cpp @@ -14,10 +14,12 @@ ** Implementation of Valuation class. **/ -#include "expr/node.h" #include "theory/valuation.h" -#include "theory/theory_engine.h" + +#include "expr/node.h" +#include "options/theory_options.h" #include "theory/rewriter.h" +#include "theory/theory_engine.h" namespace CVC4 { namespace theory { @@ -123,7 +125,12 @@ unsigned Valuation::getAssertionLevel() const{ return d_engine->getPropEngine()->getAssertionLevel(); } -std::pair<bool, Node> Valuation::entailmentCheck(theory::TheoryOfMode mode, TNode lit, const theory::EntailmentCheckParameters* params, theory::EntailmentCheckSideEffects* out) { +std::pair<bool, Node> Valuation::entailmentCheck( + options::TheoryOfMode mode, + TNode lit, + const theory::EntailmentCheckParameters* params, + theory::EntailmentCheckSideEffects* out) +{ return d_engine->entailmentCheck(mode, lit, params, out); } |