forked from OCamlPro/alt-ergo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGES
622 lines (424 loc) · 21.2 KB
/
CHANGES
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
dev version
===========
version 2.3.2, March 23, 2020
================================
* Minor release:
- Fix preludes installation
- Fix altgr-ergo building rule
- Fix issue with dynlink of parsers
version 2.3.1, February 18, 2020
================================
* Minor release:
- Fix issue #248. Avoid double rounding int intervals
version 2.3.0, February 11, 2019
================================
* General improvements:
- Switched build system to use dune
- use flambda optimization options if available
* Frontend:
- native alt-ergo format now supports algebraic datatypes
- SMTLIB-2 ADT logic is now supported as well
- extended/better support for if-then-else and let-bindings
mixing terms and formulas
- accept unknown file formats as long as a parser
is specified on the command line, or the parser associated with
the default language (that can be modified with option
-default-lang) is able to parse it
- '-save'/'-replay-used-context' options now work with multiple
files to accomodate multiple goals in a single file
- '-proof' option becomes '-unsat-core'. Now, it shows the names of
the assertions / axioms / definitions used in the proof instead of
the formulas themselves
- '-unsat-mode' changes output to SAT/UNSAT/Unknown rather than
Valid/Invalid/I don't know. This option is set automatically is
the PSMT2-frontend library is used
* Reasoners:
- added support for Algebraic Datatypes
- improve handling of let and if-then-else bindings
- there are now 4 core solvers (default is cdcl-tableaux):
* cdcl : CDCL solver
* cdcl-tableaux : CDCL extended with Tableau boolean model simplification
* tableaux : Fonctional SAT solver with Tableau boolean model simplification
* tableaux-cdcl : Same as Tableaux, but using a CDCL solver for boolean constraints
* Instantiation:
- Triggers computation is done lazily in the backend
- Triggers are periodically recomputed with different heuristics
* Data structures:
- Term, Literal and Formula modules are now merged in a new Expr
module. This enables arbitrary mixing of terms and formulas as done
in SMT-LIB2 language
- A lot of improvements in Expr module: more simplifications for
quantified formulas, better elimination of let-in construct,
additional constructs in the backend (iff, If-Then-Else, ...),
code reviewing and performances improvements ...
version 2.2.0, April 21, 2018
================================
* Frontend:
- new experimental support for the SMT2 standard, and for PSMT2: a
conservative extension of SMT2 with prenex polymorphism
- Alt-Ergo's library is now compiled (with make) and installed (with
make install). A small example on how to use it is provided in
examples/lib_usage.ml
- extension of Alt-Ergo's native language to support "xor" construct,
"Let x = form in form", and "If form then term/form else
term/form". Previously, only "Let x = term in term/form", and "If
term : Bool then term/form else term/form" were supported
* Instantiation:
- add a new option "-max-multi-triggers-size <n>" to ignore
multi-triggers containing "a lot" of terms. Default value for n = 4
- small improvement in triggers inference
* Reasoners:
- extending the backend to handle "If-Then-Else" on terms
- improvements and refactoring in the CDCL SAT solver
- soundness bugfix in UF module
version 2.1.0, March 14, 2018
================================
* SAT-solving:
- important improvements in the CDCL SAT engine, which is now the
default SAT-solver. Proofs are models generation are currently not
available with CDCL. The old SAT-solver can be activated with option
"-sat-solver Tableaux"
* Instantiation:
- Add a very weak form of matching modulo arithmetic. This can be
disabled with option "-no-arith-matching"
- [Formula.mk_forall/exists] remove (big) triggers that are subsumed by smaller ones
- Simplify quantified formulas when relevant instances/skolems can be deduced
from the formulas (eg. exists x : int. x = 1 and P(x) ~~> P(1),
and forall x : int. x <> 1 or P(x) ~~> P(1))
* Frontend:
- improve handling of multiple goals per file. Add the ability to
set a timelimit per goal in this case with option
"-timelimit-per-goal"
- add the ability to dynamically load new parsers with option
"-parser".
version 2.0.0, November 14, 2017
================================
* integration of floating-point arithmetic reasoning: this is done via
the support of the rounding operator as done in the Gappa tool. FPA
reasoning can be enabled by calling Alt-Ergo as follows:
alt-ergo -use-fpa -prelude fpa-theory-2017-01-04-16h00.why file.why
where fpa-theory-2017-01-04-16h00.why is a prelude distributed with
Alt-Ergo. More details about the integration are given in this
paper: https://hal.inria.fr/hal-01522770, and dditional benchmarks
can be found here:
https://gitlab.com/OCamlPro-Iguernlala/Three-Tier-FPA-Benchs
* a new lightweight reasoning step before SAT solving that enables a
kind of backward reasoning/goal unfolding (can be disabled with
option -no-backward)
* integration of a simple cache mechanism for unit facts in the SAT
(learnt clauses, assumed facts, instances, theory deductions, ...)
to improve BCP (can be disabled with option -no-sat-learning)
* the code of the profiler is now integrated in Alt-Ergo and is
statically linked
* deep code refactoring. In particular, one can easily build an
Alt-Ergo library or define/register a new parser
* add the ability to parse preludes with -prelude <prelude_1.why> ...
-prelude <prelude_n.why>
* add the ability to disable weak pointers in hash-consing module
using option -disable-weaks (useful for more determinism)
* GUI: goals are now shown in positive form
* bugfix related to -timelimit option (use of ITIMER_VIRTUAL instead
of ITIMER_REAL except for the GUI)
* bugfix in UF related to normalization of terms in presence of AC
symbols
* new options -no-decisions and -no-fm to disable decisions in the SAT
and the Fourier-Motzkin algorithm, respectively
* new improvements and heuristics in the SAT, terms, formulas,
congruence closure, profiler, ...
* update licensing: most files are now licensed under the terms of the
Apache license v2. Some recent OCamlPro additions are licensed under
the terms of the OCamlPro Non-Commercial Purpose License v1
version 1.30, November 21, 2016
==============================
* experimental support for models generation (for more details, see
http://www.ocamlpro.com/2016/11/21/release-of-alt-ergo-1-30-with-experimental-support-for-models-generation/).
* simplify formulas of the form "forall x : t. x <> t or F" when t
does not contain x. The only relevant instance in this case is
"(x <> t or F) {x |-> t}". In a similar way, this allows to simplify
formulas of the form "exists x : t. x = t and F" to "F {x |-> t}".
* integration of general simplex in IntervalCalculus based on
ocplib-simplex.
* important parts of Intervals and IntervalCalculus have been
rewritten and improved.
* improve tightening of intervals for non-linear variables, and of the
CP-like loop.
* extend Fourier-Motzkin to deduce more bounds based on relational
dependencies of the form "c * x <= (Sum_i d_i * y_i) + e"
* various improvements in the default SAT solver, Term, Formula,
IntervalCalculus, Matching, Numbers, case-split, ...
* various (soundness and/or completeness) bug fixes in Uf, Intervals,
IntervalCalculus, Theory, Formula, type-checking, Triggers,
fm-simplex and satML, ...
* new option "-inst-after-bj" that forces an instantiation round after
each backtracking/backjumping in the default SAT solver.
* new option "-no-backjumping" that disables backjumping in the
default SAT solver (for debugging).
* new option "-fm-cross-limit" that controls the number of
intermediate inequalities produces by Fourier-Motzking. Default
value is 10,000.
* new option "-no-ac" to be able to deactivate the AC theory
* new option "-no-NLA" that disables non-linear arithmetic reasoning
(*, /, %). Non-linear multiplication remains AC.
version 1.20, February 09, 2016
==============================
* default value of option -age-bound increased from 10 to 50
* bugfix when using option --all-models
* improvements in Matching: a set of instances may cause more than one
conflict. It's better to detect the more precise one
* remove case-split limit for the theory of arrays
* bugfix in the profiler plugin
* improvements in the default SAT solver
version 1.10, October 19, 2015
==============================
* Improvements and bug fixes in the satML plugin
* Improvement of the solver of linear arithmetic in presence of
non-linear arithmetic parts in the equations to be solved
* Many improvements in case-split analysis. In particular, this is now
performed by explicit calls from the SAT solver. Its behavior can be
controlled with the new option "-case-split-policy". Possible values
for this option are: "after-theory-assume" (default),
"before-matching", and "after-matching".
* Alt-Ergo can now be called on zipped files (eg. <file>.mlw.zip or
<file>.why.zip). Decompression is done on the fly with camlzip.
* Soundness bug fixes in arithmetic, interval calculus, union-find,
...
* Code reviewing/refactoring/rewriting/optimization in many parts of
the solver
version 1.00, January 29, 2015
==============================
* 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 simpler and enables new optimizations and
factorizations
** 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
avoiding some redundant 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 to the default
SAT-solver and to the SatML plugin. In particular, the decision
procedure part now receives facts (literals) in bulk from the
solvers, rather than individually, trimming the costs of
intermediate calls to theories reasoners, 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 set) 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 'n'
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. In practice, the new algorithm
scales better on linear integer arithmetic problems containing
lots 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 used
-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 <delay>: makes the profiling module prints its information
every <delay> seconds
-no-tcp: deactivate constraints propagation modulo theories
* Removed Capabilities:
** the pruning module used in the frontend is not available anymore
** the SMT and SMT2 front-ends have been removed. We plan to implement a
new front-end for SMT2 in upcoming releases
version 0.99.1, December 30, 2014
=================================
o the "SAT solving" part can now be delegated to an external plugin;
o new experimental SAT solver based on mini-SAT, provided as a
plugin. This solver is, in general, more efficient on ground
problems;
o heuristics simplification in the default SAT solver and in the
matching (instantiation) module;
o re-implementation of internal literals representation;
o improvement of theories combination architecture;
o rewriting some parts of the formulas module;
o bugfixes in records and numbers modules;
o new option "-no-Ematching" to perform matching without equality
reasoning (i.e. without considering "equivalence classes"). This
option is very useful for benchmarks coming from Atelier-B;
o two new experimental options: "-save-used-context" and
"-replay-used-context". When the goal is proved valid, the first option
allows to save the names of useful axioms into a ".used" file. The
second one is used to replay the proof using only the axioms listed
in the corresponding ".used" file. Note that the replay may fail
because of the absence of necessary ground terms generated by
useless axioms (that are not included in .used file) during the
initial run.
version 0.95.2, September 20th, 2013
====================================
o Alt-Ergo is now maintained and distributed by OCamlPro, while
academic research is conducted in partnership with the VALS team
(LRI),
o source code is reorganized into sub-directories,
o quantifiers instantiation heuristics are simplified,
o bug-fixes in matching, nums, records, sums,
o improvement of the GUI when opening big files.
version 0.95.1, March 05th, 2013
=================================
o bug fixes (existantial elimination, Euclidean division)
o minor enhancement (transformation of boolean equalities into equivalences)
o minor enhancement (sort axioms/definitions instances according to their size)
version 0.95, January 11th, 2013
=================================
+ Main changes in the solver:
-----------------------------
o new combination method for Shostak solvers
o improvement of non-linear multiplication distribution over addition
o input language extension: polymorphic declaration are now allowed (logic x: 'a)
o input language extension: the types of terms can now be forced in a formula using the construct <term> : <type> (see man for an example)
o input language modification: a label should be a string. The construct <label> : <term> is replaced by "<label>" : <term>
o new keywords in the syntax: inversion, check, cut and include
o experimental options for theories models generation:
-model option: model on labeled terms
-complete-model option: complete model
o -timelimit n option: set the time limit to n seconds (not supported on Windows)
o bug fixes
+ Main changes in the graphical interface:
------------------------------------------
o the number of instances for each axiom are now shown on the right of the GUI
o the number of instances of each axiom can be limited by the user
o the modifications made in the GUI can now be saved in a session file <f>.agr
o session files can be replayed with -replay option
o models can be displayed in the GUI
o unsat-cores (-proof option) can be used to simplify the context
version 0.94, December 2nd, 2011
=================================
o the theory of records replaces the theory of pairs
o bug fixes
(intervals, term data-structure, stack-overflows, matching,
existentials, distincts, CC, GUI)
o improvements
(SMT-Lib2 front-end, intervals, case-splits,
triggers, lets)
o multiset ordering for AC(X)
o manual lemma instantiation in the GUI
version 0.93.1, May 9th, 2011
=================================
o bug fixes (distinct, let-in, explanations)
version 0.93, April 12th, 2011
=================================
o -steps <i> stops Alt-Ergo after a given number of steps
o -max-split option to limit the number of case-splits
o new polymorphic theory of arrays: ('a, 'b) farray
o explanations (-proof option)
o Built-in support for enumeration types
o graphical frontend (altgr-ergo), needs to be compiled with make
gui && make install-gui
o new predicate distinct (a,b,c, ...) to express that constants
a,b,c,... are pairwise distinct
o new constructs: let x = <term> in <term>
let x = <term> in <formula>
o partial support for / (division) operator
o bug fixes
version 0.92.2, October 22nd, 2010
=====================================
o New built-in syntax for the theory of arrays
o Fixes a bug in the arithmetic module
o Allows folding and unfolding of predicate definitions
o Fixes other bugs
version 0.91, May 19th, 2010
===============================
o experimental support for the theory of functional polymorphic
arrays with the -arrays option
o the -pairs option should now be used for the built-in support of
polymorphic pairs
o support the equality part of the omega test with the -omega option
o partial support for non-linear arithmetics
o support case split on integer variables
o new support for Euclidean division and modulo operators
o new environment variable ERGOLIB to specify the library directory
version 0.9, July 17th, 2009
===============================
o support AC symbols
o support for C-like hexadecimal floating-point constants
o handle the division operator
version 0.8, July 21st, 2008
===============================
o pretty output with the -color option
o the SAT solver part is now equipped with a backjumping mechanism
o now handles the flet and let SMT-lib constructs
o goal directed strategy
o pruning strategy (-select option)
o incremental strategy for instantiation of lemmas
o fail if a parameter is bound twice in a definition
o treatment of existential formulas have been slightly improved
o decision procedure for polymorphic pairs
o decision procedure for bit-vectors
o combination scheme for several decision procedures
version 0.7.3, March 5th, 2008
===============================
o renamings in the interfaces
o provides an API for alt-ergo (make api or make api.byte)
o handles the modulo operator (%) as an uninterpreted symbol
o allow labels on any term, not only on predicates
version 0.7, October 11th, 2007
===============================
o trigger construction has been improved
o preliminary implementation of combination scheme (Arithmetic+pairs)
o the SAT loop has been improved
version 0.6, February 1st, 2007
===============================
o new CC(X) architecture (it can know directly handle relation symbols)
o fully handles the polymorphism of the logic
version 0.5, October 12th, 2006
===============================
o first (beta) release
Local Variables:
mode: text
End: