3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-06-20 07:36:31 +00:00

re.plus is a regex as well

This commit is contained in:
CEisenhofer 2026-05-22 14:03:22 +02:00
parent 2ea1c74071
commit 7ede1b9c3d
3 changed files with 34 additions and 24 deletions

View file

@ -73,6 +73,9 @@ namespace euf {
if (m_seq.re.is_star(e))
return snode_kind::s_star;
if (m_seq.re.is_plus(e))
return snode_kind::s_plus;
if (m_seq.re.is_loop(e))
return snode_kind::s_loop;
@ -172,6 +175,7 @@ namespace euf {
}
case snode_kind::s_star:
case snode_kind::s_plus:
SASSERT(n->num_args() == 1);
n->m_ground = n->arg(0)->is_ground();
n->m_regex_free = false;
@ -759,6 +763,7 @@ namespace euf {
case snode_kind::s_concat: return "concat";
case snode_kind::s_power: return "power";
case snode_kind::s_star: return "star";
case snode_kind::s_plus: return "plus";
case snode_kind::s_loop: return "loop";
case snode_kind::s_union: return "union";
case snode_kind::s_intersect: return "intersect";