package ortac-runtime-qcheck-stm

  1. Overview
  2. Docs

Parameters

module M : sig ... end

Signature

type t

A value of type t represents an immutable model of a stack of states

val create : int -> unit -> t

create n () creates a model with n initial elements

val size : t -> int

size t returns the number of elements in the model t

val drop_n : t -> int -> t

drop_n t n returns a new model with the n uppermost elements removed

val push : t -> M.elt -> t

push t e returns a new model with e as the topmost element

val get : t -> int -> M.elt

get t n returns the nth element of the model t

OCaml

Innovation. Community. Security.