Skip to content

Commit

Permalink
Fix iterator equality check bug in dependence_graph.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
reuk committed Nov 24, 2017
1 parent 394c42d commit e0605b7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/analyses/dependence_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,17 @@ void dep_graph_domaint::transform(
goto_programt::const_targett to,
ai_baset &ai,
const namespacet &ns,
ai_domain_baset::edge_typet /*edge_type*/)
ai_domain_baset::edge_typet edge_type)
{
dependence_grapht *dep_graph=dynamic_cast<dependence_grapht*>(&ai);
assert(dep_graph!=nullptr);

// propagate control dependencies across function calls
if(from->is_function_call())
{
goto_programt::const_targett next=from;
++next;
const goto_programt::const_targett next = std::next(from);

if(next==to)
if(edge_type == ai_domain_baset::edge_typet::FUNCTION_LOCAL)
{
control_dependencies(from, to, *dep_graph);
}
Expand Down

0 comments on commit e0605b7

Please sign in to comment.