Skip to content

Feat: add Certora specs #7

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

Open
wants to merge 99 commits into
base: master
Choose a base branch
from
Open

Feat: add Certora specs #7

wants to merge 99 commits into from

Conversation

amusingaxl
Copy link
Contributor

No description provided.

oddaf and others added 30 commits February 14, 2025 00:04
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
Co-authored-by: amusingaxl <[email protected]>
Signed-off-by: oddaf <[email protected]>
amusingaxl and others added 8 commits March 28, 2025 09:13
* refactor: rename module (DSPC -> SPBEAM)

* chore: formatting
* refactor: rename module (DSPC -> SPBEAM)

* chore: formatting
The override was failing due to `ConvMock.btor` not being virtual. When I added the `virtual` modifier, for some reason `forge build --sizes` fail because the MockConv contract becomes too big.
@amusingaxl amusingaxl marked this pull request as ready for review March 28, 2025 13:32
pedrobergamini
pedrobergamini previously approved these changes Mar 28, 2025
Copy link

@pedrobergamini pedrobergamini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! Just commented an idea on Certora's GH actions workflow

pedrobergamini
pedrobergamini previously approved these changes Apr 2, 2025
revert7 || revert8 || revert9 ||
revert10,
"set revert rules failed";
revert7 || revert8,

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on this change

@sunbreak1211
Copy link
Collaborator

Maybe an interesting rule/invariant to do, if you end up having some extra time, would be to prove that after any call to set, the values updated can not end up being outside the min-max range and always respect be restricted by the step.
Then the fix ordering can be roll back and check that the rule would have caught that. In either case those things are also indirectly proved with the current rules so not really mandatory, but I guess it would be a more high level rule that helps guaranteeing those invariants.

@amusingaxl
Copy link
Contributor Author

Maybe an interesting rule/invariant to do, if you end up having some extra time, would be to prove that after any call to set, the values updated can not end up being outside the min-max range and always respect be restricted by the step.

This was added in 67d5fbc.

Then the fix ordering can be roll back and check that the rule would have caught that.

Not entirely sure if I get what you're suggesting here.

Base automatically changed from initial-implementation to master April 22, 2025 12:50
@amusingaxl amusingaxl dismissed pedrobergamini’s stale review April 22, 2025 12:50

The base branch was changed.

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