Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lustre-v6
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
verimag
synchrone
lustre-v6
Commits
315f1742
Commit
315f1742
authored
8 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
L2lWhenOnId.doit and L2lNoWhenNot.doit missed some part of the lic tree.
More precisely, I missed clock in the ve_clk field of val_exp.
parent
1a153291
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
_oasis
+1
-1
1 addition, 1 deletion
_oasis
src/l2lNoWhenNot.ml
+12
-2
12 additions, 2 deletions
src/l2lNoWhenNot.ml
src/l2lWhenOnId.ml
+14
-3
14 additions, 3 deletions
src/l2lWhenOnId.ml
src/lv6version.ml
+2
-2
2 additions, 2 deletions
src/lv6version.ml
with
29 additions
and
8 deletions
_oasis
+
1
−
1
View file @
315f1742
OASISFormat: 0.4
Name: lustre-v6
Version: 1.65
6
Version: 1.65
7
Synopsis: The Lustre V6 Verimag compiler
Description: This package contains:
(1) lus2lic: the (current) name of the compiler (and interpreter via -exec).
...
...
This diff is collapsed.
Click to expand it.
src/l2lNoWhenNot.ml
+
12
−
2
View file @
315f1742
(** Time-stamp: <modified the 26/08/2016 (at 15:
04
) by Erwan Jahier> *)
(** Time-stamp: <modified the 26/08/2016 (at 15:
31
) by Erwan Jahier> *)
open
Lxm
open
Lic
...
...
@@ -89,6 +89,12 @@ let rec update_clock : Lxm.t -> acc -> clock -> clock * acc =
in
On
(((
"Lustre"
,
"true"
)
,
nv
.
var_name_eff
,
Bool_type_eff
)
,
sclk
)
,
acc
let
rec
update_clock_list
:
Lxm
.
t
->
clock
list
*
acc
->
clock
->
clock
list
*
acc
=
fun
lxm
(
res
,
acc
)
clk
->
let
clk
,
acc
=
update_clock
lxm
acc
clk
in
clk
::
res
,
acc
let
update_var_info
:
Lxm
.
t
->
acc
->
var_info
->
var_info
*
acc
=
fun
lxm
acc
vi
->
let
(
id
,
clk
)
=
vi
.
var_clock_eff
in
...
...
@@ -189,7 +195,11 @@ and (do_val_exp: LicPrg.t -> val_exp -> acc -> val_exp * acc) =
CallByPosLic
(
op
,
vel
)
,
acc
)
in
{
ve
with
ve_core
=
ve_core
}
,
acc
let
lxm
=
lxm_of_val_exp
ve
in
let
ve_clk
,
acc
=
List
.
fold_left
(
update_clock_list
lxm
)
([]
,
acc
)
ve
.
ve_clk
in
{
ve
with
ve_core
=
ve_core
;
ve_clk
=
List
.
rev
ve_clk
;
}
,
acc
and
(
do_val_exp_flag
:
LicPrg
.
t
->
val_exp
srcflagged
->
acc
->
val_exp
srcflagged
*
acc
)
=
...
...
This diff is collapsed.
Click to expand it.
src/l2lWhenOnId.ml
+
14
−
3
View file @
315f1742
(** Time-stamp: <modified the 26/08/2016 (at 1
0:53
) by Erwan Jahier> *)
(** Time-stamp: <modified the 26/08/2016 (at 1
5:27
) by Erwan Jahier> *)
open
Lxm
open
Lic
...
...
@@ -99,6 +99,12 @@ let rec update_clock : Lxm.t -> acc -> clock -> clock * acc =
let
nv
,
acc
=
gen_ident
lxm
cc
cv
ct
sclk
acc
in
On
(((
"Lustre"
,
"true"
)
,
nv
.
var_name_eff
,
Bool_type_eff
)
,
sclk
)
,
acc
let
rec
update_clock_list
:
Lxm
.
t
->
clock
list
*
acc
->
clock
->
clock
list
*
acc
=
fun
lxm
(
res
,
acc
)
clk
->
let
clk
,
acc
=
update_clock
lxm
acc
clk
in
clk
::
res
,
acc
let
update_var_info
:
Lxm
.
t
->
acc
->
var_info
->
var_info
*
acc
=
fun
lxm
acc
vi
->
let
(
id
,
clk
)
=
vi
.
var_clock_eff
in
...
...
@@ -198,8 +204,13 @@ and (do_val_exp: LicPrg.t -> val_exp -> acc -> val_exp * acc) =
|
_
->
CallByPosLic
(
op
,
vel
)
,
acc
)
in
{
ve
with
ve_core
=
ve_core
}
,
acc
in
let
lxm
=
lxm_of_val_exp
ve
in
let
ve_clk
,
acc
=
List
.
fold_left
(
update_clock_list
lxm
)
([]
,
acc
)
ve
.
ve_clk
in
{
ve
with
ve_core
=
ve_core
;
ve_clk
=
List
.
rev
ve_clk
;
}
,
acc
and
(
do_val_exp_flag
:
LicPrg
.
t
->
val_exp
srcflagged
->
acc
->
val_exp
srcflagged
*
acc
)
=
...
...
This diff is collapsed.
Click to expand it.
src/lv6version.ml
+
2
−
2
View file @
315f1742
(** Automatically generated from Makefile *)
let
tool
=
"lus2lic"
let
branch
=
"master"
let
commit
=
"65
6
"
let
sha_1
=
"
ec68a79c765f907feb08a0a74eff5262bc4cd18c
"
let
commit
=
"65
7
"
let
sha_1
=
"
1a153291f645c667cb3189a1f1352817bf316944
"
let
str
=
(
branch
^
"."
^
commit
^
" ("
^
sha_1
^
")"
)
let
maintainer
=
"jahier@imag.fr"
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