Arnaud DABY-SEESARAM
8c3e3d1eac
[C] malloc->calloc + conditions merged in free_state_*
2022-12-20 16:52:59 +01:00
Arnaud DABY-SEESARAM
a673c447e3
[messages] better comment and errors
2022-12-20 16:41:21 +01:00
Arnaud DABY-SEESARAM
03def2ce1a
[C] new lines in then output after each step
2022-12-20 16:38:29 +01:00
Arnaud DABY-SEESARAM
ffa8918330
[C] a few fixes
2022-12-20 16:34:31 +01:00
Arnaud DABY-SEESARAM
24108925fd
[cprint] free the allocated memory (states).
2022-12-20 16:29:35 +01:00
fd95446636
Modify C main
to initialize correctly the state with is_reset = false
2022-12-20 15:46:31 +01:00
19524ea99c
Merge branch 'ast2C_proposition' of https://gitea.lemnoslife.com/Benjamin_Loison/Synchronous_reactive_systems into ast2C_proposition
2022-12-20 15:42:59 +01:00
88c145a527
Disable malloc
s when reset
ing
2022-12-20 15:39:33 +01:00
Arnaud DABY-SEESARAM
52092b1480
[cprint] code reduction
2022-12-20 15:24:55 +01:00
Arnaud DABY-SEESARAM
f121f55432
[cprint] add a main function
2022-12-20 15:11:12 +01:00
Arnaud DABY-SEESARAM
42536df81c
[parser] update of some error messages
2022-12-20 14:10:34 +01:00
Arnaud DABY-SEESARAM
c7edb27fb0
[lustre_pp] fix a typing error
2022-12-20 14:04:50 +01:00
Arnaud DABY-SEESARAM
3ad133344a
[lustre_pp] precise error messages
2022-12-20 14:02:00 +01:00
4303dcd0e4
Correct a typo in src/main.ml
disabling the compilation
2022-12-20 13:09:09 +01:00
Arnaud DABY-SEESARAM
f5daae824c
[merge]
2022-12-20 09:51:59 +01:00
9fbdb7000f
Merge branch 'ast2C_proposition' of https://gitea.lemnoslife.com/Benjamin_Loison/Synchronous_reactive_systems into ast2C_proposition
2022-12-20 03:51:31 +01:00
e1de3e6829
Add support for reset
s
2022-12-20 03:51:28 +01:00
657fe7e6fa
Add support for reset
s
2022-12-20 03:48:37 +01:00
Arnaud DABY-SEESARAM
91ff654fc9
[passes] ensure that apps don't mix with operators
2022-12-19 23:21:11 +01:00
025d25a146
Replace nunmbers
to numbers
in two comments of src/parser.mly
2022-12-19 19:48:21 +01:00
10838d3f2d
Remove TODO
in src/passes.ml:automaton_translation
...
As Antoine Grimod said that it was already done.
2022-12-19 17:45:33 +01:00
e63123d8f6
Move from the x reset y
syntax to reset x every y
one
...
As described on https://www.di.ens.fr/~pouzet/cours/mpri/cours7/coiteration.pdf#page=4
2022-12-19 16:28:03 +01:00
Arnaud DABY-SEESARAM
01d4a08e8a
[c pass] idem
2022-12-19 14:30:39 +01:00
Arnaud DABY-SEESARAM
9483f7df5e
[c pass] merge neighbour conditionals (improved)
2022-12-19 14:22:19 +01:00
9a0bfd468c
Correct some typos
2022-12-19 14:06:18 +01:00
609870755c
Remove debugging symbols in failwith
...
As running `OCAMLRUNPARAM=b ./_build/main.native ...` provides in case of `failwith` a better stacktrace.
This enables moving `failwith`s from a file to the other without adapting them.
2022-12-19 13:56:48 +01:00
Arnaud DABY-SEESARAM
906a3d948b
[oups] forgot a pattern matching
2022-12-19 12:20:03 +01:00
Arnaud DABY-SEESARAM
249ac37934
[general] renaming, comments and removal of unused function in [pass_linearization_pre]
2022-12-19 12:18:21 +01:00
Arnaud DABY-SEESARAM
1d39173e94
[general] useless fn removed in pass_linearization_app + comments + print_debug in ast_to_c
2022-12-19 12:07:43 +01:00
Arnaud DABY-SEESARAM
4ff193759b
[passes] removal of constructs: seems ok
2022-12-19 11:22:16 +01:00
Arnaud DABY-SEESARAM
c52dce6c02
[passes] linearization: done for app, tuples (lvl 1 behind when) and pre
2022-12-18 22:34:07 +01:00
Arnaud DABY-SEESARAM
c344f125e5
[passes] linearization of tuple-equations + deletion of unused pass
2022-12-18 19:00:24 +01:00
Arnaud DABY-SEESARAM
aa7f7514d3
[Lustre -> intermediate] fix for the [pre] construct
2022-12-18 17:36:10 +01:00
Arnaud DABY-SEESARAM
77c865e360
[intermediate_ast] remove unused fields of i_nodes
2022-12-18 17:25:34 +01:00
02130cf57c
Rename maybeprint
to print_if_any
to precise the purpose of this function
2022-12-18 14:50:55 +01:00
273a868162
Simplify cp_value
for boolean constants in src/cprint.ml
2022-12-18 14:45:23 +01:00
37dfcdda35
Remove unneeded node prototypes, as Lustre only allows to call already defined nodes
2022-12-18 14:42:26 +01:00
c3a64a2bae
Correct some typos
2022-12-18 14:31:56 +01:00
dsac
1491e279f7
[ast2C] printer: ok.
2022-12-18 13:38:40 +01:00
dsac
ce686f6c9a
[ast2C] merge ok (needs linearization)
2022-12-18 10:41:36 +01:00
dsac
1d4e1820e4
[ast2C] Applications to values
2022-12-18 09:41:22 +01:00
dsac
007c5b2862
[c printer] Ok.
2022-12-18 00:26:51 +01:00
dsac
243e8f245a
[ast2C] adding the (->) construct
2022-12-18 00:11:02 +01:00
dsac
791af71913
[ast2C] print all basic operators
2022-12-17 23:58:45 +01:00
dsac
233b385608
missing 'state->' added + print +,-,*,...
2022-12-17 23:46:39 +01:00
dsac
7a32d474d4
[ast2C] support for some basic operations (exemple in test.node)
2022-12-17 23:36:07 +01:00
dsac
cbc834b32a
[ast2C] constants, simple assignations, variables (+ one fix about pre storage)
2022-12-17 22:36:42 +01:00
dsac
a877501cca
[general] renaming: done.
2022-12-17 21:37:37 +01:00
dsac
3cbfaeb2a8
[general] renaming (pp -> lustre_pp ; c_* -> intermediate_*)
2022-12-17 21:26:32 +01:00
dsac
916c7f544b
[ast2C] initialize states of auxiliary nodes.
2022-12-17 18:34:11 +01:00