Frama-C:
Plug-ins:
Libraries:

Frama-C API - Eval_op

Numeric evaluation. Factored with evaluation in the logic.

Transformation a value into an offsetmap of size sizeof(typ) bytes.

Returns the offsetmap at a precise_location from a state.

Reduction of a Cvalue.V.t by ==, !=, >=, >, <= and <. backward_comp_left_from_type positive op l r reduces l so that the relation l op r holds. typ is the type of l.

val apply_on_all_locs : (Frama_c_kernel.Locations.location -> 'a -> 'a) -> Frama_c_kernel.Locations.location -> 'a -> 'a

apply_all_locs f loc state folds f on all the atomic locations in loc, provided there are less than plevel. Useful mainly when loc is exact or an over-approximation.

'Simplify' the location if it represents a contiguous zone: instead of multiple offsets with a small size, change it into a single offset with a size that covers the entire range.

val pretty_stitched_offsetmap : Stdlib.Format.formatter -> Frama_c_kernel.Cil_types.typ -> Frama_c_kernel.Cvalue.V_Offsetmap.t -> unit
val pretty_offsetmap : Frama_c_kernel.Cil_types.typ -> Stdlib.Format.formatter -> Frama_c_kernel.Cvalue.V_Offsetmap.t -> unit