File tree 2 files changed +4
-7
lines changed 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -1510,8 +1510,7 @@ void taint_algorithm_computing_summary_of_functiont::
1510
1510
it!=itend;
1511
1511
++it)
1512
1512
{
1513
- goto_programt::const_targetst succs=fn_to_summarise.body .get_successors (it);
1514
- for (auto succit : succs)
1513
+ for (auto succit : fn_to_summarise.body .get_successors (it))
1515
1514
inst_predecessors[succit].push_back (it);
1516
1515
}
1517
1516
Original file line number Diff line number Diff line change @@ -268,10 +268,9 @@ static void taint_collect_successors_inside_function(
268
268
goto_model.goto_functions .function_map .at (
269
269
elem.get_name_of_function ()
270
270
);
271
- goto_programt::const_targetst succ_targets=
272
- fn.body .get_successors (elem.get_instruction_iterator ());
273
271
std::unordered_set<std::size_t > processed_locations;
274
- for (goto_programt::const_targett succ_target : succ_targets)
272
+ for (goto_programt::const_targett succ_target :
273
+ fn.body .get_successors (elem.get_instruction_iterator ()))
275
274
{
276
275
if (0UL == trace.count (elem.get_name_of_function (),succ_target) &&
277
276
0UL == processed_locations.count (succ_target->location_number ))
@@ -369,8 +368,7 @@ static void populate_local_distances_to_taint_sink(
369
368
std::map<instruction_iteratort, std::list<instruction_iteratort> > preds;
370
369
for (auto it=prog.instructions .begin (),itend=prog.instructions .end (); it!=itend; ++it)
371
370
{
372
- std::list<instruction_iteratort> succs=prog.get_successors (it);
373
- for (auto succ : succs)
371
+ for (auto succ : prog.get_successors (it))
374
372
preds[succ].push_back (it);
375
373
}
376
374
You can’t perform that action at this time.
0 commit comments