package goblint
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=ca24f72fa9a87d288affe97c411753f14b7802bab4ca3649b337276b89bf5674
sha512=394b3521ccda0da91540cebb2f433f7525763060be4bbe179edd3b952a3580a8e173c4e410fc6895dc67fe6d17e6699aeddfed600f4692858bec093dd912bf1e
doc/goblint.lib/Goblint_lib/Queries/index.html
Module Goblint_lib.Queries
Queries and their result lattices.
module VDQ = ValueDomainQueries
module ID = VDQ.ID
module LS = VDQ.LS
module TS : sig ... end
module ES : sig ... end
module VS : sig ... end
module NFL : sig ... end
module TC : sig ... end
module ThreadNodeLattice : sig ... end
module ML = LibraryDesc.MathLifted
module VI : sig ... end
type iterprevvar =
int ->
(MyCFG.node * Obj.t * int) ->
MyARG.inline_edge ->
unit
module FlatYojson : sig ... end
module SD = Basetype.Strings
module VD = ValueDomain.Compound
module MayBool = BoolDomain.MayBool
module MustBool = BoolDomain.MustBool
module Unit = Lattice.Unit
module Protection : sig ... end
Different notions of protection for a global variables g by a mutex m m protects g strongly if:
val compare_maybepublic :
maybepublic ->
maybepublic ->
Ppx_deriving_runtime.int
val hash_maybepublic : maybepublic -> int
type maybepublicwithout = {
global : CilType.Varinfo.t;
write : bool;
without_mutex : Goblint_lib__AddressDomain.AddressBase(Goblint_lib__.PreValueDomain.Mval).t;
protection : Protection.t;
}
val compare_maybepublicwithout :
maybepublicwithout ->
maybepublicwithout ->
Ppx_deriving_runtime.int
val hash_maybepublicwithout : maybepublicwithout -> int
type mustbeprotectedby = {
mutex : Goblint_lib__AddressDomain.AddressBase(Goblint_lib__.PreValueDomain.Mval).t;
global : CilType.Varinfo.t;
write : bool;
protection : Protection.t;
}
val compare_mustbeprotectedby :
mustbeprotectedby ->
mustbeprotectedby ->
Ppx_deriving_runtime.int
val hash_mustbeprotectedby : mustbeprotectedby -> int
val compare_mustprotectedvars :
mustprotectedvars ->
mustprotectedvars ->
Ppx_deriving_runtime.int
val hash_mustprotectedvars : mustprotectedvars -> int
val compare_memory_access :
memory_access ->
memory_access ->
Ppx_deriving_runtime.int
val hash_memory_access : memory_access -> int
type access =
| Memory of memory_access
(*Memory location access (race).
*)| Point
(*Program point and state access (MHP), independent of memory location.
*)
val compare_access : access -> access -> Ppx_deriving_runtime.int
val hash_access : access -> int
val compare_invariant_context :
invariant_context ->
invariant_context ->
Ppx_deriving_runtime.int
val hash_invariant_context : invariant_context -> int
type _ t =
| EqualSet : GoblintCil.exp -> ES.t t
| MayPointTo : GoblintCil.exp -> LS.t t
| ReachableFrom : GoblintCil.exp -> LS.t t
| ReachableUkTypes : GoblintCil.exp -> TS.t t
| Regions : GoblintCil.exp -> LS.t t
| MayEscape : GoblintCil.varinfo -> MayBool.t t
| MayBePublic : maybepublic -> MayBool.t t
| MayBePublicWithout : maybepublicwithout -> MayBool.t t
| MustBeProtectedBy : mustbeprotectedby -> MustBool.t t
| MustLockset : LS.t t
| MustBeAtomic : MustBool.t t
| MustBeSingleThreaded : {
} -> MustBool.t t
| MustBeUniqueThread : MustBool.t t
| CurrentThreadId : ThreadIdDomain.ThreadLifted.t t
| ThreadCreateIndexedNode : ThreadNodeLattice.t t
| MayBeThreadReturn : MayBool.t t
| EvalFunvar : GoblintCil.exp -> LS.t t
| EvalInt : GoblintCil.exp -> ID.t t
| EvalStr : GoblintCil.exp -> SD.t t
| EvalLength : GoblintCil.exp -> ID.t t
| EvalValue : GoblintCil.exp -> VD.t t
| BlobSize : GoblintCil.exp -> ID.t t
| CondVars : GoblintCil.exp -> ES.t t
| PartAccess : access -> Obj.t t
(*Only queried by access and deadlock analysis.
*)Obj.t
representsMCPAccess.A.t
, needed to break dependency cycle.| IterPrevVars : iterprevvar -> Unit.t t
| IterVars : itervar -> Unit.t t
| PathQuery : int * 'a t -> 'a t
(*Query only one path under witness lifter.
*)| DYojson : FlatYojson.t t
(*Get local state Yojson of one path under
*)PathQuery
.| HeapVar : VI.t t
| IsHeapVar : GoblintCil.varinfo -> MayBool.t t
| IsMultiple : GoblintCil.varinfo -> MustBool.t t
| MutexType : Mval.Unit.t -> MutexAttrDomain.t t
| EvalThread : GoblintCil.exp -> ConcDomain.ThreadSet.t t
| EvalMutexAttr : GoblintCil.exp -> MutexAttrDomain.t t
| EvalJumpBuf : GoblintCil.exp -> JmpBufDomain.JmpBufSet.t t
| ActiveJumpBuf : JmpBufDomain.ActiveLongjmps.t t
| ValidLongJmp : JmpBufDomain.JmpBufSet.t t
| CreatedThreads : ConcDomain.ThreadSet.t t
| MustJoinedThreads : ConcDomain.MustThreadSet.t t
| ThreadsJoinedCleanly : MustBool.t t
| MustProtectedVars : mustprotectedvars -> LS.t t
| Invariant : invariant_context -> Invariant.t t
| InvariantGlobal : Obj.t -> Invariant.t t
(*Argument must be of corresponding
*)Spec.V.t
.| WarnGlobal : Obj.t -> Unit.t t
(*Argument must be of corresponding
*)Spec.V.t
.| IterSysVars : VarQuery.t * Obj.t VarQuery.f -> Unit.t t
(*
*)iter_vars
forConstraints.FromSpec
.Obj.t
representsSpec.V.t
.| MayAccessed : AccessDomain.EventSet.t t
| MayBeTainted : LS.t t
| MayBeModifiedSinceSetjmp : JmpBufDomain.BufferEntry.t -> VS.t t
| TmpSpecial : Mval.Exp.t -> ML.t t
GADT for queries with specific result type.
Container for explicitly polymorphic ctx.ask
function out of ctx
. To be used when passing entire ctx
around seems inappropriate. Use Analyses.ask_of_ctx
to convert ctx
to ask
.
module Result : sig ... end
module Any : sig ... end
val must_be_equal : ask -> GoblintCil.exp -> GoblintCil.exp -> bool
Backwards-compatibility for former MustBeEqual
query.
val may_be_equal : ask -> GoblintCil.exp -> GoblintCil.exp -> bool
Backwards-compatibility for former MayBeEqual
query.
val may_be_less : ask -> GoblintCil.exp -> GoblintCil.exp -> bool
Backwards-compatibility for former MayBeLess
query.
module Set : sig ... end
module Hashtbl : sig ... end