summaryrefslogtreecommitdiff
path: root/src/printer
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2019-12-03 11:04:48 -0600
committerGitHub <noreply@github.com>2019-12-03 11:04:48 -0600
commite15460b44a819b4ae6f3a2a54133b89f4ae39f26 (patch)
tree25c709632df6029b6bccd94b22d7f21662c8adf8 /src/printer
parent7cc052bb6cf4aa0acbe5b26d5561984e17c367a5 (diff)
parent8a114b1899a5b31dfe733b0dd4ed897942e43f03 (diff)
Merge branch 'master' into rewContainsPRrewContainsPR
Diffstat (limited to 'src/printer')
-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