Commit Graph

188 Commits

Author SHA1 Message Date
Antoine Grimod
17e2f93629 fix oversight in lustre_pp.ml 2023-01-10 00:28:43 +01:00
b0545a2733 Correct some typos 2023-01-10 00:11:35 +01:00
1297835bda Make tests/when_merge.node clearer by using reals 2023-01-10 00:07:49 +01:00
Antoine Grimod
a5f8c720f4 extended when once again 2023-01-09 23:04:36 +01:00
Antoine Grimod
ad4f5e7962 clock unification now works if when is applied to a boolean comparison 2023-01-09 22:54:26 +01:00
dsac
2da1fac66f [passes] linearization of when 2023-01-09 22:51:30 +01:00
dsac
ad74146396 [passes] linearization of merge (untested) 2023-01-09 22:23:00 +01:00
Antoine Grimod
2f0b9a572e error catching 2023-01-09 21:22:37 +01:00
Antoine Grimod
42cbc6ddaf fix typo in code 2023-01-09 21:11:38 +01:00
Antoine Grimod
23e234732f code cleanup 2023-01-09 21:09:29 +01:00
Antoine Grimod
ad97c6b627 first version of clock unification 2023-01-09 20:57:22 +01:00
68d67bb53b Fix a typo in a comment in src/passes.ml 2023-01-06 15:09:52 +01:00
sofamaniac
b2aa8bc6d5 [automaton] support for multiple output conditions 2023-01-05 18:31:12 +01:00
sofamaniac
094f403f5f finalizing automata translation 2023-01-05 17:45:34 +01:00
dsac
30f9c71294 [equation ordering] comments added 2023-01-05 16:36:45 +01:00
sofamaniac
fef64987de traduction des automates v2 mais cassé 2023-01-05 16:02:58 +01:00
b168161b4f Correct boolean inputs 2023-01-03 23:23:18 +01:00
dsac
f8c673632e [c printer] protects the names of node states 2023-01-03 23:05:55 +01:00
69e84f0a8e Rename _buffer to buffer, expand tabs to spaces in src/ and tests/ and move up BUFFER_SIZE macro definition 2023-01-03 22:58:38 +01:00
5cabb042fc Improve and correct IO UI and add tests 2023-01-03 19:43:24 +01:00
Arnaud DABY-SEESARAM
ff9da14379 [cprint] replace scanf to properly read an input line 2022-12-22 14:27:14 +01:00
9d7588f103 Merge ast2C_proposition branch with the master one 2022-12-21 15:51:32 +01:00
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 mallocs when reseting 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 resets 2022-12-20 03:51:28 +01:00
657fe7e6fa Add support for resets 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