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

Flow-sensitive bounds declarations within expressions #348

Open
dtarditi opened this issue Apr 18, 2019 · 0 comments
Open

Flow-sensitive bounds declarations within expressions #348

dtarditi opened this issue Apr 18, 2019 · 0 comments

Comments

@dtarditi
Copy link
Member

@dtarditi dtarditi commented Apr 18, 2019

We allow flow-sensitive bounds declarations for variables at the level of expression statements. However, expressions in C can themselves have control-flow, so we could allow flow-sensitive bounds declarations at the level of assignments within expressions. This would make sense for cases like e1, e2, e3 or e1 ? e2 : e3.

We would need to describe how flow-sensitively determine bounds declarations. We could follow the same pattern used in checking of bounds declarations for analyzing expressions, except gather bounds declarations instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.