We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 63f9182 + 50d161c commit 30f73f5Copy full SHA for 30f73f5
src/java_bytecode/java_object_factory.cpp
@@ -189,8 +189,9 @@ void java_object_factoryt::gen_nondet_init(
189
{
190
const struct_typet &struct_type=to_struct_type(subtype);
191
const irep_idt struct_tag=struct_type.get_tag();
192
-
193
- if(recursion_set.find(struct_tag)!=recursion_set.end())
+ // set to null if found in recursion set and not a sub-type
+ if(recursion_set.find(struct_tag)!=recursion_set.end() &&
194
+ struct_tag==class_identifier)
195
196
// make null
197
null_pointer_exprt null_pointer_expr(pointer_type);
0 commit comments