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

Recursive Variants #128

Open
DavePearce opened this issue Oct 18, 2021 · 0 comments
Open

Recursive Variants #128

DavePearce opened this issue Oct 18, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@DavePearce
Copy link
Member

DavePearce commented Oct 18, 2021

(see also #126)

For reasons unknown recursive variants fail to verify. A minimal example is:

type List is null|Node
type Node is &{ List next }

variant unchanged(List l)
where (l is Node) ==> (l->next == old(l->next))
where (l is Node) ==> unchanged(l->next)

method m(List l)
ensures unchanged(l):
    skip
@DavePearce DavePearce added the bug Something isn't working label Oct 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant