arXiv:2503.04782cs.LOcs.AI2025-03

首个融合局部搜索与CDCL(T)的SMT(LIA)采样框架,提升解的多样性。

SMT(LIA) Sampling with High Diversity

  • 结合局部搜索与CDCL(T)技术,通过边界感知移动增强变量多样性。
  • 在相同时间内生成解集多样性优于当前最优工具MeGASampler。
  • 适合软件硬件测试中需多样测试用例的场景。

Satisfiability Modulo Linear Integer Arithmetic(SMT(LIA))在多个关键领域至关重要。以往研究主要聚焦于SMT求解技术,但在软件与硬件测试等实际应用中,需要生成多样化的解作为测试输入。本文提出首个将局部搜索与CDCL(T)技术融合的采样框架HighDiv,可为线性整数理论下的约束生成高度多样化的解集。首先,在局部搜索阶段引入一种名为边界感知移动的新算子,该算子基于当前变量的约束进行随机移动,从而提升搜索过程中变量的多样性。其次,深入研究了框架中的预处理与变量初始化机制,显著提升了后续局部搜索的效率。最后,利用局部搜索所得解作为额外约束,通过随机化CDCL(T)方法进一步探索解空间。实验结果表明,HighDiv生成的解在多样性方面优于当前最先进的SMT(LIA)采样工具MeGASampler。

原文摘要 · Abstract (English)

Satisfiability Modulo Linear Integer Arithmetic, SMT(LIA) for short, is pivotal across various critical domains. Previous research has primarily focused on SMT solving techniques. However, in practical applications such as software and hardware testing, there is a need to generate a diverse set of solutions for use as test inputs. We have developed the first sampling framework that integrates local search with CDCL(T) techniques, named HighDiv, capable of generating a highly diverse set of solutions for constraints under linear integer theory. Initially, in the local search phase, we introduced a novel operator called boundary-aware movement. This operator performs random moves by considering the current state's constraints on variables, thereby enhancing the diversity of variables during the search process. Furthermore, we have conducted an in-depth study of the preprocessing and variable initialization mechanisms within the framework, which significantly enhances the efficiency of subsequent local searches. Lastly, we use the solutions obtained from local search sampling as additional constraints to further explore the solution space using the stochastic CDCL(T) method. Experimental results demonstrate that \HighDiv generates solutions with greater diversity compared to the state-of-the-art SMT(LIA) sampling tool, MeGASampler.

SMT求解解采样测试生成

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。