3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +00:00

re.range with non-unit arguments is the empty language (#4360)

This commit is contained in:
Murphy Berzish 2020-05-17 21:08:50 -05:00 committed by GitHub
parent 152d6338f8
commit 1c760b04cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 7 deletions

View file

@ -308,7 +308,8 @@ eautomaton* re2automaton::re2aut(expr* e) {
return a.detach();
}
else {
TRACE("seq", tout << "Range expression is not handled: " << mk_pp(e, m) << "\n";);
// if e1/e2 are not unit, (re.range e1 e2) is defined to be the empty language
return alloc(eautomaton, sm);
}
}
else if (u.re.is_complement(e, e0) && (a = re2aut(e0)) && m_sa) {