forked from HigherOrderCO/HVM
-
Notifications
You must be signed in to change notification settings - Fork 0
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 HigherOrderCO#379 from HigherOrderCO/fix-safety-ch…
…ecking Propagate unsafety to definitions that depend on unsafe definitions
- Loading branch information
Showing
7 changed files
with
142 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,31 @@ | ||
@List/Cons = (a (b ((@List/Cons/tag (a (b c))) c))) | ||
|
||
@List/Cons/tag = 1 | ||
|
||
@List/Nil = ((@List/Nil/tag a) a) | ||
|
||
@List/Nil/tag = 0 | ||
|
||
@id = (a a) | ||
|
||
@list = c | ||
& @List/Cons ~ (1 (b c)) | ||
& @List/Cons ~ (2 (@List/Nil b)) | ||
|
||
@main = b | ||
& @map ~ (@main__C0 (a b)) | ||
& @List/Cons ~ (@id (@List/Nil a)) | ||
|
||
@main__C0 = (a b) | ||
& @map ~ (a (@list b)) | ||
|
||
@map = (a ((@map__C1 (a b)) b)) | ||
|
||
@map__C0 = (* (a (d ({(a b) c} f)))) | ||
& @List/Cons ~ (b (e f)) | ||
& @map ~ (c (d e)) | ||
|
||
@map__C1 = (?(((* @List/Nil) @map__C0) a) a) | ||
|
||
// Test flags | ||
@test-rust-only = 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
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 @@ | ||
--- | ||
source: tests/run.rs | ||
expression: rust_output | ||
input_file: tests/programs/safety-check.hvm | ||
--- | ||
ERROR: attempt to clone a non-affine global reference. |