Skip to content

About

Chrobak normal form-based Exponential-Linear Integer Arithmetic Solver

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Chrobelias License

Chrobelias - Chrobak normal form-based Exponential Linear Integer Arithmetic Solver

ChrobELIAS is an smt-solver for the existential Exponential-Linear Integer Arithmetic with regular constraints $\langle\mathbb{N}; 0, 1, +, x\mapsto 2^x, \mathscr{R}, =,\leq\rangle$. The solver implements the decision procedure for existential generalised Semёnov arithmetic from Quantifier Elimination for Regular Integer Linear-Exponential Programming, where Chrobak Normal Form of sub-NFAs is used to linearise exponential occurrences of the variables.

Building

To build the project you need the following dependencies to be installed:

  • opam - OCaml package manager.
  • OCaml >5.0.

The dependencies can be installed using the bash commands

# Installing the OCaml package manager
bash -c "sh <(curl -fsSL https://opam.ocaml.org/install.sh)"
# Initializing the package manager. It might ask you to install other common dependencies (e.g. unzip)
opam init --bare
# Installing OCaml 5.3.
opam switch create 5.3.0+flambda --packages=ocaml-variants.5.3.0+options,ocaml-option-flambda --yes

ChrobELIAS is built as follows:

# Clone the Chrobelias repository.
git clone https://github.com/Chrobelias/Chrobelias.git

# Change directory to Chrobelias.
cd Chrobelias

# Initialize submodules, including the smtml library and the benchmarks.
git submodule update --init --recursive

# Installing smtml dependencies.
opam install vendor/smtml --deps-only --with-test --with-dev-setup

# Installing ChrobELIAS dependencies.
opam install . --deps-only --with-test

# Building the project and its tests.
opam exec -- dune build @check @all

The executable binary is available in the _build dir.

Usage

Supports .smt2 files with

./_build/default/bin/chro.exe <path-to-smt2-file>

Simple .smt2 files for ChrobELIAS can be found in benchmarks and examples.

Examples

./_build/default/bin/chro.exe benchmarks/QF_LIA/LoAT/TPDB_ITS_Termination/PastaC1.jar-obl-8.smt2_9.smt2
  • unsat problem $x\in\mathtt{16}\cdot(\mathtt{000}\cup\mathtt{999})^{\ast}\land y\in\mathtt{9}\cdot(\mathtt{9})^{\ast}\land |x| =$ to_int $(y) + 1$
./_build/default/bin/chro.exe examples/lnr-unsat.smt2
  • sat problem $x\in\mathtt{16}\cdot(\mathtt{000}\cup\mathtt{999})^{\ast}\land y\in\mathtt{9}\cdot(\mathtt{9})^{\ast}\land 9|x| =$ to_int $(y)$
./_build/default/bin/chro.exe examples/lnr-sat.smt2

Publications

Benchmarks

For evaluation of ChrobELIAS on several QF_EIA and QF_SLIA benchmarks, see Docker evaluation image available on DockerHub. More information at BENCHES.md.

Benchmark sets can be accessed and cloned as Git submodules using the following command:

# Clone submodules including the benchmarks
git submodule update --init --recursive

Acknowledgements

We use custom SMT-lib v2.6 exp syntax and examples from SwInE by Florian Frohn licensed under LGPL v2.1.

About

Chrobak normal form-based Exponential-Linear Integer Arithmetic Solver

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages