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

Allow richer Python values for property arguments #9

Open
acfoltzer opened this issue Jul 17, 2015 · 1 comment
Open

Allow richer Python values for property arguments #9

acfoltzer opened this issue Jul 17, 2015 · 1 comment
Milestone

Comments

@acfoltzer
Copy link
Contributor

Currently, _CryptolModule.{check, exhaust, sat, prove} all take a string argument representing the property to check. It should be possible to pass in Python values to these functions, as long as those Python values originated from Cryptol in the first place. So if you have:

module Foo where

bar : [32] -> Bit
property bar x = x == x

On the Python side you ought to be able to have something like:

Foo = Cryptol().load_module("Foo.cry")
Foo.prove(Foo.bar)
@acfoltzer
Copy link
Contributor Author

We'll need to keep track of some syntactic representation of the value for this to work.

@acfoltzer acfoltzer added this to the 1.0.0a3 milestone Oct 26, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant