You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the definition of the transfer function, $\top$ is used for the second element of the type pair as the "default". As far as I understand, $\top$ this is Any? and in that position would mean that the expression is smart cast to non-nullable.
For example in the rule for x == null this would mean that approxNegationType(N) = approxNegationType(Any?) = Any. Am I misunderstanding this or should the $\top$ s be $\bot$ s?
The text was updated successfully, but these errors were encountered:
leanderBehr
changed the title
Fix or explain use of top type in smart cast analysis transfer funciton
Use of top type in smart cast analysis transfer funciton
Jun 8, 2023
leanderBehr
changed the title
Use of top type in smart cast analysis transfer funciton
Use of top type in smart cast analysis transfer function
Jun 10, 2023
In the definition of the transfer function,$\top$ is used for the second element of the type pair as the "default". As far as I understand, $\top$ this is
Any?
and in that position would mean that the expression is smart cast to non-nullable.For example in the rule for$\top$ s be $\bot$ s?
x == null
this would mean thatapproxNegationType(N) = approxNegationType(Any?) = Any
. Am I misunderstanding this or should theThe text was updated successfully, but these errors were encountered: