diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2019-12-02 14:21:05 -0800 |
---|---|---|
committer | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2019-12-02 16:21:05 -0600 |
commit | 6bff71eab6102c1dd44698e75a0e1b0db72c2f65 (patch) | |
tree | bae71118b6cbe9a917bcdf4db9ce0ea58f8d3aa6 /src/printer/smt2/smt2_printer.cpp | |
parent | 207de293b26cf7771814d3cf421e64fc6116434e (diff) |
[SMT2 Printer] Quote symbols starting with digit (#3517)
Diffstat (limited to 'src/printer/smt2/smt2_printer.cpp')
-rw-r--r-- | src/printer/smt2/smt2_printer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/printer/smt2/smt2_printer.cpp b/src/printer/smt2/smt2_printer.cpp index 1f45d8536..555908ea2 100644 --- a/src/printer/smt2/smt2_printer.cpp +++ b/src/printer/smt2/smt2_printer.cpp @@ -95,7 +95,7 @@ static std::string maybeQuoteSymbol(const std::string& s) { if (s.find_first_not_of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" "0123456789~!@$%^&*_-+=<>.?/") != string::npos - || s.empty()) + || s.empty() || (s[0] >= '0' && s[0] <= '9')) { // need to quote it stringstream ss; |