package goblint

  1. Overview
  2. Docs
Static analysis framework for C

Install

Dune Dependency

Authors

Maintainers

Sources

goblint-2.0.0.tbz
sha256=2f4f2e25b765452f0e336941f35f6cb396d7c213a2d347abe5d35febc5159b1f
sha512=e96af4cad91f6985c8db93c194925853e96cad0ec1a0d9f4d32bbe16d3e5fa1e305f54be02839f21ba89ad2af0c2d5d7aa819ade221ce097dc4dbd0fcd8c8500

doc/goblint.lib/Goblint_lib/Serialize/Cache/index.html

Module Serialize.Cache

Module to cache the data for incremental analaysis during a run, before it is stored to disk, as well as for the server mode

type t = {
  1. mutable solver_data : Stdlib.Obj.t option;
  2. mutable analysis_data : Stdlib.Obj.t option;
  3. mutable version_data : MaxIdUtil.max_ids option;
  4. mutable cil_file : GoblintCil.file option;
}
val data : t Prelude.ref
type _ data_query =
  1. | SolverData : _ data_query
  2. | CilFile : GoblintCil.file data_query
  3. | VersionData : MaxIdUtil.max_ids data_query
  4. | AnalysisData : _ data_query

GADT that may be used to query data from and pass data to the cache.

val load_data : unit -> unit

Loads data for incremental runs from the appropriate file

val store_data : unit -> unit

Stores data for future incremental runs at the appropriate file.

val update_data : 'a. 'a data_query -> 'a -> unit

Update the incremental data in the in-memory cache

val reset_data : 'a. 'a data_query -> unit

Reset some incremental data in the in-memory cache to None

val get_opt_data : 'a. 'a data_query -> 'a option

Get incremental data from the in-memory cache wrapped in an optional. To populate the in-memory cache with data, call load_data first.

val get_data : 'a. 'a data_query -> 'a

Get incremental data from the in-memory cache. Same as get_opt_data, except not yielding an optional and failing when the requested data is not present.

OCaml

Innovation. Community. Security.