-
Notifications
You must be signed in to change notification settings - Fork 125
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Potentially means a few less things typecheck, but should be much simpler and avoids bad cases where it could backtrack a lot
- Loading branch information
Showing
5 changed files
with
50 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[93mType error[0m: | ||
[96mfail/bv_update_error.sail[0m:13.18-22: | ||
13[96m |[0m let _ = [v with FIEL = 0xFF]; | ||
[91m |[0m [91m^--^[0m | ||
[91m |[0m No function type found for _update_b_FIEL | ||
[91m |[0m | ||
[91m |[0m Did you mean _update_b_FIELD? |
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 @@ | ||
default Order dec | ||
|
||
$include <prelude.sail> | ||
|
||
bitfield b : bits(32) = { | ||
FIELD : 7 .. 0 | ||
} | ||
|
||
val main : unit -> unit | ||
|
||
function main() = { | ||
let v = Mk_b(0x0000_0000); | ||
let _ = [v with FIEL = 0xFF]; | ||
() | ||
} |
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