summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-02-26 13:54:41 -0600
committerGitHub <noreply@github.com>2020-02-26 13:54:41 -0600
commitb320aa323923822a7702997bbca05e8512da55a4 (patch)
tree62ed510b54bbfef908296a264002052efc4fff98 /src/printer
parentf26ea8026e94252e4f1418be473d10a5f957b988 (diff)
Basic support for regular expression complement (#3437)
Fixes #3408 . Adds basic rewriter, parsing, type checking and implements the required cases in regexp_operation.cpp. It also adds some missing documentation in regexp_operation.h
Diffstat (limited to 'src/printer')
-rw-r--r--src/printer/smt2/smt2_printer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp
index 07422cd8b..e9a4d0a83 100644
--- a/src/printer/smt2/smt2_printer.cpp
+++ b/src/printer/smt2/smt2_printer.cpp
@@ -665,6 +665,7 @@ void Smt2Printer::toStream(std::ostream& out,
case kind::REGEXP_OPT:
case kind::REGEXP_RANGE:
case kind::REGEXP_LOOP:
+ case kind::REGEXP_COMPLEMENT:
case kind::REGEXP_EMPTY:
case kind::REGEXP_SIGMA: out << smtKindString(k, d_variant) << " "; break;
@@ -1236,6 +1237,7 @@ static string smtKindString(Kind k, Variant v)
case kind::REGEXP_OPT: return "re.opt";
case kind::REGEXP_RANGE: return "re.range";
case kind::REGEXP_LOOP: return "re.loop";
+ case kind::REGEXP_COMPLEMENT: return "re.comp";
//sep theory
case kind::SEP_STAR: return "sep";
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback