summaryrefslogtreecommitdiff
path: root/src/theory/substitutions.h
diff options
context:
space:
mode:
authorMorgan Deters <mdeters@gmail.com>2012-03-01 14:48:04 +0000
committerMorgan Deters <mdeters@gmail.com>2012-03-01 14:48:04 +0000
commit45a138c326da72890bf889a3670aad503ef4aa1e (patch)
treefa0c9a8497d0b33f78a9f19212152a61392825cc /src/theory/substitutions.h
parent8c0b2d6db32103268f84d89c0d0545c7eb504069 (diff)
Partial merge from kind-backend branch, including Minisat and CNF work to
support incrementality. Some clean-up work will likely follow, but the CNF/Minisat stuff should be left pretty much untouched. Expected performance change negligible; slightly better on memory: http://church.cims.nyu.edu/regress-results/compare_jobs.php?job_id=3705&reference_id=3697&mode=&category=&p=5 Note that there are crashes, but that these are exhibited in the nightly regression run too!
Diffstat (limited to 'src/theory/substitutions.h')
-rw-r--r--src/theory/substitutions.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/theory/substitutions.h b/src/theory/substitutions.h
index c03baa1ac..1ade4815d 100644
--- a/src/theory/substitutions.h
+++ b/src/theory/substitutions.h
@@ -48,6 +48,9 @@ public:
typedef context::CDMap<Node, Node, NodeHashFunction> NodeMap;
+ typedef NodeMap::iterator iterator;
+ typedef NodeMap::const_iterator const_iterator;
+
private:
typedef std::hash_map<Node, Node, NodeHashFunction> NodeCache;
@@ -115,6 +118,22 @@ public:
return const_cast<SubstitutionMap*>(this)->apply(t);
}
+ iterator begin() {
+ return d_substitutions.begin();
+ }
+
+ iterator end() {
+ return d_substitutions.end();
+ }
+
+ const_iterator begin() const {
+ return d_substitutions.begin();
+ }
+
+ const_iterator end() const {
+ return d_substitutions.end();
+ }
+
// NOTE [MGD]: removed clear() and swap() from the interface
// when this data structure became context-dependent
// because they weren't used---and it's not clear how they
@@ -134,6 +153,9 @@ inline std::ostream& operator << (std::ostream& out, const SubstitutionMap& subs
}
}/* CVC4::theory namespace */
+
+std::ostream& operator<<(std::ostream& out, const theory::SubstitutionMap::iterator& i);
+
}/* CVC4 namespace */
#endif /* __CVC4__THEORY__SUBSTITUTIONS_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback