Git Product home page Git Product logo

electrod's Introduction

electrod - Formal analysis for the Electrod formal specification language

Electrod is a model finder that takes as input a model expressed in a mixture of relational first-order logic (RFOL) over bounded domains and linear temporal logic (LTL) over an unbounded time horizon. Then it compiles the model to a problem for a solver (currently the NuSMV and nuXmv model-checkers). Electrod is mainly meant to be used as a backend for the Alloy Analyzer 6.

Github homepage

Installation instructions

Installation has essentially been tested on GNU/Linux and Mac OS X, but it can be built for Windows.

The easiest way to install Electrod is to rely on Opam, the OCaml package manager.

Once Opam is installed and initialized, clone this directory, cd into it and issue the following commands:

make setup
make release

which produces a self-contained executable electrod.exe in the directory.

Developement instructions

To get a working developement setup, issue the following command rather than those above:

make dev-setup

This will create an Opam local switch that provides you with a development environment known to be working. As usual with Opam, you must always ensure that the local switch is taken into account when developing (e.g. by typing eval $(opam env)).

To build Electrod in development mode, just type make.

To work in development mode, using make watch is suggested: it watches the source and, each time it's updated, checks it quickly and reformats it using ocamlformat.

External dependencies

As of now, Electrod relies on NuSMV (2.6+) or nuXmv (2.0+), so you must at least install one of them.

Running

Electrod is primarily aimed at being called by external tools such as the Electrum Analyzer.

However, it can also be run as a standalone tool by calling the electrod program.
Type electrod --help to get some help on options.

Copyright and license

(C) 2016-2024 ONERA

electrod is distributed under the terms of the Mozilla Public License v2.0.

See LICENSE.md for more information.

electrod's People

Contributors

fpottier avatar grayswandyr avatar jbrubru avatar xoolive avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

electrod's Issues

Handle termination of nuXmv/NuSMV if electrod is itself terminated

When electrod is killed from Java, we should kill the underlying solver if it's still running. Until now, we relied upon process sessions but this solution isn't portable. Consider other options and implement one of them:

  • do nothing
  • remain as now
  • remain as now and/or report solver PID to Java
  • use another, more portable and robust, approach to kill solver

Electrod fails to build

When installing electrod with opam version 2.0.5 and compiler version 4.07.0 electrod fails to build with the following error:

[ERROR] The compilation of electrod failed at "/Users/amyers/.opam/opam-init/hooks/sandbox.sh build dune build -p electrod -j 7".

#=== ERROR while compiling electrod.0.2.1 =====================================#
# context     2.0.5 | macos/x86_64 | ocaml-base-compiler.4.07.0 | https://opam.ocaml.org#fe7287db
# path        ~/.opam/4.07.0/.opam-switch/build/electrod.0.2.1
# command     ~/.opam/opam-init/hooks/sandbox.sh build dune build -p electrod -j 7
# exit-code   1
# env-file    ~/.opam/log/electrod-93799-c706d3.env
# output-file ~/.opam/log/electrod-93799-c706d3.out
### output ###
#       ocamlc src/.libelectrod.objs/byte/libelectrod__Fmtc.{cmi,cmo,cmt} (exit 2)
# (cd _build/default && /Users/amyers/.opam/4.07.0/bin/ocamlc.opt -w -40 -g -bin-annot -I src/.libelectrod.objs/byte -I /Users/amyers/.opam/4.07.0/lib/base -I /Users/amyers/.opam/4.07.0/lib/base/caml -I /Users/amyers/.opam/4.07.0/lib/base/shadow_stdlib -I /Users/amyers/.opam/4.07.0/lib/bytes -I /Users/amyers/.opam/4.07.0/lib/containers -I /Users/amyers/.opam/4.07.0/lib/containers/data -I /Users[...]
# File "src/Fmtc.ml", line 22, characters 4-8:
# Error: The type of this expression, '_weak1 t,
#        contains type variables that cannot be generalized



Work on Windows 10

Check and possibly fix working on Windows 10.

As we do not own any machine running W10, any help will be appreciated.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.