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. | Empty_cmd_type
  3. | Ensures_not_found_for_next_state of string * string
  4. | Functional_argument of string
  5. | Ghost_values of string * [ `Arg | `Ret ]
  6. | Ignored_modifies
  7. | Impossible_init_state_generation of init_state_error
  8. | Impossible_term_substitution of [ `Never | `New | `Old | `NotModel | `OutOfScope ]
  9. | Incompatible_sut of string
  10. | Incompatible_type of string * string
  11. | Incomplete_configuration_module of [ `Init_sut | `Sut ]
  12. | Incomplete_ret_val_computation of string
  13. | Multiple_sut_arguments of string
  14. | No_configuration_file of string
  15. | No_init_function of string
  16. | No_models of string
  17. | No_spec of string
  18. | No_sut_type of string
  19. | Not_a_structure of string
  20. | Returned_tuple of string
  21. | Returning_sut of string
  22. | Sut_type_not_specified of string
  23. | Sut_type_not_supported of string
  24. | Syntax_error_in_config_module of string
  25. | Tuple_arity of string
  26. | Type_not_supported of string
  27. | Type_not_supported_for_sut_parameter of string
  28. | 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 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_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 map : ('a -> 'b reserr) -> 'a list -> 'b list reserr
val concat_map : ('a -> 'b list reserr) -> 'a list -> 'b list reserr
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.