@@ -478,7 +478,7 @@ refined_string_exprt java_string_library_preprocesst::replace_char_array(
478
478
char_array, array_typet (java_char_type (), infinity_exprt (java_int_type ())));
479
479
480
480
add_pointer_to_array_association (
481
- string_expr.content (), inf_array, symbol_table, loc, code);
481
+ string_expr.content (), inf_array, symbol_table, loc, function_id, code);
482
482
483
483
return string_expr;
484
484
}
@@ -564,7 +564,7 @@ refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr(
564
564
index_exprt (nondet_array_expr, from_integer (0 , java_int_type ())));
565
565
566
566
add_pointer_to_array_association (
567
- array_pointer, nondet_array_expr, symbol_table, loc, code);
567
+ array_pointer, nondet_array_expr, symbol_table, loc, function_id, code);
568
568
569
569
add_array_to_length_association (
570
570
nondet_array_expr, str.length (), symbol_table, loc, code);
@@ -677,12 +677,14 @@ exprt make_nondet_infinite_char_array(
677
677
// / \param array: a character array expression
678
678
// / \param symbol_table: the symbol table
679
679
// / \param loc: source location
680
+ // / \param function_id: name of the function in which the code will be added
680
681
// / \param [out] code: code block to which declaration and calls get added
681
682
void add_pointer_to_array_association (
682
683
const exprt &pointer,
683
684
const exprt &array,
684
685
symbol_table_baset &symbol_table,
685
686
const source_locationt &loc,
687
+ const irep_idt &function_id,
686
688
code_blockt &code)
687
689
{
688
690
PRECONDITION (array.type ().id () == ID_array);
0 commit comments