File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/org/sosy_lab/java_smt/basicimpl Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,11 @@ private static boolean isCodePointInRange(int codePoint) {
78
78
protected static String escapeUnicodeForSmtlib (String input ) {
79
79
StringBuilder sb = new StringBuilder ();
80
80
for (int codePoint : input .codePoints ().toArray ()) {
81
- if (0x20 <= codePoint && codePoint <= 0x7E ) {
81
+ if (codePoint == 0x5c ) {
82
+ // Backslashes must be escaped, otherwise they may get substituted when reading back
83
+ // the results from the model
84
+ sb .append ("\\ u{5c}" );
85
+ } else if (0x20 <= codePoint && codePoint <= 0x7E ) {
82
86
sb .appendCodePoint (codePoint ); // normal printable chars
83
87
} else {
84
88
sb .append ("\\ u{" ).append (String .format ("%05X" , codePoint )).append ("}" );
You can’t perform that action at this time.
0 commit comments