dapptools icon indicating copy to clipboard operation
dapptools copied to clipboard

Feature Request: Counterexample Shrinking

Open transmissions11 opened this issue 4 years ago • 3 comments

The fuzzer seems to report the first value it finds that leads to a failing test, however this can result in some pretty confusing calldata when simpler inputs would also reproduce the failure.

Implementing a shrinking algorithm like echidna would make debugging counter-examples a lot easier

transmissions11 avatar Sep 26 '21 00:09 transmissions11

Wait doesn’t HEVM use quickcheck? iirc quickcheck has this by default

transmissions11 avatar Sep 28 '21 18:09 transmissions11

hmmm yeah this might actually be easy. Any thoughts @MrChico ?

d-xo avatar Sep 29 '21 21:09 d-xo

Yeah, I think we have shrinking already for the normal fuzz tests, but not for the invariant tests atm. We should implement it for invariant tests. And solve the soundness issues in the replay functionality

MrChico avatar Sep 29 '21 23:09 MrChico