From 81b78827f65b42f22f16874bbf0c8269ed0734fc Mon Sep 17 00:00:00 2001 From: Clark Barrett Date: Wed, 30 May 2012 16:16:18 +0000 Subject: [PATCH] Fixed problem with array queue growing too large --- src/theory/arrays/theory_arrays.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/theory/arrays/theory_arrays.cpp b/src/theory/arrays/theory_arrays.cpp index cdc736d14..65e409012 100644 --- a/src/theory/arrays/theory_arrays.cpp +++ b/src/theory/arrays/theory_arrays.cpp @@ -68,7 +68,7 @@ TheoryArrays::TheoryArrays(context::Context* c, context::UserContext* u, OutputC d_infoMap(c, &d_backtracker), d_mergeQueue(c), d_mergeInProgress(false), - d_RowQueue(u), + d_RowQueue(c), d_RowAlreadyAdded(u), d_sharedArrays(c), d_sharedTerms(c, false), @@ -1287,7 +1287,6 @@ void TheoryArrays::dischargeLemmas() if (!d_equalityEngine.hasTerm(i) || !d_equalityEngine.hasTerm(j) || d_equalityEngine.areEqual(i,j) || !d_equalityEngine.hasTerm(a) || !d_equalityEngine.hasTerm(b) || d_equalityEngine.areEqual(a,b) || (ajExists && bjExists && d_equalityEngine.areEqual(aj,bj))) { - d_RowQueue.push(l); continue; } @@ -1313,7 +1312,6 @@ void TheoryArrays::dischargeLemmas() d_equalityEngine.assertEquality(bj.eqNode(bj2), true, d_true); } if (aj2 == bj2) { - d_RowQueue.push(l); continue; } @@ -1328,7 +1326,6 @@ void TheoryArrays::dischargeLemmas() preRegisterTerm(bj2); } d_equalityEngine.assertEquality(eq1, true, d_true); - d_RowQueue.push(l); continue; } @@ -1336,7 +1333,6 @@ void TheoryArrays::dischargeLemmas() Node eq2_r = Rewriter::rewrite(eq2); if (eq2_r == d_true) { d_equalityEngine.assertEquality(eq2, true, d_true); - d_RowQueue.push(l); continue; } -- 2.30.2