41template <
typename GraphTraits>
45 typedef typename GraphTraits::edge_t
edge_t;
57template <
typename GraphTraits>
61 typedef typename GraphTraits::node_t
node_t;
79template <
typename GraphTraits>
83 typedef typename GraphTraits::node_t
node_t;
84 typedef typename GraphTraits::edge_t
edge_t;
125template <
typename GraphTraits>
129 typedef typename GraphTraits::node_t
node_t;
144template <
typename GraphTraits>
167 root_cluster->add_node (n);
168 root_cluster->dump_dot (&gv, args);
176 n->dump_dot (&gv, args);
183 e->dump_dot (&gv, args);
195template <
typename GraphTraits>
205 dump_dot_to_pp (&pp, root_cluster, args);
213template <
typename GraphTraits>
219 FILE *fp =
fopen (path,
"w");
220 dump_dot_to_file (fp, root_cluster, args);
226template <
typename GraphTraits>
230 m_nodes.safe_push (node);
236template <
typename GraphTraits>
240 m_edges.safe_push (
edge);
241 edge->m_dest->m_preds.safe_push (
edge);
242 edge->m_src->m_succs.safe_push (
edge);
Definition exploded-graph.h:203
virtual void dump_dot(graphviz_out *gv, const dump_args_t &) const =0
virtual void add_node(node_t *node)=0
GraphTraits::node_t node_t
Definition digraph.h:129
GraphTraits::dump_args_t dump_args_t
Definition digraph.h:130
virtual ~cluster()
Definition digraph.h:132
virtual void dump_dot(graphviz_out *gv, const dump_args_t &args) const =0
GraphTraits::dump_args_t dump_args_t
Definition digraph.h:62
node_t *const m_src
Definition digraph.h:71
node_t *const m_dest
Definition digraph.h:72
dedge(node_t *src, node_t *dest)
Definition digraph.h:64
GraphTraits::node_t node_t
Definition digraph.h:61
virtual ~dedge()
Definition digraph.h:67
GraphTraits::cluster_t cluster_t
Definition digraph.h:86
auto_delete_vec< edge_t > m_edges
Definition digraph.h:105
void dump_dot_to_pp(pretty_printer *pp, cluster_t *root_cluster, const dump_args_t &args) const
Definition digraph.h:146
GraphTraits::dump_args_t dump_args_t
Definition digraph.h:85
void dump_dot_to_file(FILE *fp, cluster_t *root_cluster, const dump_args_t &args) const
Definition digraph.h:197
auto_delete_vec< node_t > m_nodes
Definition digraph.h:104
void add_edge(edge_t *edge)
Definition digraph.h:238
void dump_dot(const char *path, cluster_t *root_cluster, const dump_args_t &args) const
Definition digraph.h:215
GraphTraits::node_t node_t
Definition digraph.h:83
GraphTraits::edge_t edge_t
Definition digraph.h:84
virtual ~digraph()
Definition digraph.h:89
void add_node(node_t *node)
Definition digraph.h:228
digraph()
Definition digraph.h:88
GraphTraits::dump_args_t dump_args_t
Definition digraph.h:46
GraphTraits::edge_t edge_t
Definition digraph.h:45
virtual void dump_dot(graphviz_out *gv, const dump_args_t &args) const =0
virtual ~dnode()
Definition digraph.h:48
auto_vec< edge_t * > m_preds
Definition digraph.h:51
auto_vec< edge_t * > m_succs
Definition digraph.h:52
void outdent()
Definition graphviz.h:39
void void void indent()
Definition graphviz.h:38
Definition pretty-print.h:241
void set_output_stream(FILE *outfile)
Definition pretty-print.h:274
class edge_def * edge
Definition coretypes.h:352
i
Definition poly-int.h:776
void pp_flush(pretty_printer *pp)
Definition pretty-print.cc:2349
void pp_newline(pretty_printer *pp)
Definition pretty-print.cc:2626
void pp_string(pretty_printer *pp, const char *str)
Definition pretty-print.cc:2653
printer_fn & pp_format_decoder(pretty_printer *pp)
Definition pretty-print.h:441
#define fopen(PATH, MODE)
Definition system.h:62
bool default_tree_printer(pretty_printer *pp, text_info *text, const char *spec, int precision, bool wide, bool set_locus, bool hash, bool *, pp_token_list &)
Definition tree-diagnostic.cc:57
#define FOR_EACH_VEC_ELT(V, I, P)
Definition vec.h:1884