module Make:
| Parameters: |
|
val configure : unit -> Wp.WpContext.rollbackContext values and returns a function to rollback.val configure_ia : Interpreted_automata.automaton -> Interpreted_automata.vertex Wp.Sigs.binderStmtSemantics.val datatype : stringval hypotheses : unit -> Wp.MemoryContext.clause listmodule Chunk:Wp.Sigs.Chunk
module Heap:Qed.Collection.Swith type t = Chunk.t
module Sigma:Wp.Sigs.Sigmawith type chunk = Chunk.t and module Chunk = Heap
type loc
typechunk =Wp.Sigs.Chunk.t
typesigma =Sigma.t
typedomain =Sigma.domain
typesegment =loc Wp.Sigs.rloc
type state
val state : sigma -> stateval lookup : state -> Wp.Lang.F.term -> Wp.Sigs.mvalMvalue.
Recognized Cil patterns:
Mvar x,[Mindex 0] is rendered as *x when x has a pointer typeMmem p,[Mfield f;...] is rendered as p->f... like in CilMmem p,[Mindex k;...] is rendered as p[k]... to catch Cil Mem(AddPI(p,k)),...val updates : state Wp.Sigs.sequence ->
Wp.Lang.F.Vars.t -> Wp.Sigs.update Bag.t
The result shall be exhaustive with respect to values that are printed as Sigs.mval
values at post label via the lookup function.
Otherwise, those values would not be pretty-printed to the user.
val apply : (Wp.Lang.F.term -> Wp.Lang.F.term) ->
state -> stateval iter : (Wp.Sigs.mval -> Wp.Lang.F.term -> unit) -> state -> unitval pretty : Format.formatter -> loc -> unitval vars : loc -> Wp.Lang.F.Vars.tval occurs : Wp.Lang.F.var -> loc -> boolval null : locval literal : eid:int -> Wp.Cstring.cst -> locval cvar : Cil_types.varinfo -> locval pointer_loc : Wp.Lang.F.term -> locval pointer_val : loc -> Wp.Lang.F.termval field : loc -> Cil_types.fieldinfo -> locval shift : loc ->
Wp.Ctypes.c_object -> Wp.Lang.F.term -> locterm. The element of the array are of
the given c_object type.val base_addr : loc -> locval base_offset : loc -> Wp.Lang.F.termval block_length : sigma ->
Wp.Ctypes.c_object -> loc -> Wp.Lang.F.termval cast : Wp.Ctypes.c_object Wp.Sigs.sequence -> loc -> loccast ty loc the cast is done from ty.pre to ty.post.
Might fail on memory models not supporting pointer casts.val loc_of_int : Wp.Ctypes.c_object -> Wp.Lang.F.term -> locval int_of_loc : Wp.Ctypes.c_int -> loc -> Wp.Lang.F.termval domain : Wp.Ctypes.c_object -> loc -> domainval is_well_formed : sigma -> Wp.Lang.F.predval load : sigma ->
Wp.Ctypes.c_object -> loc -> loc Wp.Sigs.valueval copied : sigma Wp.Sigs.sequence ->
Wp.Ctypes.c_object ->
loc -> loc -> Wp.Sigs.equation list
copied sigma ty loc1 loc2 returns a set of formula expressing that the
content for an object ty is the same in sigma.pre at loc1 and in
sigma.post at loc2.
val stored : sigma Wp.Sigs.sequence ->
Wp.Ctypes.c_object ->
loc -> Wp.Lang.F.term -> Wp.Sigs.equation list
copied sigma ty loc t returns a set of formula expressing that
sigma.pre and sigma.post are identical except for an object ty at
location loc which is represented by t in sigma.post.
val assigned : sigma Wp.Sigs.sequence ->
Wp.Ctypes.c_object -> loc Wp.Sigs.sloc -> Wp.Sigs.equation list
This function can over-approximate the set of given memory location (e.g
it can return true as if the all set of memory location was given).
val is_null : loc -> Wp.Lang.F.predval loc_eq : loc -> loc -> Wp.Lang.F.pred
val loc_lt : loc -> loc -> Wp.Lang.F.pred
val loc_neq : loc -> loc -> Wp.Lang.F.pred
val loc_leq : loc -> loc -> Wp.Lang.F.predval loc_diff : Wp.Ctypes.c_object ->
loc -> loc -> Wp.Lang.F.termval valid : sigma -> Wp.Sigs.acs -> segment -> Wp.Lang.F.predWp.Sigs.acs) in the given memory state at the given
segment.val frame : sigma -> Wp.Lang.F.pred listval alloc : sigma -> Cil_types.varinfo list -> sigmaval invalid : sigma -> segment -> Wp.Lang.F.predval scope : sigma Wp.Sigs.sequence ->
Wp.Sigs.scope -> Cil_types.varinfo list -> Wp.Lang.F.pred listval global : sigma -> Wp.Lang.F.term -> Wp.Lang.F.predp, assumes this pointer p (when valid)
is allocated outside the function frame under analysis. This means
separated from the formals and locals of the function.val included : segment -> segment -> Wp.Lang.F.predval separated : segment -> segment -> Wp.Lang.F.pred