summaryrefslogtreecommitdiff
path: root/src/theory/arrays/theory_arrays.cpp
diff options
context:
space:
mode:
authorClark Barrett <barrett@cs.nyu.edu>2012-06-18 19:59:56 +0000
committerClark Barrett <barrett@cs.nyu.edu>2012-06-18 19:59:56 +0000
commit8adb4e13c5c28059ed9271522137daf341942a75 (patch)
treed009a347b09272afd8ac8afcfa584e00fc79c6d5 /src/theory/arrays/theory_arrays.cpp
parenta25f3475eee00a4920762b9a8b3d127b6211e0f6 (diff)
Fix for slow array rewrite and minor bug fix in arrays that popped up as a result
Diffstat (limited to 'src/theory/arrays/theory_arrays.cpp')
-rw-r--r--src/theory/arrays/theory_arrays.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/theory/arrays/theory_arrays.cpp b/src/theory/arrays/theory_arrays.cpp
index da82e4bc3..460289439 100644
--- a/src/theory/arrays/theory_arrays.cpp
+++ b/src/theory/arrays/theory_arrays.cpp
@@ -770,7 +770,9 @@ Node TheoryArrays::mkAnd(std::vector<TNode>& conjunctions)
all.insert(t);
}
- Assert(all.size() > 0);
+ if (all.size() == 0) {
+ return d_true;
+ }
if (all.size() == 1) {
// All the same, or just one
return *(all.begin());
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback