Skip to content

Instantly share code, notes, and snippets.

@jaheba
Last active June 21, 2016 09:19
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 jaheba/3473246d73ee153b426e40245536b427 to your computer and use it in GitHub Desktop.
Save jaheba/3473246d73ee153b426e40245536b427 to your computer and use it in GitHub Desktop.
fn dec(tape: &mut Tape) {
tape.tape[tape.position] -= 1;
}
LoadFunc(DefId { krate: 0,
node: DefIndex(17) => dec }),
Call,
StackFrame(6),
LoadLocal(0),
Use,
StoreLocal(1),
LoadLocal(1),
DEREF,
TUPLE_GET(1),
Use,
StoreLocal(2),
LoadLocal(1),
DEREF,
TUPLE_GET(0),
Len,
StoreLocal(3),
LoadLocal(2),
LoadLocal(3),
BINOP(Lt),
StoreLocal(4),
LoadLocal(4),
Guard(Guard(true)),
LoadLocal(2),
LoadLocal(1),
DEREF,
TUPLE_GET(0),
GetIndex,
Usize(1),
BINOP(Sub),
LoadLocal(2),
LoadLocal(1),
DEREF,
TUPLE_GET(0),
AssignIndex,
TUPLE(0),
RETURN_POINTER,
RETURN,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment