diff options
author | Morgan Deters <mdeters@cs.nyu.edu> | 2014-10-08 20:16:58 -0400 |
---|---|---|
committer | Morgan Deters <mdeters@cs.nyu.edu> | 2014-10-14 16:41:17 -0400 |
commit | ef000094d2d6a024c7eac490b241259b38e07225 (patch) | |
tree | 395250d07c9e589b1ba42316516deddfe1486018 /src/expr/node_manager.h | |
parent | 7df24c61c7998e1485ab75219078deaf1455bd71 (diff) |
Context-dependent expr attributes are now attached to a specific SmtEngine, and the SAT context is owned by the SmtEngine.
Diffstat (limited to 'src/expr/node_manager.h')
-rw-r--r-- | src/expr/node_manager.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/expr/node_manager.h b/src/expr/node_manager.h index 0aa222294..d4d89109c 100644 --- a/src/expr/node_manager.h +++ b/src/expr/node_manager.h @@ -35,7 +35,6 @@ #include "expr/kind.h" #include "expr/metakind.h" #include "expr/node_value.h" -#include "context/context.h" #include "util/subrange_bound.h" #include "util/tls.h" #include "options/options.h" @@ -66,6 +65,11 @@ public: virtual void nmNotifyNewDatatypes(const std::vector<DatatypeType>& datatypes) { } virtual void nmNotifyNewVar(TNode n, uint32_t flags) { } virtual void nmNotifyNewSkolem(TNode n, const std::string& comment, uint32_t flags) { } + /** + * Notify a listener of a Node that's being GCed. If this function stores a reference + * to the Node somewhere, very bad things will happen. + */ + virtual void nmNotifyDeleteNode(TNode n) { } };/* class NodeManagerListener */ class NodeManager { @@ -307,8 +311,8 @@ class NodeManager { public: - explicit NodeManager(context::Context* ctxt, ExprManager* exprManager); - explicit NodeManager(context::Context* ctxt, ExprManager* exprManager, const Options& options); + explicit NodeManager(ExprManager* exprManager); + explicit NodeManager(ExprManager* exprManager, const Options& options); ~NodeManager(); /** The node manager in the current public-facing CVC4 library context */ |