Fix bug in getSymbols. (#2544)
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>
Thu, 27 Sep 2018 03:25:35 +0000 (22:25 -0500)
committerGitHub <noreply@github.com>
Thu, 27 Sep 2018 03:25:35 +0000 (22:25 -0500)
src/expr/node_algorithm.cpp

index 9240e4a8e1d40dc708f6165c5662c5d2ff6bacc2..4bbfb5df812b2a8388569192f87f1395798fec86 100644 (file)
@@ -169,7 +169,7 @@ bool hasFreeVar(TNode n)
 void getSymbols(TNode n, std::unordered_set<Node, NodeHashFunction>& syms)
 {
   std::unordered_set<TNode, TNodeHashFunction> visited;
-  getSymbols(n, syms);
+  getSymbols(n, syms, visited);
 }
 
 void getSymbols(TNode n,