Skip to content

Commit

Permalink
Add explanation for single test.
Browse files Browse the repository at this point in the history
  • Loading branch information
thealmarty committed Mar 24, 2023
1 parent 0d64c1c commit 7a1e153
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plutus-core/plutus-ir/test/transform/inline/single
@@ -1,3 +1,16 @@
{- let x = 42
simple = let f = \y.y in f 1
insideLambda = let f = \y.y in \y. (f 1)
trivialLambda = let f = \y.y in f (f 1)
variableCapture = let f = \y.y in let x = 24 in (f x)
in x

- the `f` in `simple`, `insideLambda`, `variableCapture` get inlined by unconditional inlining
because it occurs only once in those.
- the `f` in `trivialLambda` gets inlined by the call site inliner because `f` occurs more than once
and is fully applied.
-}

(let
(nonrec)

Expand Down

0 comments on commit 7a1e153

Please sign in to comment.