Path analysis is widely used in software engineering, e.g. for structural complexity measurement and white-box testing. We propose a novel approach to path analysis, in which the ddgraph model is used to represent program control flow, and the dominance and the implication relationships, defined between ddgraph's arcs, are exploited to analyze program structural properties. Dominance and implication form two trees of ddgraph arcs, the dominator tree and the implied tree, respectively, which allow us to design very simple, recursive algorithms. In this paper, we present the algorithm ALL-1-PATHS, which enumerates all possible paths through a program with zero and one iteration of every cycle, and the algorithm I-PATHS-NUMBER, which calculates their number. Our approach is currently being experimented within a prototype tool, called BAT, which performs the static analysis of C programs for use in reverse engineering and in coverage testing.
On program path analysis
Bertolino A
1994
Abstract
Path analysis is widely used in software engineering, e.g. for structural complexity measurement and white-box testing. We propose a novel approach to path analysis, in which the ddgraph model is used to represent program control flow, and the dominance and the implication relationships, defined between ddgraph's arcs, are exploited to analyze program structural properties. Dominance and implication form two trees of ddgraph arcs, the dominator tree and the implied tree, respectively, which allow us to design very simple, recursive algorithms. In this paper, we present the algorithm ALL-1-PATHS, which enumerates all possible paths through a program with zero and one iteration of every cycle, and the algorithm I-PATHS-NUMBER, which calculates their number. Our approach is currently being experimented within a prototype tool, called BAT, which performs the static analysis of C programs for use in reverse engineering and in coverage testing.| File | Dimensione | Formato | |
|---|---|---|---|
|
prod_408922-doc_143633.pdf
accesso aperto
Descrizione: On program path analysis
Dimensione
2.03 MB
Formato
Adobe PDF
|
2.03 MB | Adobe PDF | Visualizza/Apri |
I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.


