危险不变量
Danger Invariants
摘要:
静态分析器搜索过度近似的安全性证明,通常称为安全不变量。从根本上说,这种分析器将轨迹总结为状态集,从而以区分轨迹的能力换取计算的易处理性。相反,静态错误查找器(例如有界模型检验)以反例的形式给出断言失败的证据,用户可以检查。然而,静态错误查找器无法扩展时,分析程序的错误,需要多次迭代的循环,计算工作量呈指数增长的深度错误。我们提出了一种新的方法来发现错误,它提供了抽象解释的性能与BMC的具体精度。为此,我们引入了危险不变量的概念--安全不变量的对偶。危险不变量总结了保证达到错误状态的轨迹集。这种总结使我们能够在没有错误警报的情况下找到深层错误,并且没有显式地解开循环。我们提出了一个二阶制定的危险不变量,并使用二阶SAT求解器在以前的工作中所描述的复杂的程序从文献中计算危险不变量。
英文摘要:
Static analysers search for overapproximating proofs of safety commonly known as safety invariants. Fundamentally, such analysers summarise traces into sets of states, thus trading the ability to distinguish traces for computational tractability. Conversely, static bug finders (e.g. Bounded Model Checking) give evidence for the failure of an assertion in the form of a counterexample, which can be inspected by the user. However, static bug finders fail to scale when analysing programs with bugs that require many iterations of a loop as the computational effort grows exponentially with the depth of the bug. We propose a novel approach for finding bugs, which delivers the performance of abstract interpretation together with the concrete precision of BMC. To do this, we introduce the concept of danger invariants -- the dual to safety invariants. Danger invariants summarise sets of traces that are guaranteed to reach an error state. This summarisation allows us to find deep bugs without false alarms and without explicitly unwinding loops. We present a second-order formulation of danger invariants and use the Second-Order SAT solver described in previous work to compute danger invariants for intricate programs taken from the literature.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。