sig
module S : Sigs.Sigma
module Node :
sig
type t
module Map :
sig
type key = t
type 'a t
val is_empty : 'a t -> bool
val empty : 'a t
val add : key -> 'a -> 'a t -> 'a t
val mem : key -> 'a t -> bool
val find : key -> 'a t -> 'a
val remove : key -> 'a t -> 'a t
val compare : ('a -> 'a -> int) -> 'a t -> 'a t -> int
val equal : ('a -> 'a -> bool) -> 'a t -> 'a t -> bool
val iter : (key -> 'a -> unit) -> 'a t -> unit
val map : (key -> 'a -> 'b) -> 'a t -> 'b t
val mapf : (key -> 'a -> 'b option) -> 'a t -> 'b t
val mapq : (key -> 'a -> 'a option) -> 'a t -> 'a t
val filter : (key -> 'a -> bool) -> 'a t -> 'a t
val partition : (key -> 'a -> bool) -> 'a t -> 'a t * 'a t
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val union : (key -> 'a -> 'a -> 'a) -> 'a t -> 'a t -> 'a t
val inter : (key -> 'a -> 'b -> 'c) -> 'a t -> 'b t -> 'c t
val interf : (key -> 'a -> 'b -> 'c option) -> 'a t -> 'b t -> 'c t
val interq : (key -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t
val diffq : (key -> 'a -> 'a -> 'a option) -> 'a t -> 'a t -> 'a t
val merge :
(key -> 'a option -> 'b option -> 'c option) ->
'a t -> 'b t -> 'c t
val iter2 :
(key -> 'a option -> 'b option -> unit) -> 'a t -> 'b t -> unit
val subset : (key -> 'a -> 'b -> bool) -> 'a t -> 'b t -> bool
val insert : (key -> 'a -> 'a -> 'a) -> key -> 'a -> 'a t -> 'a t
val change :
(key -> 'b -> 'a option -> 'a option) ->
key -> 'b -> 'a t -> 'a t
end
module Set :
sig
type elt = t
type t
val empty : t
val is_empty : t -> bool
val mem : elt -> t -> bool
val find : elt -> t -> elt
val add : elt -> t -> t
val singleton : elt -> t
val remove : elt -> t -> t
val union : t -> t -> t
val inter : t -> t -> t
val diff : t -> t -> t
val compare : t -> t -> int
val equal : t -> t -> bool
val subset : t -> t -> bool
val iter : (elt -> unit) -> t -> unit
val fold : (elt -> 'a -> 'a) -> t -> 'a -> 'a
val for_all : (elt -> bool) -> t -> bool
val exists : (elt -> bool) -> t -> bool
val filter : (elt -> bool) -> t -> t
val partition : (elt -> bool) -> t -> t * t
val cardinal : t -> int
val elements : t -> elt list
val map : (elt -> elt) -> t -> t
val mapf : (elt -> elt option) -> t -> t
val intersect : t -> t -> bool
end
module Hashtbl :
sig
type key = t
type 'a t
val create : int -> 'a t
val clear : 'a t -> unit
val reset : 'a t -> unit
val copy : 'a t -> 'a t
val add : 'a t -> key -> 'a -> unit
val remove : 'a t -> key -> unit
val find : 'a t -> key -> 'a
val find_opt : 'a t -> key -> 'a option
val find_all : 'a t -> key -> 'a list
val replace : 'a t -> key -> 'a -> unit
val mem : 'a t -> key -> bool
val iter : (key -> 'a -> unit) -> 'a t -> unit
val filter_map_inplace : (key -> 'a -> 'a option) -> 'a t -> unit
val fold : (key -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
val length : 'a t -> int
val stats : 'a t -> Hashtbl.statistics
end
val pp : Format.formatter -> CfgCompiler.Cfg.Node.t -> unit
val create : unit -> CfgCompiler.Cfg.Node.t
val equal : CfgCompiler.Cfg.Node.t -> CfgCompiler.Cfg.Node.t -> bool
end
type node = CfgCompiler.Cfg.Node.t
val node : unit -> CfgCompiler.Cfg.node
module C :
sig
type t
val equal : CfgCompiler.Cfg.C.t -> CfgCompiler.Cfg.C.t -> bool
val create : S.t -> Lang.F.pred -> CfgCompiler.Cfg.C.t
val get : CfgCompiler.Cfg.C.t -> Lang.F.pred
val reads : CfgCompiler.Cfg.C.t -> S.domain
val relocate : S.t -> CfgCompiler.Cfg.C.t -> CfgCompiler.Cfg.C.t
end
module P :
sig
type t
val pretty : Format.formatter -> CfgCompiler.Cfg.P.t -> unit
val create :
S.t CfgCompiler.Cfg.Node.Map.t -> Lang.F.pred -> CfgCompiler.Cfg.P.t
val get : CfgCompiler.Cfg.P.t -> Lang.F.pred
val reads : CfgCompiler.Cfg.P.t -> S.domain CfgCompiler.Cfg.Node.Map.t
val nodes : CfgCompiler.Cfg.P.t -> CfgCompiler.Cfg.Node.Set.t
val relocate :
S.t CfgCompiler.Cfg.Node.Map.t ->
CfgCompiler.Cfg.P.t -> CfgCompiler.Cfg.P.t
val to_condition :
CfgCompiler.Cfg.P.t ->
(CfgCompiler.Cfg.C.t * CfgCompiler.Cfg.Node.t option) option
end
module T :
sig
type t
val pretty : Format.formatter -> CfgCompiler.Cfg.T.t -> unit
val create :
S.t CfgCompiler.Cfg.Node.Map.t -> Lang.F.term -> CfgCompiler.Cfg.T.t
val get : CfgCompiler.Cfg.T.t -> Lang.F.term
val reads : CfgCompiler.Cfg.T.t -> S.domain CfgCompiler.Cfg.Node.Map.t
val relocate :
S.t CfgCompiler.Cfg.Node.Map.t ->
CfgCompiler.Cfg.T.t -> CfgCompiler.Cfg.T.t
val init :
CfgCompiler.Cfg.Node.Set.t ->
(S.t CfgCompiler.Cfg.Node.Map.t -> Lang.F.term) ->
CfgCompiler.Cfg.T.t
val init' :
CfgCompiler.Cfg.Node.t -> (S.t -> Lang.F.term) -> CfgCompiler.Cfg.T.t
end
module E :
sig
type t
val pretty : Format.formatter -> CfgCompiler.Cfg.E.t -> unit
val create : S.t Sigs.sequence -> Lang.F.pred -> CfgCompiler.Cfg.E.t
val get : CfgCompiler.Cfg.E.t -> Lang.F.pred
val reads : CfgCompiler.Cfg.E.t -> S.domain
val writes : CfgCompiler.Cfg.E.t -> S.domain
val relocate :
S.t Sigs.sequence -> CfgCompiler.Cfg.E.t -> CfgCompiler.Cfg.E.t
end
type cfg
val dump_env : name:string -> CfgCompiler.Cfg.cfg -> unit
val output_dot :
Pervasives.out_channel ->
?checks:CfgCompiler.Cfg.P.t Bag.t -> CfgCompiler.Cfg.cfg -> unit
val nop : CfgCompiler.Cfg.cfg
val add_tmpnode : CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val concat :
CfgCompiler.Cfg.cfg -> CfgCompiler.Cfg.cfg -> CfgCompiler.Cfg.cfg
val meta :
?stmt:Cil_types.stmt ->
?descr:string -> CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val goto :
CfgCompiler.Cfg.node -> CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val branch :
CfgCompiler.Cfg.node ->
CfgCompiler.Cfg.C.t ->
CfgCompiler.Cfg.node -> CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val guard :
CfgCompiler.Cfg.node ->
CfgCompiler.Cfg.C.t -> CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val guard' :
CfgCompiler.Cfg.node ->
CfgCompiler.Cfg.C.t -> CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val either :
CfgCompiler.Cfg.node -> CfgCompiler.Cfg.node list -> CfgCompiler.Cfg.cfg
val implies :
CfgCompiler.Cfg.node ->
(CfgCompiler.Cfg.C.t * CfgCompiler.Cfg.node) list -> CfgCompiler.Cfg.cfg
val effect :
CfgCompiler.Cfg.node ->
CfgCompiler.Cfg.E.t -> CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val assume : CfgCompiler.Cfg.P.t -> CfgCompiler.Cfg.cfg
val havoc :
CfgCompiler.Cfg.node ->
effects:CfgCompiler.Cfg.node Sigs.sequence ->
CfgCompiler.Cfg.node -> CfgCompiler.Cfg.cfg
val compile :
?name:string ->
?mode:CfgCompiler.mode ->
CfgCompiler.Cfg.node ->
CfgCompiler.Cfg.Node.Set.t ->
S.domain CfgCompiler.Cfg.Node.Map.t ->
CfgCompiler.Cfg.cfg ->
Lang.F.pred CfgCompiler.Cfg.Node.Map.t * S.t CfgCompiler.Cfg.Node.Map.t *
Conditions.sequence
end