Frama-C API - Varname

type scope =
  1. | Global
  2. | Function
  3. | Block
val get : scope:scope -> string -> string
  • returns

    a fresh variable name for the given scope wrt the given name.

val clear_locals : unit -> unit

Reset the generator for variables that are local to a block or a function.

val of_exp : ?default:string -> Frama_c_kernel.Cil_types.exp -> string

Generate a reasonable variable name element from the given expression. Note that in order to obtain a fresh name the result still needs to be piped through get.