Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Lustrec - public version
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
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
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
d6df0cb0
Commit
d6df0cb0
authored
2 years ago
by
Pierre Loic Garoche
Browse files
Options
Downloads
Patches
Plain Diff
Commenting unused code in stateflow module
parent
ab843931
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/common/datatype.ml
+56
-53
56 additions, 53 deletions
src/tools/stateflow/common/datatype.ml
src/tools/stateflow/sf_sem.ml
+1
-1
1 addition, 1 deletion
src/tools/stateflow/sf_sem.ml
with
57 additions
and
54 deletions
src/tools/stateflow/common/datatype.ml
+
56
−
53
View file @
d6df0cb0
...
...
@@ -152,59 +152,62 @@ module SF = struct
(
Format
.
pp_print_list
~
pp_sep
:
Format
.
pp_print_semicolon
pp_state_name
)
_S
let
pp_state_actions
fmt
sa
=
Format
.
fprintf
fmt
"@[<hov 0>(%a,@ %a,@ %a)@]"
Action
.
pp_act
sa
.
entry_act
Action
.
pp_act
sa
.
during_act
Action
.
pp_act
sa
.
exit_act
let
pp_state
fmt
s
=
Format
.
fprintf
fmt
"@[<v 0>(@[<v 0>%a,@ %a,@ %a,@ %a@]@ @])"
pp_state_actions
s
.
state_actions
pp_transitions
s
.
outer_trans
pp_transitions
s
.
inner_trans
pp_comp
s
.
internal_composition
let
pp_src
pp_sffunction
fmt
src
=
Format
.
fprintf
fmt
"@[<v>%a@ @]"
(
Format
.
pp_print_list
~
pp_sep
:
Format
.
pp_print_cutcut
(
fun
fmt
src
->
match
src
with
|
State
(
p
,
def
)
->
Format
.
fprintf
fmt
"%a: %a"
pp_path
p
pp_state
def
|
Junction
(
s
,
tl
)
->
Format
.
fprintf
fmt
"%a: %a"
pp_state_name
s
pp_transitions
tl
|
SFFunction
p
->
pp_sffunction
fmt
p
))
src
let
rec
pp_sffunction
fmt
(
Program
(
name
,
component_list
,
_
))
=
Format
.
fprintf
fmt
"SFFunction name: %s@ %a@ "
name
(
pp_src
pp_sffunction
)
component_list
let
pp_vars
fmt
src
=
Format
.
fprintf
fmt
"@[<v>%a@ @]"
(
Format
.
pp_print_list
(
fun
fmt
globvar
->
Printers
.
pp_var
fmt
globvar
.
GlobalVarDef
.
variable
))
src
(* let pp_state_actions fmt sa =
* Format.fprintf
* fmt
* "@[<hov 0>(%a,@ %a,@ %a)@]"
* Action.pp_act
* sa.entry_act
* Action.pp_act
* sa.during_act
* Action.pp_act
* sa.exit_act *)
(* let pp_state fmt s =
* Format.fprintf
* fmt
* "@[<v 0>(@[<v 0>%a,@ %a,@ %a,@ %a@]@ @])"
* pp_state_actions
* s.state_actions
* pp_transitions
* s.outer_trans
* pp_transitions
* s.inner_trans
* pp_comp
* s.internal_composition *)
(* XXX: UNUSED
* let pp_src pp_sffunction fmt src =
* Format.fprintf
* fmt
* "@[<v>%a@ @]"
* (Format.pp_print_list ~pp_sep:Format.pp_print_cutcut (fun fmt src ->
* match src with
* | State (p, def) ->
* Format.fprintf fmt "%a: %a" pp_path p pp_state def
* | Junction (s, tl) ->
* Format.fprintf fmt "%a: %a" pp_state_name s pp_transitions tl
* | SFFunction p ->
* pp_sffunction fmt p))
* src *)
(* XXX: UNUSED
* let rec pp_sffunction fmt (Program (name, component_list, _)) =
* Format.fprintf
* fmt
* "SFFunction name: %s@ %a@ "
* name
* (pp_src pp_sffunction)
* component_list *)
(* XXX: UNUSED
* let pp_vars fmt src =
* Format.fprintf
* fmt
* "@[<v>%a@ @]"
* (Format.pp_print_list (fun fmt globvar ->
* Printers.pp_var fmt globvar.GlobalVarDef.variable))
* src *)
(* XXX: UNUSED *)
(* let pp_prog fmt (Program (name, component_list, vars)) = *)
...
...
This diff is collapsed.
Click to expand it.
src/tools/stateflow/sf_sem.ml
+
1
−
1
View file @
d6df0cb0
...
...
@@ -98,7 +98,7 @@ let _ =
Format
.
fprintf
auto_fmt
"%a@."
Printers
.
pp_prog
prog
;
let
params
=
Backends
.
get_normalization_params
()
in
let
prog
,
deps
=
Compiler_stages
.
stage1
params
prog
""
""
".lus"
in
let
prog
,
_
(*
deps
*)
=
Compiler_stages
.
stage1
params
prog
""
""
".lus"
in
Options
.
print_dec_types
:=
false
;
Format
.
printf
"%a@."
Printers
.
pp_prog
prog
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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