ADVANCE D3.3 Model Checking

From Event-B
Revision as of 11:11, 19 August 2013 by imported>Jens (→‎Motivations / Decisions)
Jump to navigationJump to search

Overview

TODO

Motivations / Decisions

Distributed Model Checking

We have developed a version of ProB that is able to verify invariants and assertions and check for deadlocks in parallel on a multicore processor. The restrictions of the execution environment( i.e., Sicstus Prolog does not support multithreading) led to a distributed version of ProB where multiple instances of ProB are spawned and coordinated via sockets. Initial experiments indicate that the approach scales very well if the model is suited for parallel model checking, i.e., it is non-deterministic. The additional overhead of our implementation is at least an order of magnitude lower than the runtime of the model checker. Even if the model is not suited at all, the effect of running the parallel version can be neglected.

Secondary toolchain


Partial Order Reduction

B to TLA+

We developed a transcompiler from B to TLA+ (Temporal Logic of Actions) to verify B specifications with TLC. TLC is an explicit state model checker for TLA+ with an efficient disk-based algorithm and support for temporal formulas and fairness.Our translator is full automatic and supports a large subset of B. Moreover it uses static analyses to verify the correctness of the B specification (e.g. type checking and scope checking) and creates an optimized translation for the validation with TLC. Error traces (e.g. leading to deadlocks or invariant violations) detected by TLC are translated back to B and can be verified by ProB.

Kodkod Currently the translation to Kodkod is only applied to axioms when trying to find values for the constants and during the constraint based deadlock check. We plan to restructure ProB's internal programming interfaces in a way that allows to apply Kodkod more easily and make it available for other checks (e.g. constraint-based invariant check, assertion checks). We will evaluate how we can employ more SMT based techniques in ProB.

Constraint Solver Improvements During the further development of ProB's constraint solving it became apparent that it would be helpful to represent the cardinality of a set by a CLP(FD) variable. We plan to change ProB's internal representation of sets in a way that its cardinality can be accessed in this way. To allow a translation from ProB to Kodkod, we implemented an integer interval analysis. We plan to adapt the analysis to set up sizes of deferred sets. This is necessary because ProB chooses a fixed size for a deferred set and sometimes a model has only solutions for a certain size. Currently a user must supply a size manually.

Theory Plugin support


LTL Fairness Fairness properties are very common when specifying LTL formula. Fairness can be encoded by using standard LTL, but it makes the formula significantly larger. The complexity of the model checking algorithm grows exponentially with the number of used LTL operators in a formula. We plan to incorporate support for fairness directly into the model checker which should lead to a drastic improvement in performance when fairness is used. Additionally, the usability of the model checker is improved by having the ability to specify fairness conditions seperatly from the rest of the LTL formula.

It is already possible to use fairness by using the B to TLA translator and run TLC.

Physical Units

The work on physical unit support has been completed and is available as an optional plug-in available from the ProB update site.

BMotion Studio We will provide a way to link up other Java-based simulation tools with BMotion Studio. Furthermore, beside working on identified bugs and and rectifying usability issues, we want to create more visual elements to aid humans understand large-scale simulations.

Available Documentation

Distributed Model Checking

An extended abstract has been published at the Rodin User and Developer Workshop 2013[1].

Planning

TODO

References