@@ -264,9 +264,11 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
264264 case goto_trace_stept::typet::ASSERT:
265265 case goto_trace_stept::typet::GOTO:
266266 {
267- xmlt edge (" edge" );
268- edge.set_attribute (" source" , graphml[from].node_name );
269- edge.set_attribute (" target" , graphml[to].node_name );
267+ xmlt edge (
268+ " edge" ,
269+ {{" source" , graphml[from].node_name },
270+ {" target" , graphml[to].node_name }},
271+ {});
270272
271273 {
272274 xmlt &data_f=edge.new_element (" data" );
@@ -302,9 +304,9 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
302304 val.data =" [" +(it->cond_value ? cond : neg_cond)+" ]" ;
303305
304306 #if 0
305- xmlt edge2("edge");
306- edge2.set_attribute( "source", graphml[from].node_name);
307- edge2.set_attribute( "target", graphml[sink].node_name);
307+ xmlt edge2("edge", {
308+ { "source", graphml[from].node_name},
309+ { "target", graphml[sink].node_name}}, {} );
308310
309311 xmlt &data_f2=edge2.new_element("data");
310312 data_f2.set_attribute("key", "originfile");
@@ -447,9 +449,11 @@ void graphml_witnesst::operator()(const symex_target_equationt &equation)
447449 case goto_trace_stept::typet::ASSERT:
448450 case goto_trace_stept::typet::GOTO:
449451 {
450- xmlt edge (" edge" );
451- edge.set_attribute (" source" , graphml[from].node_name );
452- edge.set_attribute (" target" , graphml[to].node_name );
452+ xmlt edge (
453+ " edge" ,
454+ {{" source" , graphml[from].node_name },
455+ {" target" , graphml[to].node_name }},
456+ {});
453457
454458 {
455459 xmlt &data_f=edge.new_element (" data" );
0 commit comments