-
Notifications
You must be signed in to change notification settings - Fork 13
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 #80 from Chia-Network/20240406-assign-cse-fuzz
fix for ability to lift a CSE out of an assign form when it depends on bindings in the assign and fuzz infra for testing
- Loading branch information
Showing
15 changed files
with
852 additions
and
17 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(mod (blob) | ||
(include *standard-cl-23*) | ||
|
||
(defun test-f (blob) | ||
(let* | ||
((first (list 1 2 3)) | ||
(copies (list (r first) (r first)))) | ||
(c (r first) copies) | ||
) | ||
) | ||
(test-f blob) | ||
) |
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,12 @@ | ||
(mod (blob) | ||
(include *standard-cl-23*) | ||
|
||
(defun test-f (blob) | ||
(assign | ||
first (list 1 2 3) | ||
copies (list (r first) (r first)) | ||
(c (r first) copies) | ||
) | ||
) | ||
(test-f blob) | ||
) |
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 @@ | ||
(mod (Q) | ||
(include *standard-cl-23*) | ||
|
||
(defun F (X) | ||
(assign | ||
A1 (r (r X)) | ||
A2 (c A1 (r X)) | ||
A3 (c A2 (r (r X))) | ||
A4 (assign B1 (c A1 (r (r X))) (list B1 (r (r X)))) | ||
(list A1 A2 A3 A4) | ||
) | ||
) | ||
|
||
(F (list Q 99 100 101 102)) | ||
) |
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,25 @@ | ||
(mod (move) | ||
(include *standard-cl-23*) | ||
|
||
(defun fhi (ha ca) (sha256 ha ca)) | ||
(defun nfh (ha ca) (fhi ha ca)) | ||
|
||
(defun testf1 (ca) | ||
(assign-lambda | ||
fc (+ ca 1) | ||
sc (* ca 11) | ||
(assign-lambda | ||
tango 121 | ||
(if (= ca 13) | ||
(nfh fc sc) | ||
(if (= ca 15) | ||
(fhi fc sc) | ||
tango | ||
) | ||
) | ||
) | ||
) | ||
) | ||
|
||
(testf1 move) | ||
) |
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
Oops, something went wrong.