diff options
author | Morgan Deters <mdeters@gmail.com> | 2010-10-06 08:31:35 +0000 |
---|---|---|
committer | Morgan Deters <mdeters@gmail.com> | 2010-10-06 08:31:35 +0000 |
commit | ce4a5fe6a2529f11eaff66b6cdcdb32ef5309323 (patch) | |
tree | 4ff6643e38469ceb84cd6791c5cbc295f625a735 /src/expr/node.h | |
parent | 4c9f8d2b58d274e5bfea5fa28b02f005af71ef39 (diff) |
declare-sort, define-sort working but not thoroughly tested; define-fun half working (just need to decide where to expand)
Diffstat (limited to 'src/expr/node.h')
-rw-r--r-- | src/expr/node.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/expr/node.h b/src/expr/node.h index b5f6307ed..67d46a977 100644 --- a/src/expr/node.h +++ b/src/expr/node.h @@ -342,11 +342,14 @@ public: /** * Returns a node representing the operator of this expression. * If this is an APPLY, then the operator will be a functional term. - * Otherwise, it will be a node with kind BUILTIN + * Otherwise, it will be a node with kind BUILTIN. */ NodeTemplate<true> getOperator() const; - /** Returns true if the node has an operator (i.e., it's not a variable or a constant). */ + /** + * Returns true if the node has an operator (i.e., it's not a + * variable or a constant). + */ inline bool hasOperator() const; /** @@ -721,14 +724,14 @@ struct NodeHashFunction { size_t operator()(const CVC4::Node& node) const { return (size_t) node.getId(); } -}; +};/* struct NodeHashFunction */ // for hash_maps, hash_sets.. struct TNodeHashFunction { size_t operator()(CVC4::TNode node) const { return (size_t) node.getId(); } -}; +};/* struct TNodeHashFunction */ template <bool ref_count> inline size_t NodeTemplate<ref_count>::getNumChildren() const { @@ -976,7 +979,7 @@ NodeTemplate<ref_count>::printAst(std::ostream& out, int indent) const { /** * Returns a node representing the operator of this expression. * If this is an APPLY, then the operator will be a functional term. - * Otherwise, it will be a node with kind BUILTIN + * Otherwise, it will be a node with kind BUILTIN. */ template <bool ref_count> NodeTemplate<true> NodeTemplate<ref_count>::getOperator() const { |