@@ -540,7 +540,6 @@ refined_string_exprt java_string_library_preprocesst::decl_string_expr(
540540// / \return a new string_expr
541541refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr (
542542 const source_locationt &loc,
543- const irep_idt &function_id,
544543 symbol_table_baset &symbol_table,
545544 code_blockt &code)
546545{
@@ -551,7 +550,7 @@ refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr(
551550 code.add (code_assignt (str.length (), nondet_length), loc);
552551
553552 exprt nondet_array_expr =
554- make_nondet_infinite_char_array (symbol_table, loc, function_id, code);
553+ make_nondet_infinite_char_array (symbol_table, loc, code);
555554
556555 address_of_exprt array_pointer (
557556 index_exprt (nondet_array_expr, from_integer (0 , java_int_type ())));
@@ -653,7 +652,6 @@ codet java_string_library_preprocesst::code_return_function_application(
653652exprt make_nondet_infinite_char_array (
654653 symbol_table_baset &symbol_table,
655654 const source_locationt &loc,
656- const irep_idt &function_id,
657655 code_blockt &code)
658656{
659657 const array_typet array_type (
@@ -806,7 +804,7 @@ refined_string_exprt java_string_library_preprocesst::string_expr_of_function(
806804 code.add (code_declt (return_code), loc);
807805
808806 const refined_string_exprt string_expr =
809- make_nondet_string_expr (loc, function_name, symbol_table, code);
807+ make_nondet_string_expr (loc, symbol_table, code);
810808
811809 // args is { str.length, str.content, arguments... }
812810 exprt::operandst args;
@@ -941,6 +939,7 @@ java_string_library_preprocesst::string_literal_to_string_expr(
941939// / \param type: type of the function call
942940// / \param loc: location in the program_invocation_name
943941// / \param symbol_table: symbol table
942+ // / \param function_id: unused
944943// / \return Code corresponding to:
945944// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
946945// / IF arg->@class_identifier == "java.lang.String"
@@ -958,6 +957,8 @@ codet java_string_library_preprocesst::make_equals_function_code(
958957 const irep_idt &function_id,
959958 symbol_table_baset &symbol_table)
960959{
960+ (void )function_id;
961+
961962 const typet &return_type = type.return_type ();
962963 exprt::operandst ops;
963964 for (const auto &p : type.parameters ())
@@ -1417,7 +1418,7 @@ exprt java_string_library_preprocesst::make_argument_for_format(
14171418 }
14181419 else
14191420 field_expr =
1420- make_nondet_string_expr (loc, function_id, symbol_table, code);
1421+ make_nondet_string_expr (loc, symbol_table, code);
14211422
14221423 field_exprs.push_back (field_expr);
14231424 arg_i_struct.copy_to_operands (field_expr);
@@ -1736,6 +1737,7 @@ codet java_string_library_preprocesst::make_copy_string_code(
17361737// / object.
17371738// / \param type: type of the function
17381739// / \param loc: location in the source
1740+ // / \param function_id: unused
17391741// / \param symbol_table: symbol table
17401742// / \return Code corresponding to:
17411743// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1749,6 +1751,8 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
17491751 const irep_idt &function_id,
17501752 symbol_table_baset &symbol_table)
17511753{
1754+ (void )function_id;
1755+
17521756 // Code for the output
17531757 code_blockt code;
17541758
@@ -1775,6 +1779,7 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
17751779// / count instead of end index
17761780// / \param type: type of the function call
17771781// / \param loc: location in the program_invocation_name
1782+ // / \param function_id: unused
17781783// / \param symbol_table: symbol table
17791784// / \return code implementing String intitialization from a char array and
17801785// / arguments offset and end.
@@ -1784,6 +1789,8 @@ codet java_string_library_preprocesst::make_init_from_array_code(
17841789 const irep_idt &function_id,
17851790 symbol_table_baset &symbol_table)
17861791{
1792+ (void )function_id;
1793+
17871794 // Code for the output
17881795 code_blockt code;
17891796
@@ -1819,6 +1826,7 @@ codet java_string_library_preprocesst::make_init_from_array_code(
18191826// / Generates code for the String.length method
18201827// / \param type: type of the function
18211828// / \param loc: location in the source
1829+ // / \param function_id: unused
18221830// / \param symbol_table: symbol table
18231831// / \return Code corresponding to:
18241832// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1832,6 +1840,9 @@ codet java_string_library_preprocesst::make_string_length_code(
18321840 const irep_idt &function_id,
18331841 symbol_table_baset &symbol_table)
18341842{
1843+ (void )loc;
1844+ (void )function_id;
1845+
18351846 code_typet::parameterst params=type.parameters ();
18361847 symbol_exprt arg_this (params[0 ].get_identifier (), params[0 ].type ());
18371848 dereference_exprt deref=
0 commit comments