@@ -52,6 +52,7 @@ bool dep_graph_domaint::merge(
52
52
}
53
53
54
54
void dep_graph_domaint::control_dependencies (
55
+ const irep_idt &function_id,
55
56
goto_programt::const_targett from,
56
57
goto_programt::const_targett to,
57
58
dependence_grapht &dep_graph)
@@ -82,7 +83,7 @@ void dep_graph_domaint::control_dependencies(
82
83
83
84
// Get postdominators
84
85
85
- const irep_idt id=from-> function ;
86
+ const irep_idt id = function_id ;
86
87
const cfg_post_dominatorst &pd=dep_graph.cfg_post_dominators ().at (id);
87
88
88
89
// Check all candidates
@@ -151,6 +152,7 @@ static bool may_be_def_use_pair(
151
152
152
153
void dep_graph_domaint::data_dependencies (
153
154
goto_programt::const_targett,
155
+ const irep_idt &function_to,
154
156
goto_programt::const_targett to,
155
157
dependence_grapht &dep_graph,
156
158
const namespacet &ns)
@@ -162,7 +164,7 @@ void dep_graph_domaint::data_dependencies(
162
164
value_setst &value_sets=
163
165
dep_graph.reaching_definitions ().get_value_sets ();
164
166
rw_range_set_value_sett rw_set (ns, value_sets);
165
- goto_rw (to-> function , to, rw_set);
167
+ goto_rw (function_to , to, rw_set);
166
168
167
169
forall_rw_range_set_r_objects (it, rw_set)
168
170
{
@@ -205,7 +207,7 @@ void dep_graph_domaint::transform(
205
207
{
206
208
if (function_from == function_to)
207
209
{
208
- control_dependencies (from, to, *dep_graph);
210
+ control_dependencies (function_from, from, to, *dep_graph);
209
211
}
210
212
else
211
213
{
@@ -231,9 +233,9 @@ void dep_graph_domaint::transform(
231
233
}
232
234
}
233
235
else
234
- control_dependencies (from, to, *dep_graph);
236
+ control_dependencies (function_from, from, to, *dep_graph);
235
237
236
- data_dependencies (from, to, *dep_graph, ns);
238
+ data_dependencies (from, function_to, to, *dep_graph, ns);
237
239
}
238
240
239
241
void dep_graph_domaint::output (
0 commit comments