@@ -556,7 +556,6 @@ acceleration_utilst::expr_pairst acceleration_utilst::gather_array_assignments(
556556bool acceleration_utilst::do_arrays (
557557 goto_programt::instructionst &loop_body,
558558 std::map<exprt, polynomialt> &polynomials,
559- exprt &loop_counter,
560559 substitutiont &substitution,
561560 scratch_programt &program)
562561{
@@ -881,7 +880,6 @@ bool acceleration_utilst::expr2poly(
881880bool acceleration_utilst::do_nonrecursive (
882881 goto_programt::instructionst &body,
883882 std::map<exprt, polynomialt> &polynomials,
884- exprt &loop_counter,
885883 substitutiont &substitution,
886884 expr_sett &nonrecursive,
887885 scratch_programt &program)
@@ -1004,7 +1002,7 @@ bool acceleration_utilst::do_nonrecursive(
10041002 const exprt &lhs=*it;
10051003 const exprt &rhs=state[*it];
10061004
1007- if (!assign_array (lhs, rhs, loop_counter, program))
1005+ if (!assign_array (lhs, rhs, program))
10081006 {
10091007#ifdef DEBUG
10101008 std::cout << " Failed to assign a nonrecursive array: " <<
@@ -1020,7 +1018,6 @@ bool acceleration_utilst::do_nonrecursive(
10201018bool acceleration_utilst::assign_array (
10211019 const exprt &lhs,
10221020 const exprt &rhs,
1023- const exprt &loop_counter,
10241021 scratch_programt &program)
10251022{
10261023#ifdef DEBUG
@@ -1245,12 +1242,8 @@ void acceleration_utilst::extract_polynomial(
12451242 continue ;
12461243 }
12471244
1248- for (expr_listt::iterator it=terms.begin ();
1249- it!=terms.end ();
1250- ++it)
1245+ for (const auto &term : terms)
12511246 {
1252- exprt term=*it;
1253-
12541247 if (degrees.find (term)!=degrees.end ())
12551248 {
12561249 degrees[term]++;
0 commit comments