mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 12:08:18 +00:00
avoid access to invalid m_length
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
a1cb3a21f6
commit
b53f66bf2f
|
@ -1904,7 +1904,6 @@ bool theory_seq::check_length_coherence() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
bool change = false;
|
|
||||||
for (expr* l : m_length) {
|
for (expr* l : m_length) {
|
||||||
expr* e = nullptr;
|
expr* e = nullptr;
|
||||||
VERIFY(m_util.str.is_length(l, e));
|
VERIFY(m_util.str.is_length(l, e));
|
||||||
|
@ -1912,10 +1911,9 @@ bool theory_seq::check_length_coherence() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (add_length_to_eqc(e)) {
|
if (add_length_to_eqc(e)) {
|
||||||
change = true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return change;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool theory_seq::fixed_length(bool is_zero) {
|
bool theory_seq::fixed_length(bool is_zero) {
|
||||||
|
|
Loading…
Reference in a new issue