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 a1ab7a6 commit c572866Copy full SHA for c572866
jbmc/src/java_bytecode/java_types.cpp
@@ -147,8 +147,12 @@ typet &java_array_element_type(symbol_typet &array_symbol)
147
/// Checks whether the given type is an array pointer type
148
bool is_java_array_type(const typet &type)
149
{
150
- if(!(type.id() == ID_pointer && type.subtype().id() == ID_symbol))
+ if(
151
+ !can_cast_type<pointer_typet>(type) ||
152
+ !can_cast_type<symbol_typet>(type.subtype()))
153
+ {
154
return false;
155
+ }
156
const auto &subtype_symbol = to_symbol_type(type.subtype());
157
return is_java_array_tag(subtype_symbol.get_identifier());
158
}
0 commit comments