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/Globals/Vars/index.html
Module Globals.Vars
Globals variables. The AST should be computed before using this module (cf. Ast.compute
).
Getters
val find : Cil_types.varinfo -> Cil_types.initinfo
val find_from_astinfo :
string ->
Cil_types.syntactic_scope ->
Cil_types.varinfo
Finds a variable from its vname
according to its localisation (which might be a local). If you wish to search for a symbol according to its original name in the source code and the syntactic scope in which it should appear, use Globals.Syntactic_search
instead.
val get_astinfo : Cil_types.varinfo -> string * Cil_types.syntactic_scope
Linear in the number of locals and formals of the program.
Iterators
val iter : (Cil_types.varinfo -> Cil_types.initinfo -> unit) -> unit
val fold : (Cil_types.varinfo -> Cil_types.initinfo -> 'a -> 'a) -> 'a -> 'a
val iter_in_file_order :
(Cil_types.varinfo -> Cil_types.initinfo -> unit) ->
unit
The next four iterators iter on all global variables present in the AST, following the order in which they are declared/defined. The only exception is for variables that are both declared and defined. In this case, the declarations are skipped altogether.
val fold_in_file_order :
(Cil_types.varinfo -> Cil_types.initinfo -> 'a -> 'a) ->
'a ->
'a
val iter_in_file_rev_order :
(Cil_types.varinfo -> Cil_types.initinfo -> unit) ->
unit
val fold_in_file_rev_order :
(Cil_types.varinfo -> Cil_types.initinfo -> 'a -> 'a) ->
'a ->
'a
Setters
Functions of this section should not be called by casual users.
exception AlreadyExists of Cil_types.varinfo * Cil_types.initinfo
val add : Cil_types.varinfo -> Cil_types.initinfo -> unit
val remove : Cil_types.varinfo -> unit
Removes the given varinfo, which must have already been removed from the AST. Warning: this is very dangerous.
val add_decl : Cil_types.varinfo -> unit
val self : State.t