diff options
author | Tianyi Liang <tianyi-liang@uiowa.edu> | 2015-02-24 22:13:28 -0600 |
---|---|---|
committer | Tianyi Liang <tianyi-liang@uiowa.edu> | 2015-02-24 22:13:28 -0600 |
commit | 57166b98acb6e226e385e6dd4aff9e45a0080aaf (patch) | |
tree | 600760d68439baace20102c0ff415eee132f732a /src/theory/strings/regexp_operation.cpp | |
parent | 48bc3c425947542ca1a337e08044c8f745600690 (diff) |
minor fix for internal string print
Diffstat (limited to 'src/theory/strings/regexp_operation.cpp')
-rw-r--r-- | src/theory/strings/regexp_operation.cpp | 3 |
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: { |