summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim King <taking@google.com>2017-03-27 23:26:34 -0700
committerTim King <taking@google.com>2017-03-27 23:26:34 -0700
commitf0a621b5cd4478ea9b7263ebe1d162495553e1a9 (patch)
tree75ef1d685f326ca6eef622aae1c5c4693dd737a1
parent10a9f52fcb1aedd662c87a394a3df76a4d66b5c9 (diff)
Fixing a bug for checking whether a node was visited.
-rw-r--r--src/theory/theory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/theory/theory.cpp b/src/theory/theory.cpp
index 021aa61c6..5e14d1cb5 100644
--- a/src/theory/theory.cpp
+++ b/src/theory/theory.cpp
@@ -374,7 +374,7 @@ std::vector<Node> ExtTheory::collectVars(Node n) {
while (!worklist.empty()) {
Node current = worklist.back();
worklist.pop_back();
- if (current.isConst() || visited.count(current) <= 0) {
+ if (current.isConst() || visited.count(current) > 0) {
continue;
}
visited.insert(current);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback