Created
October 18, 2018 07:11
-
-
Save saibakatar/77781635267fd5191cc564ae20e38e28 to your computer and use it in GitHub Desktop.
Boolean declaration in Scilla
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
contract Boolean() | |
field a : Option Bool = None {Bool} (*declaring variable a with no value*) | |
field b : Bool = True (*declaring variable b with some fixed value*) | |
transition update_value() | |
(*updating variable a*) | |
c = False; (*declaring variable c in the transition*) | |
tmp = Some {Bool} c; | |
a := tmp; | |
(*updating variable b*) | |
d= False; | |
b:= d | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment