jon.recoil.org

Module Flambda2_terms.Code_or_metadata

type t
type raw
module View : sig ... end

Will return the code or cause a fatal error.

val from_raw : sections:Oxcaml_utils.File_sections.t -> Flambda2_terms.Code_or_metadata.raw -> Flambda2_terms.Code_or_metadata.t
val iter_code : Flambda2_terms.Code_or_metadata.t -> f:(Flambda2_terms.Code.t -> unit) -> unit
val code_present : Flambda2_terms.Code_or_metadata.t -> bool

As for Code_metadata, the free names of a value of type t do not include the code ID, which is only kept for convenience.

include Flambda2_nominal.Contains_names.S with type t := Flambda2_terms.Code_or_metadata.t

Compute the free names of a term. Such computation covers all kinds of bindable names (variables, continuations, ...)

Apply a renaming throughout a term.

include Flambda2_nominal.Contains_ids.S with type t := Flambda2_terms.Code_or_metadata.t

Gather all table identifiers to export them.