Reverting part of the previous changes to unconstrained simplifier.
authorTim King <taking@google.com>
Tue, 27 Sep 2016 16:18:34 +0000 (09:18 -0700)
committerTim King <taking@google.com>
Tue, 27 Sep 2016 16:18:34 +0000 (09:18 -0700)
src/theory/unconstrained_simplifier.cpp

index 32bbc662e03b6d6734ada114ea622652265faa80..d13cc1f03726d01041ed2c09878289df068379eb 100644 (file)
@@ -107,6 +107,7 @@ void UnconstrainedSimplifier::processUnconstrained()
     workList.push_back(*it);
   }
   Node currentSub;
+  TNode parent;
   bool swap;
   bool isSigned;
   bool strict;
@@ -117,7 +118,7 @@ void UnconstrainedSimplifier::processUnconstrained()
   workList.pop_back();
   for (;;) {
     Assert(d_visitedOnce.find(current) != d_visitedOnce.end());
-    const TNode parent = d_visitedOnce[current];
+    parent = d_visitedOnce[current];
     if (!parent.isNull()) {
       swap = isSigned = strict = false;
       switch (parent.getKind()) {