-
Notifications
You must be signed in to change notification settings - Fork 277
VSD - max array length #6293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VSD - max array length #6293
Conversation
a638126
to
15ffbfe
Compare
Codecov Report
@@ Coverage Diff @@
## develop #6293 +/- ##
========================================
Coverage 75.97% 75.98%
========================================
Files 1508 1510 +2
Lines 163380 163465 +85
========================================
+ Hits 124131 124208 +77
- Misses 39249 39257 +8
Continue to review full report at Codecov.
|
3c72914
to
f304bb9
Compare
src/analyses/variable-sensitivity/variable_sensitivity_configuration.h
Outdated
Show resolved
Hide resolved
59881b8
to
917fd7a
Compare
The "smash" array abstraction sets the maximum size of the full_array_abstract_object to 1. All writes to the array are merged, and all reads return the same value.
917fd7a
to
0a3b7e3
Compare
c4426ea
to
5705e60
Compare
Default n is 10. Additional --vsd-max-array-elements options gives finer control.
5705e60
to
63203b1
Compare
{ | ||
return object_factory->wrap_with_context(abstract_object); | ||
return object_factory->config(); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit of a diff mismatch. add_object_context
is redundant and was removed. configuration
is a new member function, which we need :)
To prevent large arrays getting unwieldy, add a configuration parameter that limits the number of entries they have.
Writes beyond the maximum index are all written to the same location, merging with any previous writes.
--vsd-arrays smash
option, which sets the maximum size to 1. All writes to the array are merged, and all reads return the same value.--vsd-arrays up-to-n-elements
option. Default n is 10,--vsd-max-array-elements
options gives finer control. (I would have liked n to be an additional parameter to --vsd-arrays, but that would have required significant rework in the arguments parsing and it's just not worth it.)