package frama-c
Install
dune-project
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=095ffbb3086a6cd963a03e3defab4f0dc32e9a43f026e552ec9ae346a6e20522
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.typtype varinfo = Frama_c_kernel.Cil_types.varinfoand 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.ikindand fkind = Frama_c_kernel.Cil_types.fkindtype 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 tagTag builder for Eva_ast_builder only.
val type_of_exp_node :
Eva__.Eva_ast_types.exp_node ->
Frama_c_kernel.Cil_types.typval type_of_lval_node :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset) ->
Frama_c_kernel.Cil_types.typval type_of_lhost : Eva__.Eva_ast_types.lhost -> Frama_c_kernel.Cil_types.typval pp_lval :
Format.formatter ->
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
unitval pp_offset : Format.formatter -> Eva__.Eva_ast_types.offset -> unitval pp_exp :
Format.formatter ->
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
unitval pp_constant : Format.formatter -> Eva__.Eva_ast_types.constant -> unitval pp_unop : Format.formatter -> Eva__.Eva_ast_types.unop -> unitval pp_binop : Format.formatter -> Eva__.Eva_ast_types.binop -> unitmodule Lhost :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.lhostmodule Offset :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.offsetmodule 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.tagmodule Exp :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tagmodule Constant :
Frama_c_kernel.Datatype.S_with_collections
with type t = Eva__.Eva_ast_types.constantval translate_exp :
Frama_c_kernel.Cil_types.exp ->
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tagval translate_lval :
Frama_c_kernel.Cil_types.lval ->
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tagval translate_offset :
Frama_c_kernel.Cil_types.offset ->
Eva__.Eva_ast_types.offsetval translate_unop : Frama_c_kernel.Cil_types.unop -> Eva__.Eva_ast_types.unopval translate_binop :
Frama_c_kernel.Cil_types.binop ->
Eva__.Eva_ast_types.binopval translate_init : Frama_c_kernel.Cil_types.init -> Eva__.Eva_ast_types.initInverse a relation, op must be a comparison operator
val conv_relation :
Eva__.Eva_ast_types.binop ->
Frama_c_kernel.Abstract_interp.Comp.tConvert 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.tagnormalize_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 ... endmodule type DepsOf = sig ... endDependencies of expressions and lvalues based on type location.
module type DepsOfInput = sig ... endInput for MakeDepsOf functor.
module MakeDepsOf
(Loc : DepsOfInput) :
DepsOf with type location = Loc.locationMake DepsOf module based on a given location.
module PreciseDepsOf :
DepsOf with type location = Frama_c_kernel.Precise_locs.precise_locationDependencies of expressions and lvalues based on Precise_locs.precise_location.
Conversion to Cil
val to_cil_exp :
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Cil_types.expval to_cil_lval :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Cil_types.lvalQueries
val is_mutable :
(Eva__.Eva_ast_types.lhost * Eva__.Eva_ast_types.offset)
Eva__.Eva_ast_types.tag ->
boolCf 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 ->
intComputes 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.tReturns 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.tConstant conversion and folding.
val fold_to_integer :
Eva__.Eva_ast_types.exp_node Eva__.Eva_ast_types.tag ->
Frama_c_kernel.Integer.t optionOffsets
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 ->
boolIs an lvalue a bitfield?
module Rewrite : sig ... endFolding visitor
module Fold : sig ... end