Skip to content

Commit

Permalink
Remove obsolete sourcecode element from graphml
Browse files Browse the repository at this point in the history
  • Loading branch information
peterschrammel committed Nov 26, 2017
1 parent b5648b4 commit 0d3c7fb
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/goto-programs/graphml_witness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,6 @@ void graphml_witnesst::operator()(const symex_target_equationt &equation)
graphml[to].invariant_scope=
id2string(it->source.pc->source_location.get_function());
}
else if(it->is_goto() &&
it->source.pc->is_goto())
{
xmlt &val=edge.new_element("data");
val.set_attribute("key", "sourcecode");
exprt clean_cond=it->cond_expr;
remove_l0_l1(clean_cond);
const std::string cond=from_expr(ns, "", clean_cond);
from_expr(ns, "", not_exprt(clean_cond));
val.data="["+cond+"]";
}

graphml[to].in[from].xml_node=edge;
graphml[from].out[to].xml_node=edge;
Expand Down

0 comments on commit 0d3c7fb

Please sign in to comment.