Abstract
In Goal-Oriented Requirements Engineering (GORE), identifying boundary conditions (BCs) that lead to system divergences is critical for ensuring software reliability. However, automated tools often generate an overwhelming number of redundant BCs, complicating the manual resolution process. This paper introduces a "contrasty" metric to filter these redundancies by focusing on unique root causes rather than simple logical generality. By integrating this metric into a joint identification and filtering framework (JFc), the authors demonstrate a significant reduction in the noise presented to engineers and a substantial increase in processing speed compared to traditional post-processing methods.
Introduction
Ensuring that system goals do not conflict with domain properties is a fundamental challenge in requirements engineering. For instance, a mine pump system must balance the goal of keeping water levels low with the safety constraint of remaining off when methane is detected. When these requirements cannot be satisfied simultaneously, a divergence occurs. A Boundary Condition (BC) describes the specific circumstances leading to such a conflict. While modern tools are proficient at finding these conditions, they often produce hundreds of redundant results, making manual assessment expensive and error-prone.
The Redundancy Problem in GORE
Existing methods typically use a "generality" metric to filter BCs. However, this approach is often too coarse, leaving engineers with many similar conditions that point to the same underlying issue. Furthermore, redundant BCs can bias risk assessments; if multiple redundant conditions describe the same failure, model-counting tools may over-prioritize that failure, leading to a skewed understanding of system likelihoods.
Methodology: The Contrasty Metric and JFc Framework
The researchers propose a shift from formal logical generality to practical engineering utility through the Contrasty Metric. This metric is based on the concept of a witness: if resolving one BC ($A$) automatically resolves another ($B$), then $A$ is a witness for $B$. Two BCs are considered "contrastive" if they represent fundamentally different problems that require separate resolutions.
To implement this, the authors developed two frameworks:
- PPFc (Post-Processing Framework): Prunes a large set of pre-identified BCs down to a contrastive subset.
- JFc (Joint Framework): Interleaves identification and filtering. As the system finds a BC, it immediately adds its negation as a constraint to the search space, forcing the solver to find truly unique divergences.
Experimental Evaluation
The approach was evaluated on 16 benchmark cases common in the requirements engineering community, ranging from simple patterns to complex industrial specifications like the London Ambulance Service (LAS) and ARM’s AMBA protocol.
As shown in Table 1, these benchmarks provide a broad spectrum of complexity, with sizes ranging from 9 to 415 LTL operators. This diversity ensures the robustness of the proposed filtering logic across different system scales.
Key Results
The experimental results highlight two major advantages of the contrasty metric: noise reduction and computational efficiency.
As illustrated in Table 2, the contrasty metric ($|\mathcal{B}_c|$) consistently identifies fewer, more unique conditions than the standard generality metric ($|\mathcal{B}_g|$). For example, in the ATM case study, the raw solver found 64.4 BCs on average, which the generality metric reduced to 3.4. The contrasty metric further refined this to just 1.2 unique BCs, significantly reducing the manual workload for engineers.
In terms of speed, the joint framework (JFc) outperformed post-processing significantly. For the "RP1" benchmark, JFc completed the task in 29.5 seconds, whereas the post-processing approach (PPFc) required 224.5 seconds. This speedup is attributed to the dynamic pruning of the search space, which prevents the solver from wasting time on redundant conflict zones.
Conclusion
By focusing on resolution-centric filtering, the contrasty metric provides a more practical tool for requirements engineers. While it does not aim for formal completeness, it ensures that the identified BCs capture all unique divergences without the burden of redundancy. Future work will explore extending this logic into the risk assessment and automated resolution stages of the software lifecycle.
Summary updated