Skip to content

Commit ac036fd

Browse files
author
martin
committed
Revert "Fix iterator equality check bug in dependence_graph.cpp"
This reverts commit e0605b7.
1 parent 86cadcd commit ac036fd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/analyses/dependence_graph.cpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,18 @@ void dep_graph_domaint::transform(
188188
goto_programt::const_targett to,
189189
ai_baset &ai,
190190
const namespacet &ns,
191-
ai_domain_baset::edge_typet edge_type)
191+
ai_domain_baset::edge_typet /*edge_type*/)
192192
{
193193
dependence_grapht *dep_graph=dynamic_cast<dependence_grapht*>(&ai);
194194
assert(dep_graph!=nullptr);
195195

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

201-
if(edge_type == ai_domain_baset::edge_typet::FUNCTION_LOCAL)
202+
if(next==to)
202203
{
203204
control_dependencies(from, to, *dep_graph);
204205
}

0 commit comments

Comments
 (0)