Fixes #6567.
if (ch[0] > ch[1])
{
// re.range( "B", "A" ) ---> re.none
- Node retNode = nm->mkNode(REGEXP_EMPTY, {});
+ std::vector<Node> emptyVec;
+ Node retNode = nm->mkNode(REGEXP_EMPTY, emptyVec);
return returnRewrite(node, retNode, Rewrite::RE_RANGE_EMPTY);
}
return node;
regress1/strings/issue6270.smt2
regress1/strings/issue6271-rnf.smt2
regress1/strings/issue6271-2-rnf.smt2
+ regress1/strings/issue6567-empty-re-range.smt2
regress1/strings/kaluza-fl.smt2
regress1/strings/loop002.smt2
regress1/strings/loop003.smt2
--- /dev/null
+(set-logic ALL)
+(set-info :status sat)
+(assert (str.in_re "" (re.* (re.range "b" "a"))))
+(check-sat)