예제 #1
0
        /// <summary>
        /// Creates the control-flow graph nodes of the specified method summary.
        /// </summary>
        internal static IDataFlowNode Create(DataFlowGraph dfg, MethodSummary summary)
        {
            var entryNode = new DataFlowNode(dfg, summary.ControlFlowGraph.EntryNode, summary);

            entryNode.Construct(summary.ControlFlowGraph.EntryNode, null,
                                new Dictionary <IControlFlowNode, DataFlowNode>());
            return(entryNode);
        }
예제 #2
0
        /// <summary>
        /// Builds the summary.
        /// </summary>
        private void BuildSummary()
        {
            this.ControlFlowGraph = new ControlFlowGraph(this);

            var dataFlowGraph = new DataFlowGraph(this);

            this.DataFlowGraph    = dataFlowGraph;
            this.DataFlowAnalysis = dataFlowGraph;
        }