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

Use of top type in smart cast analysis transfer function #119

Open
leanderBehr opened this issue Jun 8, 2023 · 0 comments
Open

Use of top type in smart cast analysis transfer function #119

leanderBehr opened this issue Jun 8, 2023 · 0 comments

Comments

@leanderBehr
Copy link

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?

@leanderBehr 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 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant