Skip to content

Instantly share code, notes, and snippets.

@rightfold
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rightfold/23dc2c4c3d3054283709 to your computer and use it in GitHub Desktop.
Save rightfold/23dc2c4c3d3054283709 to your computer and use it in GitHub Desktop.
MAIN:
0 PushBoolean true
2 ConditionalJump 27
7 PushGlobal std::io::writeln
12 PushString "1: WRONG"
17 Call 1
22 UnconditionalJump 42
27 PushGlobal std::io::writeln
32 PushString "1: OK"
37 Call 1
42 Pop
43 PushBoolean false
45 ConditionalJump 70
50 PushGlobal std::io::writeln
55 PushString "2: OK"
60 Call 1
65 UnconditionalJump 85
70 PushGlobal std::io::writeln
75 PushString "2: WRONG"
80 Call 1
85 Pop
86 PushGlobal std::always::infix==
91 PushBoolean true
93 PushBoolean true
95 Call 2
100 ConditionalJump 111
105 PushUnit
106 UnconditionalJump 126
111 PushGlobal std::io::writeln
116 PushString "3: OK"
121 Call 1
126 Pop
127 PushGlobal std::always::infix==
132 PushBoolean true
134 PushBoolean false
136 Call 2
141 ConditionalJump 152
146 PushUnit
147 UnconditionalJump 167
152 PushGlobal std::io::writeln
157 PushString "4: WRONG"
162 Call 1
167 Pop
168 PushUnit
169 Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment