Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:input-output-hk/plutus into zliu4…
…1/app-inline-uplc
- Loading branch information
Showing
29 changed files
with
389 additions
and
339 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
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
4 changes: 2 additions & 2 deletions
4
plutus-benchmark/script-contexts/test/checkScriptContext1-20.budget.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,2 +1,2 @@ | ||
({cpu: 424297997 | ||
| mem: 1316969}) | ||
({cpu: 419053997 | ||
| mem: 1294169}) |
4 changes: 2 additions & 2 deletions
4
plutus-benchmark/script-contexts/test/checkScriptContext1-4.budget.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,2 +1,2 @@ | ||
({cpu: 124093245 | ||
| mem: 389193}) | ||
({cpu: 122161245 | ||
| mem: 380793}) |
4 changes: 2 additions & 2 deletions
4
plutus-benchmark/script-contexts/test/checkScriptContext2-20.budget.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,2 +1,2 @@ | ||
({cpu: 405027508 | ||
| mem: 1254326}) | ||
({cpu: 399852508 | ||
| mem: 1231826}) |
4 changes: 2 additions & 2 deletions
4
plutus-benchmark/script-contexts/test/checkScriptContext2-4.budget.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,2 +1,2 @@ | ||
({cpu: 118430388 | ||
| mem: 371382}) | ||
({cpu: 116567388 | ||
| mem: 363282}) |
4 changes: 4 additions & 0 deletions
4
plutus-core/changelog.d/20230525_144849_unsafeFixIO_firstEffectfulTerm.md
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,4 @@ | ||
### Fixed | ||
|
||
- Fixed `PlutusIR.Purity.firstEffectfulTerm` and `UntypedPlutusCore.Transform.Inline.firstEffectfulTerm`, | ||
which were sometimes too conservative and sometimes incorrect. |
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
10 changes: 10 additions & 0 deletions
10
plutus-core/plutus-ir/test/transform/inline/firstEffectfulTerm1
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,10 @@ | ||
-- `a` should be inlined since it is the first effectful term in the body. | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl a (con integer)) | ||
{ error (con integer) } | ||
) | ||
[ (lam x (con integer) x) a ] | ||
) |
1 change: 1 addition & 0 deletions
1
plutus-core/plutus-ir/test/transform/inline/firstEffectfulTerm1.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
[ (lam x (con integer) x) { error (con integer) } ] |
18 changes: 18 additions & 0 deletions
18
plutus-core/plutus-ir/test/transform/inline/firstEffectfulTerm2
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,18 @@ | ||
-- `a` should not be inlined since it changes the semantics of the program. | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl a (fun (con integer) (con integer))) | ||
{ error (fun (con integer) (con integer)) } | ||
) | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl b (con integer)) | ||
[ (lam x (con integer) x) { error (con integer) } ] | ||
) | ||
[ a b ] | ||
) | ||
) |
17 changes: 17 additions & 0 deletions
17
plutus-core/plutus-ir/test/transform/inline/firstEffectfulTerm2.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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl a (fun (con integer) (con integer))) | ||
{ error (fun (con integer) (con integer)) } | ||
) | ||
(let | ||
(nonrec) | ||
(termbind | ||
(strict) | ||
(vardecl b (con integer)) | ||
[ (lam x (con integer) x) { error (con integer) } ] | ||
) | ||
[ a b ] | ||
) | ||
) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 4608602372 | ||
| mem: 13854201}) | ||
({cpu: 4608533372 | ||
| mem: 13853901}) |
Oops, something went wrong.