-
Notifications
You must be signed in to change notification settings - Fork 278
Add support for exporting function pointer targets at all callsites. #5289
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
Add support for exporting function pointer targets at all callsites. #5289
Conversation
as a new abstract object.
There is no value in wrapping an object with no additional information, and there is currently some problems with wrapping
There is currently some inconsistency between how the value set and the interval domains handle wrapping. Specifically, the value set returns an unwrapped object when eval'd, whereas the interval domain returns a wrapped object. Since the rest of the code is compatible with the interval suggestion, we temporarily disable wrapping if using value set
The variable sensitivity domain is always on, if we're using the variable sensitivity domain object factory
Use from_expr instead of constant_expr::get_value() so we don't print hex values
for the new value-set abstraction.
for the new value-set abstraction.
…cpp" This reverts commit cac98ce
It was written in 2017 but was #if 0-ed out, so it needs to be updated to compile now. ADA-496 has been filed to fix this test up and reintroduce it.
This adds a new option, --restrict-function-pointer, to goto-instrument. This lets a user specify a list of possible pointer targets for specific function pointer call sites, rather than have remove_function_pointers guess possible values. The intended purpose behind this is to prevent excessive symex time wasted on exploring paths the user knows the program can never actually take.
Add --get-fp-values option to goto-analyzer for all callsites in json format to be fed to goto-instrument.
Please only review be933ca, the rest are from other PRs and will probably go away/change anyway. |
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.
Only reviewed commit be933ca which looks good. Are there any tests yet for the feature? Please also add the label dependent - do not merge
and mention the PR it depends on in the title.
Co-authored-by: hannes-steffenhagen-diffblue <[email protected]>
This adds an extra flag to
goto-analyzer
that allows it to write function pointer targets for all call sites in a json format, like this:IMPORTANT: This PR's contributions is the two last commits.