@@ -39,6 +39,7 @@ class java_simple_method_stubst
3939 const typet &expected_type,
4040 const exprt &ptr,
4141 const source_locationt &loc,
42+ const irep_idt &function_id,
4243 code_blockt &parent_block,
4344 unsigned insert_before_index,
4445 bool is_constructor,
@@ -77,6 +78,7 @@ void java_simple_method_stubst::create_method_stub_at(
7778 const typet &expected_type,
7879 const exprt &ptr,
7980 const source_locationt &loc,
81+ const irep_idt &function_id,
8082 code_blockt &parent_block,
8183 const unsigned insert_before_index,
8284 const bool is_constructor,
@@ -112,6 +114,7 @@ void java_simple_method_stubst::create_method_stub_at(
112114
113115 // Generate new instructions.
114116 code_blockt new_instructions;
117+ parameters.function_id = function_id;
115118 gen_nondet_init (
116119 to_init,
117120 new_instructions,
@@ -158,7 +161,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
158161 const typet &this_type = this_argument.type ();
159162 symbolt &init_symbol = get_fresh_aux_symbol (
160163 this_type,
161- " to_construct " ,
164+ id2string (symbol. name ) ,
162165 " to_construct" ,
163166 synthesized_source_location,
164167 ID_java,
@@ -172,6 +175,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
172175 this_type,
173176 init_symbol_expression,
174177 synthesized_source_location,
178+ symbol.name ,
175179 new_instructions,
176180 1 ,
177181 true ,
@@ -184,7 +188,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
184188 {
185189 symbolt &to_return_symbol = get_fresh_aux_symbol (
186190 required_return_type,
187- " to_return " ,
191+ id2string (symbol. name ) ,
188192 " to_return" ,
189193 synthesized_source_location,
190194 ID_java,
@@ -211,6 +215,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
211215 required_return_type,
212216 to_return,
213217 synthesized_source_location,
218+ symbol.name ,
214219 new_instructions,
215220 0 ,
216221 false ,
0 commit comments