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

Consider supporting Foundry's invariant testing #677

Open
palinatolmach opened this issue Jul 8, 2024 · 0 comments
Open

Consider supporting Foundry's invariant testing #677

palinatolmach opened this issue Jul 8, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@palinatolmach
Copy link
Collaborator

Based on a post-workshop EthCC question @JuanCoRo got asked; will move it to backlog for now.

We might consider supporting Foundry's invariant tests, which executes function call sequences in an attempt to break an invariant specified as a function, e.g.,

function invariant_job1() public {
   assertInvariants();
}

function invariant_job2() public {
   assertInvariants();
}

function assertInvariants() internal {
   assertEq(val1, val2);
   assertEq(val3, val4);
}

That is something we could do using symbolic execution (modulo path and configuration explosion).

@palinatolmach palinatolmach added the enhancement New feature or request label Jul 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant