Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions src/pointer-analysis/value_set.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ void value_sett::get_value_set_rec(
it1!=object_map.end();
it1++)
{
const exprt &object=object_numbering[it1->first];
/// Do not take a reference to object_numbering's storage as we may call
/// object_numbering.number(), which may reallocate it.
const exprt object=object_numbering[it1->first];
get_value_set_rec(object, dest, suffix, original_type, ns);
}
}
Expand All @@ -489,7 +491,9 @@ void value_sett::get_value_set_rec(
it!=object_map.end();
it++)
{
const exprt &object=object_numbering[it->first];
/// Do not take a reference to object_numbering's storage as we may call
/// object_numbering.number(), which may reallocate it.
const exprt object=object_numbering[it->first];
get_value_set_rec(object, dest, suffix, original_type, ns);
}
}
Expand Down Expand Up @@ -1348,7 +1352,9 @@ void value_sett::assign_rec(
it!=reference_set.read().end();
it++)
{
const exprt &object=object_numbering[it->first];
/// Do not take a reference to object_numbering's storage as we may call
/// object_numbering.number(), which may reallocate it.
const exprt object=object_numbering[it->first];

if(object.id()!=ID_unknown)
assign_rec(object, values_rhs, suffix, ns, add_to_sets);
Expand Down