6.5.5.1. Views¶
Rust RFGs contain the following views:
Code FactsEntriesCallInclude
Analyses may enrich the RFG with additional views (e.g., Dead Code Analysis).
Code Facts View¶
The Code Facts view of a Rust RFG contains nodes for all crates, modules,
functions, and types in the source code.
Entries View¶
The Entries view of a Rust RFG is similar to the one created for C or C++ projects: it
contains program entry points (such as the main function of executables) and
entities that should be considered ‘initially alive’ by analyses such as dead
code analysis.
Call View¶
The Call view of a Rust RFG is similar to the one created for C or C++
projects: its nodes represent routines, and edges between nodes A and B
indicate that A calls B. This view is useful for detecting call cycles in the program.
Include View¶
The Include view of a Rust RFG contains
Directory and
File nodes for the source files
of the analyzed crates, connected by
Enclosing edges.
Unlike C and C++ RFGs, it contains no
Include edges.