1177 Commits (master)
 

Author SHA1 Message Date
Gwenaël Delaval d2dfed5019 Correction of shift/reduce conflict in syntax
Correction: in a contract, the list of objectives cannot be empty.
7 years ago
Gwenaël Delaval 0515cf4f80 Handling of implication operator in Ctrln back-end 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 6c3caec234 Bug correction in ctrl2ept: no systematic conversion from int to float 7 years ago
Gwenaël Delaval 2f18926bf4 Clean up documentation comments 7 years ago
Gwenaël Delaval 2e107cd872 Suppress "c_" prefix in Ctrl-Nbac generation 7 years ago
Gwenaël Delaval 5b215f832b Version 1.03.02 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 7392680a5f Heptagon webpage update
Publications page: HAL Heptagon collection
8 years ago
Gwenaël Delaval a0e97b82ea CtrlNbac backend: systematic sink state, outputs as local variables
Changes in CtrlNbac back-end :
- systematic sink state, only in ctrln code
- sink state "ok" removed (useless as was coded)
- no sink state in minils code
- outputs in ctrln are local variables, no longer state variables
8 years ago
Gwenaël Delaval 69b8cc5a18 Added operator (=>) in Pervasives module
Operator (=>) for implication added in Pervasives module.

"a => b" is translated into "not a or b" at code generation.
8 years ago
Gwenaël Delaval 5e277fcc8a Version 1.03.01 8 years ago
Gwenaël Delaval f34031dbda Correct link for webpage 8 years ago
Gwenaël Delaval 83905f9039 Remove traces and warnings 8 years ago
Gwenaël Delaval d8d24ffd95 Handle modularity/several controllers by module
* Several controllers by module : added option "-m <Module>" in ctrl2ept

Generate controllers for each node of one module in <module>_controller.ept

* Types of <Module> no longer moved to <Module>_controller

* Added "_types" suffix for type dependencies for C target
8 years ago
Gwenaël Delaval 05150f2078 [ctrl-n] Suppression of type declarations in Heptagon controller
TODO : move type declarations in separated module.
8 years ago
Timothy Bourke 0b7eba8458 Add error for non-stateful decls. in pervasives
Attempts to compile a pervasives.epi containing functions with multiple
outputs or nodes now fail with an informative error message.

* The following files demonstrate the problem:

  pervasives.epi:
    type bool = true | false
    external val node test(bool;bool) returns bool

  broken.ept:
    node broken() returns (y : bool)
    let
      y = test(false, false);
    tel

  Running:
    heptc -nopervasives pervasives.epi
    heptc -stdlib . -target c broken.ept

  Fails with:

    ---------
    Internal compiler error
    Passe : Static evaluation failed of the pervasive operator test
    ----------
    Fatal error: exception Misc.Assert_false

* A different error occurs for nodes that return multiple outputs:

  pervasives.epi:
    type bool = true | false
    external val node test(bool;bool) returns (bool;bool)

  broken.ept:
    node broken() returns (y : bool)
    var l1 : bool;
    let
      (y,l1) = test(false, false);
    tel

  Running:
    heptc -nopervasives pervasives.epi
    heptc -stdlib . broken.ept

  Gives:
    Inconsistent clock annotation for exp test(false, false).
    File "broken.ept", line 4, characters 11-29:
    >  (y,l1) = test(false, false);
    >           ^^^^^^^^^^^^^^^^^^
    Clock Clash: this expression has clock 'a3,
    but is expected to have clock ('a4 * 'a5).

  The name "test" is parsed as an Eextvalue (rather than an Eapp), and there
  is an implicit assumption in compiler/minils/analysis/clocking.ml that such
  values have a simple clock.
8 years ago
Nicolas Berthier 755b570a96 Correct typing of numericals when translating Controllable-Nbac nodes
Without this change one could end up with inconsistent numerical types
when expressions like 1 + xx /. 3.0 >= 0 (with xx being a float), that
is correctly handled in ReaTK's frontend, are translated into the
heptagon's internal representation.
8 years ago
Gwenaël Delaval 20d9ff7184 Updated heptagon manual for web 8 years ago
Gwenaël Delaval 73a3762895 Manual: control structures (present, reset) 8 years ago
Gwenaël Delaval 4f0ef44ebd Version 1.03.00 8 years ago
Gwenaël Delaval e9540a2159 hepts: enum types & alias
The graphical simulator hepts now support type aliasing.
8 years ago
Gwenaël Delaval 2aed0f6537 Deadcode removal improvement
Deadcode removal in Obc :
- suppression of switch unused cases :

switch(true) {
  case false: ...
}

- activation with -deadcode option
8 years ago
Gwenaël Delaval 64b8c0592a Pretty-printing class parameters in obc 8 years ago
Gwenaël Delaval 19911506de Removal of warnings 8 years ago
Gwenaël Delaval e8ec3e012c Merge branch 'ctrl-n' into decade 9 years ago
Gwenaël Delaval 4552f62872 Version 1.02.00 9 years ago
Gwenaël Delaval 2c1717e99f Removal of -custom option for compilation
-custom option trigger bugs with opam
9 years ago
Gwenaël Delaval 2777753b7e Cleanup : removal of useless files 9 years ago
Nicolas Berthier 65908e7ca3 New configure script options to enable/disable byte/native targets 9 years ago
Nicolas Berthier fb6755efb2 Bugfix in ctrl2ept: do not reset symbol table after loading type declarations 9 years ago
Nicolas Berthier 14a7b67a70 New option to force abstraction of infinite-domain state variables in ctrln export
Also add an option to silence related warnings
9 years ago
Nicolas Berthier 2d874f8070 New option to silence warnings about untranslatable constructs 9 years ago
Nicolas Berthier 74b94c9718 Fix handling of nodes without actual controllers by ctrl2ept
These changes allow to handle the case where contracts are only used
for verification purposes, in which case the functions generated by
ReaX have no outputs and are not functions stricto sensu.  Indeed, in
this case the new controller module still needs to be declared and
compiled as we may have re-qualified types during the generation of
the Controllable-Nbac code: we moved all types declared in the
original module into the controller module to break cyclic module
dependencies that would otherwise be introduced if the controller is
expressed using data of such types.
9 years ago
Gwenaël Delaval bb324eee17 Update of Makefile-distrib for heptreax manual inclusion 9 years ago
Gwenaël Delaval 0a65ffc8e2 Update of example Extern_C 9 years ago
Gwenaël Delaval 3b81368074 CHANGES for version 1.01.00 9 years ago
Gwenaël Delaval 8dbb283310 User manual for Heptagon+ReaX 9 years ago
Gwenaël Delaval 015875b279 Math module
The Math module contains mathematic functions.
9 years ago
Gwenaël Delaval f720c1844f Added example heptreax
Example heptreax, use of ReaX controller synthesis tool for verification
and controller synthesis.
9 years ago
Gwenaël Delaval d5ee87b7ed Added example Markov
Example Markov : simulation of a Markov chain.

Use of a Random module, external call to C rand() function.
9 years ago
Gwenaël Delaval 61f043856a Version 1.01.00 9 years ago
Gwenaël Delaval 9b75408f23 Bug correction in reset
"e1 fby e2" was not handled in the reset pass.
9 years ago
Gwenaël Delaval fd4dffef62 Adding tests 9 years ago
Adrien Guatto dc47767ba4 Print an empty default statement at the end of all C switches
This prevents modern compilers from emitting warnings when the generated C code
contains switch statements with (intentionally) missing cases.
9 years ago