Module Int_ids.Rec_info_expr
type variable = Flambda2_identifiers.Int_ids.Variable.tmodule Unrolling_state : sig ... endtype t = private | Const of {depth : int Flambda2_numbers.Or_infinity.t;unrolling : Flambda2_identifiers.Int_ids.Rec_info_expr.Unrolling_state.t;
}| Var of Flambda2_identifiers.Int_ids.Rec_info_expr.variable(*A variable of kind
*)Flambda_kind.rec_info.| Succ of Flambda2_identifiers.Int_ids.Rec_info_expr.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 * Flambda2_identifiers.Int_ids.Rec_info_expr.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 : Flambda2_identifiers.Int_ids.Rec_info_expr.tval unknown : Flambda2_identifiers.Int_ids.Rec_info_expr.tval do_not_inline : Flambda2_identifiers.Int_ids.Rec_info_expr.tval const :
depth:int Flambda2_numbers.Or_infinity.t ->
unrolling:Flambda2_identifiers.Int_ids.Rec_info_expr.Unrolling_state.t ->
Flambda2_identifiers.Int_ids.Rec_info_expr.tval unroll_to :
int ->
Flambda2_identifiers.Int_ids.Rec_info_expr.t ->
Flambda2_identifiers.Int_ids.Rec_info_expr.tval is_obviously_initial : Flambda2_identifiers.Int_ids.Rec_info_expr.t -> boolval print :
Stdlib.Format.formatter ->
Flambda2_identifiers.Int_ids.Rec_info_expr.t ->
unitval equal :
Flambda2_identifiers.Int_ids.Rec_info_expr.t ->
Flambda2_identifiers.Int_ids.Rec_info_expr.t ->
boolval hash : Flambda2_identifiers.Int_ids.Rec_info_expr.t -> intval erase_variables :
Flambda2_identifiers.Int_ids.Rec_info_expr.t ->
Flambda2_identifiers.Int_ids.Rec_info_expr.t