Download User Manual - Frama-C

Transcript
CHAPTER 9.
GRAPHICAL USER INTERFACE
The toolbar gives access to the main functions of the tool. They are usually present in one
menu of the menu bar. Plug-ins may also add their own entries here.
The le tree provides a tree-like structure of the source les involved in the current analysis.
This tree lists all the global variables and functions each le contains.
Within a le,
entries are sorted alphabetically, without taking capitalization into account. Functions
are underlined, to separate them from variables.
Plug-ins may also display specic
information for each le and/or function. Finally, the Source le button oers some
options to lter the elements of the le tree:
•
The Hide variables and Hide functions options oer the possibility to hide the
non-desired entries from the tree.
•
The Flat mode option attens the tree, by removing the lename level. Instead,
functions and globals are displayed together, as if they were in a big namespace.
This makes it easier to nd a function whose only the name is known.
The normalized and original source code views display the source code of the current
etc
selected element of the le tree and its normalized code (see Section 5.3). Left-clicking
on an object (statement, left-value,
) in the normalized source code view displays
information about it in the Information page of the Messages View and displays the
corresponding object of the original source view, while right-clicking on them opens a
contextual menu. Items of this menu depend on the kind of the selected object and on
plug-in availability.
Only the normalized source view is interactive: the original one is not.
The plug-ins view shows specic plug-in interfaces. The interface of each plug-in can be
collapsed.
The messages view contains by default four dierent pages, namely:
the Information page which provides brief details on the currently selected object,
or informative messages from the plugins.
the Messages page shows most important messages, especially all alarms, that the
Frama-C kernel or plug-ins generate. Please refer to the specic documentation of
each plug-in in order to get the exact form of alarms. Alarms that have a location
in the original source can be double-clicked; this location will then be shown in the
1
original and normalized source code viewers.
Beware that alarms are not stored in batch mode (to reduce memory consumption):
the Messages panel will remain empty if the GUI loads a le saved in batch mode
(see Section 8.1.3).
option
If you want to store these alarms in batch mode, use the
-collect-messages.
the Console page displays messages to users in a textual way. This is the very same
output than the one shown in batch mode.
the Properties page displays the local and consolidated statuses of properties.
1
Notice however that the location in the normalized source may not perfectly correspond, as more than
one normalized statement can correspond to a source location.
42