Skip to content

Add tag to synthetic type made for String.format() #3663

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 all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -1459,6 +1459,7 @@ code_blockt java_string_library_preprocesst::make_string_format_code(
// a string, an integer, a floating point, a character, a boolean,
// an object of which we take the hash code, or a date/time
struct_typet structured_type;
structured_type.set_tag(CPROVER_PREFIX "string_formatter_variant");
structured_type.components().emplace_back("string_expr", refined_string_type);
structured_type.components().emplace_back(ID_int, java_int_type());
structured_type.components().emplace_back(ID_float, java_float_type());
Expand Down