Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline fully saturated applications in UPLC (#5323)
- Loading branch information
Showing
97 changed files
with
1,618 additions
and
1,809 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
({cpu: 10595833908 | ||
| mem: 44538048}) | ||
({cpu: 9146695908 | ||
| mem: 38237448}) |
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: 5031561298 | ||
| mem: 17450940}) | ||
({cpu: 4484460298 | ||
| mem: 15072240}) |
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: 10355382305 | ||
| mem: 38134342}) | ||
({cpu: 9369717305 | ||
| mem: 33848842}) |
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: 140864292648 | ||
| mem: 505174580}) | ||
({cpu: 128906178648 | ||
| mem: 453182780}) |
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: 432991997 | ||
| mem: 1354769}) | ||
({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: 125059245 | ||
| mem: 393393}) | ||
({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: 413790508 | ||
| mem: 1292426}) | ||
({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: 119465388 | ||
| mem: 375882}) | ||
({cpu: 116567388 | ||
| mem: 363282}) |
4 changes: 2 additions & 2 deletions
4
plutus-benchmark/script-contexts/test/checkScriptContextEqualityTerm-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: 595428251 | ||
| mem: 2430846}) | ||
({cpu: 573072251 | ||
| mem: 2333646}) |
3 changes: 3 additions & 0 deletions
3
plutus-core/changelog.d/20230523_132138_unsafeFixIO_app_inline_uplc.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,3 @@ | ||
### Added | ||
|
||
- Callsite inlining for UPLC. |
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
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
26 changes: 23 additions & 3 deletions
26
plutus-core/untyped-plutus-core/src/UntypedPlutusCore/Core.hs
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,7 +1,27 @@ | ||
module UntypedPlutusCore.Core | ||
( module Export | ||
) where | ||
{-# LANGUAGE LambdaCase #-} | ||
|
||
module UntypedPlutusCore.Core ( | ||
module Export, | ||
splitParams, | ||
splitApplication, | ||
) where | ||
|
||
import UntypedPlutusCore.Core.Instance as Export | ||
import UntypedPlutusCore.Core.Plated as Export | ||
import UntypedPlutusCore.Core.Type as Export | ||
|
||
import Data.Bifunctor | ||
|
||
-- | Strips off lambda binders. | ||
splitParams :: Term name uni fun a -> ([name], Term name uni fun a) | ||
splitParams = \case | ||
LamAbs _ n t -> first (n :) (splitParams t) | ||
t -> ([], t) | ||
|
||
-- | Strip off arguments | ||
splitApplication :: Term name uni fun a -> (Term name uni fun a, [(a, Term name uni fun a)]) | ||
splitApplication = go [] | ||
where | ||
go acc = \case | ||
Apply ann fun arg -> go ((ann, arg) : acc) fun | ||
t -> (t, acc) |
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.