Frama-C API - Eva_ast
Eva Syntax Tree.
include module type of Eva_ast_types
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.Z.t * ikind * string option| 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 comparison 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.
include module type of Eva_ast_typing
val type_of_exp_node : Eva_ast_types.exp_node -> Eva_ast_types.typval type_of_lval_node : Eva_ast_types.lval_node -> Eva_ast_types.typval type_of_lhost : Eva_ast_types.lhost -> Eva_ast_types.typinclude module type of Eva_ast_printer
val pp_lval : Stdlib.Format.formatter -> Eva_ast_types.lval -> unitval pp_lhost : Stdlib.Format.formatter -> Eva_ast_types.lhost -> unitval pp_offset : Stdlib.Format.formatter -> Eva_ast_types.offset -> unitval pp_exp : Stdlib.Format.formatter -> Eva_ast_types.exp -> unitval pp_constant : Stdlib.Format.formatter -> Eva_ast_types.constant -> unitval pp_unop : Stdlib.Format.formatter -> Eva_ast_types.unop -> unitval pp_binop : Stdlib.Format.formatter -> Eva_ast_types.binop -> unitinclude module type of Eva_ast_datatype
module Lhost : Frama_c_kernel.Datatype.S_with_collections with type t = Eva_ast_types.lhostmodule Offset : Frama_c_kernel.Datatype.S_with_collections with type t = Eva_ast_types.offsetmodule Lval : Frama_c_kernel.Datatype.S_with_collections with type t = Eva_ast_types.lvalmodule Exp : Frama_c_kernel.Datatype.S_with_collections with type t = Eva_ast_types.expmodule Constant : Frama_c_kernel.Datatype.S_with_collections with type t = Eva_ast_types.constantinclude module type of Eva_ast_builder
val mk_exp : Eva_ast_types.exp_node -> Eva_ast_types.expval mk_lval : Eva_ast_types.lval_node -> Eva_ast_types.lvalval translate_exp : Frama_c_kernel.Cil_types.exp -> Eva_ast_types.expval translate_host : Frama_c_kernel.Cil_types.lhost -> Eva_ast_types.lhostval translate_lval : Frama_c_kernel.Cil_types.lval -> Eva_ast_types.lvalval translate_offset : Frama_c_kernel.Cil_types.offset -> Eva_ast_types.offsetval translate_unop : Frama_c_kernel.Cil_types.unop -> Eva_ast_types.unopval translate_binop : Frama_c_kernel.Cil_types.binop -> Eva_ast_types.binopval translate_init : Frama_c_kernel.Cil_types.init -> Eva_ast_types.initval translate_init_or_str : Frama_c_kernel.Cil_types.init_or_str -> Eva_ast_types.init_or_strval invert_relation : Eva_ast_types.binop -> Eva_ast_types.binopInverse a relation, op must be a comparison operator
val conv_relation : 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_ast_types.exp -> bool -> Eva_ast_types.expnormalize_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.
val add_offset : Eva_ast_types.lval -> Eva_ast_types.offset -> Eva_ast_types.lvalmodule Build : sig ... endinclude module type of Eva_ast_deps
module 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.
include module type of Eva_ast_utils
Conversion to Cil
val to_cil_exp : Eva_ast_types.exp -> Frama_c_kernel.Cil_types.expval to_cil_lval : Eva_ast_types.lval -> Frama_c_kernel.Cil_types.lvalQueries
val is_mutable : Eva_ast_types.lval -> boolCf Cil.is_mutable_or_initialized.
val is_initialized : Eva_ast_types.lval -> boolExpressions/Lvalue heights
val height_exp : Eva_ast_types.exp -> intComputes the height of an expression, that is the maximum number of nested operations in this expression.
val height_lval : Eva_ast_types.lval -> intComputes the height of an lvalue.
Specialized visitors
val exp_contains_volatile : Eva_ast_types.exp -> boolexp_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 lval_contains_volatile : Eva_ast_types.lval -> boolval vars_in_exp : Eva_ast_types.exp -> 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_ast_types.lval -> Frama_c_kernel.Cil_datatype.Varinfo.Set.tConstant conversion and folding.
val const_fold : Eva_ast_types.exp -> Eva_ast_types.expval fold_to_integer : Eva_ast_types.exp -> Frama_c_kernel.Z.t optionval is_zero_ptr : Eva_ast_types.exp -> boolOffsets
val last_offset : Eva_ast_types.offset -> Eva_ast_types.offsetReturns the last offset in the chain.
val is_bitfield : Eva_ast_types.lval -> boolIs an lvalue a bitfield?
include module type of Eva_ast_visitor
module Rewrite : sig ... endObserving visitor
module Observe : sig ... end