]> git.unchartedbackwaters.co.uk Git - francis/stp.git/commitdiff
Fix. In the prior checkin I didn't keep track of which nodes had been visited.
authortrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 9 Mar 2011 04:14:36 +0000 (04:14 +0000)
committertrevor_hansen <trevor_hansen@e59a4935-1847-0410-ae03-e826735625c1>
Wed, 9 Mar 2011 04:14:36 +0000 (04:14 +0000)
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

index 1ed2c43a6cebed84c4c49b02f2017da23f6d7951..77aecff0eb1f62be0e48bef606775a44a594ae5c 100644 (file)
@@ -258,7 +258,7 @@ private:
     void
     getAllVariablesRecursively(vector<MutableASTNode*> & result, set<MutableASTNode*>& visited)
     {
-      if (visited.find(this) != visited.end())
+      if (!visited.insert(this).second)
         return;
       if (isSymbol())
         result.push_back(this);