The CHASE (Contract-based Heterogeneous Analysis and Systems Exploration) core library provides the fundamental data structures and algorithms for contract-based design and analysis of cyber-physical systems.
- Contract Representation: Classes for defining system requirements using contracts (assumptions and guarantees).
- System Modeling: Representation of systems, components, and their relationships.
- Logic Support: Support for various logic formulas (Boolean, Temporal, etc.).
- Utilities: Helper functions for graph manipulation, I/O, and simplification.
- Python Bindings: The C++ API is available in Python through the
pychasemodule.
- CMake (version 3.18 or higher)
- C++ Compiler (supporting C++17)
- Python 3 (for bindings)
- pybind11
- Clone the repository.
- Set the installation directory of CHASE:
export CHASE_INSTALL_DIR=/absolute/path/to/install/directory - Create a build directory:
mkdir build cd build - Configure the project:
cmake .. -Dpybind11_DIR=<path_to_pybind>
- Build and install the project:
make make install
The project is compiled in Release mode by default. To compile it in Debug
mode, add -DCMAKE_BUILD_TYPE=Debug to the cmake command. When several
Python interpreters are installed, add -DPython_EXECUTABLE=<path_to_python>
to choose the one the Python bindings are built for.
For the installation of the other CHASE modules, please refer to the installation instructions or to the CHASE website.
The Dockerfile in this repository builds an image containing all the CHASE
modules and the external tools used by the backends (gr1c, slugs, and NuSMV).
From the main directory of the repository:
docker build -t chase .
docker run --rm -it chaseThe container starts in the directory of the CHASE demos.
NuSMV is distributed only for x86_64; on ARM machines (e.g., Apple Silicon),
add --platform linux/amd64 to both commands to have it.
Tests are enabled by default and require Google Test, which is downloaded during the configuration.
- To disable the tests, configure the project with:
cmake -DENABLE_TESTS=OFF ..
- To build and run the tests:
make ctest
This project is released under the 3-Clause BSD License.