Inliner

scalus.uplc.transform.Inliner
See theInliner companion class
object Inliner

Companion object providing convenient factory methods for the Inliner.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Inliner.type

Members list

Value members

Concrete methods

def apply(term: Term): Term

Applies inlining optimization to a term using default settings.

Applies inlining optimization to a term using default settings.

This is a convenience method equivalent to new Inliner().apply(term).

Value parameters

term

The term to optimize

Attributes

Returns

The optimized term with inlining applied

def substitute(term: Term, name: String, replacement: Term): Term

Performs capture-avoiding substitution [x → s]t.

Performs capture-avoiding substitution [x → s]t.

Substitutes all free occurrences of variable name with replacement in term, while avoiding variable capture: substitution stops at lambdas that rebind name, and lambdas whose binder is free in replacement are alpha-renamed first. Also used by LetRecLoweredValue to rewrite recursive references into self-application.

Attributes