Skip to content

Commit e6ce264

Browse files
authored
Merge pull request #3663 from owen-jones-diffblue/tag-synthetic-type-string-format
Add tag to synthetic type made for String.format()
2 parents 00b46e9 + 5ad0480 commit e6ce264

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

jbmc/src/java_bytecode/java_string_library_preprocess.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,6 +1458,7 @@ code_blockt java_string_library_preprocesst::make_string_format_code(
14581458
// a string, an integer, a floating point, a character, a boolean,
14591459
// an object of which we take the hash code, or a date/time
14601460
struct_typet structured_type;
1461+
structured_type.set_tag(CPROVER_PREFIX "string_formatter_variant");
14611462
structured_type.components().emplace_back("string_expr", refined_string_type);
14621463
structured_type.components().emplace_back(ID_int, java_int_type());
14631464
structured_type.components().emplace_back(ID_float, java_float_type());

0 commit comments

Comments
 (0)