Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LustreC
Lustrec - public version
Commits
2a4992a1
Commit
2a4992a1
authored
7 years ago
by
Pierre Loic Garoche
Browse files
Options
Downloads
Patches
Plain Diff
[lustresf] Some progress: automaton compiles but not when preprocessed
parent
2196948d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/tools/stateflow/Makefile
+0
-9
0 additions, 9 deletions
src/tools/stateflow/Makefile
src/tools/stateflow/sf_sem.ml
+16
-3
16 additions, 3 deletions
src/tools/stateflow/sf_sem.ml
with
16 additions
and
12 deletions
src/tools/stateflow/Makefile
deleted
100644 → 0
+
0
−
9
View file @
2196948d
sf_sem
:
ocamlbuild sf_sem.native
cp
sf_sem.native sf_sem
clean
:
rm
-rf
_build
rm
sf_sem.native
.PHONY
:
sf_sem
This diff is collapsed.
Click to expand it.
src/tools/stateflow/sf_sem.ml
+
16
−
3
View file @
2a4992a1
...
...
@@ -29,6 +29,7 @@ let set_mode m =
(* Main *)
let
options
=
[
"-verbose"
,
Arg
.
Set_int
Options
.
verbose_level
,
"changes verbose
\x1b
[4mlevel
\x1b
[0m <default: 1>"
;
"-model"
,
Arg
.
String
set_model
,
"model in {simple, stopwatch} (default: simple)"
;
(* "-eval", Arg.Int set_trace_run_mode, "execute the model on trace <int>"; *)
(* "-eval-mode", Arg.String set_eval_mode, "select evaluator: cps"; *)
...
...
@@ -73,9 +74,14 @@ let _ =
Options
.
print_dec_types
:=
true
;
Format
.
printf
"%a@."
Printers
.
pp_prog
prog
;
let
prog
,
deps
=
Main_lustre_compiler
.
stage1
prog
""
""
in
let
auto_file
=
"sf_gen_test_auto.lus"
in
(* Could be changed *)
let
auto_out
=
open_out
auto_file
in
let
auto_fmt
=
Format
.
formatter_of_out_channel
auto_out
in
Format
.
fprintf
auto_fmt
"%a@."
Printers
.
pp_prog
prog
;
let
prog
,
deps
=
Compiler_stages
.
stage1
prog
""
""
in
(* (\* Importing source *\) *)
(* let _ = Modules.load_program Utils.ISet.empty prog in *)
...
...
@@ -89,7 +95,14 @@ let _ =
(* (\* Clock calculus *\) *)
(* let computed_clocks_env = Compiler_common.clock_decls clock_env prog in *)
Format
.
printf
"%a@."
Printers
.
pp_prog
prog
Format
.
printf
"%a@."
Printers
.
pp_prog
prog
;
let
noauto_file
=
"sf_gen_test_noauto.lus"
in
(* Could be changed *)
let
noauto_out
=
open_out
noauto_file
in
let
noauto_fmt
=
Format
.
formatter_of_out_channel
noauto_out
in
Format
.
fprintf
noauto_fmt
"%a@."
Printers
.
pp_prog
prog
(* Local Variables: *)
(* compile-command: "make -C ../.. lustresf" *)
(* End: *)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment