https://github.com/EasyCrypt/easycrypt
Revision 36f7f5a29ef730b23ec3b2a96e76e387e90ea0e5 authored by Alley Stoughton on 21 February 2018, 22:32:02 UTC, committed by Pierre-Yves Strub on 26 February 2018, 15:04:53 UTC
The elements of prover [...] have one of the following forms, where s is a string: s (add s to the use-only list) +s (add include s to the include/exclude list) -s (add exclude s to the include/exclude list) The include/exclude list is ordered, so that later instructions can supersede earlier ones. The use-only list was not ordered, but now is. The relative order of the use-only and include/exclude lists is irrelevant, so that, e.g., prover ["Z3" +"Alt-Ergo"] and prover [+"Alt-Ergo" "Z3"] are equivalent. The semantics is that the use-only list is first interpreted (if it's empty, one starts with the current provers as the base), and only then are the instructions of the include/exclude list applied to it, in order. There was already the special use-only instruction "ALL". Now, there is also the use-only instruction "CLEAR", which clears the use-only list, but may be superseded by the use-only instructions that follow. Examples (assuming "Z3" and "Alt-Ergo" are only known provers): prover []. (* a no-op *) prover [+"Z3"] (* adds just "Z3" to whatever current provers are *) prover [-"Z3"] (* removes just "Z3" from whatever current provers are *) prover ["ALL"] (* results in "Z3", "Alt-Ergo" *) prover ["CLEAR"] (* results in nothing *) prover ["CLEAR" +"Z3"] (* results in just "Z3" *) prover [+"Z3" "CLEAR"] (* results in just "Z3" *) prover ["CLEAR" "Z3"] (* result in just "Z3" *) prover ["Z3" "CLEAR"] (* results in nothing *) prover [-"Z3" "ALL"] (* results in "Alt-Ergo" *) prover [+"Z3" "ALL" -"Z3"] (* results in "Alt-Ergo" *) prover [-"Z3" "ALL" +"Z3"] (* results in "Z3", "Alt-Ergo" *)
1 parent 5115c89
Tip revision: 36f7f5a29ef730b23ec3b2a96e76e387e90ea0e5 authored by Alley Stoughton on 21 February 2018, 22:32:02 UTC
Added clean way to clear the list of current provers.
Added clean way to clear the list of current provers.
Tip revision: 36f7f5a
ecMemory.mli
(* --------------------------------------------------------------------
* Copyright (c) - 2012--2016 - IMDEA Software Institute
* Copyright (c) - 2012--2018 - Inria
* Copyright (c) - 2012--2018 - Ecole Polytechnique
*
* Distributed under the terms of the CeCILL-C-V1 license
* -------------------------------------------------------------------- *)
(* -------------------------------------------------------------------- *)
open EcSymbols
(* -------------------------------------------------------------------- *)
type memory = EcIdent.t
val mem_equal : memory -> memory -> bool
(* -------------------------------------------------------------------- *)
type local_memtype
type memtype = local_memtype option
val lmt_equal : local_memtype -> local_memtype -> bool
val lmt_xpath : local_memtype -> EcPath.xpath
val lmt_bindings : local_memtype -> ((int*int) option * EcTypes.ty) Msym.t
(* the "int option" indicate if the variable is defined as the projection of
"arg" or as a variable *)
val mt_equal : memtype -> memtype -> bool
val mt_xpath : memtype -> EcPath.xpath
val mt_bindings : memtype -> ((int*int) option * EcTypes.ty) Msym.t
val mt_fv : memtype -> int EcIdent.Mid.t
(* -------------------------------------------------------------------- *)
type memenv = memory * memtype
val me_equal : memenv -> memenv -> bool
(* -------------------------------------------------------------------- *)
exception DuplicatedMemoryBinding of symbol
val memory : memenv -> memory
val memtype : memenv -> memtype
val xpath : memenv -> EcPath.xpath
val bindings : memenv -> ((int*int) option * EcTypes.ty) Msym.t
(* -------------------------------------------------------------------- *)
val empty_local : memory -> EcPath.xpath -> memenv
val abstract : memory -> memenv
val bindp : symbol -> (int*int) option -> EcTypes.ty -> memenv -> memenv
val bind : symbol -> EcTypes.ty -> memenv -> memenv
val bind_proj: int -> int -> symbol -> EcTypes.ty -> memenv -> memenv
val lookup : symbol -> memenv -> ((int*int) option * EcTypes.ty) option
val is_bound : symbol -> memenv -> bool
val is_bound_pv : EcTypes.prog_var -> memenv -> bool
(* -------------------------------------------------------------------- *)
val mt_subst :
(EcPath.xpath -> EcPath.xpath)
-> (EcTypes.ty -> EcTypes.ty)
-> memtype -> memtype
val mt_substm :
(EcPath.path -> EcPath.path)
-> EcPath.mpath EcIdent.Mid.t
-> (EcTypes.ty -> EcTypes.ty)
-> memtype -> memtype
val me_subst :
(EcPath.xpath -> EcPath.xpath)
-> memory EcIdent.Mid.t
-> (EcTypes.ty -> EcTypes.ty)
-> memenv -> memenv
val me_substm :
(EcPath.path -> EcPath.path)
-> EcPath.mpath EcIdent.Mid.t
-> memory EcIdent.Mid.t
-> (EcTypes.ty -> EcTypes.ty)
-> memenv -> memenv
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...