mirror of
https://github.com/Z3Prover/z3
synced 2026-05-17 07:29:28 +00:00
Extract argument of unit when adding constant character to range
This commit is contained in:
parent
8b2643ff02
commit
46364a1502
1 changed files with 3 additions and 1 deletions
|
|
@ -350,7 +350,9 @@ namespace seq {
|
|||
// for a concrete character just check if it matches
|
||||
expr* val = sym_char->get_expr();
|
||||
unsigned ch;
|
||||
VERIFY(graph().seq().is_const_char(val, ch));
|
||||
expr* ch_expr;
|
||||
VERIFY(graph().seq().str.is_unit(val, ch_expr));
|
||||
VERIFY(graph().seq().is_const_char(ch_expr, ch));
|
||||
for (unsigned i = 0; i < range.ranges().size(); i++) {
|
||||
if (range.ranges()[i].contains(ch))
|
||||
return; // matches, no conflict
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue