3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-19 23:26:30 +00:00

Corrected string extraction

This commit is contained in:
CEisenhofer 2026-06-05 19:57:00 +02:00
parent 8ac7a242eb
commit 67906da97a
4 changed files with 56 additions and 62 deletions

View file

@ -244,8 +244,10 @@ namespace euf {
for (unsigned i = 0; i < cnt; i++) {
const snode* const c = arg(i);
unsigned val;
if (!seq.is_const_char(c->get_expr(), val))
if (!c->is_char())
return false;
expr* d = to_app(c->get_expr())->get_arg(0);
VERIFY(seq.is_const_char(d, val));
str += zstring(val);
}
return true;