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
...
@@ -152,59 +152,62 @@ module SF = struct
(
Format
.
pp_print_list
~
pp_sep
:
Format
.
pp_print_semicolon
pp_state_name
)
(
Format
.
pp_print_list
~
pp_sep
:
Format
.
pp_print_semicolon
pp_state_name
)
_S
_S
let
pp_state_actions
fmt
sa
=
(* let pp_state_actions fmt sa =
Format
.
fprintf
* Format.fprintf
fmt
* fmt
"@[<hov 0>(%a,@ %a,@ %a)@]"
* "@[<hov 0>(%a,@ %a,@ %a)@]"
Action
.
pp_act
* Action.pp_act
sa
.
entry_act
* sa.entry_act
Action
.
pp_act
* Action.pp_act
sa
.
during_act
* sa.during_act
Action
.
pp_act
* Action.pp_act
sa
.
exit_act
* sa.exit_act *)
let
pp_state
fmt
s
=
(* let pp_state fmt s =
Format
.
fprintf
* Format.fprintf
fmt
* fmt
"@[<v 0>(@[<v 0>%a,@ %a,@ %a,@ %a@]@ @])"
* "@[<v 0>(@[<v 0>%a,@ %a,@ %a,@ %a@]@ @])"
pp_state_actions
* pp_state_actions
s
.
state_actions
* s.state_actions
pp_transitions
* pp_transitions
s
.
outer_trans
* s.outer_trans
pp_transitions
* pp_transitions
s
.
inner_trans
* s.inner_trans
pp_comp
* pp_comp
s
.
internal_composition
* s.internal_composition *)
let
pp_src
pp_sffunction
fmt
src
=
(* XXX: UNUSED
Format
.
fprintf
* let pp_src pp_sffunction fmt src =
fmt
* Format.fprintf
"@[<v>%a@ @]"
* fmt
(
Format
.
pp_print_list
~
pp_sep
:
Format
.
pp_print_cutcut
(
fun
fmt
src
->
* "@[<v>%a@ @]"
match
src
with
* (Format.pp_print_list ~pp_sep:Format.pp_print_cutcut (fun fmt src ->
|
State
(
p
,
def
)
->
* match src with
Format
.
fprintf
fmt
"%a: %a"
pp_path
p
pp_state
def
* | State (p, def) ->
|
Junction
(
s
,
tl
)
->
* Format.fprintf fmt "%a: %a" pp_path p pp_state def
Format
.
fprintf
fmt
"%a: %a"
pp_state_name
s
pp_transitions
tl
* | Junction (s, tl) ->
|
SFFunction
p
->
* Format.fprintf fmt "%a: %a" pp_state_name s pp_transitions tl
pp_sffunction
fmt
p
))
* | SFFunction p ->
src
* pp_sffunction fmt p))
* src *)
let
rec
pp_sffunction
fmt
(
Program
(
name
,
component_list
,
_
))
=
Format
.
fprintf
(* XXX: UNUSED
fmt
* let rec pp_sffunction fmt (Program (name, component_list, _)) =
"SFFunction name: %s@ %a@ "
* Format.fprintf
name
* fmt
(
pp_src
pp_sffunction
)
* "SFFunction name: %s@ %a@ "
component_list
* name
* (pp_src pp_sffunction)
let
pp_vars
fmt
src
=
* component_list *)
Format
.
fprintf
fmt
(* XXX: UNUSED
"@[<v>%a@ @]"
* let pp_vars fmt src =
(
Format
.
pp_print_list
(
fun
fmt
globvar
->
* Format.fprintf
Printers
.
pp_var
fmt
globvar
.
GlobalVarDef
.
variable
))
* fmt
src
* "@[<v>%a@ @]"
* (Format.pp_print_list (fun fmt globvar ->
* Printers.pp_var fmt globvar.GlobalVarDef.variable))
* src *)
(* XXX: UNUSED *)
(* XXX: UNUSED *)
(* let pp_prog fmt (Program (name, component_list, vars)) = *)
(* 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 _ =
...
@@ -98,7 +98,7 @@ let _ =
Format
.
fprintf
auto_fmt
"%a@."
Printers
.
pp_prog
prog
;
Format
.
fprintf
auto_fmt
"%a@."
Printers
.
pp_prog
prog
;
let
params
=
Backends
.
get_normalization_params
()
in
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
;
Options
.
print_dec_types
:=
false
;
Format
.
printf
"%a@."
Printers
.
pp_prog
prog
;
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