summaryrefslogtreecommitdiff
path: root/src/expr/node.h
diff options
context:
space:
mode:
authorTim King <taking@cs.nyu.edu>2010-05-19 21:20:54 +0000
committerTim King <taking@cs.nyu.edu>2010-05-19 21:20:54 +0000
commitff70395fd3dcde9f68eda1c6a8bd70e6491f7458 (patch)
treed0cf52a5e6cb98a0aa6c15ca4c4fe4d258cb626f /src/expr/node.h
parent07e1a1668a27e90563f23bcf5abb5cb7fe30da86 (diff)
Significant revision to theory/arith. The new draft has a lot of small bug fixes and organizational changes. The theory is now enabled to perform checking in the TheoryEngine. This draft can now solve 2 new regression tests test/regress/regress0/ineq_slack.smt and test/regress/regress0/ineq_basic.smt. There is also a small bug fix inside src/expr/attribute.h.
Diffstat (limited to 'src/expr/node.h')
-rw-r--r--src/expr/node.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/expr/node.h b/src/expr/node.h
index d3e8792ed..b90683050 100644
--- a/src/expr/node.h
+++ b/src/expr/node.h
@@ -570,6 +570,13 @@ struct NodeHashFunction {
}
};
+// for hash_maps, hash_sets..
+struct TNodeHashFunction {
+ size_t operator()(CVC4::TNode node) const {
+ return (size_t) node.getId();
+ }
+};
+
template <bool ref_count>
inline size_t NodeTemplate<ref_count>::getNumChildren() const {
return d_nv->getNumChildren();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback