a16z / halmos

A symbolic testing tool for EVM smart contracts
GNU Affero General Public License v3.0
817 stars 68 forks source link

Allow the user to specify how many counterexamples they want (1, all) #373

Open aviggiano opened 1 month ago

aviggiano commented 1 month ago

Is your feature request related to a problem? Please describe.

Sometimes, we do not care about all the counterexamples. Only 1 is enough. Waiting for all counterexamples can be slow, and stopping the process in the middle will segfault

Describe the solution you'd like

Allow the user to specify how many counterexamples they want, and immediately stop if that condition is satisfied

Describe alternatives you've considered

Ctrl+C

(but it will segfault) Screenshot 2024-09-24 at 09 17 32

Additional context

N/A