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

Add support for pattern alternatives #1627

Merged
merged 4 commits into from
Jan 10, 2025

Conversation

SidonieBouthors
Copy link
Contributor

Addresses issues #1128 and #617 by adding support for pattern alternatives in Stainless.

This was done in the context of our project in the Formal Verification CS-550 course. This version adds a new Alternative pattern and handles it throughout the pipeline and therefore allows disjunctions of patterns to be used.

Note: This does not yet add support for pattern alternatives in the Coq encoder or GenC, but does include support for pattern alternatives when using the optional simplifiers OL and OCBSL.

@CLAassistant
Copy link

CLAassistant commented Jan 5, 2025

CLA assistant check
All committers have signed the CLA.

@vkuncak
Copy link
Collaborator

vkuncak commented Jan 6, 2025

I am very puzzled why those princess solver tests fail if they did not fail before.

@samuelchassot
Copy link
Collaborator

I am very puzzled why those princess solver tests fail if they did not fail before.

This is indeed puzzling... Princess using tests seem more fragile, we got this problem on other PRs too

@samuelchassot
Copy link
Collaborator

samuelchassot commented Jan 10, 2025

We investigated and these tests failing have nothing to do with your PR. It is happening because of the latest release of the Princess Solver. We will ignore those tests in a soon-to-be-merged PR.
You'll be able to update your branch and the CI should then pass :)

SidonieBouthors and others added 4 commits January 10, 2025 10:41
Co-authored-by: SidonieBouthors
Co-authored-by: Mai-LinhC <[email protected]>
Co-authored-by: SidonieBouthors <[email protected]>
Co-authored-by: Mai-LinhC <[email protected]>
Co-authored-by: SidonieBouthors <[email protected]>
Co-authored-by: Mai-LinhC <[email protected]>
@samuelchassot samuelchassot force-pushed the better-pattern-alternative branch from ebc41cd to f657ddb Compare January 10, 2025 09:41
@vkuncak vkuncak merged commit c92fee2 into epfl-lara:main Jan 10, 2025
3 checks passed
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.

4 participants