Using Static Graphs

Making Graphical Static Queries

accessed by the function.

Using Description Boxes

The Static Graphs provide the ability to display additional detail about identifiers and relationships through description dialog boxes for both nodes and arcs. One of the main advantages of using these dialog boxes in conjunction with the graphical display of your program, is the ability to see more detail without moving back and forth between the main SoftBench Static Analyzer window and the Static Graphs. You can access these dialog boxes with the graph popup menus by selecting a node or arc and choosing "Describe" from the popup menu.

For example, assume you have just generated a call graph and you want to find out more about a particular function. Select the function node and choose "Describe" from the popup menu. See Figure 10-1for an example of the description dialog box for function PayOffOdds. The dialog box displays the parameters and local variables of the function.

Figure 10-1 "Function Description" Dialog Box

You can perform several actions on any item in the "Describe" dialog box by selecting the item and then selecting Actions. This menu allows you to:

Edit or browse the corresponding line of source code with the editor. Double-click on a line, or select the line and choose "Edit" from the

Actions menu.

Copy an item from the list to another Static Graph. Choose the

"Redisplay Selection" submenu to copy the item to one of the other Static Graphs.

You can also use the graph description dialog box to determine the functions and global variables defined in a source file:

1. Select a source file node.

Chapter 10

289