diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-05-20 22:27:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 22:27:04 -0500 |
commit | 3dc56426a37bf85f82ed6dc8cf15e4eb81498110 (patch) | |
tree | a1bb0720f22597fad9e699082fd9301a013793b2 /src/theory/strings/term_registry.cpp | |
parent | 7c0b92c30688d8c7830bf3611213e96026ecf1f5 (diff) |
Throw logic exception for equality between regular expressions (#4505)
Fixes #4503.
Diffstat (limited to 'src/theory/strings/term_registry.cpp')
-rw-r--r-- | src/theory/strings/term_registry.cpp | 6 |
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; } |