@@ -539,7 +539,6 @@ refined_string_exprt java_string_library_preprocesst::decl_string_expr(
539
539
// / \return a new string_expr
540
540
refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr (
541
541
const source_locationt &loc,
542
- const irep_idt &function_id,
543
542
symbol_table_baset &symbol_table,
544
543
code_blockt &code)
545
544
{
@@ -550,7 +549,7 @@ refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr(
550
549
code.add (code_assignt (str.length (), nondet_length), loc);
551
550
552
551
exprt nondet_array_expr =
553
- make_nondet_infinite_char_array (symbol_table, loc, function_id, code);
552
+ make_nondet_infinite_char_array (symbol_table, loc, code);
554
553
555
554
address_of_exprt array_pointer (
556
555
index_exprt (nondet_array_expr, from_integer (0 , java_int_type ())));
@@ -652,7 +651,6 @@ codet java_string_library_preprocesst::code_return_function_application(
652
651
exprt make_nondet_infinite_char_array (
653
652
symbol_table_baset &symbol_table,
654
653
const source_locationt &loc,
655
- const irep_idt &function_id,
656
654
code_blockt &code)
657
655
{
658
656
const array_typet array_type (
@@ -805,7 +803,7 @@ refined_string_exprt java_string_library_preprocesst::string_expr_of_function(
805
803
code.add (code_declt (return_code), loc);
806
804
807
805
const refined_string_exprt string_expr =
808
- make_nondet_string_expr (loc, function_name, symbol_table, code);
806
+ make_nondet_string_expr (loc, symbol_table, code);
809
807
810
808
// args is { str.length, str.content, arguments... }
811
809
exprt::operandst args;
@@ -940,6 +938,7 @@ java_string_library_preprocesst::string_literal_to_string_expr(
940
938
// / \param type: type of the function call
941
939
// / \param loc: location in the program_invocation_name
942
940
// / \param symbol_table: symbol table
941
+ // / \param function_id: unused
943
942
// / \return Code corresponding to:
944
943
// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
945
944
// / IF arg->@class_identifier == "java.lang.String"
@@ -957,6 +956,8 @@ codet java_string_library_preprocesst::make_equals_function_code(
957
956
const irep_idt &function_id,
958
957
symbol_table_baset &symbol_table)
959
958
{
959
+ (void )function_id;
960
+
960
961
const typet &return_type = type.return_type ();
961
962
exprt::operandst ops;
962
963
for (const auto &p : type.parameters ())
@@ -1416,7 +1417,7 @@ exprt java_string_library_preprocesst::make_argument_for_format(
1416
1417
}
1417
1418
else
1418
1419
field_expr =
1419
- make_nondet_string_expr (loc, function_id, symbol_table, code);
1420
+ make_nondet_string_expr (loc, symbol_table, code);
1420
1421
1421
1422
field_exprs.push_back (field_expr);
1422
1423
arg_i_struct.copy_to_operands (field_expr);
@@ -1735,6 +1736,7 @@ codet java_string_library_preprocesst::make_copy_string_code(
1735
1736
// / object.
1736
1737
// / \param type: type of the function
1737
1738
// / \param loc: location in the source
1739
+ // / \param function_id: unused
1738
1740
// / \param symbol_table: symbol table
1739
1741
// / \return Code corresponding to:
1740
1742
// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1748,6 +1750,8 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
1748
1750
const irep_idt &function_id,
1749
1751
symbol_table_baset &symbol_table)
1750
1752
{
1753
+ (void )function_id;
1754
+
1751
1755
// Code for the output
1752
1756
code_blockt code;
1753
1757
@@ -1774,6 +1778,7 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
1774
1778
// / count instead of end index
1775
1779
// / \param type: type of the function call
1776
1780
// / \param loc: location in the program_invocation_name
1781
+ // / \param function_id: unused
1777
1782
// / \param symbol_table: symbol table
1778
1783
// / \return code implementing String intitialization from a char array and
1779
1784
// / arguments offset and end.
@@ -1783,6 +1788,8 @@ codet java_string_library_preprocesst::make_init_from_array_code(
1783
1788
const irep_idt &function_id,
1784
1789
symbol_table_baset &symbol_table)
1785
1790
{
1791
+ (void )function_id;
1792
+
1786
1793
// Code for the output
1787
1794
code_blockt code;
1788
1795
@@ -1818,6 +1825,7 @@ codet java_string_library_preprocesst::make_init_from_array_code(
1818
1825
// / Generates code for the String.length method
1819
1826
// / \param type: type of the function
1820
1827
// / \param loc: location in the source
1828
+ // / \param function_id: unused
1821
1829
// / \param symbol_table: symbol table
1822
1830
// / \return Code corresponding to:
1823
1831
// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1831,6 +1839,9 @@ codet java_string_library_preprocesst::make_string_length_code(
1831
1839
const irep_idt &function_id,
1832
1840
symbol_table_baset &symbol_table)
1833
1841
{
1842
+ (void )loc;
1843
+ (void )function_id;
1844
+
1834
1845
code_typet::parameterst params=type.parameters ();
1835
1846
symbol_exprt arg_this (params[0 ].get_identifier (), params[0 ].type ());
1836
1847
dereference_exprt deref=
0 commit comments