Mlsem_lang.MAstmodule SA = Mlsem_system.Asttype e = | Hole of int| ExcExpression of type empty
| VoidExpression of type void
| Voidify of tEvaluate the expression inside, but give it the void type, even if it diverges
| Ignore of tEvaluate the expression inside, but give it the void type, or empty if it diverges
| Value of Mlsem_types.GTy.t| Var of Mlsem_common.Variable.t| Constructor of SA.constructor * t list| GConstructor of SA.gconstructor * t list| Lambda of Mlsem_types.Ty.t list * SA.param_annot * Mlsem_common.Variable.t * tThe first parameter is a suggested type decomposition, similarly to let-bindings
*)| LambdaRec of (SA.param_annot * Mlsem_common.Variable.t * t) list| Ite of t * Mlsem_types.Ty.t * t * t| App of t * t| Operation of SA.operation * t| Projection of SA.projection * t| Declare of Mlsem_types.Ty.t list * Mlsem_common.Variable.t * tDeclaration of an uninitialized mutable variable. The variable provided must be mutable (cf. MVariable.create). The type system will not check that the variable is assigned before use. The first parameter is a suggested type decomposition, similarly to let-bindings: it applies to the values later assigned to the variable.
| Let of Mlsem_types.Ty.t list * Mlsem_common.Variable.t * t * tThe first parameter is a suggested type decomposition. The variable must be immutable: mutable variables are bound by Declare.
| TypeCast of t * Mlsem_types.GTy.t * SA.check| TypeCoerce of t * Mlsem_types.GTy.t * SA.check| VarAssign of Mlsem_common.Variable.t * t| Loop of tA void expression that may be evaluated multiple times.
*)| Seq of t * tEvaluate the first expression, then the second.
*)| Try of t listMay jump from a branch to another. Used to model try-with expressions.
*)| Alt of SA.alt_settings * t listEvaluate branches independently. The result is (the intersection of) the result of the branches that do not fail.
*)and t = Mlsem_common.Eid.t * eval fv : t -> Mlsem_common.VarSet.tval vars : t -> Mlsem_common.VarSet.tval rename_fv : Mlsem_common.Variable.t -> Mlsem_common.Variable.t -> t -> tEncodes the remaining mutable variables as operations on an abstract reference type, yielding a term of the functional core language.
val pp_e : Stdlib.Format.formatter -> e -> unitval pp : Stdlib.Format.formatter -> t -> unit