We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 394c42d commit e0605b7Copy full SHA for e0605b7
src/analyses/dependence_graph.cpp
@@ -188,18 +188,17 @@ void dep_graph_domaint::transform(
188
goto_programt::const_targett to,
189
ai_baset &ai,
190
const namespacet &ns,
191
- ai_domain_baset::edge_typet /*edge_type*/)
+ ai_domain_baset::edge_typet edge_type)
192
{
193
dependence_grapht *dep_graph=dynamic_cast<dependence_grapht*>(&ai);
194
assert(dep_graph!=nullptr);
195
196
// propagate control dependencies across function calls
197
if(from->is_function_call())
198
199
- goto_programt::const_targett next=from;
200
- ++next;
+ const goto_programt::const_targett next = std::next(from);
201
202
- if(next==to)
+ if(edge_type == ai_domain_baset::edge_typet::FUNCTION_LOCAL)
203
204
control_dependencies(from, to, *dep_graph);
205
}
0 commit comments