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 predicates should fail due to separation rather than infinite recursion if separation failure applies #49

Open
jennalwise opened this issue Apr 21, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jennalwise
Copy link
Member

When erroring at run-time for this incorrectly specified predicate:

predicate acyclicSeg(Node *s, Node* e) =
  (s == e) ? true : acc(y->val) && acc(y->next) && acyclicSeg(s,e);

The GVC0 produces a C0 error for an infinite recursion, which is correct for how our tool is currently implemented. However, if we checked separation first or in tandem with checking ownership in this predicate (we don't do this currently, checking separation happens after checking ownership), then we could catch this error without infinite recursion and give a better error message.

@jennalwise jennalwise added the enhancement New feature or request label Apr 21, 2023
@jennalwise
Copy link
Member Author

The best solution for this is to have the backend give separation information alongside other run-time check information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant