@@ -46,7 +46,7 @@ class dott
4646
4747 void write_dot_subgraph (
4848 std::ostream &,
49- const std::string &,
49+ const irep_idt &,
5050 const goto_programt &);
5151
5252 void do_dot_function_calls (std::ostream &);
@@ -70,15 +70,15 @@ class dott
7070// / \return true on error, false otherwise
7171void dott::write_dot_subgraph (
7272 std::ostream &out,
73- const std::string &name ,
73+ const irep_idt &function ,
7474 const goto_programt &goto_program)
7575{
7676 clusters.push_back (exprt (" cluster" ));
77- clusters.back ().set (" name" , name );
77+ clusters.back ().set (" name" , function );
7878 clusters.back ().set (" nr" , subgraphscount);
7979
80- out << " subgraph \" cluster_" << name << " \" {\n " ;
81- out << " label=\" " << name << " \" ;\n " ;
80+ out << " subgraph \" cluster_" << function << " \" {\n " ;
81+ out << " label=\" " << function << " \" ;\n " ;
8282
8383 const goto_programt::instructionst &instructions =
8484 goto_program.instructions ;
@@ -111,22 +111,22 @@ void dott::write_dot_subgraph(
111111 tmp.str (" Goto" );
112112 else
113113 {
114- std::string t = from_expr (ns, it-> function , it->guard );
114+ std::string t = from_expr (ns, function, it->guard );
115115 while (t[ t.size ()-1 ]==' \n ' )
116116 t = t.substr (0 , t.size ()-1 );
117117 tmp << escape (t) << " ?" ;
118118 }
119119 }
120120 else if (it->is_assume ())
121121 {
122- std::string t = from_expr (ns, it-> function , it->guard );
122+ std::string t = from_expr (ns, function, it->guard );
123123 while (t[ t.size ()-1 ]==' \n ' )
124124 t = t.substr (0 , t.size ()-1 );
125125 tmp << " Assume\\ n(" << escape (t) << " )" ;
126126 }
127127 else if (it->is_assert ())
128128 {
129- std::string t = from_expr (ns, it-> function , it->guard );
129+ std::string t = from_expr (ns, function, it->guard );
130130 while (t[ t.size ()-1 ]==' \n ' )
131131 t = t.substr (0 , t.size ()-1 );
132132 tmp << " Assert\\ n(" << escape (t) << " )" ;
@@ -145,7 +145,7 @@ void dott::write_dot_subgraph(
145145 tmp.str (" Atomic End" );
146146 else if (it->is_function_call ())
147147 {
148- std::string t = from_expr (ns, it-> function , it->code );
148+ std::string t = from_expr (ns, function, it->code );
149149 while (t[ t.size ()-1 ]==' \n ' )
150150 t = t.substr (0 , t.size ()-1 );
151151 tmp.str (escape (t));
@@ -162,7 +162,7 @@ void dott::write_dot_subgraph(
162162 it->is_return () ||
163163 it->is_other ())
164164 {
165- std::string t = from_expr (ns, it-> function , it->code );
165+ std::string t = from_expr (ns, function, it->code );
166166 while (t[ t.size ()-1 ]==' \n ' )
167167 t = t.substr (0 , t.size ()-1 );
168168 tmp.str (escape (t));
@@ -268,7 +268,7 @@ void dott::output(std::ostream &out)
268268
269269 forall_goto_functions (it, goto_model.goto_functions )
270270 if (it->second .body_available ())
271- write_dot_subgraph (out, id2string ( it->first ) , it->second .body );
271+ write_dot_subgraph (out, it->first , it->second .body );
272272
273273 do_dot_function_calls (out);
274274
0 commit comments