package goblint
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=2f4f2e25b765452f0e336941f35f6cb396d7c213a2d347abe5d35febc5159b1f
sha512=e96af4cad91f6985c8db93c194925853e96cad0ec1a0d9f4d32bbe16d3e5fa1e305f54be02839f21ba89ad2af0c2d5d7aa819ade221ce097dc4dbd0fcd8c8500
doc/goblint.lib/Goblint_lib/Base/MainFunctor/index.html
Module Base.MainFunctor
Parameters
module Priv : BasePriv.Smodule RVEval : BaseDomain.ExpEvaluator with type t = BaseComponents(Priv.D).tSignature
include module type of struct include Analyses.DefaultSpec end
val asm : ('a, 'b, 'c, 'd) Analyses.ctx -> 'aval skip : ('a, 'b, 'c, 'd) Analyses.ctx -> 'amodule A = Goblint_lib.Analyses.DefaultSpec.Amodule Dom : sig ... endtype t = Dom.tmodule D = Dommodule C = Dommodule V : sig ... endmodule G : sig ... endtype extra = (Prelude.Ana.varinfo * Offs.t * bool) listtype store = D.ttype value = VD.ttype address = AD.tval startstate : 'a -> storeval exitstate : 'a -> storeval is_privglob : Prelude.Ana.varinfo -> boolval project_val : PrecisionUtil.int_precision option -> VD.t -> bool -> VD.tval project : PrecisionUtil.int_precision option -> CPA.t -> CPA.tval return_varstore : Prelude.Ana.varinfo Prelude.Ana.refval return_varinfo : unit -> Prelude.Ana.varinfoval return_lval : unit -> Prelude.Ana.lvalval heap_var : ('a, 'b, 'c, 'd) Analyses.ctx -> Basetype.Variables.tval char_array :
(Prelude.Ana.lval, Prelude.Ana.bytes) Goblint_lib.Prelude.Ana.Hashtbl.tval unop_ID : Prelude.Ana.unop -> ID.t -> ID.tval unop_FD : Prelude.Ana.unop -> FD.t -> FD.tval binop_ID :
Goblint_lib.Prelude.Ana.Cil.ikind ->
Prelude.Ana.binop ->
ID.t ->
ID.t ->
ID.tval binop_FD :
Goblint_lib.Prelude.Ana.Cil.fkind ->
Prelude.Ana.binop ->
FD.t ->
FD.t ->
FD.tval int_returning_binop_FD :
Prelude.Ana.binop ->
FD.t ->
FD.t ->
IntDomain.IntDomTuple.tval is_int_returning_binop_FD : Prelude.Ana.binop -> boolval evalbinop :
Q.ask ->
store ->
Prelude.Ana.binop ->
Prelude.Ana.typ ->
value ->
Prelude.Ana.typ ->
value ->
Prelude.Ana.typ ->
valueval add_offset_varinfo :
(GoblintCil.fieldinfo, IntDomain.IntDomTuple.t) Goblint_lib__Lval.offs ->
Addr.t ->
Addr.tval sync' :
[ `Init | `Join | `Normal | `Return | `Thread ] ->
(BaseDomain.BaseComponents(Priv.D).t,
[> `Bot | `Lifted1 of Priv.G.t ],
'a,
[> `Left of Priv.V.t ])
Analyses.ctx ->
D.tval sync :
(BaseDomain.BaseComponents(Priv.D).t,
[> `Bot | `Lifted1 of Priv.G.t ],
'a,
[> `Left of Priv.V.t ])
Analyses.ctx ->
[< `Init | `Join | `Normal | `Return | `Thread ] ->
D.tval publish_all :
(BaseDomain.BaseComponents(Priv.D).t,
[> `Bot | `Lifted1 of Priv.G.t ],
'a,
[> `Left of Priv.V.t ])
Analyses.ctx ->
[ `Init | `Join | `Normal | `Return | `Thread ] ->
unitval get_var : Q.ask -> glob_fun -> store -> Prelude.Ana.varinfo -> valueval get :
?top:VD.t ->
?full:bool ->
Q.ask ->
glob_fun ->
store ->
address ->
Prelude.Ana.exp option ->
valueget st addr returns the value corresponding to addr in st * adding proper dependencies. * For the exp argument it is always ok to put None. This means not using precise information about * which part of an array is involved.
val reachable_from_value :
Q.ask ->
glob_fun ->
'a ->
value ->
Prelude.Ana.typ ->
string ->
PreValueDomain.AD.bucket AD.Map.tval context : Prelude.Ana.fundec -> store -> storeval context_cpa :
Prelude.Ana.fundec ->
store ->
Goblint_lib__MapDomain.LiftTop(ValueDomain.Compound)(MapDomain.HashCached(MapDomain.MapBot(Basetype.Variables)(ValueDomain.Compound))).tval convertToQueryLval :
Goblint_lib.ValueDomain.AD.Addr.t ->
(CilType.Varinfo.t
* ([> `Field of GoblintCil.fieldinfo * 'a
| `Index of Prelude.Ana.exp * 'a
| `NoOffset ] as 'a))
listval addrToLvalSet : Goblint_lib.ValueDomain.AD.Addr.t list AD.Map.t -> Q.LS.tval reachable_top_pointers_types :
(store, G.t, 'a, V.t) Analyses.ctx ->
AD.t ->
Queries.TS.tval eval_rv_ask_evalint : Q.ask -> glob_fun -> store -> Prelude.Ana.exp -> VD.tEvaluate expression using EvalInt query. Base itself also answers EvalInt, so recursion goes indirectly through queries. This allows every subexpression to also meet more precise value from other analyses. Non-integer expression just delegate to next eval_rv function.
val eval_rv_no_ask_evalint :
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.exp ->
VD.tEvaluate expression without EvalInt query on outermost expression. This is used by base responding to EvalInt to immediately directly avoid EvalInt query cycle, which would return top. Recursive eval_rv calls on subexpressions still go through eval_rv_ask_evalint.
val eval_rv_ask_mustbeequal :
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.exp ->
VD.tEvaluate expression using MustBeEqual query. Otherwise just delegate to next eval_rv function.
val eval_rv_back_up : Q.ask -> glob_fun -> store -> Prelude.Ana.exp -> valueval eval_rv_base : Q.ask -> glob_fun -> store -> Prelude.Ana.exp -> valueEvaluate expression structurally by base. This handles constants directly and variables using CPA. Subexpressions delegate to eval_rv, which may use queries on them.
val eval_fv : Q.ask -> glob_fun -> store -> Prelude.Ana.exp -> AD.tval eval_tv : Q.ask -> glob_fun -> store -> Prelude.Ana.exp -> AD.tval eval_int :
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.exp ->
Goblint_lib.PreValueDomain.ID.tval convert_offset :
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.offset ->
(GoblintCil.fieldinfo, IntDomain.IntDomTuple.t) Goblint_lib__Lval.offsval eval_lv : Q.ask -> glob_fun -> store -> Prelude.Ana.lval -> AD.tval eval_rv_keep_bot : Q.ask -> glob_fun -> store -> Prelude.Ana.exp -> valueval eval_rv : Q.ask -> glob_fun -> store -> Prelude.Ana.exp -> valueval query_evalint :
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.exp ->
[> `Bot | `Lifted of Goblint_lib.PreValueDomain.ID.t | `Top ]val eval_exp :
store ->
Prelude.Ana.exp ->
Goblint_lib.ValueDomain.ID.int_t optionval eval_funvar :
(store, G.t, 'a, V.t) Analyses.ctx ->
Prelude.Ana.exp ->
Prelude.Ana.varinfo listEvaluate expression as address. Avoids expensive Apron EvalInt if the `Int result would be useless to us anyway.
val query_invariant :
('a BaseDomain.basecomponents_t, 'b, 'c, 'd) Analyses.ctx ->
Invariant.context ->
Invariant.tval add_partitioning_dependencies :
Prelude.Ana.varinfo ->
VD.t ->
store ->
storeAdd dependencies between a value and the expression it (or any of its contents) are partitioned by
val set :
Q.ask ->
ctx:(store, G.t, 'a, V.t) Analyses.ctx ->
?invariant:bool ->
?lval_raw:Prelude.Ana.lval ->
?rval_raw:GoblintCil.exp ->
?t_override:Goblint_lib.Prelude.Ana.Cil.typ ->
glob_fun ->
store ->
AD.t ->
Goblint_lib.Prelude.Ana.Cil.typ ->
value ->
storeset st addr val returns a state where addr is set to val * it is always ok to put None for lval_raw and rval_raw, this amounts to not using/maintaining * precise information about arrays.
val rem_many : 'a -> store -> Prelude.Ana.varinfo list -> storeval rem_many_partitioning :
Queries.ask ->
store ->
Prelude.Ana.varinfo list ->
storeval is_some_bot : VD.t -> boolval invariant_fallback :
(store, G.t, 'a, V.t) Analyses.ctx ->
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.exp ->
bool ->
storeval invariant :
(store, G.t, 'a, V.t) Analyses.ctx ->
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.exp ->
bool ->
storeval set_savetop :
ctx:(store, G.t, 'a, V.t) Analyses.ctx ->
?lval_raw:Prelude.Ana.lval ->
?rval_raw:GoblintCil.exp ->
Q.ask ->
glob_fun ->
store ->
AD.bucket AD.Map.t ->
Prelude.Ana.typ ->
VD.t ->
storeval assign :
(store, G.t, 'a, V.t) Analyses.ctx ->
Prelude.Ana.lval ->
Prelude.Ana.exp ->
storeval branch :
(store, G.t, 'a, V.t) Analyses.ctx ->
Prelude.Ana.exp ->
bool ->
storeval body : (store, G.t, 'a, V.t) Analyses.ctx -> Prelude.Ana.fundec -> storeval return :
(store, G.t, 'a, V.t) Analyses.ctx ->
Prelude.Ana.exp option ->
Prelude.Ana.fundec ->
storeval vdecl : (store, G.t, 'a, V.t) Analyses.ctx -> Prelude.Ana.varinfo -> storeval collect_funargs :
Q.ask ->
?warn:bool ->
glob_fun ->
store ->
Prelude.Ana.exp list ->
address listFrom a list of expressions, collect a list of addresses that they might point to, or contain pointers to.
val collect_invalidate :
deep:bool ->
Q.ask ->
?warn:bool ->
glob_fun ->
store ->
Prelude.Ana.exp list ->
address listval invalidate :
?deep:bool ->
ctx:(store, G.t, 'a, V.t) Analyses.ctx ->
Q.ask ->
glob_fun ->
store ->
Prelude.Ana.exp list ->
storeval make_entry :
?thread:bool ->
(D.t, G.t, C.t, V.t) Analyses.ctx ->
Prelude.Ana.fundec ->
Prelude.Ana.exp list ->
D.tval enter :
(D.t, G.t, C.t, V.t) Analyses.ctx ->
'a ->
Prelude.Ana.fundec ->
Prelude.Ana.exp list ->
(D.t * D.t) listval forkfun :
(D.t, G.t, C.t, V.t) Analyses.ctx ->
Prelude.Ana.lval option ->
Prelude.Ana.varinfo ->
Prelude.Ana.exp list ->
(Prelude.Ana.lval option * Prelude.Ana.varinfo * Prelude.Ana.exp list) listval assert_fn :
(store, G.t, 'a, V.t) Analyses.ctx ->
Prelude.Ana.exp ->
bool ->
storeval special_unknown_invalidate :
(store, G.t, 'a, V.t) Analyses.ctx ->
'b ->
glob_fun ->
store ->
CilType.Varinfo.t ->
Goblint_lib__LibraryDesc.Cil.exp list ->
storeval special :
(store, G.t, C.t, V.t) Analyses.ctx ->
Prelude.Ana.lval option ->
Prelude.Ana.varinfo ->
Prelude.Ana.exp list ->
storeval combine :
(store, G.t, 'a, V.t) Analyses.ctx ->
Prelude.Ana.lval option ->
'b ->
Prelude.Ana.fundec ->
Prelude.Ana.exp list ->
'c ->
D.t ->
D.tval threadenter :
(D.t, G.t, C.t, V.t) Analyses.ctx ->
Prelude.Ana.lval option ->
Prelude.Ana.varinfo ->
Prelude.Ana.exp list ->
D.t listval threadspawn :
(D.t, 'a, 'b, 'c) Analyses.ctx ->
Prelude.Ana.lval option ->
Prelude.Ana.varinfo ->
Prelude.Ana.exp list ->
('d, 'e, 'f, 'g) Analyses.ctx ->
D.tval event :
(store, G.t, 'a, V.t) Analyses.ctx ->
Events.t ->
'b ->
BaseDomain.BaseComponents(Priv.D).t