mirror of
https://github.com/Z3Prover/z3
synced 2025-04-24 01:25:31 +00:00
return unknown if m_array_weak was used and result is satisfiable
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
3f032e85e0
commit
0a29002c2f
6 changed files with 61 additions and 18 deletions
|
@ -954,6 +954,16 @@ br_status seq_rewriter::mk_seq_at(expr* a, expr* b, expr_ref& result) {
|
|||
return BR_FAILED;
|
||||
}
|
||||
unsigned len = r.get_unsigned();
|
||||
expr* a2 = nullptr, *i2 = nullptr;
|
||||
if (m_util.str.is_at(a, a2, i2)) {
|
||||
if (len > 0) {
|
||||
result = m_util.str.mk_empty(m().get_sort(a));
|
||||
}
|
||||
else {
|
||||
result = a2;
|
||||
}
|
||||
return BR_DONE;
|
||||
}
|
||||
|
||||
expr_ref_vector as(m());
|
||||
m_util.str.get_concat_units(a, as);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue