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

Add missing dropVCs annotation in AntiAliasing #1496

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

mario-bucev
Copy link
Collaborator

Note that there was an already existing @DropVCs annotation that wrapped the expression, but in some instances the VC for class invariant was still being generated (even though it should not).
Note that removing the final makes verification pass, so this missing @DropVCs is certainly an oversight.
The ClassReconstruction sample showcases this.

//
// var thiss: BoundedCounterContainer = thiss
// ({
// var res: (Unit, BoundedCounterContainer) = tryAdd(thiss, i)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the BoundedCounter case class is not considered sealed. But in the benchmark it should be, right, at least in Scala 3?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am just surprised about the need for this dynamic class dispatch resolution in first place.

@mario-bucev mario-bucev merged commit e9f9193 into epfl-lara:main Feb 29, 2024
2 checks passed
@mario-bucev mario-bucev deleted the antialiasing-add-drop-vcs branch February 29, 2024 17:26
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

Successfully merging this pull request may close these issues.

2 participants