mirror of
https://github.com/Z3Prover/z3
synced 2025-04-12 20:18:18 +00:00
updated detection of when parenthesis can be omitted to cover empty and epsilon
This commit is contained in:
parent
ae413365e9
commit
e80b143e71
|
@ -1513,7 +1513,7 @@ void seq_util::re::pp::compact_helper_range(std::ostream& out, expr* s1, expr* s
|
||||||
*/
|
*/
|
||||||
bool seq_util::re::pp::can_skip_parenth(expr* r) {
|
bool seq_util::re::pp::can_skip_parenth(expr* r) {
|
||||||
expr* s;
|
expr* s;
|
||||||
return ((re.is_to_re(r, s) && re.u.str.is_unit(s)) || re.is_range(r));
|
return ((re.is_to_re(r, s) && re.u.str.is_unit(s)) || re.is_range(r) || re.is_empty(r) || re.is_epsilon(r));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue