Skip to content

Commit ee34d34

Browse files
committed
Do not unnecessarily pass in class member "symbol_table"
Just remove the parameter.
1 parent e485eba commit ee34d34

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/goto-instrument/wmm/shared_buffers.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1021,7 +1021,6 @@ bool shared_bufferst::is_buffered_in_general(
10211021
/// variables (non necessarily shared themselves) whose value could be changed
10221022
/// as effect of a read delay
10231023
void shared_bufferst::affected_by_delay(
1024-
symbol_tablet &symbol_table,
10251024
value_setst &value_sets,
10261025
goto_functionst &goto_functions)
10271026
{

src/goto-instrument/wmm/shared_buffers.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ class shared_bufferst
184184
goto_functionst &goto_functions);
185185

186186
void affected_by_delay(
187-
symbol_tablet &symbol_table,
188187
value_setst &value_sets,
189188
goto_functionst &goto_functions);
190189

src/goto-instrument/wmm/weak_memory.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ void weak_memory(
222222
shared_buffers.cycles_r_loc = instrumenter.id2cycloc; // places in the cycles
223223

224224
// for reads delays
225-
shared_buffers.affected_by_delay(
226-
goto_model.symbol_table, value_sets, goto_model.goto_functions);
225+
shared_buffers.affected_by_delay(value_sets, goto_model.goto_functions);
227226

228227
for(std::set<irep_idt>::iterator it=
229228
shared_buffers.affected_by_delay_set.begin();

0 commit comments

Comments
 (0)