package zelus

  1. Overview
  2. Docs

reduce expressions that are tagged to be static; leave other unchanged

type fun_defs = {
  1. fundefs : (Deftypes.name * Zelus.funexp) list;
}
val empty : fun_defs
val num : int ref
val gfresh : unit -> string

Build a renaming from an environment

val rename : Ident.Env.key -> 'a Ident.Env.t -> 'a

rename a variable

val remove : 'a Ident.Env.t -> 'b Ident.Env.t -> 'b Ident.Env.t

Remove entries in venv that are defined in renaming

Rename an operator

Renaming of patterns

Simplify an expression.

Simplify a local declaration

Simplify an equation.

val exp_of_value : fun_defs -> Global.value_code -> Zelus.exp * fun_defs

Convert a value into an expression.

OCaml

Innovation. Community. Security.