package frama-c
Install
dune-project
Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
QQuentin Bouillaguet
-
DDavid Bühler
-
ZZakaria Chihani
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
FFlorent Kirchner
-
AAlexander Kogtenkov
-
TTristan Le Gall
-
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
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
sha256=29612882330ecb6eddd0b4ca3afc0492b70d0feb3379a1b8e893194c6e173983
doc/frama-c.kernel/Frama_c_kernel/Ast/index.html
Module Frama_c_kernel.Ast
Access to the CIL AST which must be used from Frama-C.
May be raised by function get below.
Might be raised by UntypedFiles.get below
module UntypedFiles : sig ... endval get : unit -> Cil_types.fileGet the cil file representation. One of the initialization function of module File has to be called before using this function.
call this function whenever you've made some changes in place inside the AST
call this function whenever you have added something to the AST, without modifying the existing nodes
val add_monotonic_state : State.t -> unitindicates that the given state (which must depend on Ast.self) is robust against additions to the AST, that is, it will be able to compute information on the new nodes whenever needed. Ast.mark_as_grown will not erase such states, while Ast.mark_as_changed and clearing Ast.self itself will.
val self : State.tThe state kind associated to the cil AST.
val apply_after_computed : (Cil_types.file -> unit) -> unitApply the given hook just after building the AST.
Internals
Functions below should not be called by casual users.
val is_def_or_last_decl : Cil_types.global -> booltrue if the global is the last one in the AST to introduce a given variable. Used by visitor and printer to relate funspec with appropriate global, and the GUI to remove redundant declarations of globals.
Complexity: O(nb of globals) for the first call, then O(1).
val def_or_last_decl : Cil_types.varinfo -> Cil_types.globaldef_or_last_decl v returns the global g declaring or defining g such that is_def_or_last_decl g is true.
v must be a global variable declared in the AST.
reset the mapping between a varinfo and the last global introducing it.
val set_file : Cil_types.file -> unit