https://github.com/EasyCrypt/easycrypt
Revision aa6dc074f77deb2c8215b6281a0a0be9e358d461 authored by Pierre-Yves Strub on 19 October 2021, 10:19:36 UTC, committed by Pierre-Yves Strub on 19 October 2021, 10:19:36 UTC
Syntax is: `rewrite [pattern]rule` In this form, `pattern` is first searched against the current goal and rule LHS is then matched against the instanciated pattern. E.g. `rewrite [y+_]addrC` will instantiate `addrC` to `y` and `z` assuming that the first match of `y+_` in the current goal is `y+z`. This syntax is compatible with other variants: `rewrite -{2}[y+_]addrC`
1 parent 4afdfe9
Tip revision: aa6dc074f77deb2c8215b6281a0a0be9e358d461 authored by Pierre-Yves Strub on 19 October 2021, 10:19:36 UTC
Add a simple form of pattern selection in rewrite rules
Add a simple form of pattern selection in rewrite rules
Tip revision: aa6dc07
_tags
# --------------------------------------------------------------------
true : use_menhir, menhir_explain, menhir_table
true : debug
true : warn_Z, warn_Y, warn_+28, warn_-23, warn_+33, warn_-58, warn_-3
true : -traverse
true : bin_annot
# true : menhir_trace
# true : bisect
# --------------------------------------------------------------------
<src> : include
<src/why3> : include
<src/phl> : include
<src/extraction> : include
<src/system> : include
# --------------------------------------------------------------------
<src/*.{ml,mli}> : package(batteries,menhirLib,why3,inifiles,zarith,pcre,yojson)
<src/*/*.{ml,mli}> : package(batteries,menhirLib,why3,inifiles,zarith,pcre,yojson)
<src/*.{native,byte}> : package(batteries,menhirLib,why3,inifiles,zarith,pcre,yojson)
Computing file changes ...