127 Commits (master)

Author SHA1 Message Date
Gwenaël Delaval 239e23211f Remove test t20.ept 6 years ago
Gwenaël Delaval a304a9003b Merge branch 'fix_boolop' into 'master'
Fix miscompilation of Pervasives.xor to C

See merge request gdelaval/heptagon!1
6 years ago
Gwenaël Delaval 89eddd77c4 Add test for xor operator 6 years ago
Adrien Guatto 0435a2420d Fix miscompilation of Pervasives.xor to C 6 years ago
Gwenaël Delaval db5524df3f Tests addition 7 years ago
Gwenaël Delaval faf707db4a Added test for bug [#14076] (initialization analysis)
Bug [#14076]:
node sum(x:int) returns (y:int) let y = x + (0 fby y); tel
node main(x : int) returns (y : int)
let
y = 0 -> sum(pre x);
tel

is accepted whereas the node "sum" will memorize an absent value (pre x)
and use it at next instant.

Removed auto2.ept (duplicate of auto.ept)
7 years ago
Gwenaël Delaval 7f9b72755a Correction of compile_sdc_run test script
Pointing HETPLIB to ../../lib for correct execution of heptc
and ctrl2ept with local Heptagon library.
7 years ago
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
7 years ago
Gwenaël Delaval b0d719dcf2 Added SDC tests 7 years ago
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.
7 years ago
Gwenaël Delaval 9456322f8c Added sdc tests in CTestTestfile.cmake 7 years ago
Gwenaël Delaval cffb195b6d Compile/sdc/run test script 7 years ago
Gwenaël Delaval 03c64bd519 Updated test modular.ept 7 years ago
Gwenaël Delaval 7bc5e4c115 Examples with contracts and sdc for tests 7 years ago
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.
7 years ago
Gwenaël Delaval fd4dffef62 Adding tests 9 years ago
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
10 years ago
Gwenaël Delaval 1a373b84eb Added some tests
Tests from image_filters
Examples of array iterators used
10 years ago
Gwenaël Delaval 3e8af67e07 Added Java 1.4 target (experimental)
Experimental : remains some bugs on arrays
12 years ago
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.
12 years ago
Gwenal Delaval a0af340825 Corrected test scripts for object loading 12 years ago
Gwenal Delaval 5890e3599f Light change in test script 12 years ago
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)
12 years ago
Gwenal Delaval 8b7ad28d6b Some more main in tests 12 years ago
Gwenal Delaval 87f359a6fd Added main to several tests
Added main to tests
Added dependency statics -> statics2 in scripts
12 years ago
Gwenal Delaval 891b1f3ffd Added some main in tests
Goal: run as many nodes as possible
12 years ago
Gwenal Delaval 40cf503149 Correct test scripts config file
Added "mkdir _check_builds" if it does not exist
12 years ago
Gwenal Delaval 295997b866 Config of test scripts
Added option -stdlib towards source library
12 years ago
Gwenal Delaval 9c51b91fd3 Correct ctest configuration
SET_TEST_PROPERTIES does not work with ctest < 2.8.0
12 years ago
Gwenal Delaval 4c0b1f8431 Corrected ctest configuration file 12 years ago
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
12 years ago
Gwenaël Delaval 90e391f4df Modified test t13.ept
Modified test t13.ept so that the output is not always "0"
(useful for further comparisons)
12 years ago
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
12 years ago
Adrien Guatto a7e3f4a973 Added test for clocking in automata 12 years ago
Adrien Guatto e83a4f343b Tests: memalloc 12 years ago
Léonard Gérard 340d6efd26 remove unwanted file tt.ept 13 years ago
Cédric Pasteur 54cde301f6 C code generation for printf 13 years ago
Cédric Pasteur 2fc0435393 Added simple printf
Typing and clocking done
13 years ago
Léonard Gérard 2d9bf2c553 BUG Probleme grave de scheduling, cf [ff]. 13 years ago
Léonard Gérard fe1f02402b Test to watch sampling of returned stateful exps. 13 years ago
Léonard Gérard 45fbd18fe8 Fix automaton initialization. 13 years ago
Léonard Gérard 05750352f8 pat_ty ne semble pas fiable. Voir t19.ept 13 years ago
Léonard Gérard 38933a789a small fixes 13 years ago
Léonard Gérard 646cfab82b Enforce style : no tab, no trailing whitespace. 13 years ago
Léonard Gérard 3bc5824175 Old pip using array slices. 13 years ago
Léonard Gérard 551b19546d Good stream downscaler v1. 13 years ago
Léonard Gérard ee3bc4bf6f downscaled close to finished. 13 years ago
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.
13 years ago
Léonard Gérard 76109b553a Add -O option to enable optims. 13 years ago
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.
13 years ago