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
1 parent
7e34fcd
commit 03f3720
Showing
16 changed files
with
143 additions
and
40 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
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/absapp.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 @@ | ||
[] | ||
([], { (abs a (type) (lam x a x)) (con integer) }) |
17 changes: 16 additions & 1 deletion
17
plutus-core/plutus-ir/test/transform/computeArityTest/ifError.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,16 @@ | ||
[MkTerm] | ||
( [MkTerm] | ||
, [ | ||
[ | ||
{ b (con integer) } | ||
(lam | ||
z | ||
(con integer) | ||
(let | ||
(nonrec) | ||
(termbind (strict) (vardecl err (con integer)) (error (con integer))) | ||
err | ||
) | ||
) | ||
] | ||
(lam z (con integer) (con integer 1)) | ||
] ) |
5 changes: 4 additions & 1 deletion
5
plutus-core/plutus-ir/test/transform/computeArityTest/immediateVar.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,4 @@ | ||
[] | ||
( [] | ||
, (let | ||
(nonrec) (termbind (strict) (vardecl x (con integer)) (error (con integer))) x | ||
) ) |
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/lamAbs3.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 @@ | ||
[MkTerm, MkTerm, MkTerm] | ||
([MkTerm, MkTerm, MkTerm], x) |
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/lamAbsApp.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 @@ | ||
[MkTerm, MkTerm, MkTerm] | ||
([MkTerm, MkTerm, MkTerm], [ (lam k (con integer) x) (con integer 3) ]) |
16 changes: 15 additions & 1 deletion
16
plutus-core/plutus-ir/test/transform/computeArityTest/multiapp.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,15 @@ | ||
[] | ||
( [] | ||
, [ | ||
[ | ||
[ | ||
(lam | ||
x | ||
(con integer) | ||
(lam y (con integer) (lam z (con integer) [ [ y x ] z ])) | ||
) | ||
(con integer 1) | ||
] | ||
(con integer 2) | ||
] | ||
(con integer 3) | ||
] ) |
15 changes: 14 additions & 1 deletion
15
plutus-core/plutus-ir/test/transform/computeArityTest/multilet.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,14 @@ | ||
[] | ||
( [] | ||
, [ | ||
(lam | ||
x | ||
(con integer) | ||
[ | ||
(lam | ||
y (con integer) [ (lam z (con integer) [ [ y x ] z ]) (con integer 3) ] | ||
) | ||
(con integer 2) | ||
] | ||
) | ||
(con integer 1) | ||
] ) |
63 changes: 62 additions & 1 deletion
63
plutus-core/plutus-ir/test/transform/computeArityTest/single.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,62 @@ | ||
[] | ||
( [] | ||
, (let | ||
(nonrec) | ||
(termbind (strict) (vardecl x (con integer)) (con integer 42)) | ||
(termbind | ||
(strict) | ||
(vardecl simple (con integer)) | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl f (fun (con integer) (con integer))) | ||
(lam y (con integer) y) | ||
) | ||
[ f (con integer 1) ] | ||
) | ||
) | ||
(termbind | ||
(strict) | ||
(vardecl insideLambda (fun (con integer) (con integer))) | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl f (fun (con integer) (con integer))) | ||
(lam y (con integer) y) | ||
) | ||
(lam y (con integer) [ f y ]) | ||
) | ||
) | ||
(termbind | ||
(strict) | ||
(vardecl trivialLambda (con integer)) | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl f (fun (con integer) (con integer))) | ||
(lam y (con integer) y) | ||
) | ||
[ f [ f (con integer 1) ] ] | ||
) | ||
) | ||
(termbind | ||
(strict) | ||
(vardecl variableCapture (con integer)) | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl f (fun (con integer) (con integer))) | ||
(lam y (con integer) x) | ||
) | ||
(let | ||
(nonrec) | ||
(termbind (strict) (vardecl x (con integer)) (con integer 24)) | ||
[ f x ] | ||
) | ||
) | ||
) | ||
x | ||
) ) |
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/tyAbs.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 @@ | ||
[MkType, MkTerm] | ||
([MkType, MkTerm], x) |
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/tyAbs2.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 @@ | ||
[MkType, MkType, MkTerm, MkTerm] | ||
([MkType, MkType, MkTerm, MkTerm], y) |
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/tyAbs2Arrow.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 @@ | ||
[MkType, MkType, MkTerm, MkTerm] | ||
([MkType, MkType, MkTerm, MkTerm], [ y x ]) |
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/tyAbsInterleaved.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 @@ | ||
[MkType, MkTerm, MkType, MkTerm, MkTerm] | ||
([MkType, MkTerm, MkType, MkTerm, MkTerm], y) |
12 changes: 11 additions & 1 deletion
12
plutus-core/plutus-ir/test/transform/computeArityTest/tyvar.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,11 @@ | ||
[] | ||
( [] | ||
, (let | ||
(nonrec) | ||
(typebind (tyvardecl a (type)) (con integer)) | ||
(typebind (tyvardecl b (type)) (con integer)) | ||
(let | ||
(nonrec) | ||
(termbind (strict) (vardecl y b) (con integer 1)) | ||
(lam z a [ (lam x b x) y ]) | ||
) | ||
) ) |
2 changes: 1 addition & 1 deletion
2
plutus-core/plutus-ir/test/transform/computeArityTest/var.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 @@ | ||
[MkTerm] | ||
([MkTerm], (let (nonrec) (termbind (strict) (vardecl x (con integer)) y) x)) |