Skip to content

Commit 47d2f02

Browse files
committed
Added explanatory comment for the introduced condition.
1 parent 2685ebb commit 47d2f02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/analyses/goto_rw.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,11 @@ void rw_range_set_value_sett::get_objects_dereference(
613613
new_size=std::min(size, new_size);
614614
}
615615

616+
// We must ensure that the artificial reference (introduced in
617+
// 'value_set_dereferencet::build_reference_to') to a dynamic object
618+
// obtained by dereferencing the pointer in 'deref' gets to the resulting
619+
// points-to-set. The following condition check whether the obtained
620+
// object is the artificial reference.
616621
if(object.is_not_nil() && object.id()==ID_symbol &&
617622
as_string(to_symbol_expr(object).get_identifier()).find(
618623
get_vsderef_dynamic_object_prefix())==0UL)

0 commit comments

Comments
 (0)