@@ -539,7 +539,6 @@ refined_string_exprt java_string_library_preprocesst::decl_string_expr(
539539// / \return a new string_expr
540540refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr (
541541 const source_locationt &loc,
542- const irep_idt &function_id,
543542 symbol_table_baset &symbol_table,
544543 code_blockt &code)
545544{
@@ -550,7 +549,7 @@ refined_string_exprt java_string_library_preprocesst::make_nondet_string_expr(
550549 code.add (code_assignt (str.length (), nondet_length), loc);
551550
552551 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);
554553
555554 address_of_exprt array_pointer (
556555 index_exprt (nondet_array_expr, from_integer (0 , java_int_type ())));
@@ -652,7 +651,6 @@ codet java_string_library_preprocesst::code_return_function_application(
652651exprt make_nondet_infinite_char_array (
653652 symbol_table_baset &symbol_table,
654653 const source_locationt &loc,
655- const irep_idt &function_id,
656654 code_blockt &code)
657655{
658656 const array_typet array_type (
@@ -805,7 +803,7 @@ refined_string_exprt java_string_library_preprocesst::string_expr_of_function(
805803 code.add (code_declt (return_code), loc);
806804
807805 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);
809807
810808 // args is { str.length, str.content, arguments... }
811809 exprt::operandst args;
@@ -940,6 +938,7 @@ java_string_library_preprocesst::string_literal_to_string_expr(
940938// / \param type: type of the function call
941939// / \param loc: location in the program_invocation_name
942940// / \param symbol_table: symbol table
941+ // / \param function_id: unused
943942// / \return Code corresponding to:
944943// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
945944// / IF arg->@class_identifier == "java.lang.String"
@@ -957,6 +956,8 @@ codet java_string_library_preprocesst::make_equals_function_code(
957956 const irep_idt &function_id,
958957 symbol_table_baset &symbol_table)
959958{
959+ (void )function_id;
960+
960961 const typet &return_type = type.return_type ();
961962 exprt::operandst ops;
962963 for (const auto &p : type.parameters ())
@@ -1416,7 +1417,7 @@ exprt java_string_library_preprocesst::make_argument_for_format(
14161417 }
14171418 else
14181419 field_expr =
1419- make_nondet_string_expr (loc, function_id, symbol_table, code);
1420+ make_nondet_string_expr (loc, symbol_table, code);
14201421
14211422 field_exprs.push_back (field_expr);
14221423 arg_i_struct.copy_to_operands (field_expr);
@@ -1735,6 +1736,7 @@ codet java_string_library_preprocesst::make_copy_string_code(
17351736// / object.
17361737// / \param type: type of the function
17371738// / \param loc: location in the source
1739+ // / \param function_id: unused
17381740// / \param symbol_table: symbol table
17391741// / \return Code corresponding to:
17401742// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1748,6 +1750,8 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
17481750 const irep_idt &function_id,
17491751 symbol_table_baset &symbol_table)
17501752{
1753+ (void )function_id;
1754+
17511755 // Code for the output
17521756 code_blockt code;
17531757
@@ -1774,6 +1778,7 @@ codet java_string_library_preprocesst::make_copy_constructor_code(
17741778// / count instead of end index
17751779// / \param type: type of the function call
17761780// / \param loc: location in the program_invocation_name
1781+ // / \param function_id: unused
17771782// / \param symbol_table: symbol table
17781783// / \return code implementing String intitialization from a char array and
17791784// / arguments offset and end.
@@ -1783,6 +1788,8 @@ codet java_string_library_preprocesst::make_init_from_array_code(
17831788 const irep_idt &function_id,
17841789 symbol_table_baset &symbol_table)
17851790{
1791+ (void )function_id;
1792+
17861793 // Code for the output
17871794 code_blockt code;
17881795
@@ -1818,6 +1825,7 @@ codet java_string_library_preprocesst::make_init_from_array_code(
18181825// / Generates code for the String.length method
18191826// / \param type: type of the function
18201827// / \param loc: location in the source
1828+ // / \param function_id: unused
18211829// / \param symbol_table: symbol table
18221830// / \return Code corresponding to:
18231831// / ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1831,6 +1839,9 @@ codet java_string_library_preprocesst::make_string_length_code(
18311839 const irep_idt &function_id,
18321840 symbol_table_baset &symbol_table)
18331841{
1842+ (void )loc;
1843+ (void )function_id;
1844+
18341845 code_typet::parameterst params=type.parameters ();
18351846 symbol_exprt arg_this (params[0 ].get_identifier (), params[0 ].type ());
18361847 dereference_exprt deref=
0 commit comments