Abstract
Hyperproperties describe requirements over sets of execution traces, such as non-interference in security or consistency in concurrent systems. Verifying these properties is challenging due to quantifier alternation and asynchrony. This paper presents HyperQB 2.0, a high-performance bounded model checker implemented in Rust. HyperQB 2.0 supports both SMT (Z3) and QBF (QuAbS) solvers, enabling the verification of synchronous (HyperLTL) and asynchronous (A-HLTL) hyperproperties. By leveraging a unified intermediate representation and simulation-based loop detection, HyperQB 2.0 significantly outperforms existing state-of-the-art tools and provides the first automated verification for asynchronous systems.
Introduction
Standard safety and liveness properties typically concern a single execution trace. However, many critical system policies, known as hyperproperties, relate multiple traces. For instance, "non-interference" ensures that secret inputs do not influence observable outputs, a property that can only be verified by comparing different execution paths. Verifying hyperproperties is notoriously difficult because it involves complex quantification over traces (e.g., "for all traces A, there exists a trace B..."). Existing tools often struggle with quantifier alternation, asynchronous trace movement, and infinite state spaces.
System Architecture
HyperQB 2.0 addresses these challenges through a robust, end-to-end pipeline. It parses models from NuSMV or Verilog into a "program graph" intermediate representation (IR), allowing it to handle both hardware and software models within a unified framework.
The tool employs dual solver backends: SMT (Z3) for infinite-state programs involving complex data structures like integers and arrays, and QBF (QuAbS) for finite-state Boolean logic. This dual approach allows HyperQB to optimize for different problem types. Notably, QBF solvers were found to perform exceptionally well for asynchronous properties (A-HLTL) because the position encoding used to track asynchronous progress is naturally Boolean, making it a perfect fit for QBF's strengths.
Verification and Usability
HyperQB 2.0 is implemented in Rust for performance and safety. It provides multiple interfaces, including a CLI, a standalone GUI, and a web-based playground. The tool's ability to generate clear counterexamples is crucial for debugging complex hyperproperties, providing a visual representation of trace states and variable values.
Key Results and Insights
The authors evaluated HyperQB 2.0 on an extensive suite of benchmarks, including classic HyperLTL cases and 29 new case studies covering banking systems, bidding protocols, and hardware security.
- Performance: HyperQB 2.0 consistently outperformed previous state-of-the-art tools like AutoHyper, often by orders of magnitude.
- Asynchrony: It is the first tool to offer automated model checking for A-HLTL, filling a critical gap in verifying systems where traces move at different speeds, such as those vulnerable to speculative execution (Spectre-like) or cache timing attacks.
- Complexity: The tool successfully handles formulas with up to five alternating quantifiers, breaking the "two-quantifier" barrier common in earlier tools.
- Completeness: Through simulation-based loop conditions, HyperQB can provide verified "True" results for infinite traces, rather than just reporting no bugs within a fixed bound.
Conclusion
HyperQB 2.0 represents a significant advancement in hyperproperty verification. By combining a flexible IR with powerful SMT and QBF solvers, it provides a scalable, "push-button" solution for complex security and concurrency requirements. Future work includes full integration of C support via LLVM and expanding the library of real-world benchmarks to continue pushing the boundaries of automated formal verification.
Summary updated