コード例 #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];
 }
コード例 #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;
        }