Wp.LogicBuiltinstype category = Lang.lfun Qed.Logic.categorytype kind = | Z | (* integer *) |
| R | (* real *) |
| I of Ctypes.c_int | (* C-ints *) |
| F of Ctypes.c_float | (* C-floats *) |
| A | (* Abstract Data *) |
Add a new builtin. This builtin will be shared with all created drivers
val driver : driver Context.valueval new_driver :
id:string ->
?base:driver ->
?descr:string ->
?includes:string list ->
?configure:( unit -> unit ) ->
unit ->
driverCreates a configured driver from an existing one. Default:
val id : driver -> stringval descr : driver -> stringval is_default : driver -> boolAdd a new library or update the dependencies of an existing one
val add_alias :
source:Frama_c_kernel.Filepath.position ->
string ->
kind list ->
alias:string ->
unit ->
unitval add_type :
?source:Frama_c_kernel.Filepath.position ->
string ->
library:string ->
?link:string ->
unit ->
unitval add_ctor :
source:Frama_c_kernel.Filepath.position ->
string ->
kind list ->
library:string ->
link:Qed.Engine.link ->
unit ->
unitval add_logic :
source:Frama_c_kernel.Filepath.position ->
kind ->
string ->
kind list ->
library:string ->
?category:category ->
link:Qed.Engine.link ->
unit ->
unitval add_predicate :
source:Frama_c_kernel.Filepath.position ->
string ->
kind list ->
library:string ->
link:string ->
unit ->
unitadd a value to an option (group, name)
reset and add a value to an option (group, name)
add_option_sanitizer ~driver_dir group name add a sanitizer for group group and option name
val get_option : doption -> library:string -> string listreturn the values of option (group, name), return the empty list if not set
val logic : Frama_c_kernel.Cil_types.logic_info -> builtinval ctor : Frama_c_kernel.Cil_types.logic_ctor_info -> builtinval constant : string -> builtinval hack : string -> ( Lang.F.term list -> Lang.F.term ) -> unitReplace a logic definition or predicate by a built-in function. The LogicSemantics compilers will replace `Pcall` and `Tcall` instances of this symbol with the provided Qed function on terms.
val hack_type : string -> ( Lang.F.tau list -> Lang.F.tau ) -> unitReplace a logic type definition or predicate by a built-in type.