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

feat(rpc): check, AES example/test #1159

Merged
merged 1 commit into from
Apr 14, 2021
Merged

feat(rpc): check, AES example/test #1159

merged 1 commit into from
Apr 14, 2021

Conversation

pnwamk
Copy link
Contributor

@pnwamk pnwamk commented Apr 8, 2021

Essentially adds :check to the Python interface.

Partially addresses remaining issues here: GaloisInc/argo#121

Adds an additional simple test for the Python interface (i.e., test_AES.py).

@@ -126,6 +125,54 @@ def __init__(self, connection : HasProtocolState, fun : str, args : List[Any]) -
def process_result(self, res : Any) -> Any:
return from_cryptol_arg(res['value'])


@dataclass
class CheckReport:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder whether it would be useful to include the values leading to failure in the case where check fails, in a form compatible with prove. In some sense, check and prove should be usable somewhat interchangeably, so making them compatible when possible seems useful.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, never mind. It does. That's what args is. I guess the one additional possibility is to include names for those arguments, like I recently added to prove (and I think maybe should be added to prove and sat on the Cryptol side). But that could be in a separate PR later, I think.

Copy link
Contributor

@atomb atomb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@pnwamk pnwamk merged commit 3474960 into master Apr 14, 2021
@pnwamk pnwamk deleted the rpc/feat/check branch April 14, 2021 21:53
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.

None yet

2 participants