-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TC: Add context to failed constraint errors
As part of this ensure that location information is correctly propagated through type-synonym expansion
- Loading branch information
Showing
12 changed files
with
116 additions
and
57 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
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,9 @@ | ||
[93mType error[0m: | ||
[96mfail/issue853.sail[0m:4.30-32: | ||
4[96m |[0mfunction foo(addr : bitvector(64)) -> unit = () | ||
[91m |[0m [91m^^[0m | ||
[91m |[0m Failed to prove constraint: 32 == 64 | ||
[91m |[0m | ||
[91m |[0m constraint from [96mfail/issue853.sail[0m:2.20-22: | ||
[91m |[0m 2[96m |[0mval foo : bitvector(32) -> unit | ||
[91m |[0m [91m |[0m [91m^^[0m [91mThis type argument[0m |
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,4 @@ | ||
|
||
val foo : bitvector(32) -> unit | ||
|
||
function foo(addr : bitvector(64)) -> unit = () |
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,9 @@ | ||
[93mType error[0m: | ||
[96mfail/issue853_2.sail[0m:6.25-27: | ||
6[96m |[0mfunction foo(addr : bits(64)) -> unit = () | ||
[91m |[0m [91m^^[0m | ||
[91m |[0m Failed to prove constraint: 32 == 64 | ||
[91m |[0m | ||
[91m |[0m constraint from [96mfail/issue853_2.sail[0m:4.20-22: | ||
[91m |[0m 4[96m |[0mval foo : bitvector(32) -> unit | ||
[91m |[0m [91m |[0m [91m^^[0m [91mThis type argument[0m |
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 @@ | ||
|
||
type bits('n) = bitvector('n) | ||
|
||
val foo : bitvector(32) -> unit | ||
|
||
function foo(addr : bits(64)) -> unit = () |