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/index.html
Module Frama_c_kernel.Globals
Operations on globals.
module Vars : sig ... end
Globals variables. The AST should be computed before using this module (cf. Ast.compute
).
module Functions : sig ... end
Functions. The AST should be computed before using this module (cf. Ast.compute
).
module FileIndex : sig ... end
Globals associated to filename.
module Syntactic_search : sig ... end
Types
module Types : sig ... end
Types, or type-related information.
Entry point
val entry_point : unit -> Cil_types.kernel_function * bool
set_entry_point name lib
sets Kernel.MainFunction
to name
and Kernel.LibEntry
to lib
. Moreover, clear the results of all the analysis which depend on Kernel.MainFunction
or Kernel.LibEntry
.
Comments
val get_comments_global : Cil_types.global -> string list
Gets a list of comments associated to the given global. This function is useful only when -keep-comments is on.
A comment is associated to a global if it occurs after the declaration/definition of the preceding one in the file, before the end of the current declaration/definition and does not occur in the definition of a function. Note that this function is experimental and may fail to associate comments properly. Use directly Cabshelper.Comments.get
to retrieve comments in a given region. (see Globals.get_comments_stmt
for retrieving comments associated to a statement).
val get_comments_stmt : Cil_types.stmt -> string list
Gets a list of comments associated to the given statement. This function is useful only when -keep-comments is on.
A comment is associated to a statement if it occurs after the preceding statement and before the current statement ends (except for the last statement in a block, to which statements occurring before the end of the block are associated). Note that this function is experimental and may fail to associate comments properly. Use directly Cabshelper.Comments.get
to retrieve comments in a given region.
Getters
val get_annotation_name : Cil_types.global_annotation -> string option
Returns the name of the global annotation, when it exists (e.g. for axiomatics, predicates, etc), or None
if no such name exists (e.g. for volatile blocks).
val get_name : Cil_types.global -> string option
Returns the name of the global, when it exists (e.g. for variables, functions, types, etc), or None
if no such name exists (e.g. for assembly statements).
val get_statics :
(Cil_types.kernel_function -> Cil_types.varinfo list) Stdlib.ref
val find_first_stmt : (Cil_types.kernel_function -> Cil_types.stmt) Stdlib.ref
val find_enclosing_block : (Cil_types.stmt -> Cil_types.block) Stdlib.ref
val find_all_enclosing_blocks :
(Cil_types.stmt -> Cil_types.block list) Stdlib.ref
val find_englobing_kf :
(Cil_types.stmt -> Cil_types.kernel_function) Stdlib.ref