@@ -550,7 +550,7 @@ refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr(
550
550
code.add (code_assignt (str.length (), nondet_length), loc);
551
551
552
552
exprt nondet_array_expr =
553
- make_nondet_infinite_char_array (symbol_table, loc, function_id, code);
553
+ make_nondet_infinite_char_array (symbol_table, loc, code);
554
554
555
555
address_of_exprt array_pointer (
556
556
index_exprt (nondet_array_expr, from_integer (0 , java_int_type ())));
@@ -652,7 +652,6 @@ codet java_string_library_preprocesst::code_return_function_application(
652
652
exprt make_nondet_infinite_char_array (
653
653
symbol_table_baset &symbol_table,
654
654
const source_locationt &loc,
655
- const irep_idt &function_id,
656
655
code_blockt &code)
657
656
{
658
657
const array_typet array_type (
@@ -940,6 +939,7 @@ java_string_library_preprocesst::string_literal_to_string_expr(
940
939
// / \param type: type of the function call
941
940
// / \param loc: location in the program_invocation_name
942
941
// / \param symbol_table: symbol table
942
+ // / \param function_id: unused
943
943
// / \return Code corresponding to:
944
944
// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
945
945
// / IF arg->@class_identifier == "java.lang.String"
@@ -957,6 +957,8 @@ codet java_string_library_preprocesst::make_equals_function_code(
957
957
const irep_idt &function_id,
958
958
symbol_table_baset &symbol_table)
959
959
{
960
+ (void )function_id;
961
+
960
962
const typet &return_type = type.return_type ();
961
963
exprt::operandst ops;
962
964
for (const auto &p : type.parameters ())
@@ -1735,6 +1737,7 @@ codet java_string_library_preprocesst::make_copy_string_code(
1735
1737
// / object.
1736
1738
// / \param type: type of the function
1737
1739
// / \param loc: location in the source
1740
+ // / \param function_id: unused
1738
1741
// / \param symbol_table: symbol table
1739
1742
// / \return Code corresponding to:
1740
1743
// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1748,6 +1751,8 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
1748
1751
const irep_idt &function_id,
1749
1752
symbol_table_baset &symbol_table)
1750
1753
{
1754
+ (void )function_id;
1755
+
1751
1756
// Code for the output
1752
1757
code_blockt code;
1753
1758
@@ -1774,6 +1779,7 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
1774
1779
// / count instead of end index
1775
1780
// / \param type: type of the function call
1776
1781
// / \param loc: location in the program_invocation_name
1782
+ // / \param function_id: unused
1777
1783
// / \param symbol_table: symbol table
1778
1784
// / \return code implementing String intitialization from a char array and
1779
1785
// / arguments offset and end.
@@ -1783,6 +1789,8 @@ codet java_string_library_preprocesst::make_init_from_array_code(
1783
1789
const irep_idt &function_id,
1784
1790
symbol_table_baset &symbol_table)
1785
1791
{
1792
+ (void )function_id;
1793
+
1786
1794
// Code for the output
1787
1795
code_blockt code;
1788
1796
@@ -1818,6 +1826,7 @@ codet java_string_library_preprocesst::make_init_from_array_code(
1818
1826
// / Generates code for the String.length method
1819
1827
// / \param type: type of the function
1820
1828
// / \param loc: location in the source
1829
+ // / \param function_id: unused
1821
1830
// / \param symbol_table: symbol table
1822
1831
// / \return Code corresponding to:
1823
1832
// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1831,6 +1840,9 @@ codet java_string_library_preprocesst::make_string_length_code(
1831
1840
const irep_idt &function_id,
1832
1841
symbol_table_baset &symbol_table)
1833
1842
{
1843
+ (void )loc;
1844
+ (void )function_id;
1845
+
1834
1846
code_typet::parameterst params=type.parameters ();
1835
1847
symbol_exprt arg_this (params[0 ].get_identifier (), params[0 ].type ());
1836
1848
dereference_exprt deref=
0 commit comments