PdgIndex.SignatureWhat we call a Signature a mapping between keys that represent either a * function input or output, and some information.
type of a signature where 'a is the type of the information that we * want to store for each input/output.
type in_key = private | InCtrl | (* input control point *) |
| InNum of int | (* parameters numbered from 1 *) |
| InImpl of Frama_c_kernel.Locations.Zone.t | (* key for implicit inputs. Used in function signatures only *) |
key for input elements
type out_key = private | OutRet | (* key for the output corresponding to the |
| OutLoc of Frama_c_kernel.Locations.Zone.t | (* key for output locations. used in call signatures only *) |
a key represents either an input or an output of a function.
val empty : 'a tbuild a new, empty signature
val mk_undef_in_key : Frama_c_kernel.Locations.Zone.t -> in_keyval find_input : 'a t -> int -> 'aval find_in_ctrl : 'info t -> 'infoval find_in_top : 'info t -> 'infoval find_out_ret : 'a t -> 'aval fold_num_inputs : ( 'a -> (int * 'b) -> 'a ) -> 'a -> 'b t -> 'aval fold_impl_inputs :
( 'a -> (Frama_c_kernel.Locations.Zone.t * 'b) -> 'a ) ->
'a ->
'b t ->
'aval fold_matching_impl_inputs :
Frama_c_kernel.Locations.Zone.t ->
( 'a -> (Frama_c_kernel.Locations.Zone.t * 'b) -> 'a ) ->
'a ->
'b t ->
'aval pretty :
( Stdlib.Format.formatter -> 'a -> unit ) ->
Stdlib.Format.formatter ->
'a t ->
unitval pretty_key : Stdlib.Format.formatter -> key -> unitval pretty_in_key : Stdlib.Format.formatter -> in_key -> unitval pretty_out_key : Stdlib.Format.formatter -> out_key -> unit