package fix
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=0164bd9431c2290a676d0a0fb2b15009
sha512=ff47c6a6de992e718e1eae1364dd7c4cc4297cec4f6575d675dee0f4a80b79f413235df9467ecd29be2b6884c43b4410b129f5f2d0bc9919022a19901e0f3028
doc/fix/Fix/DataFlow/index.html
Module Fix.DataFlowSource
This module performs a forward data flow analysis over a (possibly cyclic) directed graph. Like Fix.Fix, it computes the least function of type variable -> property that satisfies a fixed point equation. It is less widely applicable than Fix.Fix, but, when it is applicable, it can be both easier to use and more efficient. It does not perform dynamic dependency discovery. The submodule Fix.DataFlow.ForCustomMaps is particularly tuned for performance.
Run requires a type variable that is equipped with an implementation of imperative maps, a type property that is equipped with leq and join functions, and a data flow graph whose edges describe the propagation of properties. It performs a forward data flow analysis and returns its result.
ForNumberedType is a special case of Run where it suffices to pass a numbered type T as an argument. An array is used to hold the memoization table.
ForOrderedType is a special case of Run where it suffices to pass an ordered type T as an argument. A reference to a persistent map is used to hold the memoization table.
module ForHashedType
(T : Hashtbl.HashedType)
(P : sig ... end)
(G : sig ... end) :
sig ... endForHashedType is a special case of Run where it suffices to pass a hashed type T as an argument. A hash table is used to hold the memoization table.
ForIntSegment is a special case of Run where the type of variables is the integer segment [0..n). An array is used to hold the table.
module ForCustomMaps
(P : sig ... end)
(G : sig ... end)
(V : sig ... end)
(B : sig ... end) :
sig ... endForCustomMaps is a forward data flow analysis that is tuned for greater performance. It internally relies on CompactQueue, instead of Queue. Furthermore, instead of relying on a full-fledged implementation of maps as described by MINIMAL_IMPERATIVE_MAPS, it expects the user to create and initialize two maps V and B that satisfy the signature ARRAY. This typically allows the user to choose an efficient, specialized data representation.