Using Dependence Analysis to Support Software Architecture Understanding

Jianjun ZhaoarXiv 2001

Abstract

This paper presents a framework for architectural dependence analysis, adapting program slicing techniques to high-level software designs. By constructing a Software Architectural Dependence Graph (SADG) from component-connector descriptions, the authors enable "architectural slicing" to isolate functional sub-structures. This technique facilitates system understanding, maintenance, and design reuse by allowing architects to focus on relevant sub-sections of complex systems.

Introduction

As software systems grow in complexity, developers increasingly rely on Software Architecture (SA) descriptions to reason about high-level organization. While mature tools exist for analyzing source code—such as identifying which variables affect a specific line—similar tools for the architectural level have historically been lacking.

Traditional dependence analysis operates on low-level implementation details like statements and variables. However, an architect needs to understand how a change in one component’s interface might ripple through a system of pipes, event broadcasts, or client-server protocols. Without automated tools, identifying these "ripple effects" in a large-scale architectural description is a manual, time-consuming, and error-prone process. This paper addresses this gap by introducing architectural dependence analysis.

The SADG Framework

The author proposes a formal framework for analysis based on the ACME Architectural Description Language (ADL). The core contribution is the Software Architectural Dependence Graph (SADG). To build this graph, the paper defines three new types of dependencies specific to architectures:

  1. Component-Connector Dependences: Links between a component's port and a connector's role, representing information flow out of a component.
  2. Connector-Component Dependences: Links from a connector's role back to a component's port, representing information flow into a component.
  3. Additional Dependences: Internal dependencies within a single component or connector (e.g., how an input port on a "filter" component affects its output port).
The complete Software Architectural Dependence Graph (SADG) for the London Ambulance Service dispatch system.

By treating ports and roles in an ADL as nodes in a dependence graph, decades of program analysis research can be "upcycled" for system design. This approach is largely language-independent and can be applied to various ADLs like Wright, Rapide, or UniCon.

Case Study: London Ambulance Service

The framework is validated using a case study of a London Ambulance Service (LAS) dispatch system. This system includes components like call_entry, incident_mgr, and resource_mgr, which are connected via various RPC and message-passing channels. The complexity of such a system makes it an ideal candidate for demonstrating the utility of automated dependence analysis.

Architectural Slicing in Action

Using the SADG, the author introduces Architectural Slicing. Much like program slicing, this technique takes a "slicing criterion" (a specific component and its ports) and traverses the graph to extract only the parts of the architecture relevant to that criterion.

Architectural slicing allows a maintainer to generate a "partial view" of a system. If a developer only needs to modify the incident_info_request port, the slicer can hide the majority of the architecture that has no functional relationship to that port, drastically reducing cognitive load.

A sliced version of the LAS architecture, significantly reducing the number of components and connections to be analyzed.

The case study demonstrates that a slice can significantly prune an architectural description. By slicing out specific functional paths, designers can also extract reusable architectural patterns from existing systems for use in new designs.

Conclusion

The paper successfully maps abstract architectural concepts into a computable, arc-classified digraph. While the current model focuses on basic ACME elements and lacks quantitative empirical validation, it provides a sound theoretical foundation for future tools. Future work includes extending the approach to other ADLs and accounting for more complex features like architectural templates and styles.

Summary updated

BibTeX
@misc{zhao2001using,
  author = {Jianjun Zhao},
  title = {{Using Dependence Analysis to Support Software Architecture Understanding}},
  year = {2001},
  eprint = {cs/0105009},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/cs/0105009},
}
Figure