Created
July 24, 2020 18:10
-
-
Save sskeirik/ea7d725cabb0d7c1d1aec42d55e3f821 to your computer and use it in GitHub Desktop.
Identity Unit Test Michelson
This file contains hidden or 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
input { Stack_elt nat 5 } ; | |
code { DUP ; | |
PUSH nat 0 ; | |
SWAP ; | |
INT ; | |
GT ; | |
LOOP { | |
PUSH nat 1 ; | |
ADD ; | |
DUP ; | |
DIG 2 ; | |
DUP ; | |
DUG 3 ; | |
SWAP ; | |
COMPARE ; | |
LT | |
} ; | |
DIP { DROP } | |
} ; | |
output { Stack_elt nat 5 } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment