We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e251f commit 50d161cCopy full SHA for 50d161c
src/java_bytecode/java_object_factory.cpp
@@ -190,8 +190,9 @@ void java_object_factoryt::gen_nondet_init(
190
{
191
const struct_typet &struct_type=to_struct_type(subtype);
192
const irep_idt struct_tag=struct_type.get_tag();
193
-
194
- 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() &&
195
+ struct_tag==class_identifier)
196
197
// make null
198
null_pointer_exprt null_pointer_expr(pointer_type);
0 commit comments