module Conditions:sig..end
Empty Sequence, equivalent to True, but with State.
val forall_intro : Lang.F.pred -> Lang.F.pred list * Lang.F.predval exist_intro : Lang.F.pred -> Lang.F.predtype step = private {
|
mutable id : |
(* |
See
index | *) |
|
size : |
|||
|
vars : |
|||
|
stmt : |
|||
|
descr : |
|||
|
deps : |
|||
|
warn : |
|||
|
condition : |
type condition =
| |
Type of |
(* |
Type section, not constraining for filtering
| *) |
| |
Have of |
(* |
Normal assumptions section
| *) |
| |
When of |
(* |
Assumptions introduced after simplifications
| *) |
| |
Core of |
(* |
Common hypotheses gather from parallel branches
| *) |
| |
Init of |
(* |
Initializers assumptions
| *) |
| |
Branch of |
(* |
If-Then-Else
| *) |
| |
Either of |
(* |
Disjunction
| *) |
| |
State of |
(* |
Memory Model snapshot
| *) |
type sequence
typesequent =sequence * Lang.F.pred
val pretty : (Format.formatter -> sequent -> unit) Pervasives.ref
val step : ?descr:string ->
?stmt:Cil_types.stmt ->
?deps:Property.t list ->
?warn:Warning.Set.t -> condition -> stepval update_cond : ?descr:string ->
?deps:Property.t list ->
?warn:Warning.Set.t ->
step -> condition -> stepdescr, deps and warnval is_true : sequence -> boolval is_empty : sequence -> boolval vars_hyp : sequence -> Lang.F.Vars.tval vars_seq : sequent -> Lang.F.Vars.tval empty : sequenceval trivial : sequentval sequence : step list -> sequence
val seq_branch : ?stmt:Cil_types.stmt ->
Lang.F.pred ->
sequence -> sequence -> sequenceval append : sequence -> sequence -> sequenceval concat : sequence list -> sequenceval iter : (step -> unit) -> sequence -> unitval list : sequence -> step listiter.val size : sequence -> intval steps : sequence -> intstep.id in the sequence,
starting from zero. Recursively
Returns the number of steps in the sequence.val index : sequent -> unitignore (steps (fst s)).val step_at : sequence -> int -> stepid in the sequence.
The index function must have been called on the sequence before
retrieving the index properly.Not_found if the index is out of bounds.val is_trivial : sequent -> boolval map_condition : (Lang.F.pred -> Lang.F.pred) -> condition -> conditionval map_step : (Lang.F.pred -> Lang.F.pred) -> step -> stepval map_sequence : (Lang.F.pred -> Lang.F.pred) -> sequence -> sequenceval map_sequent : (Lang.F.pred -> Lang.F.pred) -> sequent -> sequentval insert : ?at:int -> step -> sequent -> sequentat the specified position.
Parameter at can be size to insert at the end of the sequent (default).Invalid_argument if the index is out of bounds.val replace : at:int -> step -> sequent -> sequentat the specified position.Invalid_argument if the index is out of bounds.val subst : (Lang.F.term -> Lang.F.term) -> sequent -> sequentLang.F.p_subst f.
Function f should only transform the head of the predicate, and can assume
its sub-terms have been already substituted. The atomic substitution is also applied
to predicates.
f should raise Not_found on terms that must not be replacedval introduction : sequent -> sequent optionval introduction_eq : sequent -> sequentintroduction but returns the same sequent is Noneval lemma : Lang.F.pred -> sequentval head : step -> Lang.F.predval have : step -> Lang.F.predval condition : sequence -> Lang.F.predval close : sequent -> Lang.F.predval at_closure : (sequent -> sequent) -> unitBundles are mergeable pre-sequences. This the key structure for merging hypotheses with linear complexity during backward weakest pre-condition calculus.
Bundle are constructed in backward order with respect to program
control-flow, as driven by the wp calculus.
type bundle
type'aattributed =?descr:string ->
?stmt:Cil_types.stmt -> ?deps:Property.t list -> ?warn:Warning.Set.t -> 'a
val nil : bundleval occurs : Lang.F.var -> bundle -> bool
val intersect : Lang.F.pred -> bundle -> boolval merge : bundle list -> bundleval domain : Lang.F.pred list -> bundle -> bundleType section on top of the bundle.val intros : Lang.F.pred list -> bundle -> bundleHave section on top of the bundle.val state : ?descr:string ->
?stmt:Cil_types.stmt ->
Mstate.state -> bundle -> bundleval assume : (?init:bool ->
?domain:bool -> Lang.F.pred -> bundle -> bundle)
attributed~init:true, the predicate is placed
in an Init section. On ~domain:true, the predicate is placed in a Type
section. Otherwized, it is placed in a standard Have section.val branch : (Lang.F.pred -> bundle -> bundle -> bundle)
attributedval either : (bundle list -> bundle) attributedval extract : bundle -> Lang.F.pred listval bundle : bundle -> sequenceval clean : sequent -> sequent
val filter : sequent -> sequent
val parasite : sequent -> sequent
val simplify : ?solvers:Lang.simplifier list ->
?intros:int -> sequent -> sequent
val pruning : ?solvers:Lang.simplifier list -> sequent -> sequent