Abstract
Logic-based requirements specification languages facilitate early validation and verification of software requirements, yet their execution is often computationally intensive. This paper proposes a hybrid parallel execution model that integrates top-down and bottom-up evaluation strategies. By employing static data dependency analysis to pre-determine argument modes, the model enables "deep jumps" in the search tree, significantly reducing search space, process generation, and communication overhead.
Introduction
In software engineering, the cost of fixing requirements errors escalates dramatically if they persist into the maintenance phase. Logic-based specification languages, such as FRORL, allow developers to mitigate this risk by validating requirements through early execution and formal reasoning. However, the inherent slowness of traditional logic engines remains a significant barrier.
While parallel execution offers a potential solution, existing models often suffer from high runtime overhead due to dynamic data flow analysis or lack completeness when handling complex binding conflicts. This research introduces a model designed to be both high-performance and complete, eliminating the inefficiencies of traditional backtracking through a novel hybrid approach.
Methodology
The proposed system architecture transitions from a logic-based specification to a parallel execution model through several key stages.
Static Data Dependency Analysis
Rather than determining data flow at runtime, the model utilizes a matrix-based algorithm to infer "modes" for predicate arguments statically. By representing clauses in a two-dimensional matrix (literals vs. variables) and applying a four-valued logic lattice (input, output, both, or unknown), the system pre-calculates how data will propagate through the specification.
Hybrid Execution Model
Traditional logic engines typically follow a top-down evaluation strategy. This model adopts a hybrid approach: it leverages static mode information to identify predicates deep within the search tree that can be evaluated immediately once their inputs are available. This "bottom-up" jump allows the system to detect failures in deep nodes much earlier than sequential or purely top-down parallel models.
Backtracking Elimination
The model supports simultaneous exploration of all OR-branches (alternative clauses) and uses pre-calculated data flow to manage AND-branches (sub-goals). By generating all valid solutions in parallel, the system effectively removes the need for complex backtracking control structures.
Evaluation and Results
The model was evaluated using a custom simulator designed to analyze execution behavior across synthetic search trees with varying error rates and depths.
Key performance metrics demonstrated significant advantages:
- CPU Efficiency: In high-error scenarios (e.g., 0.50 to 0.99 failure probability at leaf nodes), the hybrid model improved CPU efficiency by approximately 81%.
- Search Space Reduction: The "deep jump" capability reduced the total number of nodes searched by nearly 60% in deep search trees.
- Communication Overhead: Total channel costs—the overhead associated with inter-process communication—were reduced by over 50% in most test cases.
The performance gains became increasingly pronounced as the complexity and depth of the search trees grew, highlighting the model's scalability for industrial-scale specifications.
Conclusion
The hybrid parallel execution model successfully addresses the performance bottlenecks of logic-based requirements specifications. By combining static analysis with a flexible top-down/bottom-up execution strategy, it minimizes redundant computation and communication. While the static analysis phase introduces a computational cost of $O(n^2)$ to $O(n^3)$, the resulting execution speedups are substantial. Future work will focus on validating these results within large-scale industrial environments to confirm the practical utility of the simulated performance gains.
Summary updated