package aya.instruction.flag;

import java.util.LinkedList;

import aya.Aya;
import aya.instruction.Instruction;
import aya.obj.block.Block;

/**
 *  Pop a variable set from the variable scope stack
 */
public class PopVarFlagInstruction extends Instruction {
	
	public static final PopVarFlagInstruction INSTANCE = new PopVarFlagInstruction();
	
	private PopVarFlagInstruction() { }
	
	@Override
	public void execute(Block b) {
		Aya.getInstance().getVars().pop();
	}
	
	@Override
	public String toString() {
		return "`POPVAR`";
	}
	
	@Override
	public String repr(LinkedList<Long> visited) {
		return "";
	}
}

@@ -525,24 +525,26 @@
 ring() %7B%0D%0A%09%09
+//
 return %22%60POP
@@ -547,24 +547,38 @@
 %60POPVAR%60%22;%0D%0A
+%09%09return %22%22;%0D%0A
 %09%7D%0D%0A%09%0D%0A%09@Ove

remove debug pring from PopVarFlag