File: weightmap.mli

package info (click to toggle)
coq-quickchick 2.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,432 kB
  • sloc: ml: 4,367; ansic: 789; makefile: 388; sh: 27; python: 4; perl: 2; lisp: 2
file content (12 lines) | stat: -rw-r--r-- 656 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
module CtrMap : Map.S with type key = GenericLib.Ord_ctr.t
type weight_ast = WNum of int | WSize
val weight_ast_to_string : weight_ast -> string
val weight_env : weight_ast CtrMap.t ref
val weight_env_to_string : unit -> string
val register_weights : (GenericLib.constructor * weight_ast) list -> unit
val convert_constr_to_weight : Constrexpr.constr_expr_r CAst.t -> weight_ast
val convert_constr_to_cw_pair :
  Constrexpr.constr_expr_r CAst.t -> GenericLib.constructor * weight_ast
val register_weights_object :
  (GenericLib.constructor * weight_ast) list -> Libobject.obj
val lookup_weight : bool -> CtrMap.key -> GenericLib.var -> GenericLib.coq_expr