Saved in:
Bibliographic Details
Main Authors: Lyu, Shuangyu, Luo, Chuan, Shi, Ruizhi, Wu, Wei, Liu, Chanjuan, Hu, Chunming
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2511.10326
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909900644286464
author Lyu, Shuangyu
Luo, Chuan
Shi, Ruizhi
Wu, Wei
Liu, Chanjuan
Hu, Chunming
author_facet Lyu, Shuangyu
Luo, Chuan
Shi, Ruizhi
Wu, Wei
Liu, Chanjuan
Hu, Chunming
contents 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, i.e., diversity-aware SMT algorithm, abstract syntax tree (AST)-guided scoring function and post-sampling optimization technology, enhancing its practical performance. It iteratively samples solutions, evaluates candidates, and employs local search to refine solutions, ensuring high coverage with a small number of samples. Extensive experiments on practical benchmarks demonstrate that PanSampler exhibits a significantly stronger capability to reach high target coverage, while requiring fewer solutions than current samplers to achieve the same coverage level. Furthermore, our empirical evaluation on practical subjects, which are collected from real-world software systems, shows that PanSampler achieves higher fault detection capability and reduces the number of required test cases from 32.6\% to 76.4\% to reach the same fault detection effectiveness, leading to a substantial improvement in testing efficiency. PanSampler advances SMT sampling, reducing the cost of software testing and hardware verification.
format Preprint
id arxiv_https___arxiv_org_abs_2511_10326
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Towards Comprehensive Sampling of SMT Solutions
Lyu, Shuangyu
Luo, Chuan
Shi, Ruizhi
Wu, Wei
Liu, Chanjuan
Hu, Chunming
Software Engineering
D.2.4.d; F.4.1
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, i.e., diversity-aware SMT algorithm, abstract syntax tree (AST)-guided scoring function and post-sampling optimization technology, enhancing its practical performance. It iteratively samples solutions, evaluates candidates, and employs local search to refine solutions, ensuring high coverage with a small number of samples. Extensive experiments on practical benchmarks demonstrate that PanSampler exhibits a significantly stronger capability to reach high target coverage, while requiring fewer solutions than current samplers to achieve the same coverage level. Furthermore, our empirical evaluation on practical subjects, which are collected from real-world software systems, shows that PanSampler achieves higher fault detection capability and reduces the number of required test cases from 32.6\% to 76.4\% to reach the same fault detection effectiveness, leading to a substantial improvement in testing efficiency. PanSampler advances SMT sampling, reducing the cost of software testing and hardware verification.
title Towards Comprehensive Sampling of SMT Solutions
topic Software Engineering
D.2.4.d; F.4.1
url https://arxiv.org/abs/2511.10326