Fixed assertion bug
authorClark Barrett <barrett@cs.nyu.edu>
Wed, 8 May 2013 15:25:14 +0000 (11:25 -0400)
committerClark Barrett <barrett@cs.nyu.edu>
Wed, 8 May 2013 15:25:26 +0000 (11:25 -0400)
src/theory/arrays/theory_arrays.cpp

index 3e0a41591444c770715098e0b1c4bef699020fc9..89f1dbf2c28285e58bd1787ed3fd14a3cc623b09 100644 (file)
@@ -464,7 +464,9 @@ void TheoryArrays::preRegisterTermInternal(TNode node)
   }
   case kind::STORE: {
     // Invariant: array terms should be preregistered before being added to the equality engine
-    Assert(!d_equalityEngine.hasTerm(node));
+    if (d_equalityEngine.hasTerm(node)) {
+      break;
+    }
     d_equalityEngine.addTriggerTerm(node, THEORY_ARRAY);
 
     TNode a = d_equalityEngine.getRepresentative(node[0]);