package ortac-qcheck-stm

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type init_state_error =
  1. | Mismatch_number_of_arguments of string
  2. | No_appropriate_specifications of string * string list
  3. | No_specification of string
  4. | No_translatable_specification of string
  5. | Not_a_function_call of string
  6. | Not_returning_sut of string
  7. | Qualified_name of string
type W.kind +=
  1. | Constant_value of string
  2. | Ensures_not_found_for_next_state of string * string
  3. | Ensures_not_found_for_ret_sut of string * string list
  4. | Functional_argument of string
  5. | Ghost_values of string * [ `Arg | `Ret ]
  6. | Impossible_init_state_generation of init_state_error
  7. | Impossible_term_substitution of [ `Never | `New | `Old | `NotModel | `OutOfScope ]
  8. | Incompatible_sut of string
  9. | Incompatible_type of string * string
  10. | Incomplete_configuration_module of [ `Init_sut | `Sut ]
  11. | Incomplete_ret_val_computation of string
  12. | No_configuration_file of string
  13. | No_init_function of string
  14. | No_models of string
  15. | No_spec of string
  16. | No_sut_type of string
  17. | Not_a_structure of string
  18. | Returning_nested_sut of string
  19. | Sut_as_type_inst of string
  20. | Sut_in_tuple of string
  21. | Sut_type_not_specified of string
  22. | Sut_type_not_supported of string
  23. | Syntax_error_in_config_module of string
  24. | Tuple_arity of string
  25. | Type_not_supported of string
  26. | Type_not_supported_for_sut_parameter of string
  27. | Type_parameter_not_instantiated of string
type 'a reserr
val ok : 'a -> 'a reserr
val error : W.t -> 'a reserr
val warns : W.t list -> unit reserr
val warn : W.t -> unit reserr
val let* : 'a reserr -> ('a -> 'b reserr) -> 'b reserr
val (>>=) : 'a reserr -> ('a -> 'b reserr) -> 'b reserr
val and* : 'a reserr -> 'b reserr -> ('a * 'b) reserr
val traverse : ('a -> 'b reserr) -> 'a list -> 'b list reserr

traverse f xs maps f over xs and returns ok of the resulting list iff it contains no error

val traverse_ : ('a -> 'b reserr) -> 'a list -> unit reserr

traverse_ f xs is traverse f xs ignoring the returned list

val sequence : 'a reserr list -> 'a list reserr

sequence rs returns ok of the list of 'a iff there is no error in rs

val promote : 'a reserr list -> 'a list reserr

promote rs filters rs and returns ok of the list of 'a iff there is no errors of level Error in rs and store the errors of level Warning in the warnings list

val promote_map : ('a -> 'b reserr) -> 'a list -> 'b list reserr

promote_map f xs is List.map f xs |> promote with only one traversal

val promote_mapi : (int -> 'a -> 'b reserr) -> 'a list -> 'b list reserr

promote_mapi f xs is List.mapi f xs |> promote with only one traversal

val promote_opt : 'a reserr -> 'a option reserr

promote_opt r is promote for a unique value

val fold_left : ('a -> 'b -> 'a reserr) -> 'a -> 'b list -> 'a reserr
val of_option : default:W.t -> 'a option -> 'a reserr
val to_option : 'a reserr -> 'a option
val fmap : ('a -> 'b) -> 'a reserr -> 'b reserr
val (<$>) : ('a -> 'b) -> 'a reserr -> 'b reserr
val app : ('a -> 'b) reserr -> 'a reserr -> 'b reserr
val (<*>) : ('a -> 'b) reserr -> 'a reserr -> 'b reserr
val pp : bool -> 'a Fmt.t -> 'a reserr Fmt.t
OCaml

Innovation. Community. Security.