Section: Software and Platforms
The CADP Toolbox
Participants : Hubert Garavel [correspondent] , Frédéric Lang, Radu Mateescu, Wendelin Serwe.
We maintain and enhance CADP (Construction and Analysis of Distributed Processes – formerly known as CAESAR/ALDEBARAN Development Package) [4] , a toolbox for protocols and distributed systems engineering (http://cadp.inria.fr ). In this toolbox, we develop and maintain the following tools:
-
CAESAR.ADT [41] is a compiler that translates LOTOS abstract data types into C types and C functions. The translation involves pattern-matching compiling techniques and automatic recognition of usual types (integers, enumerations, tuples, etc.), which are implemented optimally.
-
CAESAR [47] , [46] is a compiler that translates LOTOS processes into either C code (for rapid prototyping and testing purposes) or finite graphs (for verification purposes). The translation is done using several intermediate steps, among which the construction of a Petri net extended with typed variables, data handling features, and atomic transitions.
-
OPEN/CAESAR [42] is a generic software environment for developing tools that explore graphs on the fly (for instance, simulation, verification, and test generation tools). Such tools can be developed independently of any particular high level language. In this respect, OPEN/CAESAR plays a central role in CADP by connecting language-oriented tools with model-oriented tools. OPEN/CAESAR consists of a set of 16 code libraries with their programming interfaces, such as:
-
CAESAR_GRAPH, which provides the programming interface for graph exploration,
-
CAESAR_SOLVE, which resolves Boolean equation systems on the fly,
-
CAESAR_STACK, which implements stacks for depth-first search exploration, and
-
CAESAR_TABLE, which handles tables of states, transitions, labels, etc.
A number of on-the-fly analysis tools have been developed within the OPEN/CAESAR environment, among which:
-
BISIMULATOR, which checks bisimulation equivalences and preorders,
-
CUNCTATOR, which performs steady-state simulation of continuous-time Markov chains,
-
DETERMINATOR, which eliminates stochastic nondeterminism in normal, probabilistic, or stochastic systems,
-
DISTRIBUTOR, which generates the graph of reachable states using several machines,
-
EXHIBITOR, which searches for execution sequences matching a given regular expression,
-
PROJECTOR, which computes abstractions of communicating systems,
-
REDUCTOR, which constructs and minimizes the graph of reachable states modulo various equivalence relations,
-
SIMULATOR, XSIMULATOR, and OCIS, which enable interactive simulation, and
-
-
BCG (Binary Coded Graphs) is both a file format for storing very large graphs on disk (using efficient compression techniques) and a software environment for handling this format. BCG also plays a key role in CADP as many tools rely on this format for their inputs/outputs. The BCG environment consists of various libraries with their programming interfaces, and of several tools, such as:
-
BCG_EDIT, which allows the graph layout produced by BCG_DRAW to be modified interactively,
-
BCG_GRAPH, which generates various forms of practically useful graphs,
-
BCG_INFO, which displays various statistical information about a graph,
-
BCG_IO, which performs conversions between BCG and many other graph formats,
-
BCG_LABELS, which hides and/or renames (using regular expressions) the transition labels of a graph,
-
BCG_MIN, which minimizes a graph modulo strong or branching equivalences (and can also deal with probabilistic and stochastic systems),
-
BCG_STEADY, which performs steady-state numerical analysis of (extended) continuous-time Markov chains,
-
BCG_TRANSIENT, which performs transient numerical analysis of (extended) continuous-time Markov chains, and
-
XTL (eXecutable Temporal Language), which is a high level, functional language for programming exploration algorithms on BCG graphs. XTL provides primitives to handle states, transitions, labels, successor and predecessor functions, etc.
For instance, one can define recursive functions on sets of states, which allow evaluation and diagnostic generation fixed point algorithms for usual temporal logics (such as HML [51] , CTL [36] , ACTL [37] , etc.) to be defined in XTL.
-
PBG (Partitioned BCG Graph) is a file format implementing the theoretical concept of Partitioned LTS [45] and providing a unified access to a graph partitioned in fragments distributed over a set of remote machines, possibly located in different countries. The PBG format is supported by several tools, such as:
-
PBG_CP, PBG_MV, and PBG_RM, which facilitate standard operations (copying, moving, and removing) on PBG files, maintaining consistency during these operations,
-
PBG_MERGE (formerly known as BCG_MERGE), which transforms a distributed graph into a monolithic one represented in BCG format,
-
PBG_INFO, which displays various statistical information about a distributed graph.
-
-
The connection between explicit models (such as BCG graphs) and implicit models (explored on the fly) is ensured by OPEN/CAESAR-compliant compilers, e.g.:
-
FSP.OPEN, for models expressed as FSP [57] descriptions,
-
SEQ.OPEN, for models represented as sets of execution traces.
The CADP toolbox also includes TGV (Test Generation based on Verification), which has been developed by the VERIMAG laboratory (Grenoble) and the VERTECS project-team at Inria Rennes – Bretagne-Atlantique.
The CADP tools are well-integrated and can be accessed easily using either the EUCALYPTUS graphical interface or the SVL [43] scripting language. Both EUCALYPTUS and SVL provide users with an easy and uniform access to the CADP tools by performing file format conversions automatically whenever needed and by supplying appropriate command-line options as the tools are invoked.