Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lutin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
verimag
synchrone
lutin
Commits
7a6ac267
Commit
7a6ac267
authored
Apr 10, 2019
by
erwan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update: monadisation of Lutin, part 3.
Rationale: make rdbg time traveling work.
parent
c2eb6c77
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
639 additions
and
612 deletions
+639
-612
lutin/src/auto2Lucky.ml
lutin/src/auto2Lucky.ml
+1
-1
lutin/src/autoGen.ml
lutin/src/autoGen.ml
+631
-605
lutin/src/autoGen.mli
lutin/src/autoGen.mli
+3
-3
lutin/src/lutProg.ml
lutin/src/lutProg.ml
+4
-3
No files found.
lutin/src/auto2Lucky.ml
View file @
7a6ac267
...
...
@@ -175,7 +175,7 @@ let make
)
in
fprintf
os
"nodes {
\n
"
;
Hashtbl
.
iter
print_state
(
AutoGen
.
states
auto
)
;
Util
.
StringMap
.
iter
print_state
(
AutoGen
.
states
auto
)
;
fprintf
os
"}
\n
"
;
fprintf
os
"start_node { %s }
\n
"
(
AutoGen
.
init_control
auto
)
;
...
...
lutin/src/autoGen.ml
View file @
7a6ac267
This diff is collapsed.
Click to expand it.
lutin/src/autoGen.mli
View file @
7a6ac267
...
...
@@ -70,8 +70,8 @@ val init_control : t -> string
val
transitions
:
t
->
trans
list
(* Explore le sous-graphe du state *)
val
config2gtree
:
t
->
config
->
gtree
val
config2trans
:
t
->
config
->
trans
list
val
config2gtree
:
t
->
config
->
gtree
*
t
val
config2trans
:
t
->
config
->
trans
list
*
t
(* MUST BE INITIALIZED WITH A FUNCTION :
CoAlgExp.t -> Exp.t
...
...
@@ -86,7 +86,7 @@ val get_state_def : t -> string -> CoTraceExp.t
val
get_state_info
:
t
->
string
->
state_info
(* Table des états connus *)
val
states
:
t
->
(
string
,
state_info
)
Hashtbl
.
t
val
states
:
t
->
state_info
Util
.
StringMap
.
t
val
dump
:
t
->
unit
lutin/src/lutProg.ml
View file @
7a6ac267
...
...
@@ -494,11 +494,12 @@ let lut_get_wtl (zelut:t) (input:Var.env_in) (st:Prog.state) (ctrlst:Prog.ctrl_s
Verbose
.
exe
~
level
:
2
(
fun
()
->
Verbose
.
put
"# -> state2gtree
\n
"
);
Utils
.
time_C
"state2gtree"
;
let
gt
=
AutoGen
.
config2gtree
zelut
.
auto
zecfg
in
let
gt
,
auto
=
AutoGen
.
config2gtree
zelut
.
auto
zecfg
in
let
zelut
=
{
zelut
with
auto
=
auto
}
in
Utils
.
time_R
"state2gtree"
;
Verbose
.
exe
~
level
:
2
(
fun
()
->
Verbose
.
put
"# <- state2gtree, done: %d nodes
\n
"
(
AutoGen
.
gtree_size
gt
)
fun
()
->
Verbose
.
put
"# <- state2gtree, done: %d nodes
\n
"
(
AutoGen
.
gtree_size
gt
)
);
(* traduction gtree -> Prog.wt *)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment