Example #1
0
        public static ControlFlowGraph Create(BoundBlockStatement body)
        {
            var blocks = AtomicBlockBuilder.Build(body);
            var graph  = ControlFlowGraphBuilder.Build(blocks);

            return(graph);
        }
Example #2
0
        public static ControlFlowGraph Build(List <AtomicBlock> blocks)
        {
            var builder = new ControlFlowGraphBuilder();

            return(builder.BuildInternal(blocks));
        }