-
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.
Merge pull request #1221 from GaloisInc/what4-bump
What4 bump
- Loading branch information
Showing
8 changed files
with
58 additions
and
4 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
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,15 @@ | ||
mwe : [2] -> [2][1] -> Bit | ||
property mwe i r = r@0 == (r@0) << 0*i | ||
|
||
mwe' : [2] -> [1] -> Bit | ||
property mwe' i r = r == (r << 0*i) | ||
|
||
mwe'' : Bit | ||
property mwe'' = r == (r << i) | ||
where r = 1:[1] | ||
i = 0:[2] | ||
|
||
bitget : [12] -> [436][8] -> Bit | ||
property bitget i r = i < 3488 ==> bit_gf == if bit_bit then 0x0001 else 0x0000 | ||
where bit_gf = (zext (((r@(i/8)) >> (i%8) ) && 1)) | ||
bit_bit = (join (map reverse r))@i |
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,6 @@ | ||
:l issue1210.cry | ||
:check | ||
:set prover=sbv-z3 | ||
:prove | ||
:set prover=w4-z3 | ||
:prove |
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,31 @@ | ||
Loading module Cryptol | ||
Loading module Cryptol | ||
Loading module Main | ||
property mwe Using exhaustive testing. | ||
Testing... Passed 16 tests. | ||
Q.E.D. | ||
property mwe' Using exhaustive testing. | ||
Testing... Passed 8 tests. | ||
Q.E.D. | ||
property mwe'' Using exhaustive testing. | ||
Testing... Passed 1 tests. | ||
Q.E.D. | ||
property bitget Using random testing. | ||
Testing... Passed 100 tests. | ||
Expected test coverage: 0.00% (100 of 2^^3500 values) | ||
:prove mwe | ||
Q.E.D. | ||
:prove mwe' | ||
Q.E.D. | ||
:prove mwe'' | ||
Q.E.D. | ||
:prove bitget | ||
Q.E.D. | ||
:prove mwe | ||
Q.E.D. | ||
:prove mwe' | ||
Q.E.D. | ||
:prove mwe'' | ||
Q.E.D. | ||
:prove bitget | ||
Q.E.D. |