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

STM cmd shrinking #85

Merged
merged 3 commits into from
Jun 20, 2022
Merged

STM cmd shrinking #85

merged 3 commits into from
Jun 20, 2022

Conversation

jmid
Copy link
Collaborator

@jmid jmid commented Jun 15, 2022

This PR adds cmd argument shrinking to STM.
I tried different ways to express it - and ended up going with this one expressed as shrinking the prefix and suffix separately.
This comes at the cost of interpreting the sequential prefix twice over the model, which seems OK for now.

If no cmd shrinker is provided by the user, no shrinking happens.
In this situation the performance should be largely unaffected (let's confirm with the CI log).
Ideally cmd argument shrinking could benefit from "deriving_shrinker" (see c-cube/qcheck#191).

As an example, the PR provides a cmd shrinker in neg_test/ref_test.ml.

Together with #84 this PR fixes #65.

@jmid
Copy link
Collaborator Author

jmid commented Jun 17, 2022

Also rebased

@jmid jmid merged commit 6e6dcce into main Jun 20, 2022
@jmid jmid deleted the stm-shrinking branch June 20, 2022 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add cmd argument shrinking
1 participant