Search papers, labs, and topics across Lattice.
This paper introduces ESBMC-PLC+, a comprehensive formal verification framework for PLCs that addresses the limitations of the existing PLCverif platform by supporting both Structured Text (ST) and graphical Ladder Diagrams (LD). By integrating a new ST/SCL frontend and enhancing function block state semantics for LD, ESBMC-PLC+ enables unbounded safety proofs and significantly improves verification efficiency. Experimental results demonstrate that ESBMC-PLC+ not only matches PLCverif's input coverage but also outperforms nuXmv's BDD backend by 400-2,000 times on timer programs, completing proofs that previously timed out.
ESBMC-PLC+ achieves unbounded safety proofs for all major IEC 61131-3 formats while dramatically speeding up verification processes, making it a game-changer for PLC formal verification.
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.