-
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 #1067 from GaloisInc/issue1044
Relax the check that all values are consumed
- Loading branch information
Showing
8 changed files
with
46 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module binarytree where | ||
|
||
newtype Tree = { inTree : Tree } | ||
|
||
build : Tree | ||
build = Tree { inTree = undefined } |
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 @@ | ||
:l issue1040.cry |
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,7 @@ | ||
Loading module Cryptol | ||
Loading module Cryptol | ||
Loading module binarytree | ||
|
||
[error] at issue1040.cry:1:1--6:36: | ||
Recursive type declarations: | ||
`binarytree::Tree` |
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,5 @@ | ||
:set prover=sbv-z3 | ||
:safe \(x:Z 7) -> x * (recip x) == 1 | ||
|
||
:set prover=w4-z3 | ||
:safe \(x:Z 7) -> x * (recip x) == 1 |
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,17 @@ | ||
Loading module Cryptol | ||
Counterexample | ||
(\(x : Z 7) -> x * (recip x) == 1) 0 ~> ERROR | ||
division by 0 | ||
-- Backtrace -- | ||
Cryptol::recip called at issue1044.icry:2:24--2:29 | ||
(Cryptol::*) called at issue1044.icry:2:19--2:37 | ||
(Cryptol::==) called at issue1044.icry:2:19--2:37 | ||
<interactive>::it called at issue1044.icry:2:7--2:37 | ||
Counterexample | ||
(\(x : Z 7) -> x * (recip x) == 1) 0 ~> ERROR | ||
division by 0 | ||
-- Backtrace -- | ||
Cryptol::recip called at issue1044.icry:5:24--5:29 | ||
(Cryptol::*) called at issue1044.icry:5:19--5:37 | ||
(Cryptol::==) called at issue1044.icry:5:19--5:37 | ||
<interactive>::it called at issue1044.icry:5:7--5:37 |