Skip to content

Commit ff4a7b6

Browse files
committed
Remove obsolete declaration and make functions static for --nondet-volatile feature
1 parent fed5536 commit ff4a7b6

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

src/goto-instrument/nondet_volatile.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static bool is_volatile(const namespacet &ns, const typet &src)
3131
return false;
3232
}
3333

34-
void nondet_volatile_rhs(const symbol_tablet &symbol_table, exprt &expr)
34+
static void nondet_volatile_rhs(const symbol_tablet &symbol_table, exprt &expr)
3535
{
3636
Forall_operands(it, expr)
3737
nondet_volatile_rhs(symbol_table, *it);
@@ -52,7 +52,7 @@ void nondet_volatile_rhs(const symbol_tablet &symbol_table, exprt &expr)
5252
}
5353
}
5454

55-
void nondet_volatile_lhs(const symbol_tablet &symbol_table, exprt &expr)
55+
static void nondet_volatile_lhs(const symbol_tablet &symbol_table, exprt &expr)
5656
{
5757
if(expr.id()==ID_if)
5858
{
@@ -75,9 +75,8 @@ void nondet_volatile_lhs(const symbol_tablet &symbol_table, exprt &expr)
7575
}
7676
}
7777

78-
void nondet_volatile(
79-
symbol_tablet &symbol_table,
80-
goto_programt &goto_program)
78+
static void
79+
nondet_volatile(symbol_tablet &symbol_table, goto_programt &goto_program)
8180
{
8281
namespacet ns(symbol_table);
8382

src/goto-instrument/nondet_volatile.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ Author: Daniel Kroening, [email protected]
1414

1515
#include <goto-programs/goto_model.h>
1616

17-
bool is_volatile(
18-
const symbol_tablet &,
19-
const typet &);
20-
2117
void nondet_volatile(goto_modelt &);
2218

2319
#endif // CPROVER_GOTO_INSTRUMENT_NONDET_VOLATILE_H

0 commit comments

Comments
 (0)