Esempio n. 1
0
        /// <summary>
        /// Return the flow analysis state associated with a label.
        /// </summary>
        /// <param name="label"></param>
        /// <returns></returns>
        FlowAnalysisLocalState?LabelState(LabelSymbol label)
        {
            FlowAnalysisLocalState?result;

            if (labels.TryGetValue(label, out result))
            {
                return(result);
            }

            result = FlowAnalysisLocalState.UnreachableState(nextVariableSlot);
            labels.Add(label, result);
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Set the current state to one that indicates that it is unreachable.
 /// </summary>
 protected void SetUnreachable()
 {
     this.state = FlowAnalysisLocalState.UnreachableState(this.nextVariableSlot);
 }