summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2019-12-02 14:21:05 -0800
committerAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-12-02 16:21:05 -0600
commit6bff71eab6102c1dd44698e75a0e1b0db72c2f65 (patch)
treebae71118b6cbe9a917bcdf4db9ce0ea58f8d3aa6 /src
parent207de293b26cf7771814d3cf421e64fc6116434e (diff)
[SMT2 Printer] Quote symbols starting with digit (#3517)
Diffstat (limited to 'src')
-rw-r--r--src/printer/smt2/smt2_printer.cpp2
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;
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback