Skip to content

Commit 026419e

Browse files
author
Daniel Kroening
committed
strenthen typing in disjunctive_polynomial_accelerationt
1 parent 6d23ffc commit 026419e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/goto-instrument/accelerate/disjunctive_polynomial_acceleration.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -546,8 +546,8 @@ bool disjunctive_polynomial_accelerationt::fit_polynomial(
546546

547547
// Start building the program. Begin by decl'ing each of the
548548
// master distinguishers.
549-
for(std::list<exprt>::iterator it=distinguishers.begin();
550-
it!=distinguishers.end();
549+
for(std::list<symbol_exprt>::iterator it = distinguishers.begin();
550+
it != distinguishers.end();
551551
++it)
552552
{
553553
program.add_instruction(DECL)->code=code_declt(*it);
@@ -888,8 +888,8 @@ void disjunctive_polynomial_accelerationt::build_fixed()
888888

889889
// Create shadow distinguisher variables. These guys identify the path that
890890
// is taken through the fixed-path body.
891-
for(std::list<exprt>::iterator it=distinguishers.begin();
892-
it!=distinguishers.end();
891+
for(std::list<symbol_exprt>::iterator it = distinguishers.begin();
892+
it != distinguishers.end();
893893
++it)
894894
{
895895
exprt &distinguisher=*it;
@@ -1006,8 +1006,8 @@ void disjunctive_polynomial_accelerationt::record_path(
10061006
{
10071007
distinguish_valuest path_val;
10081008

1009-
for(std::list<exprt>::iterator it=distinguishers.begin();
1010-
it!=distinguishers.end();
1009+
for(std::list<symbol_exprt>::iterator it = distinguishers.begin();
1010+
it != distinguishers.end();
10111011
++it)
10121012
{
10131013
path_val[*it]=program.eval(*it).is_true();

src/goto-instrument/accelerate/disjunctive_polynomial_acceleration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class disjunctive_polynomial_accelerationt
9898
acceleration_utilst utils;
9999
exprt loop_counter;
100100
distinguish_mapt distinguishing_points;
101-
std::list<exprt> distinguishers;
101+
std::list<symbol_exprt> distinguishers;
102102
expr_sett modified;
103103
goto_programt fixed;
104104
std::list<distinguish_valuest> accelerated_paths;

0 commit comments

Comments
 (0)