From: Andrew Reynolds Date: Tue, 31 Aug 2021 12:43:05 +0000 (-0500) Subject: Make regular expression sort not closed enumerable (#7092) X-Git-Tag: cvc5-1.0.0~1316 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1954e0a0bd07ab2236c59bee2bc3da53e2018f23;p=cvc5.git Make regular expression sort not closed enumerable (#7092) 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. --- diff --git a/src/expr/type_node.cpp b/src/expr/type_node.cpp index fa6a56c99..a7747c674 100644 --- 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; }