diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-11-23 06:40:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-23 06:40:47 -0600 |
commit | e11af4be0f3d1dee41aefa91d856de9035cb3a29 (patch) | |
tree | 264c21c4e6ab7fe60378b5713e21d2938a5dd5d0 /src/smt/model.cpp | |
parent | 961af5e182f65c976424fd2adc22fc9bd484f73c (diff) |
Add declare model symbol methods to SymbolManager and Model (#5480)
This is in preparation for the symbol manager determining which symbols are printed in the model.
Diffstat (limited to 'src/smt/model.cpp')
-rw-r--r-- | src/smt/model.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/smt/model.cpp b/src/smt/model.cpp index fc9ea8fbb..b734ad9e9 100644 --- a/src/smt/model.cpp +++ b/src/smt/model.cpp @@ -61,5 +61,19 @@ Node Model::getValue(TNode n) const { return d_tmodel->getValue(n); } bool Model::hasApproximations() const { return d_tmodel->hasApproximations(); } +void Model::clearModelDeclarations() { d_declareSorts.clear(); } + +void Model::addDeclarationSort(TypeNode tn) { d_declareSorts.push_back(tn); } + +void Model::addDeclarationTerm(Node n) { d_declareTerms.push_back(n); } +const std::vector<TypeNode>& Model::getDeclaredSorts() const +{ + return d_declareSorts; +} +const std::vector<Node>& Model::getDeclaredTerms() const +{ + return d_declareTerms; +} + } // namespace smt }/* CVC4 namespace */ |