Skip to content

Commit

Permalink
avoid access to invalid m_length
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <[email protected]>
  • Loading branch information
NikolajBjorner committed Oct 6, 2019
1 parent a1cb3a2 commit b53f66b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/smt/theory_seq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1904,18 +1904,16 @@ bool theory_seq::check_length_coherence() {
return true;
}
}
bool change = false;
for (expr* l : m_length) {
expr* e = nullptr;
VERIFY(m_util.str.is_length(l, e));
if (check_length_coherence(e)) {
return true;
}
if (add_length_to_eqc(e)) {
change = true;
return true;
}
}
return change;
}

bool theory_seq::fixed_length(bool is_zero) {
Expand Down

0 comments on commit b53f66b

Please sign in to comment.