[Paper Review] PLCverif: Status of a Formal Verification Tool for Programmable Logic Controller
PLCverif is an open-source formal verification tool for Programmable Logic Controllers (PLCs) that automates the translation of PLC code into formal models and enables model checking using tools like CBMC and Theta. It improves usability through assertion and pattern-based requirement specification, supports multiple PLC languages (Siemens, partial Schneider), and enhances performance via CFA reduction, abstraction, and counterexample analysis, significantly aiding safety-critical industrial control system verification.
Programmable Logic Controllers (PLC) are widely used for industrial automation including safety systems at CERN. The incorrect behaviour of the PLC control system logic can cause significant financial losses by damage of property or the environment or even injuries in some cases, therefore ensuring their correct behaviour is essential. While testing has been for many years the traditional way of validating the PLC control system logic, CERN developed a model checking platform to go one step further and formally verify PLC logic. This platform, called PLCverif, first released internally for CERN usage in 2019, is now available to anyone since September 2020 via an open source licence. In this paper, we will first give an overview of the PLCverif platform capabilities before focusing on the improvements done since 2019 such as the larger support coverage of the Siemens PLC programming languages, the better support of the C Bounded Model Checker backend (CBMC) and the process of releasing PLCverif as an open-source software.
Motivation & Objective
- To address the limitations of traditional testing in verifying complex PLC logic, especially for safety-critical systems where exhaustive testing is infeasible.
- To reduce the barrier to formal verification for PLC developers by automating the translation of PLC code into formal models.
- To mitigate the state-space explosion problem in model checking through abstraction and optimization techniques.
- To improve usability by enabling requirement specification via assertions and plain-text patterns, and by providing actionable counterexample analysis.
- To promote wider adoption of formal verification in industrial automation by releasing PLCverif as open-source software with extensible architecture.
Proposed method
- Parsing PLC programs (in Structured Text, LAD, FBD) into Control Flow Automata (CFA), a formal, control-flow-based intermediate representation.
- Supporting two requirement specification methods: embedded assertions (e.g., //#ASSERT) and pattern-based templates with placeholders for temporal logic translation.
- Applying CFA reduction techniques to simplify models and reduce state space, improving verification feasibility.
- Integrating with external model checkers (CBMC, Theta, and ESBMC) to perform formal verification of temporal logic properties.
- Implementing abstraction strategies such as non-deterministic modeling of inputs and function abstraction for iterative verification of large PLC systems.
- Providing counterexample analysis to highlight code locations responsible for property violations, improving debuggability.
Experimental results
Research questions
- RQ1How can formal verification of PLC programs be made accessible to industrial developers without deep expertise in formal methods?
- RQ2What techniques can effectively reduce the state space explosion problem in PLC model checking while preserving verification soundness?
- RQ3How can requirement specification be simplified for PLC engineers using natural language patterns or annotations instead of low-level logic?
- RQ4What performance improvements can be achieved through abstraction, model reduction, and integration with modern SMT-based model checkers?
- RQ5Can iterative and compositional verification strategies be effectively applied to large-scale PLC applications with modular structure?
Key findings
- PLCverif successfully supports multiple Siemens PLC programming languages (SCL, LAD, FBD) and has added partial support for Schneider Electric PLCs.
- The platform has been released as open-source software under the MIT license, enabling community contributions and broader industrial adoption.
- Upgrades to Java 11 and integration with the latest Theta model checker have improved compatibility and performance.
- CFA reduction and abstraction techniques have significantly reduced verification time and state space size, enabling verification of previously intractable cases.
- Counterexample analysis now highlights relevant code sections, reducing debugging time by focusing on potential root causes of violations.
- Ongoing work on SMT-based model checkers like ESBMC and iterative verification strategies shows promise for scaling to larger, more complex PLC systems.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.