-
Notifications
You must be signed in to change notification settings - Fork 123
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support toSignedInteger in reference evaluator
Checks off one box in #1249.
- Loading branch information
1 parent
9cb3eed
commit 6bd8c5e
Showing
4 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
// toSignedInteger | ||
|
||
toSignedInteger (0 : [64]) | ||
:eval toSignedInteger (0 : [64]) | ||
toSignedInteger (1 : [64]) | ||
:eval toSignedInteger (1 : [64]) | ||
toSignedInteger (2^^63 - 1 : [64]) | ||
:eval toSignedInteger (2^^63 - 1 : [64]) | ||
toSignedInteger (-1 : [64]) | ||
:eval toSignedInteger (-1 : [64]) | ||
toSignedInteger (-(2^^63) : [64]) | ||
:eval toSignedInteger (-(2^^63) : [64]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Loading module Cryptol | ||
0 | ||
0 | ||
1 | ||
1 | ||
9223372036854775807 | ||
9223372036854775807 | ||
-1 | ||
-1 | ||
-9223372036854775808 | ||
-9223372036854775808 |