Inliner

scalus.uplc.Inliner
object Inliner

Attributes

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

Members list

Value members

Concrete methods

def apply(term: Term): Term
def inlineConstAndVar(name: String, body: Term, inlining: Term, occurances: Int): Boolean

Checks if a term is safe to inline multiple times

Checks if a term is safe to inline multiple times

Attributes

def inlinePass(shouldInline: (String, Term, Term, Int) => Boolean)(term: Term): (Term, Seq[String])

Main inlining function

Main inlining function

Attributes

def isPure(t: Term): Boolean
def substitute(term: Term, name: String, replacement: Term): Term

Implements capture-avoiding substitution [x -> s]t

Implements capture-avoiding substitution [x -> s]t

Attributes