3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-22 05:43:39 +00:00

Minor fixes to ast_pp_dot

This commit is contained in:
Arie Gurfinkel 2018-05-15 09:43:01 -07:00
parent 247c570e6b
commit 10106e8e12
2 changed files with 10 additions and 4 deletions

View file

@ -9,7 +9,8 @@ Abstract: Pretty-printer for proofs in Graphviz format
#include "ast/ast_pp_dot.h"
// string escaping for DOT
std::string escape_dot(std::string const & s) {
std::string escape_dot(const std::string &s)
{
std::string res;
res.reserve(s.size()); // preallocate
for (auto c : s) {