Frama-C:
Plug-ins:
Libraries:

Frama-C API - Mt_lib

Auxiliary definitions and functions for pretty-printing

type poly_format_quote_a = {
  1. pf : 'a. (Stdlib.Format.formatter -> 'a -> unit) -> 'a -> unit;
}

Partially applied format-like function missing a "%a" argument

type poly_pretty_printer = {
  1. ppp : 'a. ('a, Stdlib.Format.formatter, unit) Stdlib.format -> 'a;
}

Partially applied Log.pretty_printer value, missing its entire formatter (and the arguments)

val compare_tag : 'a -> 'a -> int

Compare the tags of two OCaml values (or their values if they are integers). Can be used to implement the generic cases of compare functions on inductive types. Not for the casual user.

val comp : ('a -> 'b -> int) -> 'a -> 'b -> ('c -> 'd -> int) -> 'c -> 'd -> int
type 'a conversion_with_warning = [
  1. | `Success of 'a
  2. | `WithWarning of (Stdlib.Format.formatter -> unit) * 'a
]

Conversion from something into something else. Returns a formatter that prints the error in case of failure

type 'a conversion = [
  1. | 'a conversion_with_warning
  2. | `Failure of Stdlib.Format.formatter -> unit
]
val escape_non_utf8 : string -> string
val clear_value_results : unit -> unit

Clear the results of the value analysis

val mthread_h : unit -> Frama_c_kernel.Filepath.Normalized.t

Location of the header file "mthread.h"

val sanitize_filename : ?char:char -> string -> string

Remove specialchars forbidden in file names