3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-07-18 02:16:40 +00:00
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2015-12-09 23:19:16 -08:00
parent d58c219b54
commit f9ca66d90b
3 changed files with 66 additions and 44 deletions

View file

@ -154,6 +154,12 @@ br_status seq_rewriter::mk_seq_length(expr* a, expr_ref& result) {
if (m_util.str.is_string(m_es[i], b)) {
len += b.length();
}
else if (m_util.str.is_unit(m_es[i])) {
len += 1;
}
else if (m_util.str.is_empty(m_es[i])) {
// skip
}
else {
m_es[j] = m_es[i];
++j;