@@ -305,7 +305,11 @@ java_string_library_preprocesst::convert_exprt_to_string_exprt(
305
305
{
306
306
PRECONDITION (implements_java_char_sequence_pointer (expr_to_process.type ()));
307
307
const refined_string_exprt string_expr =
308
- decl_string_expr (loc, symbol_table, init_code);
308
+ decl_string_expr (
309
+ loc,
310
+ loc.get_function (),
311
+ symbol_table,
312
+ init_code);
309
313
code_assign_java_string_to_string_expr (
310
314
string_expr, expr_to_process, loc, symbol_table, init_code);
311
315
return string_expr;
@@ -497,6 +501,7 @@ symbol_exprt java_string_library_preprocesst::fresh_string(
497
501
// / \return refined string expr with fresh content and length symbols
498
502
refined_string_exprt java_string_library_preprocesst::decl_string_expr (
499
503
const source_locationt &loc,
504
+ const irep_idt &function_name,
500
505
symbol_table_baset &symbol_table,
501
506
code_blockt &code)
502
507
{
@@ -538,7 +543,11 @@ refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr(
538
543
code_blockt &code)
539
544
{
540
545
// / \todo refactor with initialize_nonddet_string_struct
541
- const refined_string_exprt str = decl_string_expr (loc, symbol_table, code);
546
+ const refined_string_exprt str = decl_string_expr (
547
+ loc,
548
+ loc.get_function (),
549
+ symbol_table,
550
+ code);
542
551
543
552
const side_effect_expr_nondett nondet_length (str.length ().type (), loc);
544
553
code.add (code_assignt (str.length (), nondet_length), loc);
@@ -1648,7 +1657,11 @@ codet java_string_library_preprocesst::make_copy_string_code(
1648
1657
1649
1658
// String expression that will hold the result
1650
1659
const refined_string_exprt string_expr =
1651
- decl_string_expr (loc, symbol_table, code);
1660
+ decl_string_expr (
1661
+ loc,
1662
+ loc.get_function (),
1663
+ symbol_table,
1664
+ code);
1652
1665
1653
1666
// Assign the argument to string_expr
1654
1667
const java_method_typet::parametert op = type.parameters ()[0 ];
@@ -1693,7 +1706,7 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
1693
1706
1694
1707
// String expression that will hold the result
1695
1708
const refined_string_exprt string_expr =
1696
- decl_string_expr (loc, symbol_table, code);
1709
+ decl_string_expr (loc, function_id, symbol_table, code);
1697
1710
1698
1711
// Assign argument to a string_expr
1699
1712
const java_method_typet::parameterst params = type.parameters ();
0 commit comments