Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
iload_0 ; [a]
iconst_1 ; [a, 1]
ieq ; [a==1]
dup ; [a==1, a==1]
jmp_nonzero OR ; [a==1]
drop ; []
iload_1 ; [b]
OR:
istore_2 ; []
iload_2 ; [c]
jmp_zero FALSE ; []
iload_0 ; [a]
iconst -1 ; [a, -1]
imul ; [-a]
ireturn ; []
FALSE:
iload_0 ; [a]
iconst_2 ; [a, 2]
imul ; [2a]
iload_0 ; [2a; a]
swap ; [a; 2a]
iadd ; [a + 2a]
ireturn ; []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.