From: trevor_hansen Date: Wed, 9 Mar 2011 04:14:36 +0000 (+0000) Subject: Fix. In the prior checkin I didn't keep track of which nodes had been visited. X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=dd1112fb5d17b0155e0459e783956d79c21dc767;p=francis%2Fstp.git 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 --- 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);