diff options
author | Clark Barrett <barrett@cs.nyu.edu> | 2012-06-18 19:59:56 +0000 |
---|---|---|
committer | Clark Barrett <barrett@cs.nyu.edu> | 2012-06-18 19:59:56 +0000 |
commit | 8adb4e13c5c28059ed9271522137daf341942a75 (patch) | |
tree | d009a347b09272afd8ac8afcfa584e00fc79c6d5 /src/theory/arrays/theory_arrays.cpp | |
parent | a25f3475eee00a4920762b9a8b3d127b6211e0f6 (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.cpp | 4 |
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()); |