Gwenaël Delaval
15238eaf8b
Correction of DCS tests
...
- contrenum.ept includes contracts and controllable variable: moved to sdc test directory
- lnum_simple.ept: added "enforce true" contract (at least one objective in the syntax)
- script compile_sdc_run: heptc options to point to local Heptagon library
2017-03-16 11:56:43 +01:00
Gwenaël Delaval
b0d719dcf2
Added SDC tests
2017-03-05 23:55:07 +01:00
Gwenaël Delaval
3a8a3e1ff9
Modification of compile_sdc_run test script
...
Test script compile_sdc_run: handling of different controller
synthesis algorithms.
In a test file, put a special comment :
(* SDC algorithm *)
on a single line, to activate synthesis algorithm "algorithm"
for this test file.
Examples:
(* SDC sB *)
(* SDC sS *)
(* SDC sS:d={P:D} *)
NB: assertions not yet handled.
2017-03-05 23:50:39 +01:00
Gwenaël Delaval
9456322f8c
Added sdc tests in CTestTestfile.cmake
2017-02-06 18:02:31 +01:00
Gwenaël Delaval
cffb195b6d
Compile/sdc/run test script
2017-02-06 18:02:05 +01:00
Gwenaël Delaval
03c64bd519
Updated test modular.ept
2017-02-06 18:01:20 +01:00
Gwenaël Delaval
7bc5e4c115
Examples with contracts and sdc for tests
2017-02-06 15:32:44 +01:00
Gwenaël Delaval
ace152e096
Test script for controller synthesis
...
Added compile_sdc_run script which runs bzreax (compiles and run controller
synthesis tool reax) on heptagon programs.
2017-02-06 15:30:52 +01:00
Gwenaël Delaval
fd4dffef62
Adding tests
2015-09-04 17:33:49 +02:00
Gwenaël Delaval
bcba3569ed
Added tests - types, constants, contracts
...
- ais.ept: tests inclusion of array types into structure types
- ce.ept: constant propagation
- contract.ept: contract constructs
- contract_automaton.ept: contract constructs and automata
2014-02-21 17:49:51 +01:00
Gwenaël Delaval
1a373b84eb
Added some tests
...
Tests from image_filters
Examples of array iterators used
2014-01-15 00:07:29 +01:00
Gwenaël Delaval
3e8af67e07
Added Java 1.4 target (experimental)
...
Experimental : remains some bugs on arrays
2012-11-17 23:29:19 +01:00
Gwenal Delaval
d1b0b196d3
Added test script for Java code generation
...
compile_javac_run script: compiles heptagon program with Java target code,
compile and run the produced Java code.
2012-09-28 13:01:09 +02:00
Gwenal Delaval
a0af340825
Corrected test scripts for object loading
2012-08-01 17:16:38 +02:00
Gwenal Delaval
5890e3599f
Light change in test script
2012-07-23 17:36:04 +02:00
Gwenal Delaval
6011353cec
Added test of options
...
Added script test_option which:
- compile and run without option
- compile with option given as argument, run
- diff on the two outputs, fails if different outputs
config file checks for existence of compiler (fails if not exist)
statics1.ept is a copy of statics.ept ; statics2.ept depends on statics1.ept
instead of statics.ept (so as dependency order => lexical order on file names)
2012-07-19 15:23:40 +02:00
Gwenal Delaval
8b7ad28d6b
Some more main in tests
2012-07-18 16:54:44 +02:00
Gwenal Delaval
87f359a6fd
Added main to several tests
...
Added main to tests
Added dependency statics -> statics2 in scripts
2012-07-17 17:57:04 +02:00
Gwenal Delaval
891b1f3ffd
Added some main in tests
...
Goal: run as many nodes as possible
2012-07-16 18:49:08 +02:00
Gwenal Delaval
40cf503149
Correct test scripts config file
...
Added "mkdir _check_builds" if it does not exist
2012-07-16 18:48:03 +02:00
Gwenal Delaval
295997b866
Config of test scripts
...
Added option -stdlib towards source library
2012-07-16 16:16:59 +02:00
Gwenal Delaval
9c51b91fd3
Correct ctest configuration
...
SET_TEST_PROPERTIES does not work with ctest < 2.8.0
2012-07-16 16:12:16 +02:00
Gwenal Delaval
4c0b1f8431
Corrected ctest configuration file
2012-07-16 11:22:56 +02:00
Gwenaël Delaval
e424667f47
Tests with ctest
...
Configuration files and scripts to perform tests with ctest
- ctest can be run into the test directory or the root
- the script CTestScript.cmake allows ctest to perform the whole
sequence update/configure/build/test and submit the result to
cdash (http://cdash.inria.fr/CDash/index.php?project=Heptagon )
- gen_ctests is used to generate the file test/CTestTestfile.cmake
2012-07-16 01:03:37 +02:00
Gwenaël Delaval
90e391f4df
Modified test t13.ept
...
Modified test t13.ept so that the output is not always "0"
(useful for further comparisons)
2012-07-16 01:00:09 +02:00
Cédric Pasteur
8815a2cd03
Better handling of clocks in memalloc
...
- We can do a better allocation if we take into
account 'when' in extvalues
(test/good/memalloc_clocks.ept shows the
improvement)
- Fixed a bug with memalloc on records: if we
translate:
o = { a with .f = u }
to
o = a; o.f = u
then we cannot share u and o.f
2012-06-20 09:17:13 +02:00
Adrien Guatto
a7e3f4a973
Added test for clocking in automata
2012-01-25 18:13:43 +01:00
Adrien Guatto
e83a4f343b
Tests: memalloc
2012-01-25 10:10:17 +01:00
Léonard Gérard
340d6efd26
remove unwanted file tt.ept
2011-12-12 10:56:47 +01:00
Cédric Pasteur
54cde301f6
C code generation for printf
2011-12-12 10:36:24 +01:00
Cédric Pasteur
2fc0435393
Added simple printf
...
Typing and clocking done
2011-12-12 10:36:24 +01:00
Léonard Gérard
2d9bf2c553
BUG Probleme grave de scheduling, cf [ff].
2011-12-06 15:44:20 +01:00
Léonard Gérard
fe1f02402b
Test to watch sampling of returned stateful exps.
2011-12-06 15:44:20 +01:00
Léonard Gérard
45fbd18fe8
Fix automaton initialization.
2011-11-28 15:12:27 +01:00
Léonard Gérard
05750352f8
pat_ty ne semble pas fiable. Voir t19.ept
2011-11-25 18:55:12 +01:00
Léonard Gérard
38933a789a
small fixes
2011-11-21 09:10:27 +01:00
Léonard Gérard
646cfab82b
Enforce style : no tab, no trailing whitespace.
2011-11-21 03:26:27 +01:00
Léonard Gérard
3bc5824175
Old pip using array slices.
2011-11-21 03:26:26 +01:00
Léonard Gérard
551b19546d
Good stream downscaler v1.
2011-11-21 03:26:26 +01:00
Léonard Gérard
ee3bc4bf6f
downscaled close to finished.
2011-11-18 12:33:37 +01:00
Léonard Gérard
3e64635f95
optimize the control at the end to maximize profit
...
Indeed, some examples showed that memory allocation could trigger a profit-full deadcode removal for the control. See Downscaler.down avec -flatten.
2011-11-03 00:43:36 +01:00
Léonard Gérard
76109b553a
Add -O option to enable optims.
2011-11-02 17:23:23 +01:00
Léonard Gérard
fd40bcefcf
Correct check to compile the java
...
Note that it is really slow compared to something like :
javac -cp ../../../lib/java */*.java
which compiles everything together instead of relaunching the compiler by hand in each subdir.
2011-11-02 16:08:54 +01:00
Léonard Gérard
5593ffdc91
small test found in my computer.
2011-11-02 08:44:58 +01:00
Cédric Pasteur
6ba0e7b2b3
Don't remove local variables in causality
...
A dependency between two variables can be caused
by a local variable
2011-10-26 16:14:02 +02:00
Léonard Gérard
ffe2b23a82
new sheduler by default
2011-10-23 17:42:26 +02:00
Cédric Pasteur
72cac326a8
Fixed normalization of fby
...
We should normalize not only outputs but also
other fbys to generate correct code. The test shows
a program that was compiled incorrectly.
2011-10-19 16:31:40 +02:00
Cédric Pasteur
04b8853a1d
Added a new reinit operator
...
It has type:
reinit: t at r * t -> t at r
It can be used to put a constant value in a
location.
2011-10-17 15:28:04 +02:00
Cédric Pasteur
1aac6f7be4
Fixed bug in unicity check in linear typing
...
Test case included
2011-10-07 11:59:13 +02:00
Cédric Pasteur
9427117fe1
Fixed linear typing of accumulators
2011-09-09 11:29:24 +02:00