Created
December 14, 2012 19:27
-
-
Save anonymous/4287938 to your computer and use it in GitHub Desktop.
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
(defn if-expro [input op output] | |
(fresh [test then else a b c d z y] | |
(== op {:op :if | |
:test test | |
:then then | |
:else else}) | |
(dispatchopo input test a) | |
(jump-if-falseo a z b) | |
(dispatchopo b then c) | |
(jumpo c y d) | |
(dispatchopo d else output) | |
(code-len d z) | |
(code-len output y) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment