Missing rule for type of array #3389
Labels
Calculus
Completeness
Feature
New feature or request
HacKeYthon
Candidate Issue for HacKeYthon '24
🐞 Bug
Description
The exact dynamic type of arrays of primitive values are always known. However, KeY is missing a rule here.
There are also some real world cases, where the missing knowledge about the type on the sequent leads to unclosable goals.
For arrays of objects, it is not so easy, since there are subtypes of array types in Java. E.g., for a class A, A[] is a subtype of Object[].
However, for arrays of a final type F, we should have a rule that
F[]::instance(x) = TRUE
impliesF[]::exactInstance(x) = TRUE
.For implementing this, we probably need an additional Varcond isFinal or similar.
Reproducible
always
Steps to reproduce
This can not be closed in KeY.
The text was updated successfully, but these errors were encountered: