Skip to content

Commit 00955b0

Browse files
Merge pull request #4055 from peterschrammel/fix-io-counter
I/O names must be unique across multiple conversions
2 parents e343604 + af514dc commit 00955b0

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/goto-symex/symex_target_equation.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -603,8 +603,6 @@ void symex_target_equationt::convert_assertions(
603603
void symex_target_equationt::convert_function_calls(
604604
decision_proceduret &dec_proc)
605605
{
606-
std::size_t argument_count=0;
607-
608606
for(auto &step : SSA_steps)
609607
if(!step.ignore)
610608
{
@@ -633,8 +631,6 @@ void symex_target_equationt::convert_function_calls(
633631
void symex_target_equationt::convert_io(
634632
decision_proceduret &dec_proc)
635633
{
636-
std::size_t io_count=0;
637-
638634
for(auto &step : SSA_steps)
639635
if(!step.ignore)
640636
{

src/goto-symex/symex_target_equation.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ class symex_target_equationt:public symex_targett
405405
// for enforcing sharing in the expressions stored
406406
merge_irept merge_irep;
407407
void merge_ireps(SSA_stept &SSA_step);
408+
409+
// for unique I/O identifiers
410+
std::size_t io_count = 0;
411+
412+
// for unique function call argument identifiers
413+
std::size_t argument_count = 0;
408414
};
409415

410416
inline bool operator<(

0 commit comments

Comments
 (0)