Beispiel #1
0
        /// <summary>
        ///   Dumps the CFG representation for the given method in the given type.
        /// </summary>
        public void DumpCfg(String typeName, String methodName)
        {
            var methodDefinition    = GetMethodDefinition(typeName, methodName);
            CilControlFlowGraph cfg = new CilControlFlowGraph(methodDefinition);

            Console.Out.WriteLine(cfg);
        }
 public CfgTraverseLinearIr(MethodDefinition methodDefinition)
     : base(methodDefinition)
 {
     cfg = new CilControlFlowGraph(methodDefinition);
     SetLinearIrInstructions();
 }