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

Mysterious issues with monotonicBool.pvl example #819

Open
Naum-Tomov opened this issue Oct 18, 2022 · 1 comment
Open

Mysterious issues with monotonicBool.pvl example #819

Naum-Tomov opened this issue Oct 18, 2022 · 1 comment
Labels
A-Bug M-ex Misc: Examples

Comments

@Naum-Tomov
Copy link
Contributor

The original contract from line 63 throws the following exception:

At examples\concepts\parallel\monotonicBool.pvl:65:17:
65 context Perm(contrib[tid], 1\2);
Index may be negative, or exceed the length of the array. (https://utwente.nl/vercors#arrayBounds)


This can be fixed by modifying the contract, by adding:
ensures(contrib.length == N);

This shouldn't be necessary and warrants investigation. Furthermore, after fixing this issue, the verification still fails, throwing the following exception:
82 assert b == (\exists int i = 0..N; contrib[i]);
There may be insufficient permission to access this field here. (https://utwente.nl/vercors#perm)

This also doesn't logically make sense, as we should have read permission for that field at that point.

@Naum-Tomov Naum-Tomov added A-Bug M-ex Misc: Examples labels Oct 18, 2022
@pieter-bos
Copy link
Member

This seems pretty similar to #887

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Bug M-ex Misc: Examples
Projects
None yet
Development

No branches or pull requests

2 participants