projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
af1b397
)
Make regular expression sort not closed enumerable (#7092)
author
Andrew Reynolds
<andrew.j.reynolds@gmail.com>
Tue, 31 Aug 2021 12:43:05 +0000
(07:43 -0500)
committer
GitHub
<noreply@github.com>
Tue, 31 Aug 2021 12:43:05 +0000
(12:43 +0000)
This ensures we don't try to apply e.g. enumerative instantiation to quantified formulas over regular expressions, since no type enumerator exists for RE.
Fixes #6750.
src/expr/type_node.cpp
patch
|
blob
|
history
diff --git
a/src/expr/type_node.cpp
b/src/expr/type_node.cpp
index fa6a56c991953a747754b1db3dd22205cb6b88bc..a7747c6744643f39e5c8d41c4bf102a2cb9b2d34 100644
(file)
--- a/
src/expr/type_node.cpp
+++ b/
src/expr/type_node.cpp
@@
-208,7
+208,7
@@
bool TypeNode::isClosedEnumerable()
if (!getAttribute(IsClosedEnumerableComputedAttr()))
{
bool ret = true;
- if (isArray() || isSort() || isCodatatype() || isFunction())
+ if (isArray() || isSort() || isCodatatype() || isFunction()
|| isRegExp()
)
{
ret = false;
}