Skip to content
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

Add java void type where it was forgotten #2865

Merged
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions jbmc/src/java_bytecode/java_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,8 @@ optionalt<size_t> java_generic_symbol_typet::generic_type_index(

std::string pretty_java_type(const typet &type)
{
if(type == java_void_type())
return "void";
if(type == java_int_type())
return "int";
else if(type == java_long_type())
Expand Down
1 change: 1 addition & 0 deletions jbmc/src/java_bytecode/java_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ typet java_char_type();
typet java_float_type();
typet java_double_type();
typet java_boolean_type();
typet java_void_type();
reference_typet java_reference_type(const typet &subtype);
reference_typet java_lang_object_type();
symbol_typet java_classname(const std::string &);
Expand Down