Ejemplo n.º 1
0
 public StatementIdImp(BasicBlock bb, int index)
 {
     Debug.Assert(bb != null);
     Debug.Assert(index >= 0);
     Debug.Assert(index < bb.statements.Count);
     statementInfo = bb.statements[index];
 }
Ejemplo n.º 2
0
        /////////////////////////////////////////////////////////
        /////////////////////////////////////////////////////////
        public void delete()
        {
//            Console.WriteLine("deleting {0}", basicBlock.label + "_" + statementInfo.index.ToString());

            basicBlock.deleteStatement(index);
            statementInfo.basicBlock = null;
            statementInfo.index      = -1;
            statementInfo.preState   = null;
            statementInfo.postState  = null;
            statementInfo.statement  = null;
            statementInfo            = null;
        }