Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upFlow-sensitive bounds declarations within expressions #348
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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, e3ore1 ? 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.