AbSolute solver

AbSolute is a constraint solver based on abstract domains from the theory of abstract interpretation.
It implements the solving method presented in: "A Constraint Solver Based on Abstract Domains".

AbSolute is still in developpement, and have not been fully tested.
Feel free to fill an issue or contact any member of the developpement team if you want to report a bug or suggest a feature.

Contributors: Marie Pelleau, Ghiles Ziat, Alexandre Marechal, Pierre Talbot, Antoine Miné, Charlotte Truchet.
Supported by ANR CoVerif.

Quick introductory example

In AbSolute, you first declare your variables in the init section, and then the constraints on these variables in the constraints section:

/* simple example with sinus and cosinus */
  real x = [-10;10];
  real y = [-5;5];

  y < (sin x) + 1;
  y > (cos x) - 1;

This model is saved into a file that can be fed into the AbSolute solver. You can checkout our Emacs mode for a more convenient use1.
We also have nice graphics showing how the problem was solved:

You can see other examples of problems in the problems directory.
Please also consult our documentation for more information.

Getting Started

The installation process should be easy, if you have any problem, see the Section Troubleshooting, fill an issue or email us directly.


The following is a list of the dependencies to build AbSolute; note that we explain in the next section how to install OCaml and Apron if you do not have them already.

  • An ANSI C compiler

  • OCaml >= 4.03 : http://ocaml.org/

  • Apron: http://apron.cri.ensmp.fr/library/


We install OCaml and AbSolute through the OCaml package manager opam.
First, install opam with your package manager and initialize it:

apt-get install opam # on Debian, see opam documentation for other distributions.
opam init --comp 4.06.1 # Initialize ~/.opam with a freshly compiled OCaml 4.06.1

The next step is to download and build AbSolute.
If you intent to modify the source code and possibly contribute to the project, jump to the "Developpers" section.
Otherwise, you can install it from opam:

opam repo add absolute https://raw.githubusercontent.com/mpelleau/AbSolute/master
opam install absolute
# Retrieve a model file
wget https://raw.githubusercontent.com/mpelleau/AbSolute/master/problems/booth.abs
# Test the file with your fresh installation
absolute booth.abs
# Display solver options
absolute --help


Install the apron library dependency, and then clone and build AbSolute from the Github repository:

opam install dune
opam install apron
git clone https://github.com/mpelleau/AbSolute
cd AbSolute

Then, verify everything is working well on an example:

./absolute problems/booth.abs


  1. For some reason, having both packages libapron and libapron-dev installed will make the building of AbSolute fail.
    Therefore, the easiest way to deal with apron is to install it with and only with opam : https://opam.ocaml.org/packages/

Citing AbSolute:

  author    = {Marie Pelleau and
               Antoine Min{\'{e}} and
               Charlotte Truchet and
               Fr{\'{e}}d{\'{e}}ric Benhamou},
  title     = {A Constraint Solver Based on Abstract Domains},
  booktitle = {Verification, Model Checking, and Abstract Interpretation, 14th International
               Conference, {VMCAI} 2013, Rome, Italy, January 20-22, 2013. Proceedings},
  pages     = {434--454},
  year      = {2013},
  crossref  = {DBLP:conf/vmcai/2013},
  url       = {https://doi.org/10.1007/978-3-642-35873-9\_26},
  doi       = {10.1007/978-3-642-35873-9\_26},
  timestamp = {Wed, 24 May 2017 08:30:31 +0200},
  biburl    = {https://dblp.org/rec/bib/conf/vmcai/PelleauMTB13},
  bibsource = {dblp computer science bibliography, https://dblp.org}
1. A simple emacs mode for editing AbSolute problem description files:

You can simply add the following to your .emacs:

(require 'generic-x) ;; you will need this

(define-generic-mode 'absolute-mode          ;; name of the mode
  '("/*" "*/")                               ;; comments start with '/*' and end with '*/'
  '("init" "constraints" "solutions"
    "real" "int")                            ;; keywords
     . 'font-lock-function-name-face))       ;; function names
  '("\\.abs$")                               ;; files for which to activate this mode
  nil                                        ;; other actions to perform
  "A mode for AbSolute files"                ;; doc string
21 Oct 2020
>= "1.0.2"
>= "4.08"
>= "1.1"
Reverse Dependencies