Exemplo n.º 1
0
 public Control CreateControl()
 {
     this.Control                  = new GViewer();
     this.Control.Dock             = DockStyle.Fill;
     this.Control.Visible          = true;
     this.Control.PanButtonPressed = true;
     this.Control.ToolBarIsVisible = true;
     this.Control.Graph            = CallGraphGenerator.Generate(program);
     return(Control);
 }
Exemplo n.º 2
0
 public static Graph Generate(Program program)
 {
     Graph graph = new Graph();
     var cfgGen = new CallGraphGenerator(graph);
     foreach (var rootProc in program.Procedures.Values)
     {
         cfgGen.Traverse(program.CallGraph, rootProc);
     }
     graph.Attr.LayerDirection = LayerDirection.TB;
     return graph;
 }
Exemplo n.º 3
0
        public static Graph Generate(Program program)
        {
            Graph graph  = new Graph();
            var   cfgGen = new CallGraphGenerator(graph);

            foreach (var rootProc in program.Procedures.Values)
            {
                cfgGen.Traverse(program.CallGraph, rootProc);
            }
            graph.Attr.LayerDirection = LayerDirection.TB;
            return(graph);
        }