File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ class java_bytecode_convert_methodt:public messaget
134
134
if (var.symbol_expr .get_identifier ().empty ())
135
135
{
136
136
// an un-named local variable
137
- irep_idt base_name=" local " +id2string (number)+type_char;
137
+ irep_idt base_name=" anonlocal:: " +id2string (number)+type_char;
138
138
irep_idt identifier=id2string (current_method)+" ::" +id2string (base_name);
139
139
140
140
symbol_exprt result (identifier, t);
@@ -304,7 +304,9 @@ void java_bytecode_convert_methodt::convert(
304
304
for (const auto & v : m.local_variable_table )
305
305
{
306
306
typet t=java_type_from_string (v.signature );
307
- irep_idt identifier=id2string (method_identifier)+" ::" +id2string (v.name );
307
+ std::ostringstream id_oss;
308
+ id_oss << method_identifier << " ::" << v.start_pc << " ::" << v.name ;
309
+ irep_idt identifier (id_oss.str ());
308
310
symbol_exprt result (identifier, t);
309
311
result.set (ID_C_base_name, v.name );
310
312
size_t number_index_entries = variables[v.index ].size ();
You can’t perform that action at this time.
0 commit comments