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

Fixes #695 #696

Merged
merged 3 commits into from
Nov 3, 2023
Merged

Fixes #695 #696

merged 3 commits into from
Nov 3, 2023

Conversation

ArquintL
Copy link
Member

This PR fixes issue #695.

We drop the violation in the channel encoding as the type-checker is anyway more lenient and allows messages of types that are assignable (and not necessarily equal) to the channel type.
However, this change requires a small change to the channel encoding as we can no longer use the message's type when constructing the pure method calls to the channel's invariant getters (SendGivenPerm, SendGotPerm, RecvGivenPerm, and RecvGotPerm) but have to use the channel type instead (as they are not necessarily equal anymore).

@ArquintL ArquintL requested a review from Felalolf October 26, 2023 23:55
@ArquintL
Copy link
Member Author

I've observed a non-deterministic behavior of test case same_package/import-fail01. E.g., it failed in this CI run.
However, I double-checked the corresponding Viper encoding, which does not change due to this PR's code changes.

@ArquintL ArquintL merged commit dd1fd82 into master Nov 3, 2023
3 checks passed
@ArquintL ArquintL deleted the weaker-channel-send-requirements branch November 3, 2023 19:23
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