Revision 7f08941c82a5d3bdfde6224656f489e5ea6c533b authored by Cameron Low on 19 January 2023, 18:14:06 UTC, committed by Pierre-Yves Strub on 19 January 2023, 21:44:41 UTC
Here is an example of use:

```
require import AllCore.

type t = [
  A of int | B of bool | C
].

module M = {
  proc f(x : t) : int = {
    var y : int <- 0;

    match x with
    | A v => y <- `|v|;
    | B _ => y <- 1;
    | C   => y <- 2;
    end;

    return y;
  }
}.

lemma L : hoare[M.f : true ==> 0 <= res].
proof. by proc; sp; match => [v|b|]; auto=> /> /#. qed.
```
1 parent ba37062
Raw File
AUTHORS
The following people have contributed code and/or ideas to EasyCrypt:

Adrien Koutsos
Alley Stoughton
Antoine Séré
Asif Mallik
Benedikt Schmidt
Benjamin Gregoire
César Kunz
Christian Doczkal
Cécile Baritel-Ruet
Daniel Hedin
Davide Ramaglietta
Davy Guillaume
François Dupressoir
Gilles Barthe
Guillermo Ramos
José Bacelar Almeida
Juan Manuel Crespo
Kai-Chun Ning
Lavinia Damian
Manuel Barbosa
Martin Ceresa
Matthias Meijers
Mayram
Morten Solberg
Oskar Goldhahn
Pierre-Yves Strub
Roberto Metere
Santiago Zanella-Béguelin
Vincent Laporte
back to top