Module Flambda2_term_basics.Rec_info_expr
include module type of struct include Flambda2_identifiers.Int_ids.Rec_info_expr end
type variable = Flambda2_identifiers.Int_ids.Variable.tmodule Unrolling_state =
Flambda2_identifiers.Int_ids.Rec_info_expr.Unrolling_statetype t = private Flambda2_identifiers.Int_ids.Rec_info_expr.t = | Const of {depth : int Flambda2_numbers.Or_infinity.t;unrolling : Unrolling_state.t;
}| Var of variable(*A variable of kind
*)Flambda_kind.rec_info.| Succ of t(*The next depth. If we inline an occurrence with depth
*)d, then in the inlined body, recursive references will have depthsucc d.| Unroll_to of int * t(*Indicate the depth to which unrolling should proceed. The unroll depth is decremented by
*)Succuntil it reaches zero, at which point all unrolling should stop.
An expression for the state of recursive inlining at a given occurrence. Forms the right-hand side of a Let_expr binding for a depth variable.
val initial : tval unknown : tval do_not_inline : tval const :
depth:int Flambda2_numbers.Or_infinity.t ->
unrolling:Unrolling_state.t ->
tval is_obviously_initial : t -> boolval hash : t -> intval print : Format.formatter -> t -> unitinclude Flambda2_nominal.Contains_names.S with type t := t
val free_names : t -> Flambda2_nominal.Name_occurrences.tCompute the free names of a term. Such computation covers all kinds of bindable names (variables, continuations, ...)
val apply_renaming : t -> Flambda2_nominal.Renaming.t -> tApply a renaming throughout a term.
include Flambda2_nominal.Contains_ids.S with type t := t
val ids_for_export : t -> Flambda2_nominal.Ids_for_export.tGather all table identifiers to export them.
val free_names_in_types : t -> Flambda2_nominal.Name_occurrences.t