summaryrefslogtreecommitdiff
path: root/src/expr
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr')
-rw-r--r--src/expr/node.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/expr/node.h b/src/expr/node.h
index 9351293f8..372eec8c0 100644
--- a/src/expr/node.h
+++ b/src/expr/node.h
@@ -27,6 +27,7 @@
#include <vector>
#include <string>
#include <iostream>
+#include <utility>
#include <stdint.h>
#include "expr/type.h"
@@ -877,6 +878,15 @@ struct TNodeHashFunction {
}
};/* struct TNodeHashFunction */
+struct TNodePairHashFunction {
+ size_t operator()(const std::pair<CVC4::TNode, CVC4::TNode>& pair ) const {
+ TNode n1 = pair.first;
+ TNode n2 = pair.second;
+
+ return (size_t) (n1.getId() * 0x9e3779b9 + n2.getId());
+ }
+};/* struct TNodePairHashFunction */
+
template <bool ref_count>
inline size_t NodeTemplate<ref_count>::getNumChildren() const {
assertTNodeNotExpired();
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback