Module Reductionops.Cst_stack

Machinery about a stack of unfolded constant

cst applied to params must convertible to term of the state applied to args

type t
val empty : t
val add_param : EConstr.constr -> t -> t
val add_args : EConstr.constr array -> t -> t
val add_cst : EConstr.constr -> t -> t
val best_cst : t -> (EConstr.constr * EConstr.constr list) option
val best_replace : Evd.evar_map -> EConstr.constr -> t -> EConstr.constr -> EConstr.constr
val reference : Evd.evar_map -> t -> Names.Constant.t option
val pr : Environ.env -> Evd.evar_map -> t -> Pp.t