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

Wand package incompleteness? #470

Open
marcoeilers opened this issue Oct 16, 2023 · 0 comments
Open

Wand package incompleteness? #470

marcoeilers opened this issue Oct 16, 2023 · 0 comments

Comments

@marcoeilers
Copy link
Contributor

The following example verifies in Silicon, as I think it should, but not in Carbon, where the assert false fails:

field data: Int

method bar(x: Ref)
    requires acc(x.data)
{
    package acc(x.data) --* false {
        assert acc(x.data) && acc(x.data)
        assert false
    }
}

As far as I can see, the wand holds. And in my understanding of package statements, which could be completely wrong, the first assertion should force the outside permission to x.data to be added to the wand's footprint, which should enable me to prove false. But I'm not 100% certain about either of these statements.

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