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

ESBMC-PLC+:作为PLCverif后继的统一IEC~61131-3形式化验证框架

ESBMC-PLC+: A Unified IEC 61131-3 Formal Verification Framework as a PLCverif Successor

Computer Science, The University of Manchester(计算机科学,曼彻斯特大学);Electrical Engineering, UFAM(电子工程,UFAM)

Pierre Dantas, Lucas Cordeiro, Waldir Junior

AI总结:

提出ESBMC-PLC+统一框架,通过ST/SCL前端和图形LD功能块状态语义,支持所有三种主要IEC 61131-3输入格式,实现k-归纳无界安全证明,性能比nuXmv BDD快400-2000倍。

摘要:

PLCverif是CERN开发的最成熟的开源PLC形式化验证平台,自2019年起投入生产使用。然而,它有两个根本性限制:不支持梯形图(LD)程序(PLC的主要表示法),以及依赖CBMC作为主要后端,将验证限制在有界证明。PLCverif的作者们自己认为ESBMC是合适的后端改进。先前的工作建立了ESBMC-PLC(一个带有k-归纳的文本LD前端)和ESBMC-GraphPLC(图形化PLCopen XML支持);它们共同覆盖了LD的无界证明,但不包括结构化文本(ST),并且带有定时器/计数器功能块的图形LD仍然无法验证。本文提出了ESBMC-PLC+,一个统一框架,填补了这两个空白:(1)通过MATIEC IEC 61131-3编译器的ST/SCL前端,将C编译的ST路由到ESBMC,并带有非确定性输入建模和YAML属性注入;(2)图形LD的功能块状态语义,扩展DFS解析器,将TON/TOF/TP定时器、CTU/CTD计数器和R_TRIG/F_TRIG边沿触发器建模为GOTO IR中的持久扫描周期状态变量。ESBMC-PLC+是第一个通过单一ESBMC后端支持所有三种主要IEC 61131-3输入格式的开源PLC验证框架,实现了k-归纳无界安全证明。与PLCverif的功能比较以及在8个基准程序(包括最多8个整数定时器的程序)上的实验评估表明,ESBMC-PLC+匹配了PLCverif的输入覆盖范围,同时提供了更强的保证。与nuXmv的BDD后端相比,ESBMC-PLC+在定时器程序上快400-2000倍,并在nuXmv BDD超时(120秒)的情况下完成证明。

英文摘要:

PLCverif is the most mature open-source platform for PLC formal verification, developed at CERN and in production use since 2019. Yet it has two fundamental limitations: no support for Ladder Diagram (LD) programs, the dominant PLC notation, and reliance on CBMC as its primary backend, which restricts verification to bounded proofs. The PLCverif authors themselves identified ESBMC as the appropriate backend improvement. Prior work established ESBMC-PLC (a textual LD frontend with k-induction) and ESBMC-GraphPLC (graphical PLCopen XML support); together, they cover LD with unbounded proofs but not Structured Text (ST), and graphical LD with timer/counter function blocks remains unverifiable. This paper presents ESBMC-PLC+, a unified framework that closes both gaps: (1) an ST/SCL frontend via the MATIEC IEC 61131-3 compiler, routing C-compiled ST to ESBMC with nondeterministic input modeling and YAML property injection; (2) function block state semantics for graphical LD, extending the DFS resolver to model TON/TOF/TP timers, CTU/CTD counters, and R_TRIG/F_TRIG edge triggers as persistent scan-cycle state variables in the GOTO IR. ESBMC-PLC+ is the first open-source PLC verification framework to support all three major IEC 61131-3 input formats via a single ESBMC backend, enabling k-induction-unbounded safety proofs. A feature comparison with PLCverif and experimental evaluation on 8 benchmark programs, including programs with up to 8 integer timers, shows that ESBMC-PLC+ matches PLCverif's input coverage while providing stronger guarantees. Against nuXmv's BDD backend, ESBMC-PLC+ is 400-2,000x faster on timer programs and completes proofs where nuXmv BDD times out at 120s.

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

↑