Module InferModules.ToplAutomaton
type t
type vname
= ToplAst.property_name * ToplAst.vertex
type vindex
= int
type tindex
= int
type transition
=
{
source : vindex;
target : vindex;
label : ToplAst.label;
}
val make : ToplAst.t list -> t
val outgoing : t -> vindex -> tindex list
val vname : t -> vindex -> vname
val vcount : t -> int
val transition : t -> tindex -> transition
val tcount : t -> int
val max_args : t -> int
val get_start_error_pairs : t -> (vindex * vindex) list
Returns pairs
(i,j)
of vertex indices corresponding to pairs((p, "start"), (p, "error"))
of vertex names, wherep
ranges over property names. POST: no vertex index occurs more than once in the result.