@@ -78,6 +78,7 @@ static goto_programt get_gen_nondet_init_instructions(
78
78
// / \return The next instruction to process with this function and a boolean
79
79
// / indicating whether any changes were made to the goto program.
80
80
static std::pair<goto_programt::targett, bool > insert_nondet_init_code (
81
+ const irep_idt &function_identifier,
81
82
goto_programt &goto_program,
82
83
const goto_programt::targett &target,
83
84
symbol_table_baset &symbol_table,
@@ -116,7 +117,7 @@ static std::pair<goto_programt::targett, bool> insert_nondet_init_code(
116
117
117
118
symbolt &aux_symbol = get_fresh_aux_symbol (
118
119
op.type (),
119
- id2string (goto_programt::get_function_id (goto_program) ),
120
+ id2string (function_identifier ),
120
121
" nondet_tmp" ,
121
122
source_loc,
122
123
ID_java,
@@ -169,6 +170,7 @@ static std::pair<goto_programt::targett, bool> insert_nondet_init_code(
169
170
// / objects.
170
171
// / \param mode: Language mode
171
172
void convert_nondet (
173
+ const irep_idt &function_identifier,
172
174
goto_programt &goto_program,
173
175
symbol_table_baset &symbol_table,
174
176
message_handlert &message_handler,
@@ -181,6 +183,7 @@ void convert_nondet(
181
183
while (instruction_iterator != goto_program.instructions .end ())
182
184
{
183
185
auto ret = insert_nondet_init_code (
186
+ function_identifier,
184
187
goto_program,
185
188
instruction_iterator,
186
189
symbol_table,
@@ -206,6 +209,7 @@ void convert_nondet(
206
209
java_object_factory_parameterst parameters = object_factory_parameters;
207
210
parameters.function_id = function.get_function_id ();
208
211
convert_nondet (
212
+ function.get_function_id (),
209
213
function.get_goto_function ().body ,
210
214
function.get_symbol_table (),
211
215
message_handler,
@@ -232,6 +236,7 @@ void convert_nondet(
232
236
java_object_factory_parameterst parameters = object_factory_parameters;
233
237
parameters.function_id = f_it.first ;
234
238
convert_nondet (
239
+ f_it.first ,
235
240
f_it.second .body ,
236
241
symbol_table,
237
242
message_handler,
0 commit comments