summaryrefslogtreecommitdiff
path: root/src/expr/symbol_manager.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-11-16 10:40:30 -0600
committerGitHub <noreply@github.com>2020-11-16 10:40:30 -0600
commita24a67080965f676335388c177d7eb8a9d3fdb13 (patch)
treedd34520a8206a8d42d28aaca6df15b7879f6b831 /src/expr/symbol_manager.h
parentdb84323caa3009cf418f959313e49f5bea5d35a6 (diff)
Cleaning up scopes in preparation for symbol manager (#5442)
This changes the default of Parser::pushScope and prepares symbol manager further for maintaining expression names.
Diffstat (limited to 'src/expr/symbol_manager.h')
-rw-r--r--src/expr/symbol_manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/expr/symbol_manager.h b/src/expr/symbol_manager.h
index 54f9732b9..a3ca8e780 100644
--- a/src/expr/symbol_manager.h
+++ b/src/expr/symbol_manager.h
@@ -84,6 +84,14 @@ class CVC4_PUBLIC SymbolManager
void getExpressionNames(const std::vector<api::Term>& ts,
std::vector<std::string>& names,
bool areAssertions = false) const;
+ /**
+ * Get a mapping of all expression names.
+ *
+ * @param areAssertions Whether we only wish to include assertion names
+ * @return the mapping containing all expression names.
+ */
+ std::map<api::Term, std::string> getExpressionNames(
+ bool areAssertions = false) const;
//---------------------------- end named expressions
/**
* Get the scope level of the symbol table.
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback