Skip to content

Assumptions for fuzzed arrays #3948

Answered by PaulRBerg
PaulRBerg asked this question in Help
Discussion options

You must be logged in to vote

Following up here for posterity - I ended up doing something more creative.

  1. Set a predefined value for the 1st element.
  2. Use your library @mds1 solidity-generators to generate a linearly spaced array.
  3. Bound each element.

Code snippet here:

https://gist.github.com/PaulRBerg/23bb1e7b04a43aa5376974d9f7a6aa1c

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
2 replies
@PaulRBerg
Comment options

@mds1
Comment options

mds1 Dec 24, 2022
Maintainer

Comment options

You must be logged in to vote
4 replies
@mds1
Comment options

mds1 Jan 4, 2023
Maintainer

@PaulRBerg
Comment options

@mds1
Comment options

mds1 Jan 9, 2023
Maintainer

@PaulRBerg
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by PaulRBerg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants