diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2021-02-23 19:12:32 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-23 19:12:32 -0600 |
commit | 854ab7e1adce90ebd822cc29ffabf5546d13f5cc (patch) | |
tree | 96bcb318ada0448c73d293c0b99db7b98eb1e4c4 /src/theory/quantifiers/quantifiers_state.cpp | |
parent | 4c0dbb8ec7871ff114a9e66233cd8c8dd853f0b4 (diff) |
Add interface to TheoryState for sort inference and facts (#5967)
This eliminates the need for direct references to TheoryEngine from quantifiers and UF+cardinality.
This PR also eliminates an unnecessary reference to TheoryEngine in TheoryModelBuilder and breaks a few more dependencies in quantifiers modules.
Diffstat (limited to 'src/theory/quantifiers/quantifiers_state.cpp')
-rw-r--r-- | src/theory/quantifiers/quantifiers_state.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/theory/quantifiers/quantifiers_state.cpp b/src/theory/quantifiers/quantifiers_state.cpp index 07bd97918..0bcca266e 100644 --- a/src/theory/quantifiers/quantifiers_state.cpp +++ b/src/theory/quantifiers/quantifiers_state.cpp @@ -22,8 +22,9 @@ namespace quantifiers { QuantifiersState::QuantifiersState(context::Context* c, context::UserContext* u, - Valuation val) - : TheoryState(c, u, val), d_ierCounterc(c) + Valuation val, + const LogicInfo& logicInfo) + : TheoryState(c, u, val), d_ierCounterc(c), d_logicInfo(logicInfo) { // allow theory combination to go first, once initially d_ierCounter = options::instWhenTcFirst() ? 0 : 1; @@ -152,6 +153,8 @@ void QuantifiersState::debugPrintEqualityEngine(const char* c) const } } +const LogicInfo& QuantifiersState::getLogicInfo() const { return d_logicInfo; } + } // namespace quantifiers } // namespace theory } // namespace CVC4 |