arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1810.04310cs.LO
收藏

线性约束条件下的梯形推广

Trapezoidal Generalization over Linear Constraints

David Greve, Andrew Gacek

摘要:

我们正在开发一个基于模型的模糊框架,采用系统行为的数学模型来指导模糊过程。传统的模糊框架随机生成测试,而基于模型的框架可以使用约束求解器从行为模型中推断测试。由于模糊器探索的状态空间通常很大,因此快速生成测试向量至关重要。然而,快速生成测试的需求与使用约束求解器是对立的。我们的解决方案是使用约束求解器来生成初始解,相对于系统模型来概括该解,然后对广义解空间执行快速、重复、随机采样以生成模糊测试。这一努力的成功至关重要的是一个泛化过程,具有合理的大小和性能成本,产生广义的解决方案空间,可以有效地采样。本文介绍了一种泛化技术的逻辑公式表示的线性约束,满足独特的性能要求,基于模型的模糊的布尔组合。该技术表示概括使用梯形解集组成的有序,层次连接的线性约束,比简单的间隔更有表现力,但更有效地操纵和采样比通用多面体。支持材料包含ACL 2证明,该证明针对泛化正确性规范验证泛化算法的低级实现的正确性。最后描述了一个后处理程序,该程序可以快速有效地采样(求解),即使对于整数域,也可以得到一个受限的梯形解。虽然提供了非正式的正确性参数,限制算法的正确性的正式证明仍然是未来的工作。

英文摘要:

We are developing a model-based fuzzing framework that employs mathematical models of system behavior to guide the fuzzing process. Whereas traditional fuzzing frameworks generate tests randomly, a model-based framework can deduce tests from a behavioral model using a constraint solver. Because the state space being explored by the fuzzer is often large, the rapid generation of test vectors is crucial. The need to generate tests quickly, however, is antithetical to the use of a constraint solver. Our solution to this problem is to use the constraint solver to generate an initial solution, to generalize that solution relative to the system model, and then to perform rapid, repeated, randomized sampling of the generalized solution space to generate fuzzing tests. Crucial to the success of this endeavor is a generalization procedure with reasonable size and performance costs that produces generalized solution spaces that can be sampled efficiently. This paper describes a generalization technique for logical formulae expressed in terms of Boolean combinations of linear constraints that meets the unique performance requirements of model-based fuzzing. The technique represents generalizations using trapezoidal solution sets consisting of ordered, hierarchical conjunctions of linear constraints that are more expressive than simple intervals but are more efficient to manipulate and sample than generic polytopes. Supporting materials contain an ACL2 proof that verifies the correctness of a low-level implementation of the generalization algorithm against a specification of generalization correctness. Finally a post-processing procedure is described that results in a restricted trapezoidal solution that can be sampled (solved) rapidly and efficiently without backtracking, even for integer domains. While informal correctness arguments are provided, a formal proof of the correctness of the restriction algorithm remains as future work.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑