module type ForwardsTransfer =sig..end
val name : stringval debug : booltype t
val copy : t -> tDataflow2.ForwardsTransfer.t is a mutable type.
A copy of the data stored for a statement is made each time this
statement is processed, just before Dataflow2.ForwardsTransfer.doStmt is called.val pretty : Format.formatter -> t -> unitval computeFirstPredecessor : Cil_types.stmt ->
t -> tcomputeFirstPredecessor s d is called when s is reached for the
first time (i.e. no previous data is associated with it). The data d
is propagated to s from an unspecified preceding statement s'.
The result of the call is stored as the new data for s.
computeFirstPredecessor usually leaves d unchanged, but may
potentially change it. It is also possible to perform a side-effect,
for dataflows that store information out of the type t.
val combinePredecessors : Cil_types.stmt ->
old:t ->
t -> t optionval doInstr : Cil_types.stmt ->
Cil_types.instr ->
t -> tDataflow2.ForwardsTransfer.doStmt when the returned action is not SDone.
The current location is updated before this function is called.
The argument of type stmt is the englobing statement.val doGuard : Cil_types.stmt ->
Cil_types.exp ->
t ->
t Dataflow2.guardaction *
t Dataflow2.guardactionact_th, act_el to an If statement. act_th
(resp. act_el) corresponds to the case where the given expression
evaluates to zero (resp. non-zero). It is always possible to return
GDefault, GDefault, especially for analyses that do not use guard
information. This is equivalent to returning GUse d, GUse d, where d
is the input state. A return value of GUnreachable indicates
that this half of the branch will not be taken and should not be explored.
stmt is the corresponding If statement, passed as information only.val doStmt : Cil_types.stmt ->
t ->
t Dataflow2.stmtaction(Cil.CurrentLoc.get
()) * is set before calling this. The default action is to do the
instructions * in this statement, if applicable, and continue with the
successors.val doEdge : Cil_types.stmt ->
Cil_types.stmt ->
t -> tmodule StmtStartData:Dataflow2.StmtStartDatawith type data = t