Skip to content

Commit d57e21b

Browse files
author
Owen
committed
Remove redundant code in ID_dynamic_object branch
This branch is not taken by symex but it is taken by the slicer. The code I've removed has no effect, as far as I can tell, and may have been left over from an old implementation from before the beginning of the git history. Note, there is a commit that splits ID_dynamic_object into two different ids. See diffblue#2646 and diffblue#3769 for more details.
1 parent dc4611f commit d57e21b

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/pointer-analysis/value_set_dereference.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,6 @@ value_set_dereferencet::valuet value_set_dereferencet::build_reference_to(
293293
}
294294
else if(root_object.id()==ID_dynamic_object)
295295
{
296-
// const dynamic_object_exprt &dynamic_object=
297-
// to_dynamic_object_expr(root_object);
298-
299-
// the object produced by malloc
300-
exprt malloc_object=
301-
ns.lookup(CPROVER_PREFIX "malloc_object").symbol_expr();
302-
303-
exprt is_malloc_object=same_object(pointer_expr, malloc_object);
304-
305296
// constraint that it actually is a dynamic object
306297
// this is also our guard
307298
result.pointer_guard = dynamic_object(pointer_expr);

0 commit comments

Comments
 (0)