File tree 1 file changed +5
-9
lines changed
1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -38,19 +38,15 @@ symbolt &get_fresh_aux_symbol(
38
38
const irep_idt &symbol_mode,
39
39
symbol_tablet &symbol_table)
40
40
{
41
- auxiliary_symbolt new_symbol;
42
-
43
41
// Loop until find a name that doesn't clash with a non-auxilliary symbol
44
42
while (true )
45
43
{
46
- // Distinguish local variables with the same name
47
- new_symbol.base_name =
48
- basename_prefix+" $" +std::to_string (++temporary_counter);
49
- if (name_prefix.empty ())
50
- new_symbol.name =new_symbol.base_name ;
51
- else
44
+ auxiliary_symbolt new_symbol (
45
+ // Distinguish local variables with the same name
46
+ basename_prefix + " $" + std::to_string (++temporary_counter),
47
+ type);
48
+ if (!name_prefix.empty ())
52
49
new_symbol.name =name_prefix+" ::" +id2string (new_symbol.base_name );
53
- new_symbol.type =type;
54
50
new_symbol.location =source_location;
55
51
new_symbol.mode =symbol_mode;
56
52
std::pair<symbolt &, bool > res=symbol_table.insert (std::move (new_symbol));
You can’t perform that action at this time.
0 commit comments