Dolmen_loop.Typermodule T :
Dolmen_type.Thf.S
with type 'a Tag.t = 'a Dolmen.Std.Tag.t
and type Ty.t = Dolmen.Std.Expr.ty
and type Ty.Var.t = Dolmen.Std.Expr.Ty.Var.t
and type Ty.Const.t = Dolmen.Std.Expr.Ty.Const.t
and type T.t = Dolmen.Std.Expr.term
and type T.Var.t = Dolmen.Std.Expr.Term.Var.t
and type T.Const.t = Dolmen.Std.Expr.Term.Const.t
and type T.Cstr.t = Dolmen.Std.Expr.Term.Const.tThe raw type-checker module.
The type of state used by the Make functor.
val new_state : unit -> ty_stateGenerate a fresh typing state.
module Ext : sig ... endDefine typing extensions.
module type Typer_Full = Typer_intf.Typer_Fullmodule Typer
(State : State.S) :
Typer_Full
with type state = State.t
and type 'a key := 'a State.key
and type ty_state = ty_state
and type env = T.env
and type 'a fragment = 'a T.fragment
and type error = T.error
and type warning = T.warning
and type builtin_symbols = T.builtin_symbols
and type extension = Ext.ttype +'a stmt = 'a Typer_intf.stmt = {id : Dolmen.Std.Id.t;loc : Dolmen.Std.Loc.t;contents : 'a;attrs : Dolmen.Std.Term.t list;implicit : bool;}Re-export of the typed statement type.
module type Types = Typer_intf.Typesmodule Types
(Expr : Expr_intf.S) :
Typer_intf.Types
with type ty = Expr.ty
and type ty_var = Expr.ty_var
and type ty_cst = Expr.ty_cst
and type term = Expr.term
and type term_var = Expr.term_var
and type term_cst = Expr.term_cst
and type formula = Expr.formulamodule type S = Typer_intf.Smodule type Typer = Typer_intf.Typermodule Make
(Expr : Expr_intf.S)
(Print :
Expr_intf.Print
with type ty := Expr.ty
and type ty_var := Expr.ty_var
and type ty_cst := Expr.ty_cst
and type ty_def := Expr.ty_def
and type term := Expr.term
and type term_var := Expr.term_var
and type term_cst := Expr.term_cst
and type formula := Expr.formula)
(State : State.S)
(Typer :
Typer
with type state := State.t
and type ty := Expr.ty
and type ty_var := Expr.ty_var
and type ty_cst := Expr.ty_cst
and type ty_def := Expr.ty_def
and type term := Expr.term
and type term_var := Expr.term_var
and type term_cst := Expr.term_cst
and type formula := Expr.formula) :
S
with type state = State.t
and type 'a key = 'a State.key
and type ty = Expr.ty
and type ty_var = Expr.ty_var
and type ty_cst = Expr.ty_cst
and type ty_def = Expr.ty_def
and type term = Expr.term
and type term_var = Expr.term_var
and type term_cst = Expr.term_cst
and type formula = Expr.formulaval unused_type_variable :
(T.var_kind * Dolmen.Std.Expr.Ty.Var.t) Report.Warning.tval unused_term_variable :
(T.var_kind * Dolmen.Std.Expr.Term.Var.t) Report.Warning.tval unknown_attribute : Dolmen.Std.Id.t Report.Warning.tval superfluous_destructor : unit Report.Warning.tval shadowing : (Dolmen.Std.Id.t * T.binding) Report.Warning.tval redundant_pattern : Dolmen.Std.Expr.term Report.Warning.tval bad_arith_expr :
(Dolmen_type.Arith.Smtlib2.config * string) Report.Warning.tWarning for arithmetic expressions that do not strictly conform to the specification (e.g. linear arithmetic), but are close enough that they should probably be accepted.
val array_extension : Dolmen.Std.Id.t Report.Warning.tval logic_reset : Dolmen.Std.Loc.loc Report.Warning.tval unknown_logic : string Report.Warning.tUnknown logic warning
val set_logic_not_supported : unit Report.Warning.tval unknown_warning : string Report.Warning.tval dumb_polymorphism :
(T.env * Dolmen.Std.Expr.ty * Dolmen.Std.Expr.ty_var * T.wildcard_source list)
Report.Warning.tval bad_option :
(Dolmen.Std.Term.t * (Stdlib.Format.formatter -> unit)) Report.Error.tval not_well_founded_datatype : unit Report.Error.tval expect_error : (string * T.res option) Report.Error.tval bad_index_arity : (string * T.arity * int) Report.Error.tval bad_type_arity : (Dolmen.Std.Expr.Ty.Const.t * int) Report.Error.tval bad_op_arity : (T.symbol * T.arity * int) Report.Error.tval bad_cstr_arity :
(Dolmen.Std.Expr.Term.Field.t * T.arity * int) Report.Error.tval bad_term_arity :
(Dolmen.Std.Expr.Term.Const.t * T.arity * int) Report.Error.tval bad_poly_arity :
(Dolmen.Std.Expr.ty_var list * Dolmen.Std.Expr.ty list) Report.Error.tval over_application : Dolmen.Std.Expr.term list Report.Error.tval partial_pattern_match : Dolmen.Std.Expr.term list Report.Error.tval mismatch_sum_type :
(Dolmen.Std.Expr.Term.Cstr.t * Dolmen.Std.Expr.ty) Report.Error.tval repeated_record_field : Dolmen.Std.Expr.Term.Field.t Report.Error.tval missing_record_field : Dolmen.Std.Expr.Term.Field.t Report.Error.tval mismatch_record_type :
(Dolmen.Std.Expr.Term.Field.t * Dolmen.Std.Expr.Ty.Const.t) Report.Error.tval ty_var_application : Dolmen.Std.Expr.ty_var Report.Error.tval var_application : Dolmen.Std.Expr.term_var Report.Error.tval type_mismatch : (Dolmen.Std.Expr.term * Dolmen.Std.Expr.ty) Report.Error.tval var_in_binding_pos_underspecified : unit Report.Error.tval overlapping_parallel_bindings :
(Dolmen.Std.Id.t * Dolmen.Std.Loc.full) Report.Error.tval overlapping_smt_fun_def_params :
(Dolmen.Std.Id.t * T.binding) Report.Error.tval unhandled_builtin : Dolmen.Std.Term.builtin Report.Error.tval cannot_tag_tag : unit Report.Error.tval cannot_tag_ttype : unit Report.Error.tval unbound_identifier : (Dolmen.Std.Id.t * string * bool) Report.Error.tval multiple_declarations : (Dolmen.Std.Id.t * T.binding) Report.Error.tval forbidden_quant : unit Report.Error.tval missing_destructor : Dolmen.Std.Id.t Report.Error.tval type_def_rec : Dolmen.Std.Statement.def Report.Error.tval id_definition_conflict : (Dolmen.Std.Id.t * T.binding) Report.Error.tval higher_order_app : unit Report.Error.tval higher_order_type : unit Report.Error.tval higher_order_env_in_tff_typer : unit Report.Error.tval poly_arg : unit Report.Error.tval non_prenex_polymorphism : Dolmen.Std.Expr.ty Report.Error.tval inference_forbidden :
(T.env * T.wildcard_source * Dolmen.Std.Expr.ty) Report.Error.tval inference_conflict :
(T.env * T.wildcard_source * Dolmen.Std.Expr.ty * Dolmen.Std.Expr.ty list)
Report.Error.tval inference_scope_escape :
(T.env * T.wildcard_source * Dolmen.Std.Expr.ty_var * T.reason option)
Report.Error.tval unbound_type_wildcards :
(T.env * (Dolmen.Std.Expr.ty_var * T.wildcard_source list) list)
Report.Error.tval unbound_implicit_type_vars :
(Dolmen.Std.Expr.ty_var * T.reason) list Report.Error.tval incoherent_type_redefinition :
(Dolmen.Std.Id.t * Dolmen.Std.Expr.Ty.Const.t * T.reason * int)
Report.Error.tval incoherent_term_redefinition :
(Dolmen.Std.Id.t
* Dolmen.Std.Expr.Term.Const.t
* T.reason
* Dolmen.Std.Expr.ty)
Report.Error.tval unhandled_ast : (T.env * Dolmen.Std.Term.t T.fragment) Report.Error.tval bad_farray_arity : unit Report.Error.tval expected_arith_type : (Dolmen.Std.Expr.ty * string) Report.Error.tval expected_specific_arith_type : Dolmen.Std.Expr.ty Report.Error.tval forbidden_array_sort : string Report.Error.tval forbidden_arith_expr :
(Dolmen_type.Arith.Smtlib2.config * string) Report.Error.tError for arithmetic expressions that do not respect the specification (e.g. non-linear expressions, expressions not in difference logic, etc...).
val bitvector_app_expected_nat_lit : Dolmen.Std.Term.t Report.Error.tval non_positive_bitv_size : int Report.Error.tval invalid_smt2_bitv_extract : (int * int * int) Report.Error.tval invalid_bin_bitvector_char : char Report.Error.tval invalid_hex_bitvector_char : char Report.Error.tval invalid_dec_bitvector_char : char Report.Error.tval invalid_hex_string_char : string Report.Error.tval invalid_string_char : char Report.Error.tval invalid_string_escape_sequence : (string * int) Report.Error.tval bad_tptp_kind : string option Report.Error.tval missing_smtlib_logic : unit Report.Error.tval illegal_decl : unit Report.Error.tval illegal_def : unit Report.Error.tval invalid_push : unit Report.Error.tval invalid_pop : unit Report.Error.tval empty_pop : unit Report.Error.tval reserved : (Dolmen.Std.Id.t * [ `Solver of string ]) Report.Error.tval incorrect_sexpression : (Stdlib.Format.formatter -> unit) Report.Error.tval non_closed_named_term :
(Dolmen.Std.Expr.Ty.Var.t list * Dolmen.Std.Expr.Term.Var.t list)
Report.Error.tval unknown_error : string Report.Error.t