module Metrics_base:sig..end
Tag functions handling html tags for Format
val html_stag_functions : Stdlib.Format.formatter_stag_functions
val mk_hdr : int -> Stdlib.Format.formatter -> string -> unitmk_hdr level ppf hdr_strg produces a title from hdr_strg with an
underline of the same length.
The character of the underline is set according to level:
This function is supposed to follow reStructuredText's conventions.
module OptionKf:Datatype.S_with_collectionswith type t = Kernel_function.t option
module BasicMetrics:sig..end
Defining base metrics and operations on those
module VInfoMap:Map.Swith type key = Cil_types.varinfo
Local varinfo map and set where the comparison function is the lexicographic one on their respective names.
module VInfoSet:Set.Swith type elt = Cil_types.varinfo
val pretty_set : Stdlib.Format.formatter -> int VInfoMap.t -> unitPretty print a varinfo set, with some additional information about the varinfo.
Other pretty-printing and formatting utilities
val pretty_extern_vars : Stdlib.Format.formatter -> VInfoSet.t -> unit
val json_of_varinfo_map : int VInfoMap.t -> Yojson.tBuild a JSON list with the varinfos in m, each as a JSON object with
the varinfo name as key and additional attributes as values.
val number_entry_points : int VInfoMap.t -> intHandling entry points informations
val pretty_entry_points : Stdlib.Format.formatter -> int VInfoMap.t -> unit
val json_of_entry_points : int VInfoMap.t -> Yojson.t
val file_of_vinfodef : Cil_types.varinfo -> Datatype.Filepath.tGet the filename where the definition of a varinfo occurs
val file_of_fundef : Cil_types.fundec -> Datatype.Filepath.tGet the filename containing the function definition
val extract_fundef_name : Cabs.single_name -> string
val kf_of_cabs_name : Cabs.single_name -> Kernel_function.t
val get_filename : Cabs.definition -> Datatype.Filepath.t
type output_type =
| |
Html |
| |
Text |
| |
Json |
Type of the generated report file. Automatically set according to the file extension.
val get_file_type : Filepath.Normalized.t -> output_typeget_file_type extension sets the output type according to extension.
Raises an error if extension is not among supported extensions or is empty.
val consider_function : libc:bool -> Cil_types.varinfo -> boolconsider_function vinfo returns false if the varinfo is not a function we
are interested in.
For example, builtins should not be part of the analysis and return false.
If libc is false, do not consider functions from the Frama-C libc.
Skip them using this auxiliary function.
val consider_variable : libc:bool -> Cil_types.varinfo -> boolconsider_variable vinfo returns false if the varinfo is not an object
variable we are interested in.
If libc is false, do not consider variables from the Frama-C libc.
val float_to_string : float -> stringConvert float to string with the following convention: