Skip to content

Instantly share code, notes, and snippets.

@thpani
Last active April 25, 2022 08:58
Show Gist options
  • Save thpani/8918847ec802de2ed8dc1209af379d38 to your computer and use it in GitHub Desktop.
Save thpani/8918847ec802de2ed8dc1209af379d38 to your computer and use it in GitHub Desktop.
------ MODULE Verifier --------
EXTENDS Apalache, Integers
VARIABLES
\* @type: <<[oAPt: Set(Bool)], [zt48: Set(Bool)]>>;
result,
\* @type: Bool;
found
Init ==
/\ result \in {
<<[oAPt |-> {FALSE}], [zt48 |-> {TRUE}]>>,
<<[oAPt |-> BOOLEAN], [zt48 |-> {FALSE}]>>,
<<[oAPt |-> {FALSE}], [zt48 |-> BOOLEAN]>>}
/\ result = <<[oAPt |-> {FALSE}], [zt48 |-> {TRUE}]>>
/\ found \in BOOLEAN
Next ==
UNCHANGED <<result, found>>
NotFound ==
~found
======================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment