fix misuse of iterator with a different container (#3214)
authorPiotr Trojanek <ptroja@users.noreply.github.com>
Sat, 24 Aug 2019 17:48:44 +0000 (19:48 +0200)
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>
Sat, 24 Aug 2019 17:48:44 +0000 (12:48 -0500)
src/expr/node_algorithm.cpp

index c20dddbcc3c7e30cdfffaaaf5b1ecee427828f42..50ac8297ceeeca0ef0ba59834a8d785997685313 100644 (file)
@@ -100,7 +100,7 @@ bool hasSubtermMulti(TNode n, TNode t)
       for (const Node& cn : cur)
       {
         it = contains.find(cn);
-        Assert(it != visited.end());
+        Assert(it != contains.end());
         if (it->second)
         {
           if (doesContain)