-
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
Error handling #680
Comments
Could you say a bit more about that? In particular, are you thinking of handling errors during verification (i.e., proving that |
Well, yes, it would be nice to handle errors during verification. However, I was thinking along the lines of "Cryptol as a service". How do external tools operate with Cryptol functions that aren't total, or contain the error keyword? Sure, we can just say Some ideas --- Could we make another command to check for success in the interpreter? Could we massage the error prefix a bit to add more information about the error (such as file, line number, or function name)? |
OK, thanks, that makes sense. We can probably do a few different things on this front. |
Blast from the past: Cryptol-1 used to have a Truth be told, it wasn't the most useful command as most everything was obviously total, but was nice to have that command. And it's more or less free to implement since the symbolic-evaluator already kept track of all those cases and substituted |
@weaversa, what are your current thoughts about this issue? Is this primarily a REPL concern, or is this more a use case for the remote API? Here's one idea we could do without too much trouble, I think. We can add a I'm imagining something like:
|
Let's say the current cryptol-remote-api solves this and if I come up with a compelling issue I'll revisit. |
Cryptol does not provide a standard way to handle error cases. Sure, most crypto functions are total, but not all. It would be good to come up with a way (perhaps using the current
error
keyword) to standardize how errors should be handled.The text was updated successfully, but these errors were encountered: