From dd1112fb5d17b0155e0459e783956d79c21dc767 Mon Sep 17 00:00:00 2001 From: trevor_hansen Date: Wed, 9 Mar 2011 04:14:36 +0000 Subject: [PATCH] Fix. In the prior checkin I didn't keep track of which nodes had been visited. git-svn-id: https://stp-fast-prover.svn.sourceforge.net/svnroot/stp-fast-prover/trunk/stp@1195 e59a4935-1847-0410-ae03-e826735625c1 --- src/simplifier/MutableASTNode.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simplifier/MutableASTNode.h b/src/simplifier/MutableASTNode.h index 1ed2c43..77aecff 100644 --- a/src/simplifier/MutableASTNode.h +++ b/src/simplifier/MutableASTNode.h @@ -258,7 +258,7 @@ private: void getAllVariablesRecursively(vector & result, set& visited) { - if (visited.find(this) != visited.end()) + if (!visited.insert(this).second) return; if (isSymbol()) result.push_back(this); -- 2.47.3