Mlsem_lang.ErrorTyping errors of the language.
They extend the errors of Mlsem_system.Error by recognizing the failures that occur on the encodings introduced by MAst.to_system_ast, so that they can be reported in terms of the original constructs.
type kind = | UnboundVar of Mlsem_common.Variable.t| UntypeableApp of {fn : Mlsem_types.Ty.t;arg : Mlsem_types.Ty.t;}| UntypeableConstructor of {expected : Mlsem_types.GTy.t list list;given : Mlsem_types.GTy.t list;}| UntypeableRec of {funs : Mlsem_common.Variable.t list;expected : Mlsem_types.Ty.t list;given : Mlsem_types.Ty.t list;}| UntypeableEncoding| UntypeableProjection of {arg : Mlsem_types.Ty.t;domain : Mlsem_types.Ty.t;}| UntypeableCast of {check : Mlsem_system.Ast.check;expected : Mlsem_types.GTy.t;given : Mlsem_types.GTy.t;}| UntypeableCoercion of {check : Mlsem_system.Ast.check;expected : Mlsem_types.GTy.t;given : Mlsem_types.GTy.t;}| InvalidAnnot of string| UntypeableAssignment of {var : Mlsem_common.Variable.t;expected : Mlsem_types.Ty.t option;given : Mlsem_types.Ty.t;}The value assigned to the mutable variable var has type given, which is not a subtype of the type expected of the variable (None if the latter could not be determined).
type t = {eid : Mlsem_common.Eid.t;The identifier of the expression on which the error occurred
*)expr : Mlsem_system.Ast.e;The expression on which the error occurred
*)kind : kind;env : Mlsem_common.Env.t;The typing environment at that expression
*)ann : Mlsem_system.Annot.IAnnot.a;The (partial) annotation of that expression
*)}exception Untypeable of tval of_system : Mlsem_system.Error.t -> tConverts an error of Mlsem_system.Error, recognizing the failures that occur on the encoding of an assignment.
Same as those of Mlsem_system.Error.
val title : t -> string