mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 02:42:02 +00:00
simplify code fix for #1725
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
ec6260342b
commit
e37954d87b
1 changed files with 1 additions and 4 deletions
|
@ -532,10 +532,7 @@ unsigned_vector theory_seq::overlap(expr_ref_vector const& ls, expr_ref_vector c
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
result.reset();
|
result.reset();
|
||||||
if (eq_unit(ls[0], rs.back())) {
|
for (unsigned i = 0; i < ls.size(); ++i) {
|
||||||
result.push_back(1);
|
|
||||||
}
|
|
||||||
for (unsigned i = 1; i < ls.size(); ++i) {
|
|
||||||
if (eq_unit(ls[i], rs.back())) {
|
if (eq_unit(ls[i], rs.back())) {
|
||||||
bool same = rs.size() > i;
|
bool same = rs.size() > i;
|
||||||
for (unsigned j = 0; same && j < i; ++j) {
|
for (unsigned j = 0; same && j < i; ++j) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue