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

CSE: manually specified preconditions #650

Open
palinatolmach opened this issue Jun 26, 2024 · 1 comment
Open

CSE: manually specified preconditions #650

palinatolmach opened this issue Jun 26, 2024 · 1 comment
Assignees
Labels

Comments

@palinatolmach
Copy link
Collaborator

palinatolmach commented Jun 26, 2024

We should add the ability to manually specify range constraints (e.g., that all values representing times are less than 2 ^Int 40) to remove various chops — this would require extending the natspec annotation mechanism.

The annotations should support at least basic boolean operations on variables including input and storage ones and having different types (e.g., mapping elements should be translated to lookups).

One example of preconditions we want to support is

`(_sharesAmount * totalPooledEther) / totalPooledEther == _sharesAmount`
@PetarMax
Copy link
Contributor

Slightly more generally, we should be able to give the user the ability to specify arbitrary pre-conditions.

@palinatolmach palinatolmach self-assigned this Jun 27, 2024
@palinatolmach palinatolmach changed the title CSE: manually specified range constraints CSE: manually specified preconditions Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants