jon.recoil.org

Module Flambda2_term_basics.Or_variable

Values of type 'a must not contain names!

type 'a t =
  1. | Const of 'a
  2. | Var of Flambda2_identifiers.Variable.t * Debuginfo.t
    (*

    The Debuginfo.t will be used to give correct debugging information at the point in the code where the corresponding statically-allocated block is patched. It would typically identify the place where the original allocation occurred in the source code.

    *)
val print : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a t -> unit
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val value_map : 'a t -> default:'b -> f:('a -> 'b) -> 'b
val apply_renaming : 'a t -> Flambda2_nominal.Renaming.t -> 'a t
val is_const : 'a t -> bool
val is_var : 'a t -> bool