Skip to content

Removing string literal function from string preprocess cpp #1102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/java_bytecode/java_string_library_preprocess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -868,18 +868,6 @@ codet java_string_library_preprocesst::make_equals_function_code(
return code;
}

/// construct a string_exprt from a constant string value
/// \param s: a string
/// \param symbol_table: a symbol table
/// \return an expression representing a string expr with the given content
exprt java_string_library_preprocesst::string_literal(
const std::string &s, symbol_tablet &symbol_table)
{
constant_exprt expr(s, string_typet());
return make_function_application(
ID_cprover_string_literal_func, {expr}, refined_string_type, symbol_table);
}

/// Provide code for the String.valueOf(F) function.
/// \param type: type of the function call
/// \param loc: location in the program_invocation_name
Expand Down