Towards Comprehensive Sampling of SMT Solutions
Shuangyu Lyu, Chuan Luo, Ruizhi Shi, Wei Wu, Chanjuan Liu, Chunming Hu

TL;DR
This paper introduces PanSampler, a novel SMT sampling method that efficiently generates diverse solutions to improve coverage and fault detection in software and hardware testing, reducing testing costs.
Contribution
PanSampler employs a diversity-aware algorithm, AST-guided scoring, and local search to produce high-coverage solutions with fewer samples, advancing SMT sampling techniques.
Findings
Achieves higher coverage with fewer solutions than existing methods.
Reduces test case requirements by up to 76.4% for fault detection.
Enhances testing efficiency in real-world software systems.
Abstract
This work focuses on effectively generating diverse solutions for satisfiability modulo theories (SMT) formulas, targeting the theories of bit-vectors, arrays, and uninterpreted functions, which is a critical task in software and hardware testing. Generating diverse SMT solutions helps uncover faults and detect safety violations during the verification and testing process, resulting in the SMT sampling problem, i.e., constructing a small number of solutions while achieving comprehensive coverage of the constraint space. While high coverage is crucial for exploring system behaviors, reducing the number of solutions is of great importance, as excessive solutions increase testing time and resource usage, undermining efficiency. In this work, we introduce PanSampler, a novel SMT sampler that achieves high coverage with a small number of solutions. It incorporates three novel techniques,…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Testing and Debugging Techniques · Radiation Effects in Electronics · Formal Methods in Verification
