-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
141 additions
and
10 deletions.
There are no files selected for viewing
27 changes: 26 additions & 1 deletion
27
plutus-tx-plugin/test/Array/9.6/compiledIndexArray.pir.golden
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 |
---|---|---|
@@ -1 +1,26 @@ | ||
indexArray {data} [I 1, I 2, I 3] 2 | ||
(let | ||
!indexArray : all a. array a -> integer -> a = indexArray | ||
in | ||
indexArray {data}) | ||
(let | ||
!unitval : unit = () | ||
in | ||
let | ||
!mkNilData : unit -> list data = mkNilData | ||
in | ||
let | ||
!mkI : integer -> data = iData | ||
in | ||
let | ||
!mkCons : all a. a -> list a -> list a = mkCons | ||
in | ||
let | ||
!listToArray : all a. list a -> array a = listToArray | ||
in | ||
listToArray | ||
{data} | ||
(mkCons | ||
{data} | ||
(mkI 1) | ||
(mkCons {data} (mkI 2) (mkCons {data} (mkI 3) (mkNilData unitval))))) | ||
2 |
22 changes: 21 additions & 1 deletion
22
plutus-tx-plugin/test/Array/9.6/compiledIndexArray.uplc.golden
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 |
---|---|---|
@@ -1 +1,21 @@ | ||
(program 1.1.0 (force indexArray [I 1, I 2, I 3] 2)) | ||
(program | ||
1.1.0 | ||
((\indexArray -> force indexArray) | ||
indexArray | ||
((\unitval -> | ||
(\mkNilData -> | ||
(\mkI -> | ||
(\mkCons -> | ||
(\listToArray -> | ||
force listToArray | ||
(force mkCons | ||
(mkI 1) | ||
(force mkCons | ||
(mkI 2) | ||
(force mkCons (mkI 3) (mkNilData unitval))))) | ||
listToArray) | ||
mkCons) | ||
iData) | ||
mkNilData) | ||
()) | ||
2)) |
26 changes: 25 additions & 1 deletion
26
plutus-tx-plugin/test/Array/9.6/compiledLengthArray.pir.golden
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 |
---|---|---|
@@ -1 +1,25 @@ | ||
lengthArray {data} [I 1, I 2, I 3] | ||
(let | ||
!lengthOfArray : all a. array a -> integer = lengthArray | ||
in | ||
lengthOfArray {data}) | ||
(let | ||
!unitval : unit = () | ||
in | ||
let | ||
!mkNilData : unit -> list data = mkNilData | ||
in | ||
let | ||
!mkI : integer -> data = iData | ||
in | ||
let | ||
!mkCons : all a. a -> list a -> list a = mkCons | ||
in | ||
let | ||
!listToArray : all a. list a -> array a = listToArray | ||
in | ||
listToArray | ||
{data} | ||
(mkCons | ||
{data} | ||
(mkI 1) | ||
(mkCons {data} (mkI 2) (mkCons {data} (mkI 3) (mkNilData unitval))))) |
21 changes: 20 additions & 1 deletion
21
plutus-tx-plugin/test/Array/9.6/compiledLengthArray.uplc.golden
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 |
---|---|---|
@@ -1 +1,20 @@ | ||
(program 1.1.0 (force lengthArray [I 1, I 2, I 3])) | ||
(program | ||
1.1.0 | ||
((\lengthOfArray -> force lengthOfArray) | ||
lengthArray | ||
((\unitval -> | ||
(\mkNilData -> | ||
(\mkI -> | ||
(\mkCons -> | ||
(\listToArray -> | ||
force listToArray | ||
(force mkCons | ||
(mkI 1) | ||
(force mkCons | ||
(mkI 2) | ||
(force mkCons (mkI 3) (mkNilData unitval))))) | ||
listToArray) | ||
mkCons) | ||
iData) | ||
mkNilData) | ||
()))) |
22 changes: 21 additions & 1 deletion
22
plutus-tx-plugin/test/Array/9.6/compiledListToArray.pir.golden
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 |
---|---|---|
@@ -1 +1,21 @@ | ||
[I 1, I 2, I 3] | ||
let | ||
!unitval : unit = () | ||
in | ||
let | ||
!mkNilData : unit -> list data = mkNilData | ||
in | ||
let | ||
!mkI : integer -> data = iData | ||
in | ||
let | ||
!mkCons : all a. a -> list a -> list a = mkCons | ||
in | ||
let | ||
!listToArray : all a. list a -> array a = listToArray | ||
in | ||
listToArray | ||
{data} | ||
(mkCons | ||
{data} | ||
(mkI 1) | ||
(mkCons {data} (mkI 2) (mkCons {data} (mkI 3) (mkNilData unitval)))) |
19 changes: 18 additions & 1 deletion
19
plutus-tx-plugin/test/Array/9.6/compiledListToArray.uplc.golden
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 |
---|---|---|
@@ -1 +1,18 @@ | ||
(program 1.1.0 [I 1, I 2, I 3]) | ||
(program | ||
1.1.0 | ||
((\unitval -> | ||
(\mkNilData -> | ||
(\mkI -> | ||
(\mkCons -> | ||
(\listToArray -> | ||
force listToArray | ||
(force mkCons | ||
(mkI 1) | ||
(force mkCons | ||
(mkI 2) | ||
(force mkCons (mkI 3) (mkNilData unitval))))) | ||
listToArray) | ||
mkCons) | ||
iData) | ||
mkNilData) | ||
())) |
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