module CilE: sig
.. end
Cil Extension for Frama-C.
Consult the Plugin Development Guide for additional details.
val warn_once : ('a, Format.formatter, unit, unit) Pervasives.format4 -> 'a
Display a localized warning only once per location and per message.
Display a warning only once per message.
val log_once : ('a, Format.formatter, unit, unit) Pervasives.format4 -> 'a
val update_gotos : Cil_types.stmt Cil_datatype.Stmt.Map.t -> Cil_types.block -> Cil_types.block
Restore correct gotos after a statement substitution
type
syntactic_context =
val start_stmt : Cil_types.kinstr -> unit
val end_stmt : unit -> unit
val current_stmt : unit -> Cil_types.kinstr
val set_syntactic_context : syntactic_context -> unit
val get_syntactic_context : unit -> Cil_types.kinstr * syntactic_context
type
alarm_behavior =
| |
Aignore |
| |
Alog |
| |
Acall of (unit -> unit) |
type
warn_mode = {
}
An argument of type
warn_mode
is required by some of the access
functions in
Db.Value (the interface to the value analysis). This
argument tells what should be done with the various messages
that the value analysis emits during the call.
Each [warn_mode] field indicates the expected treatment for one
category of message. These fields are not completely fixed
yet. However, you can still used functions {!warn_all_mode
and
CilE.warn_none_mode
below when you have to provide an argument of type
warn_mode
.
val warn_all_mode : warn_mode
Emit all messages, including alarms and informative messages
regarding the loss of precision.
val warn_none_mode : warn_mode
Do not emit any message.
val warn_div : warn_mode -> unit
val warn_shift : warn_mode -> int -> unit
val warn_mem_read : warn_mode -> unit
val warn_mem_write : warn_mode -> unit
val warn_signed_overflow : warn_mode -> Cil_types.exp -> Int64.t option -> Int64.t option -> unit
val warn_index : warn_mode -> string -> unit
val warn_pointer_comparison : warn_mode -> unit
val warn_result_nan_infinite : warn_mode -> unit
val warn_uninitialized : warn_mode -> unit
val warn_escapingaddr : warn_mode -> unit
warning to be emitted when two incompatible accesses to a location are
done in unspecified order. Must be called in a SyNone
or SySep
context.
val warn_separated : warn_mode -> unit