Skip to content
Snippets Groups Projects
Commit d6df0cb0 authored by Pierre Loic Garoche's avatar Pierre Loic Garoche
Browse files

Commenting unused code in stateflow module

parent ab843931
No related branches found
No related tags found
No related merge requests found
...@@ -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)) = *)
......
...@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment