@@ -39,6 +39,7 @@ class java_simple_method_stubst
39
39
const typet &expected_type,
40
40
const exprt &ptr,
41
41
const source_locationt &loc,
42
+ const irep_idt &function_id,
42
43
code_blockt &parent_block,
43
44
unsigned insert_before_index,
44
45
bool is_constructor,
@@ -77,6 +78,7 @@ void java_simple_method_stubst::create_method_stub_at(
77
78
const typet &expected_type,
78
79
const exprt &ptr,
79
80
const source_locationt &loc,
81
+ const irep_idt &function_id,
80
82
code_blockt &parent_block,
81
83
const unsigned insert_before_index,
82
84
const bool is_constructor,
@@ -112,6 +114,7 @@ void java_simple_method_stubst::create_method_stub_at(
112
114
113
115
// Generate new instructions.
114
116
code_blockt new_instructions;
117
+ parameters.function_id = function_id;
115
118
gen_nondet_init (
116
119
to_init,
117
120
new_instructions,
@@ -158,7 +161,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
158
161
const typet &this_type = this_argument.type ();
159
162
symbolt &init_symbol = get_fresh_aux_symbol (
160
163
this_type,
161
- " to_construct " ,
164
+ id2string (symbol. name ) ,
162
165
" to_construct" ,
163
166
synthesized_source_location,
164
167
ID_java,
@@ -172,6 +175,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
172
175
this_type,
173
176
init_symbol_expression,
174
177
synthesized_source_location,
178
+ symbol.name ,
175
179
new_instructions,
176
180
1 ,
177
181
true ,
@@ -184,7 +188,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
184
188
{
185
189
symbolt &to_return_symbol = get_fresh_aux_symbol (
186
190
required_return_type,
187
- " to_return " ,
191
+ id2string (symbol. name ) ,
188
192
" to_return" ,
189
193
synthesized_source_location,
190
194
ID_java,
@@ -211,6 +215,7 @@ void java_simple_method_stubst::create_method_stub(symbolt &symbol)
211
215
required_return_type,
212
216
to_return,
213
217
synthesized_source_location,
218
+ symbol.name ,
214
219
new_instructions,
215
220
0 ,
216
221
false ,
0 commit comments