Skip to content
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

ThreadCreate analysis to improve partially context-sensitive threadID analysis #1077

Merged
merged 7 commits into from
Jun 29, 2023

Conversation

michael-schwarz
Copy link
Member

This is a reimplementation of #1007 to play nice with the new uniqueness counter integrating the analysis into the threadId analysis as suggested in #1007 (comment).

Original implementation by @FelixKrayer.

tests/regression/74-threadCreate/01-simple.c Outdated Show resolved Hide resolved
src/util/options.schema.json Show resolved Hide resolved
src/util/options.schema.json Outdated Show resolved Hide resolved
@@ -0,0 +1,32 @@
// PARAM: --disable ana.thread.context.create-edges
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All these tests disable the new option, so aren't they just testing the old behavior without the edges?
Seems like there should be tests for the cases where enabling the new option actually makes us more precise than before as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The option is active by default as that corresponds to the old behavior. What the changes in here are about is holding on to more precision, when reducing the amount of context-sensitivity.

src/analyses/threadId.ml Show resolved Hide resolved
@michael-schwarz
Copy link
Member Author

@sim642 When you get a chance, can you have a look? The comments should be addressed, and it would be nice to have this merged before it becomes stale again.

@sim642 sim642 added this to the v2.2.0 milestone Jun 29, 2023
@michael-schwarz michael-schwarz merged commit a651ccc into master Jun 29, 2023
16 checks passed
@michael-schwarz michael-schwarz deleted the pr_1007_clean branch June 29, 2023 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants