Published January 23, 2023 | Version v1

Abstraction-based Trace Generation to Validate Semantics of Formal Verifiers

  • 1. Budapest University of Technology and Economics

Description

Safety-critical embedded systems are becoming increasingly complex. To handle this complexity, various engineering models are used for design and verification during development (e.g. state machines). Formal verification techniques can automatically prove some properties or find errors in these models, but necessitate the precise definition of execution semantics of the engineering modeling language.

 

Formal verification tools need to formalize semantics when transforming the engineering model to a formal representation. This is a complex theoretical and implementation task, as these semantics are usually only semi-formal and underspecified. Thus different errors, e.g. conceptual flaws, such as unexpected decisions on underspecified semantic rules, are common. Such undetected flaws cause either confusion or silently invalidate the results of formal verification.

 

Therefore the validation of model transformations implementing semantics is a crucial task. The current state of practice recommends creating test models in the engineering language, defining valid execution traces for them (mostly manually), and later comparing these traces to the ones returned by verifiers or simulators to check conformance. This is an inefficient and error-prone method as valid traces can be easily missed.

 

Generating test traces from models automatically is an active research area. All possible traces can be easily generated for simple models and modeling languages. However, it gets increasingly difficult when the modeling language contains data and not just control flow, or the model's state space is infinite. Limiting traces to satisfy some kind of coverage criteria is the general solution, but for specific scenarios, more precise solutions can be recommended.

 

A common type of formal verification tools is abstraction-based model checkers. I propose utilizing the abstraction-based techniques of these tools for automatic trace generation. I designed an abstraction-based trace generation algorithm, which is able to handle several cases where the state space is infinite. It utilizes the abstraction in a configurable way and generates traces that do not unnecessarily repeat already covered states of the model. In this report, I consider the guarantees, strengths, and weaknesses of this algorithm, such as coverage possibilities and scalability.

 

I evaluated the algorithm through a case study on tools for reactive state machines. The validated tools include their own modeling language, which is complex enough that the need for validation of the transformation arises. Besides this presented main use case, I show that this algorithm also opens up the possibility for more features, such as mitigating modeling mistakes.

Files

Absztrakcioalapu-trace-generalas-formalis.pdf

Files (1.5 MB)

Name Size
md5:6f7ef46a7bdb8675ffd4993b2a337de9
1.5 MB Preview Download