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
-
LLoïc Correnson
-
JJulien Crétin
-
PPascal Cuoq
-
ZZaynah Dargaye
-
BBasile Desloges
-
JJean-Christophe Filliâtre
-
PPhilippe Herrmann
-
MMaxime Jacquemin
-
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=3ac0f995261ec829a7bd042bf70fc29ac6379029eb9df30bcc044748eb4d2a56
doc/frama-c-eva.core/Eva/Eva_ast/index.html
Module Eva.Eva_ast
Eva Syntax Tree.
type origin =
| Lval of Frama_c_kernel.Cil_types.lval
| Exp of Frama_c_kernel.Cil_types.exp
| Term of Frama_c_kernel.Cil_types.identified_term
| Built
type typ = Frama_c_kernel.Cil_types.typ
type varinfo = Frama_c_kernel.Cil_types.varinfo
and constant =
| CTopInt of ikind
| CInt64 of Frama_c_kernel.Integer.t * ikind * string option
| CString of Frama_c_kernel.Base.t
| CChr of char
| CReal of float * fkind * string option
| CEnum of Frama_c_kernel.Cil_types.enumitem * exp
Constants
and offset =
| NoOffset
| Field of Frama_c_kernel.Cil_types.fieldinfo * offset
| Index of exp * offset
and ikind = Frama_c_kernel.Cil_types.ikind
and fkind = Frama_c_kernel.Cil_types.fkind
type init =
| SingleInit of exp * Frama_c_kernel.Cil_types.location
| CompoundInit of typ * (offset * init) list
Structural comparaison and equality functions, generated by ppx deriving. Equivalent to the functions provided by Cil_datatype.ConstantStrict
and Cil_datatype.ExpStructEqStrict
.
val mk_tag :
node:'a ->
typ:Frama_c_kernel.Cil_types.typ ->
origin:origin ->
'a tag
Tag builder for Eva_ast_builder
only.
val type_of_exp_node :
Eva__.Eva_ast_types.exp_node ->
Frama_c_kernel.Cil_types.typ
val type_of_lval_node :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset) ->
Frama_c_kernel.Cil_types.typ
val type_of_lhost : Eva__.Eva_ast_types.lhost -> Frama_c_kernel.Cil_types.typ
module Lhost :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.lhost
module Offset :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.offset
module Lval :
Frama_c_kernel.Datatype.S_with_collections
with type t =
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag
module Exp :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag
module Constant :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.constant
val translate_exp :
Frama_c_kernel.Cil_types.exp ->
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag
val translate_lval :
Frama_c_kernel.Cil_types.lval ->
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag
val translate_offset :
Frama_c_kernel.Cil_types.offset ->
Eva__.Eva_ast_types.offset
val translate_unop : Frama_c_kernel.Cil_types.unop -> Eva__.Eva_ast_types.unop
val translate_binop :
Frama_c_kernel.Cil_types.binop ->
Eva__.Eva_ast_types.binop
val translate_init : Frama_c_kernel.Cil_types.init -> Eva__.Eva_ast_types.init
Inverse a relation, op must be a comparison operator
val conv_relation :
Eva__.Eva_ast_types.binop ->
Frama_c_kernel.Abstract_interp.Comp.t
Convert a relation to Abstract_interp.Comp, op must be a comparison operator
val normalize_condition :
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
bool ->
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag
normalize_condition e positive
returns the expression corresponding to e != 0
when positive
is true, and e == 0
otherwise. The resulting expression will always have a comparison operation at its root.
module Build : sig ... end
Conversion to Cil
val to_cil_exp :
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Cil_types.exp
val to_cil_lval :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Cil_types.lval
Queries
val is_mutable :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
bool
Cf Cil.is_mutable_or_initialized
.
Expressions/Lvalue heights
Computes the height of an expression, that is the maximum number of nested operations in this expression.
val height_lval :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
int
Computes the height of an lvalue.
Specialized visitors
exp_contains_volatile e
(resp. lval_contains_volatile lv
is true whenever one l-value contained inside the expression e
(resp. the lvalue lv
) has volatile qualifier. Relational analyses should not learn anything on such values.
val vars_in_exp :
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Cil_datatype.Varinfo.Set.t
Returns the set of variables that syntactically appear in an expression or lvalue.
val vars_in_lval :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Cil_datatype.Varinfo.Set.t
Dependences of expressions and lvalues.
val zone_of_exp :
((Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Precise_locs.precise_location) ->
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Locations.Zone.t
Given a function computing the location of lvalues, computes the memory zone on which the value of an expression depends.
val zone_of_lval :
((Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Precise_locs.precise_location) ->
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Locations.Zone.t
Given a function computing the location of lvalues, computes the memory zone on which the value of an lvalue depends.
val indirect_zone_of_lval :
((Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Precise_locs.precise_location) ->
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Locations.Zone.t
Given a function computing the location of lvalues, computes the memory zone on which the offset and the pointer expression (if any) of an lvalue depend.
val deps_of_exp :
((Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Precise_locs.precise_location) ->
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
Deps.t
Given a function computing the location of lvalues, computes the memory dependencies of an expression.
val deps_of_lval :
((Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Precise_locs.precise_location) ->
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Deps.t
Given a function computing the location of lvalues, computes the memory dependencies of an lvalue.
Constant conversion and folding.
val fold_to_integer :
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Integer.t option
Offsets
Returns the last offset in the chain.
val is_bitfield :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
bool
Is an lvalue a bitfield?
module Rewrite : sig ... end
Folding visitor
module Fold : sig ... end