-
Notifications
You must be signed in to change notification settings - Fork 123
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
:dumptests doesn't work for return types other than Bit
#946
Comments
Based on this comment in cryptol/src/Cryptol/Testing/Random.hs Lines 106 to 118 in ee0f60c
|
It looks like there's a copy-and-paste error in the definition of |
I’ve been thinking about dumptest recently and ran across some work on automated sampling. I’m just going to paste the references here, but the gist would be to enhance dumptests so that it generated tests based on the structure of the function, rather than purely random tests. It seems like the current research uses SMT techniques to generate good tests, which facilitates integration into Cryptol. https://people.eecs.berkeley.edu/~rtd/papers/GuidedSampler.pdf |
Fix bug in `dumpableType` function. Fixes #946.
:dumptests
only seems to support functions that return typeBit
. I'm feeling like supporting expressions in general (not just theorems) would be helpful. Here I just want to generate some input/output pairs for a function so that when I modify/optimize/etc it I can test to see if I've messed it up.Originally posted by @weaversa in #611 (comment)
The text was updated successfully, but these errors were encountered: