package jetbrains.mps.lang.dataFlow.framework;

/*Generated by MPS */

import jetbrains.mps.annotations.GeneratedClass;
import jetbrains.mps.lang.dataFlow.framework.instructions.Instruction;
import jetbrains.mps.lang.dataFlow.framework.instructions.NopInstruction;
import jetbrains.mps.lang.dataFlow.framework.instructions.RetInstruction;
import jetbrains.mps.lang.dataFlow.framework.instructions.JumpInstruction;

/**
 * Ilya.Lintsbakh, Apr 16, 2010
 */
@GeneratedClass(node = "r:3dddb2c7-b2ba-4381-896a-2e702ca1fb6e(jetbrains.mps.lang.dataFlow.framework)/4074113095384031095", model = "r:3dddb2c7-b2ba-4381-896a-2e702ca1fb6e(jetbrains.mps.lang.dataFlow.framework)")
public class InstructionUtil {
  public static boolean isNop(Instruction i) {
    return i instanceof NopInstruction;
  }
  public static boolean isRet(Instruction i) {
    return i instanceof RetInstruction;
  }
  public static boolean isJump(Instruction i) {
    return i instanceof JumpInstruction;
  }
  public static Object getSource(Instruction i) {
    return i.getSource();
  }
}
