summaryrefslogtreecommitdiff
path: root/src/expr/node_manager.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2010-06-16 20:26:14 +0000
committerTim King <taking@cs.nyu.edu>2010-06-16 20:26:14 +0000
commitc237443e1fad0ab948f2acb97651dec4f0c34dae (patch)
tree83ccbb9b08fcfbacbacbdc3e717a7e8c3adede7c /src/expr/node_manager.h
parent22685d657c483ab53c645bb9228bd5d4dd708cf5 (diff)
This commit just contains miscellaneous arithmetic cleanup.
Diffstat (limited to 'src/expr/node_manager.h')
-rw-r--r--src/expr/node_manager.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/expr/node_manager.h b/src/expr/node_manager.h
index 2d96ac57a..7e0cfd0cf 100644
--- a/src/expr/node_manager.h
+++ b/src/expr/node_manager.h
@@ -313,6 +313,8 @@ public:
Node mkVar(const TypeNode& type);
Node* mkVarPtr(const TypeNode& type);
+ /** Create a skolem constant with the given type. */
+ Node mkSkolem(const TypeNode& type);
/**
* Create a constant of type T. It will have the appropriate
@@ -864,6 +866,12 @@ inline Node* NodeManager::mkVarPtr(const TypeNode& type) {
return n;
}
+inline Node NodeManager::mkSkolem(const TypeNode& type) {
+ Node n = NodeBuilder<0>(this, kind::SKOLEM);
+ n.setAttribute(TypeAttr(), type);
+ return n;
+}
+
template <class T>
Node NodeManager::mkConst(const T& val) {
return mkConstInternal<Node, T>(val);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback