Module Functions.RTL

module RTL: sig .. end

val mk_api_name : string -> string

Prefix a name (of a variable or a function) with a string that identifies it as belonging to the public API of E-ACSL runtime library

val mk_temporal_name : string -> string

Prefix a name (of a variable or a function) with a string that identifies it as belonging to the public API of E-ACSL runtime library dealing with temporal analysis.

val mk_gen_name : string -> string

Prefix a name (of a variable or a function) with a string indicating that this name has been generated during instrumentation phase.

val is_generated_name : string -> bool
val is_generated_kf : Cil_types.kernel_function -> bool

Same as is_generated_name but for kernel functions

val is_generated_literal_string_name : string -> bool

Same as is_generated_name but indicates that the name represents a local variable that replaced a literal string.

val get_original_name : Cil_types.kernel_function -> string

Retrieve the name of the kernel function and strip prefix that indicates that it has been generated by the instrumentation.

val libc_replacement_name : string -> string

Given the name of C library function return the name of the RTL function that potentially replaces it.

val has_rtl_replacement : string -> bool

Given the name of C library function return true if there is a drop-in replacement function for it in the RTL.