@@ -341,7 +341,8 @@ exprt::operandst java_string_library_preprocesst::process_operands(
341
341
convert_exprt_to_string_exprt (
342
342
p, loc, symbol_table, function_id, init_code));
343
343
else if (is_java_char_array_pointer_type (p.type ()))
344
- ops.push_back (replace_char_array (p, loc, symbol_table, init_code));
344
+ ops.push_back (
345
+ replace_char_array (p, loc, function_id, symbol_table, init_code));
345
346
else
346
347
ops.push_back (p);
347
348
}
@@ -447,12 +448,14 @@ static exprt get_data(const exprt &expr, const symbol_tablet &symbol_table)
447
448
// / array.
448
449
// / \param array_pointer: an expression of type char array pointer
449
450
// / \param loc: location in the source
451
+ // / \param function_id: name of the function in which the string is defined
450
452
// / \param symbol_table: symbol table
451
453
// / \param code: code block, in which some assignments will be added
452
454
// / \return a string expression
453
455
refined_string_exprt java_string_library_preprocesst::replace_char_array (
454
456
const exprt &array_pointer,
455
457
const source_locationt &loc,
458
+ const irep_idt &function_id,
456
459
symbol_table_baset &symbol_table,
457
460
code_blockt &code)
458
461
{
0 commit comments