Almost-correct specifications: a modular semantic framework for assigning confidence to warnings
Almost-correct specifications: a modular semantic framework for assigning confidence to warnings
复制标题
几乎正确的规范:用于为警告分配置信度的模块化语义框架
DOI:
10.1145/2491956.2462188
复制
发表时间:
2013
期刊:
影响因子:
--
通讯作者:
Shuvendu K. Lahiri
中科院分区:
文献类型:
--
作者:
Sam Blackshear;Shuvendu K. Lahiri
Modular assertion checkers are plagued with false alarms due to the need for precise environment specifications (preconditions and callee postconditions). Even the fully precise checkers report assertion failures under the most demonic environments allowed by unconstrained or partial specifications. The inability to preclude overly adversarial environments makes such checkers less attractive to developers and severely limits the adoption of such tools in the development cycle. In this work, we propose a parameterized framework for prioritizing the assertion failures reported by a modular verifier, with the goal of suppressing warnings from overly demonic environments. We formalize it almost-correct specifications as the minimal weakening of an angelic specification (over a set of predicates) that precludes any dead code intraprocedurally. Our work is inspired by and generalizes some aspects of semantic inconsistency detection. Our formulation allows us to lift this idea to a general class of warnings. We have developed a prototype acspec, which we use to explore a few instantiations of the framework and report preliminary findings on a diverse set of C benchmarks.