summaryrefslogtreecommitdiff
path: root/src/theory
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-05-20 22:27:04 -0500
committerGitHub <noreply@github.com>2020-05-20 22:27:04 -0500
commit3dc56426a37bf85f82ed6dc8cf15e4eb81498110 (patch)
treea1bb0720f22597fad9e699082fd9301a013793b2 /src/theory
parent7c0b92c30688d8c7830bf3611213e96026ecf1f5 (diff)
Throw logic exception for equality between regular expressions (#4505)
Fixes #4503.
Diffstat (limited to 'src/theory')
-rw-r--r--src/theory/strings/term_registry.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/theory/strings/term_registry.cpp b/src/theory/strings/term_registry.cpp
index 3d898b40b..ec034b0c9 100644
--- a/src/theory/strings/term_registry.cpp
+++ b/src/theory/strings/term_registry.cpp
@@ -88,6 +88,12 @@ void TermRegistry::preRegisterTerm(TNode n)
}
if (k == EQUAL)
{
+ if (n[0].getType().isRegExp())
+ {
+ std::stringstream ss;
+ ss << "Equality between regular expressions is not supported";
+ throw LogicException(ss.str());
+ }
d_ee.addTriggerEquality(n);
return;
}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback