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

SV-Comp: Fix unsoundness in MemSafety category caused by limitations due to scope #1199

Closed
michael-schwarz opened this issue Oct 1, 2023 · 0 comments · Fixed by #1201
Closed
Labels
feature sv-comp SV-COMP (analyses, results), witnesses unsound
Milestone

Comments

@michael-schwarz
Copy link
Member

One issue with competing in the MemSafety category of SV-COMP (c.f. PRs #1197 #1179 #1139 #1127 #1123 #1114 #1099 #1094 #1050 ) is that our frontend pulls up all declarations to the top-level scope.
This transformation turns code that has Undefined Behavior into code without any UB, which is of course perfectly ok for a compiler to do, but bad if we want to catch this UB in Goblint after the transformation has occurred.

An easy fix would be to enhance goblint-cil to add an attribute to those varinfos that are not encountered at the top scope. Then, we can over-approximate by treating all derefs of such variables as potentially invalid.

@michael-schwarz michael-schwarz added feature sv-comp SV-COMP (analyses, results), witnesses labels Oct 1, 2023
@michael-schwarz michael-schwarz added this to the SV-COMP 2024 milestone Oct 1, 2023
@michael-schwarz michael-schwarz changed the title SV-Comp: Fix unsoundness in MemSafety category caused limitations due to scope SV-Comp: Fix unsoundness in MemSafety category caused by limitations due to scope Oct 1, 2023
@sim642 sim642 added the unsound label Oct 2, 2023
@michael-schwarz michael-schwarz linked a pull request Oct 4, 2023 that will close this issue
1 task
sim642 added a commit to sim642/opam-repository that referenced this issue Nov 24, 2023
nberth pushed a commit to nberth/opam-repository that referenced this issue Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature sv-comp SV-COMP (analyses, results), witnesses unsound
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants