Class PhiStmt

  • All Implemented Interfaces:
    Assign
    Direct Known Subclasses:
    PhiCatchStmt, PhiJoinStmt

    public abstract class PhiStmt
    extends Stmt
    implements Assign
    A PhiStmt is inserted into a CFG in Single Static Assignment for. It is used to "merge" uses of the same variable in different basic blocks.
    See Also:
    PhiJoinStmt, PhiCatchStmt
    • Constructor Detail

      • PhiStmt

        public PhiStmt​(VarExpr target)
        Constructor.
        Parameters:
        target - A stack expression or local variable that is the target of this phi-statement.
    • Method Detail

      • defs

        public DefExpr[] defs()
        Return the expressions (variables) defined by this PhiStmt. In this case, only the target is defined.
        Specified by:
        defs in interface Assign
      • operands

        public abstract java.util.Collection operands()
      • clone

        public java.lang.Object clone()
        Specified by:
        clone in class Stmt