We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad054ab commit 0c265e9Copy full SHA for 0c265e9
jbmc/src/java_bytecode/java_types.cpp
@@ -148,7 +148,9 @@ typet &java_array_element_type(symbol_typet &array_symbol)
148
/// Checks whether the given type is an array pointer type
149
bool is_java_array_type(const typet &type)
150
{
151
- if(!(type.id() == ID_pointer && type.subtype().id() == ID_symbol))
+ if(
152
+ can_cast_type<pointer_typet>(type) &&
153
+ can_cast_type<symbol_typet>(type.subtype()))
154
return false;
155
const auto &subtype_symbol = to_symbol_type(type.subtype());
156
return is_java_array_tag(subtype_symbol.get_identifier());
0 commit comments