2015_01_29_private_release_of_alt_ergo_1_00.md 5.99 KB
Newer Older
Dario Pinto's avatar
Dario Pinto committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109
title=Private Release of Alt-Ergo 1.00
authors=Mohamed Iguernlala
category=Formal Methods

![altergo logo](/blog/assets/img/logo_alt_ergo.png)

After the public release of Alt-Ergo 0.99.1 last December, it's time to announce a new major private version (1.00) of our SMT solver. As usual:

- we freely provide a JavaScript version on Alt-Ergo's website
- we provide a private access to our internal repositories for academia users and our clients.

### Quick Evaluation
A quick comparison between this new version and the previous releases is given below. Timeout is set to 60 seconds. The benchmark is made of 19044 formulas: (a) some of these formulas are known to be invalid, and (b) some of them are out of scope of current SMT solvers. The results are obtained with Alt-Ergo's native input language.

<table class="tableau" style="font-size: 90%; width: 100%;">
<th>public release<br />
<th>public release<br />
<th>private release<br />
<th>Proved Valid</th>
<th>Proved Valid (%)</th>
<td>84,01 %</td>
<td>85,77 %</td>
<td>92,62 %</td>
<th>Required time (seconds)</th>
<th>Average speed<br />
(valid formulas per second)</th>

### Main Novelties of Alt-Ergo 1.00
#### General Improvements
- theories data structures: semantic values (internal theories representation of terms) are now hash-consed. This enables the use of hash-based comparison (instead of structural comparison) when possible
- theories combination: the dispatcher component, that sends literals assumed by the SAT solver to different theories depending on whether these literals are equalities, disequalities or inequalities, has been re-implemented. The new code is much more simpler and enables some optimizations and factorizations that could not be made before
- case-split analysis: we made several improvements in the heuristics of the case-split analysis mechanism over finite domains
- explanations propagation: we improved explanations propagation in congruence closure and linear arithmetic algorithms. This makes the proofs faster thanks to a better back-jumping in the SAT solver part
- linear integer arithmetic: we re-implemented several parts of linear arithmetic and introduced important improvements in the Fourier-Motzkin algorithm to make it run on smaller sub-problems and avoid some useless executions. These optimizations allowed a significant speed up on our internal benchmarks
- data structures: we optimized hash-consing and some functions in the "formula" and "literal" modules
- SAT solving: we made a lot of improvements in the default SAT-solver and in the SatML plugin. In particular, the solvers now send lists of facts (literals) to "the decision procedure part" instead of sending them one by one. This avoids intermediate calls to some "expensive" algorithms, such as Fourier-Motzkin
- Matching: we extended the E-matching algorithm to also perform matching modulo the theory of records. In addition, we simplified matching heuristics and optimized the E-matching process to avoid computing the same instances several times
- Memory management: thanks to the ocp-memprof tool (http://memprof.typerex.org/), we identified some parts of Alt-Ergo that needed some improvements in order to avoid useless memory allocations, and thus unburden the OCaml garbage collector
- the function that retrieves the used axioms and predicates (when option 'save-used-context' is activated) has been improved

#### Bug Fixes

- 6 in the "inequalities" module of linear arithmetic
- 4 in the "formula" module
- 3 in the "ty" module used for types representation and manipulation
- 2 in the "theories front-end" module that interacts with the SAT solvers
- 1 in the "congruence closure" algorithm
- 1 in "existential quantifiers elimination" module
- 1 in the "type-checker"
- 1 in the "AC theory" of associative and commutative function symbols
- 1 in the "union-find" module

#### New OCamlPro Plugins

- profiling plugin: when activated, this plugin records and prints some information about the current execution of Alt-Ergo every 'x' seconds: In particular, one can observe a module being activated, a function being called, the amount of time spent in every module/function, the current decision/instantiation level, the number of decisions/instantiations that have been made so far, the number of case-splits, of boolean/theory conflicts, of assumptions in the decision procedure, of generated instances per axiom, ….
- fm-simplex plugin: when activated, this plugin is used instead of the Fourier-Motzkin method to infer bounds for linear integer arithmetic affine forms (which are used in the case-split analysis process). This module uses the Simplex algorithm to simulate particular runs of Fourier-Motzkin, which makes it scale better on linear integer arithmetic problems containing a lot of inequalities

#### New Options
- version-info: prints some information about this version of Alt-Ergo (release and compilation dates, release commit ID)

- no-theory: deactivate theory reasoning. In this case, only the SAT-solver and the matching parts are working

- inequalities-plugin: specify a plugin to use, instead of the "default" Fourier-Motzkin algorithm, to handle inequalities of linear arithmetic

- tighten-vars: when this option is set, the Fm-Simplex plugin will try to infer bounds for integer variables as well. Note that this option may be very expensive

- profiling-plugin: specify a profiling plugin to use to monitor an execution of Alt-Ergo

- profiling <freq>: makes the profiling module prints its information every <freq> seconds

- no-tcp: deactivate constraints propagation modulo theories

#### Removed Capabilities

- the pruning module used in the frontend is now removed
- the SMT and SMT2 front-ends are removed. We plan to implement a new front-end for SMT2 in upcoming releases