arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.11510cs.LOcs.SE
收藏

将形式方法工具应用于电子战代码库(经验报告)

Applying Formal Methods Tools to an Electronic Warfare Codebase (Experience report)

FAST Labs, BAE Systems(BAE系统公司 FAST实验室)

Letitia W. Li, Denley Lam, Vu Le, Daniel Mitchell, Mark J. Gerken, Robert B. Ross

AI总结:

本文报告了将形式方法工具应用于电子战系统中的经验,探讨了工具可用性及漏洞检测比较,并提出改进建议。

摘要:

尽管使用形式方法在某些方面优于单元测试,但其陡峭的学习曲线可能让开发者感到困难,并可能成为广泛采用的主要障碍。为了支持融入工业软件工程工作流程,一个工具必须提供有用的信息,并且必须能够以相对最小的用户努力使用。在本文中,我们讨论了在具有严格安全要求的电子战(EW)系统中识别和应用形式方法工具的经验,并呈现了来自熟悉开发但缺乏形式方法培训的电子战软件工程师对形式方法工具的看法。除了形式方法和单元测试方法之间存在思维差异外,一些形式方法工具使用与目标编程语言不同的术语或注释,这又构成了采用的障碍。输入/输出合同、受函数影响的内存中的对象以及循环不变式可能难以理解和使用。除了可用性外,我们的发现还包括对不同工具检测漏洞的比较。最后,我们提出了改进形式方法可用性的建议,包括更好的能力文档、减少手动工作量以及改进库代码的处理。

英文摘要:

While using formal methods offers advantages over unit testing, their steep learning curve can be daunting to developers and can be a major impediment to widespread adoption. To support integration into an industrial software engineering workflow, a tool must provide useful information and must be usable with relatively minimal user effort. In this paper, we discuss our experiences associated with identifying and applying formal methods tools on an electronic warfare (EW) system with stringent safety requirements and present perspectives on formal methods tools from EW software engineers who are proficient in development yet lack formal methods training. In addition to a difference in mindset between formal methods and unit testing approaches, some formal methods tools use terminology or annotations that differ from their target programming language, creating another barrier to adoption. Input/output contracts, objects in memory affected by a function, and loop invariants can be difficult to grasp and use. In addition to usability, our findings include a comparison of vulnerabilities detected by different tools. Finally, we present suggestions for improving formal methods usability including better documentation of capabilities, decreased manual effort, and improved handling of library code.

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

↑