mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
Minor fixes to ast_pp_dot
This commit is contained in:
parent
247c570e6b
commit
10106e8e12
2 changed files with 10 additions and 4 deletions
|
@ -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) {
|
||||
|
|
|
@ -4,10 +4,11 @@ Abstract: Pretty-printer for proofs in Graphviz format
|
|||
|
||||
--*/
|
||||
|
||||
#pragma once
|
||||
#ifndef _AST_PP_DOT_
|
||||
#define _AST_PP_DOT_
|
||||
|
||||
#include <iostream>
|
||||
#include "ast_pp.h"
|
||||
#include "ast/ast_pp.h"
|
||||
|
||||
class ast_pp_dot {
|
||||
ast_manager & m_manager;
|
||||
|
@ -21,4 +22,8 @@ class ast_pp_dot {
|
|||
ast_manager & get_manager() const { return m_manager; }
|
||||
};
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const ast_pp_dot & p);
|
||||
std::string escape_dot(std::string const & s);
|
||||
|
||||
std::ostream &operator<<(std::ostream &out, const ast_pp_dot & p);
|
||||
|
||||
#endif /* AST_PP_DOT */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue