File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 11
11
12
12
#include " fresh_symbol.h"
13
13
14
+ // This needs to be outside get_fresh_aux_symbol
15
+ // to make it available for both reset_temporary_counter
16
+ // and get_fresh_aux_symbol
17
+ static size_t temporary_counter=0 ;
18
+
19
+ // This is useful with loading multiple GOTO models
20
+ void reset_temporary_counter ()
21
+ {
22
+ temporary_counter=0 ;
23
+ }
24
+
14
25
// / Installs a fresh-named symbol with the requested name pattern
15
26
// / \par parameters: `type`: type of new symbol
16
27
// / `name_prefix`, `basename_prefix`: new symbol will be named
@@ -27,7 +38,6 @@ symbolt &get_fresh_aux_symbol(
27
38
const irep_idt &symbol_mode,
28
39
symbol_tablet &symbol_table)
29
40
{
30
- static size_t temporary_counter=0 ;
31
41
auxiliary_symbolt new_symbol;
32
42
symbolt *symbol_ptr;
33
43
Original file line number Diff line number Diff line change 19
19
#include < util/symbol_table.h>
20
20
#include < util/type.h>
21
21
22
+ void reset_temporary_counter ();
23
+
22
24
symbolt &get_fresh_aux_symbol (
23
25
const typet &type,
24
26
const std::string &name_prefix,
You can’t perform that action at this time.
0 commit comments