package frama-c
Install
Dune Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
NNicolas Bellec
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
VVincent Botbol
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
SSylvain Chiron
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
BBenjamin Jorge
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
RRemi Lazarini
-
TTristan Le Gall
-
KKilyan Le Gallic
-
JJean-Christophe Léchenet
-
MMatthieu Lemerre
-
DDara Ly
-
DDavid Maison
-
CClaude Marché
-
AAndré Maroneze
-
TThibault Martin
-
FFonenantsoa Maurica
-
MMelody Méaulle
-
BBenjamin Monate
-
YYannick Moy
-
PPierre Nigron
-
AAnne Pacalet
-
VValentin Perrelle
-
GGuillaume Petiot
-
DDario Pinto
-
VVirgile Prevosto
-
AArmand Puccetti
-
FFélix Ridoux
-
VVirgile Robles
-
JJan Rochel
-
MMuriel Roger
-
CCécile Ruet-Cros
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
sha256=a94384f00d53791cbb4b4d83ab41607bc71962d42461f02d71116c4ff6dca567
doc/frama-c.kernel/Frama_c_kernel/Dominators/index.html
Module Frama_c_kernel.Dominators
Module to perform dominators and postdominators analyses. This module was completely redesigned and provides many new functions.
A dominator d
of s
is a statement such that all paths from the entry point of a function to s
must go through d
.
A postdominator p
of s
is a statement such that all paths from s
to the return point of the function must go through p
.
By definition, a statement always (post)dominates itself (except if it is unreachable).
An immediate (post)dominator (or i(post)dom) d
is the unique (post)dominator of s
that strictly (post)dominates s
but is (post)dominated by all other (post)dominators of s
.
A common ancestor (or child) of a list of statements is a (post)dominator that (post)dominates all the statements
val compute_dominators : Cil_types.kernel_function -> unit
Compute the Dominators analysis and register its result.
val compute_postdominators : Cil_types.kernel_function -> unit
Compute the Postdominators analysis and register its result.
val get_dominators : Cil_types.stmt -> Cil_datatype.Stmt.Hptset.t
Return the set
of dominators of the given statement. The empty set means the statement is unreachable.
val get_postdominators : Cil_types.stmt -> Cil_datatype.Stmt.Hptset.t
Return the set
of postdominators of the given statement. The empty set means the statement is unreachable.
val get_strict_dominators : Cil_types.stmt -> Cil_datatype.Stmt.Hptset.t
Same as get_dominators
but exclude the statement itself. The empty set means the statement is unreachable or is only dominated by itself.
val get_strict_postdominators : Cil_types.stmt -> Cil_datatype.Stmt.Hptset.t
Same as get_postdominators
but exclude the statement itself. The empty set means the statement is unreachable or is only post-dominated by itself.
val dominates : Cil_types.stmt -> Cil_types.stmt -> bool
dominates a b
return true
if a
dominates b
.
val postdominates : Cil_types.stmt -> Cil_types.stmt -> bool
postdominates a b
return true
if a
postdominates b
.
val strictly_dominates : Cil_types.stmt -> Cil_types.stmt -> bool
strictly_dominates a b
return true
if a
strictly dominates b
.
val strictly_postdominates : Cil_types.stmt -> Cil_types.stmt -> bool
strictly_postdominates a b
return true
if a
strictly postdominates b
.
val get_idom : Cil_types.stmt -> Cil_types.stmt option
Return the immediate dominator of the given statement.
val get_ipostdom : Cil_types.stmt -> Cil_types.stmt option
Return the immediate postdominator of the given statement.
val nearest_common_ancestor : Cil_types.stmt list -> Cil_types.stmt option
Return the closest common ancestor of the given statement list.
val nearest_common_child : Cil_types.stmt list -> Cil_types.stmt option
Return the closest common child of the given statement list.
Print the result of the domination analysis. Each statement is either dominated by a set of statements, or Top
if unreachable.
Print the result of the postdomination analysis. Each statement is either postdominated by a set of statements, or Top
if unreachable.
val print_dot_dominators : string -> Cil_types.kernel_function -> unit
Print the domination graph in a file basename.function_name.dot
.
val print_dot_postdominators : string -> Cil_types.kernel_function -> unit
Print the postdomination graph in a file basename.function_name.dot
.