@@ -333,35 +333,13 @@ void graphml_witnesst::operator()(const goto_tracet &goto_trace)
333
333
else if (it->type ==goto_trace_stept::typet::GOTO &&
334
334
it->pc ->is_goto ())
335
335
{
336
+ #if 0
337
+ // TODO: this requires knowledge about the phase of the
338
+ // condition in the source code
336
339
xmlt &val=edge.new_element("data");
337
- val.set_attribute (" key" , " sourcecode" );
338
- exprt clean_cond=it->cond_expr ;
339
- remove_l0_l1 (clean_cond);
340
- const std::string cond=from_expr (ns, " " , clean_cond);
341
- const std::string neg_cond=
342
- from_expr (ns, " " , not_exprt (clean_cond));
343
- val.data =" [" +(it->cond_value ? cond : neg_cond)+" ]" ;
344
-
345
- #if 0
346
- xmlt edge2("edge");
347
- edge2.set_attribute("source", graphml[from].node_name);
348
- edge2.set_attribute("target", graphml[sink].node_name);
349
-
350
- xmlt &data_f2=edge2.new_element("data");
351
- data_f2.set_attribute("key", "originfile");
352
- data_f2.data=id2string(graphml[from].file);
353
-
354
- xmlt &data_l2=edge2.new_element("data");
355
- data_l2.set_attribute("key", "startline");
356
- data_l2.data=id2string(graphml[from].line);
357
-
358
- xmlt &val2=edge2.new_element("data");
359
- val2.set_attribute("key", "sourcecode");
360
- val2.data="["+(it->cond_value ? neg_cond : cond)+"]";
361
-
362
- graphml[sink].in[from].xml_node=edge2;
363
- graphml[from].out[sink].xml_node=edge2;
364
- #endif
340
+ val.set_attribute("key", "control");
341
+ val.data=(it->cond_value?"condition-false":"condition-true");
342
+ #endif
365
343
}
366
344
367
345
graphml[to].in [from].xml_node =edge;
0 commit comments