Avoid escaping `double-quotes` twice. (#7409)
authorAbdalrhman Mohamed <32971963+abdoo8080@users.noreply.github.com>
Wed, 20 Oct 2021 01:11:53 +0000 (20:11 -0500)
committerGitHub <noreply@github.com>
Wed, 20 Oct 2021 01:11:53 +0000 (01:11 +0000)
commit3ae2c455dbb6ac95834fd23082688b11784dfcae
treeeaccac82ff73f442a78fc1ccc9d9b7f4c6993c8a
parentf047038b1bec31a1ebb89e9d35e3aebb3301eddc
Avoid escaping `double-quotes` twice. (#7409)

With -o raw-benchmark, The command:

(echo """")
was printed as

(echo """""""")
because we run the quote-escaping procedure twice on it. This PR fixes the issue by ensuring that we only run it once.
src/parser/smt2/Smt2.g
src/printer/smt2/smt2_printer.cpp
src/smt/command.cpp
src/util/smt2_quote_string.cpp
src/util/smt2_quote_string.h