long k = 0; // Memory pointer
int pi = 0; // Program index into the PC array
final long[] mem = new long[BPFVirtualMachine.BPF_MEMWORDS]; // Memory
// stack
BPFInstruction i = null;
pi--;
while (true) {
pi++;
i = program.getCode()[pi];
switch (i.getCode()) {
default:
throw new IllegalInstructionException(
"Illegal BPF instruction encountered: opcode=" + i.getCode()
+ " at OP index=" + pi);
case BPFCode.RET | BPFCode.K:
return i.k;