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

[Certora] Verif math is safe #89

Merged
merged 8 commits into from
Nov 13, 2024
Merged

[Certora] Verif math is safe #89

merged 8 commits into from
Nov 13, 2024

Conversation

colin-morpho
Copy link
Contributor

@colin-morpho colin-morpho commented Nov 4, 2024

Ensure that mathematical operations are safe.
Some operation could be a source for underflows, as well some expressions are rewritten for convenience.
This PR ensures that the rewritten operations are equivalent and that underflows are not possible.

Before accepting this PR make sure that:

  • the README is updated;
  • the CI is setup;
  • the verification goes succeeds.

Closes #81 .

@colin-morpho colin-morpho added the verification Fromal verification with Certora label Nov 4, 2024
@colin-morpho colin-morpho self-assigned this Nov 4, 2024
@colin-morpho
Copy link
Contributor Author

I don't like the naming, feel free to throw in your suggestions.

certora/README.md Outdated Show resolved Hide resolved
certora/confs/SafeMath.conf Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
QGarchery
QGarchery previously approved these changes Nov 13, 2024
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
QGarchery
QGarchery previously approved these changes Nov 13, 2024
MathisGD
MathisGD previously approved these changes Nov 13, 2024
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
certora/specs/SafeMath.spec Outdated Show resolved Hide resolved
@MathisGD MathisGD merged commit 81aa67d into main Nov 13, 2024
8 checks passed
@MathisGD MathisGD deleted the colin@verif/safe-math branch November 13, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
verification Fromal verification with Certora
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Certora] Check not liquidatable position equivalence
3 participants