summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTianyi Liang <tianyi-liang@uiowa.edu>2015-02-24 22:13:28 -0600
committerTianyi Liang <tianyi-liang@uiowa.edu>2015-02-24 22:13:28 -0600
commit57166b98acb6e226e385e6dd4aff9e45a0080aaf (patch)
tree600760d68439baace20102c0ff415eee132f732a
parent48bc3c425947542ca1a337e08044c8f745600690 (diff)
minor fix for internal string print
-rw-r--r--src/theory/strings/regexp_operation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/theory/strings/regexp_operation.cpp b/src/theory/strings/regexp_operation.cpp
index 20b13f7b1..061b1adb5 100644
--- a/src/theory/strings/regexp_operation.cpp
+++ b/src/theory/strings/regexp_operation.cpp
@@ -2082,7 +2082,8 @@ std::string RegExpOpr::mkString( Node r ) {
break;
}
case kind::STRING_TO_REGEXP: {
- retStr += niceChar( r[0] );
+ std::string tmp( niceChar( r[0] ) );
+ retStr += tmp.size()==1? tmp : "(" + tmp + ")";
break;
}
case kind::REGEXP_CONCAT: {
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback