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
bcfd6e01
Commit
bcfd6e01
authored
2 years ago
by
THIRIOUX Xavier
Browse files
Options
Downloads
Patches
Plain Diff
corrected again a regression bug in causality/scheduling: bad handling of tuples
parent
0f7b31bd
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/causality.ml
+1
-0
1 addition, 0 deletions
src/causality.ml
src/causality.mli
+1
-0
1 addition, 0 deletions
src/causality.mli
src/scheduling.ml
+4
-1
4 additions, 1 deletion
src/scheduling.ml
with
6 additions
and
1 deletion
src/causality.ml
+
1
−
0
View file @
bcfd6e01
...
...
@@ -118,6 +118,7 @@ module ExprDep = struct
let
is_read_var
v
=
v
.
[
0
]
=
'
#
'
let
is_instance_var
v
=
v
.
[
0
]
=
'
!
'
||
v
.
[
0
]
=
'
?
'
let
is_call_instance_var
v
=
v
.
[
0
]
=
'
?
'
let
is_ghost_var
v
=
is_instance_var
v
||
is_read_var
v
let
undo_read_var
id
=
...
...
This diff is collapsed.
Click to expand it.
src/causality.mli
+
1
−
0
View file @
bcfd6e01
...
...
@@ -40,6 +40,7 @@ module ExprDep : sig
val
mk_return_instance_var
:
ident
->
ident
val
mk_read_var
:
ident
->
ident
val
is_instance_var
:
ident
->
bool
val
is_call_instance_var
:
ident
->
bool
val
is_ghost_var
:
ident
->
bool
val
is_read_var
:
ident
->
bool
val
undo_instance_var
:
ident
->
ident
...
...
This diff is collapsed.
Click to expand it.
src/scheduling.ml
+
4
−
1
View file @
bcfd6e01
...
...
@@ -30,7 +30,7 @@ open Scheduling_type
(* Checks whether the currently scheduled variable [choice] is an output of a
call, possibly among others *)
let
is_call_output
choice
g
=
List
.
exists
ExprDep
.
is_instance_var
(
IdentDepGraph
.
succ
g
choice
)
List
.
exists
ExprDep
.
is_
call_
instance_var
(
IdentDepGraph
.
succ
g
choice
)
(* Adds successors of [v] in graph [g] in [pending] or [frontier] sets, wrt
[eq_equiv], then removes [v] from [g] *)
...
...
@@ -55,6 +55,7 @@ let next_element eq_equiv g sort call pending frontier =
pending
:=
p
;
frontier
:=
f
;
call
:=
is_call_output
choice
g
;
(*if !call then Format.eprintf "call var@."*)
add_successors
eq_equiv
g
choice
pending
frontier
;
if
not
(
ExprDep
.
is_ghost_var
choice
)
then
sort
:=
[
choice
]
::
!
sort
)
else
...
...
@@ -62,6 +63,7 @@ let next_element eq_equiv g sort call pending frontier =
(*Format.eprintf "-2-> %s@." choice;*)
pending
:=
ISet
.
remove
choice
!
pending
;
add_successors
eq_equiv
g
choice
pending
frontier
;
(*if !call then Format.eprintf "call var@."*)
if
not
(
ExprDep
.
is_ghost_var
choice
)
then
sort
:=
if
!
call
then
(
choice
::
List
.
hd
!
sort
)
::
List
.
tl
!
sort
...
...
@@ -82,6 +84,7 @@ let topological_sort eq_equiv g =
next_element
eq_equiv
g
sorted
call
pending
frontier
done
;
IdentDepGraph
.
clear
g
;
(*List.iter (fun l -> Format.eprintf "(%a) " (fun fmt -> List.iter (fun v -> Format.pp_print_string fmt v)) l) !sorted;*)
!
sorted
(* XXX: UNUSED *)
...
...
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