kelloggm / checker-framework

Pluggable type-checking for Java
http://checkerframework.org/
Other
0 stars 2 forks source link

Annotation for inequalities of sequence lengths #202

Open panacekcz opened 6 years ago

panacekcz commented 6 years ago

The index checker has no way to express that one sequence is at least as long as another sequence. This is useful when indexing a longer sequence by an index for a shorter sequence.

This issue was reported before as kelloggm#43 and panacekcz#11. The annotations were originally proposed in kelloggm#158. The difference between these issues is that kelloggm#158 is about relations of integer variables representing indices, while this is about relations of sequence variables. Related: kelloggm#132.

panacekcz commented 6 years ago