-
Notifications
You must be signed in to change notification settings - Fork 62
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
Signed bitvector primitives in specifications #87
Comments
My latest idea is to provide a value of type
|
This is a step towards fixing #87. We still have some missing primitives for signed operations, including sign-extend, div/rem, and right shift.
We want to do signed comparisons in the V2V project. |
To use the
I need to put a hint like this in the |
I copied the Brian's example in #87 (#87 (comment)). Also, I changed the makefile to generate the temporary markdown file in `tmp`: I mistakenly edited the generated top-level `sawScriptTutorial.md` before realizing I was supposed to edit `tutorial.md`. Also, add a readme.
Thanks, exactly what I needed! I added your example to the tutorial (2291292). Yes, adding it the Should this issue be closed? |
The ticket is still open because |
Now that we have signed operators in Crypol for these, is there work left to do for this issue? |
I should probably remove everything from |
Revision 514b712 adds a sign extension operator |
The following SAWCore primitives (mostly to do with signed bitvectors) appear in terms extracted from Java or LLVM, but are not expressible in Cryptol:
It would be very useful to be able to state theorems (especially rewrite rules) involving these operations, so we should provide some way for users to be able to express them. A possibility would be to provide a saw-script primitive of type
Term
for each; these could then be used within the{{
}}
cryptol brackets.The text was updated successfully, but these errors were encountered: