Removed the dynamic_object_exprt's instance()#716
Conversation
1ffc42b to
8eadf47
Compare
NathanJPhillips
left a comment
There was a problem hiding this comment.
Looks right to me.
|
This improves type safety and prepares the way for being able to access the location number as a location number (rather than an opaque string) without having to check the types whenever it is accessed. |
|
I'm all in for the encapsulation part of this patch, but how is the renaming |
|
All previous usage of this field for stuffing any other information in has been removed and replaced with better typed storage. It now exclusively holds the location number of the malloc that creates this DO. A more descriptive name is hence justified. |
8eadf47 to
2a5e6c6
Compare
Unless I'm misreading the code: pointer-analysis/value_set_fi*.cpp seem to be encoding a different bit of information via bit manipulation? |
|
Worth checking with Daniel, but I don't see why the |
|
(the |
|
@smowton Note that these analyses are context-sensitive (as opposed to the plain |
Removed the dynamic_object_exprt's instance() methods and replaced its usages with set_instance() and get_instance(). Added the dynamic_object_id_sett data structure into the value_sett class. It is used as expr_sett but only for dynamic-objects.
f158253 to
66481ab
Compare
NathanJPhillips
left a comment
There was a problem hiding this comment.
Changes look fine to me.
|
@kroening, that looks ready to go. |
Removed the
dynamic_object_exprt'sinstance()methods andreplaced the usages using
set_location_number().Added the
dynamic_object_id_settdata structure into thevalue_settclass. It is used asexpr_settbut only fordynamic-objects.