package frama-c
Install
dune-project
Dependency
Authors
-
MMichele Alberti
-
TThibaud Antignac
-
GGergö Barany
-
PPatrick Baudin
-
TThibaut Benjamin
-
AAllan Blanchard
-
LLionel Blatter
-
FFrançois Bobot
-
RRichard Bonichon
-
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
-
TTristan Le Gall
-
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
-
JJulien Signoles
-
NNicolas Stouls
-
KKostyantyn Vorobyov
-
BBoris Yakobowski
Maintainers
Sources
sha256=0c80dae8074fcb3f6a33d7a41faf9939a2a336478a8d2c79e20e2d7bab953735
doc/frama-c-server.core/Server/Server_parameters/index.html
Module Server.Server_parametersSource
Server Plugin & Options
include Frama_c_kernel.Plugin.General_services
include Frama_c_kernel.Plugin.S
include Frama_c_kernel.Log.Messages
category for debugging/verbose messages. Must be registered before any use. Each column in the string defines a sub-category, e.g. a:b:c defines a subcategory c of b, which is itself a subcategory of a. Enabling a category (via -plugin-msg-category) will enable all its subcategories.
val printf :
?level:int ->
?dkey:category ->
?current:bool ->
?source:Frama_c_kernel.Filepath.position ->
?append:(Format.formatter -> unit) ->
?header:(Format.formatter -> unit) ->
('a, Format.formatter, unit) format ->
'aOutputs the formatted message on stdout. Levels and key-categories are taken into account like event messages. The header formatted message is emitted as a regular result message.
val result :
?level:int ->
?dkey:category ->
'a Frama_c_kernel.Log.pretty_printerResults of analysis. Default level is 1.
val feedback :
?ontty:Frama_c_kernel.Log.ontty ->
?level:int ->
?dkey:category ->
'a Frama_c_kernel.Log.pretty_printerProgress and feedback. Level is tested against the verbosity level.
val debug :
?level:int ->
?dkey:category ->
'a Frama_c_kernel.Log.pretty_printerDebugging information dedicated to Plugin developers. Default level is 1. The debugging key is used in message headers. See also set_debug_keys and set_debug_keyset.
val warning : ?wkey:warn_category -> 'a Frama_c_kernel.Log.pretty_printerHypothesis and restrictions.
val error : 'a Frama_c_kernel.Log.pretty_printeruser error: syntax/typing error, bad expected input, etc.
val abort : ('a, 'b) Frama_c_kernel.Log.pretty_aborteruser error stopping the plugin.
val failure : 'a Frama_c_kernel.Log.pretty_printerinternal error of the plug-in.
val fatal : ('a, 'b) Frama_c_kernel.Log.pretty_aborterinternal error of the plug-in.
val verify : bool -> ('a, bool) Frama_c_kernel.Log.pretty_aborterIf the first argument is true, return true and do nothing else, otherwise, send the message on the fatal channel and return false.
The intended usage is: assert (verify e "Bla...") ;.
val not_yet_implemented :
?current:bool ->
?source:Frama_c_kernel.Filepath.position ->
('a, Format.formatter, unit, 'b) format4 ->
'araises FeatureRequest but does not send any message. If the exception is not caught, Frama-C displays a feature-request message to the user.
deprecated s ~now f indicates that the use of f of name s is now deprecated. It should be replaced by now.
val with_result :
(Frama_c_kernel.Log.event option -> 'b) ->
('a, 'b) Frama_c_kernel.Log.pretty_aborterwith_result f fmt calls f in the same condition as logwith.
val with_warning :
(Frama_c_kernel.Log.event option -> 'b) ->
('a, 'b) Frama_c_kernel.Log.pretty_aborterwith_warning f fmt calls f in the same condition as logwith.
val with_error :
(Frama_c_kernel.Log.event option -> 'b) ->
('a, 'b) Frama_c_kernel.Log.pretty_aborterwith_error f fmt calls f in the same condition as logwith.
val with_failure :
(Frama_c_kernel.Log.event option -> 'b) ->
('a, 'b) Frama_c_kernel.Log.pretty_aborterwith_failure f fmt calls f in the same condition as logwith.
val log :
?kind:Frama_c_kernel.Log.kind ->
?verbose:int ->
?debug:int ->
'a Frama_c_kernel.Log.pretty_printerGeneric log routine. The default kind is Result. Use cases (with n,m > 0):
log ~verbose:n: emit the message only when verbosity level is at leastn.log ~debug:n: emit the message only when debugging level is at leastn.log ~verbose:n ~debug:m: any debugging or verbosity level is sufficient.
val logwith :
(Frama_c_kernel.Log.event option -> 'b) ->
?wkey:warn_category ->
?emitwith:(Frama_c_kernel.Log.event -> unit) ->
?once:bool ->
('a, 'b) Frama_c_kernel.Log.pretty_aborterRecommanded generic log routine using warn_category instead of kind. logwith continuation ?wkey fmt similar to warning ?wkey fmt and then calling the continuation. The optional continuation argument refers to the corresponding event. None is used iff no message is logged. In case the wkey is considered as a Failure, the continution is not called. This kind of message denotes a fatal error aborting Frama-C. Notice that the ~emitwith action is called iff a message is logged.
val register :
Frama_c_kernel.Log.kind ->
(Frama_c_kernel.Log.event -> unit) ->
unitLocal registry for listeners.
Category management
val register_category : string -> categoryregister a new debugging/verbose category. Note: categories must be added (e.g. via add_debug_keys) after registration.
val pp_category : Format.formatter -> category -> unitpretty-prints a category.
val dkey_name : category -> stringreturns the category name as a string.
val get_category : string -> category optionreturns the corresponding registered category or None if no such category exists.
val get_all_categories : unit -> category listreturns all registered categories.
val add_debug_keys : category -> unitadds categories corresponding to string (including potential subcategories) to the set of categories for which messages are to be displayed. The string must have been registered beforehand.
val del_debug_keys : category -> unitremoves the given categories from the set for which messages are printed. The string must have been registered beforehand.
val get_debug_keys : unit -> category listReturns currently active keys
val is_debug_key_enabled : category -> boolReturns true if the given category is currently active
val register_warn_category : string -> warn_categoryval pp_warn_category : Format.formatter -> warn_category -> unitval wkey_name : warn_category -> stringreturns the warning category name as a string.
val get_warn_category : string -> warn_category optionval get_all_warn_categories : unit -> warn_category listval get_all_warn_categories_status :
unit ->
(warn_category * Frama_c_kernel.Log.warn_status) listval set_warn_status : warn_category -> Frama_c_kernel.Log.warn_status -> unitval get_warn_status : warn_category -> Frama_c_kernel.Log.warn_statusinclude Frama_c_kernel.Plugin.S_no_log
val add_group : ?memo:bool -> string -> Frama_c_kernel.Cmdline.Group.tCreate a new group inside the plug-in. The given string must be different of all the other group names of this plug-in if memo is false. If memo is true the function will either create a fresh group or return an existing group of the same name in the same plugin. memo defaults to false
module Verbose : Frama_c_kernel.Parameter_sig.Intmodule Debug : Frama_c_kernel.Parameter_sig.IntHandle the specific `share' directory of the plug-in.
Handle the specific `session' directory of the plug-in.
Handle the specific `config' directory of the plug-in.
val help : Frama_c_kernel.Cmdline.Group.tThe group containing option -*-help.
val messages : Frama_c_kernel.Cmdline.Group.tThe group containing options -*-debug and -*-verbose.
include Frama_c_kernel.Parameter_sig.Builder
module Bool (_ : sig ... end) : Frama_c_kernel.Parameter_sig.Boolmodule WithOutput (_ : sig ... end) : Frama_c_kernel.Parameter_sig.With_outputmodule Int (_ : sig ... end) : Frama_c_kernel.Parameter_sig.Intmodule String (_ : sig ... end) : Frama_c_kernel.Parameter_sig.Stringmodule Fc_Filepath = Frama_c_kernel.Filepathmodule Filepath (_ : sig ... end) : Frama_c_kernel.Parameter_sig.Filepathmodule Filled_string_set
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.String_setmodule Filepath_list
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Filepath_listmodule Filepath_map
(V :
Frama_c_kernel.Parameter_sig.Value_datatype
with type key = Fc_Filepath.Normalized.t)
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Map
with type key = Fc_Filepath.Normalized.t
and type value = V.t
and type t = V.t Frama_c_kernel.Datatype.Filepath.Map.tmodule Make_map
(K : Frama_c_kernel.Parameter_sig.String_datatype_with_collections)
(V : Frama_c_kernel.Parameter_sig.Value_datatype with type key = K.t)
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Map
with type key = K.t
and type value = V.t
and type t = V.t K.Map.tParameter is a map where multibindings are **not** allowed.
module String_map
(V : Frama_c_kernel.Parameter_sig.Value_datatype with type key = string)
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Map
with type key = string
and type value = V.t
and type t = V.t Frama_c_kernel.Datatype.String.Map.tmodule Kernel_function_map
(V :
Frama_c_kernel.Parameter_sig.Value_datatype
with type key = Frama_c_kernel.Cil_types.kernel_function)
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Map
with type key = Frama_c_kernel.Cil_types.kernel_function
and type value = V.t
and type t = V.t Frama_c_kernel.Cil_datatype.Kf.Map.tAs for Kernel_function_set, by default keys can only be defined functions. Use Parameter_customize.argument_may_be_fundecl to also include pure prototypes.
module Make_multiple_map
(K : Frama_c_kernel.Parameter_sig.String_datatype_with_collections)
(V :
Frama_c_kernel.Parameter_sig.Multiple_value_datatype with type key = K.t)
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Multiple_map
with type key = K.t
and type value = V.t
and type t = V.t list K.Map.tParameter is a map where multibindings are allowed.
module String_multiple_map
(V :
Frama_c_kernel.Parameter_sig.Multiple_value_datatype with type key = string)
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Multiple_map
with type key = string
and type value = V.t
and type t = V.t list Frama_c_kernel.Datatype.String.Map.tmodule Kernel_function_multiple_map
(V :
Frama_c_kernel.Parameter_sig.Multiple_value_datatype
with type key = Frama_c_kernel.Cil_types.kernel_function)
(_ : sig ... end) :
Frama_c_kernel.Parameter_sig.Multiple_map
with type key = Frama_c_kernel.Cil_types.kernel_function
and type value = V.t
and type t = V.t list Frama_c_kernel.Cil_datatype.Kf.Map.tAs for Kernel_function_set, by default keys can only be defined functions. Use Parameter_customize.argument_may_be_fundecl to also include pure prototypes.
val parameters : unit -> Frama_c_kernel.Typed_parameter.t listmodule Doc : Frama_c_kernel.Parameter_sig.FilepathGenerate documentation
module Polling : Frama_c_kernel.Parameter_sig.IntIdle waiting time (in ms)
module AutoLog : Frama_c_kernel.Parameter_sig.BoolMonitor logs
Inconsistent page warning
Inconsistent category warning
Invalid name warning