Skip to content

Commit

Permalink
Added explanatory comment for the introduced condition.
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-trtik committed Oct 17, 2017
1 parent dfc6a20 commit db79106
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/analyses/goto_rw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,11 @@ void rw_range_set_value_sett::get_objects_dereference(
new_size=std::min(size, new_size);
}

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

0 comments on commit db79106

Please sign in to comment.