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
14a42a03
Commit
14a42a03
authored
7 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
-eeb: Extern nodes interface variables were not expanded.
Also, -eeb is now the default when using -ec.
parent
6f975e9b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
_oasis
+1
-1
1 addition, 1 deletion
_oasis
src/l2lExpandEnum.ml
+14
-11
14 additions, 11 deletions
src/l2lExpandEnum.ml
src/lv6MainArgs.ml
+5
-2
5 additions, 2 deletions
src/lv6MainArgs.ml
src/lv6version.ml
+2
-2
2 additions, 2 deletions
src/lv6version.ml
test/lus2lic.sum
+12
-12
12 additions, 12 deletions
test/lus2lic.sum
with
34 additions
and
28 deletions
_oasis
+
1
−
1
View file @
14a42a03
OASISFormat: 0.4
OASISFormat: 0.4
Name: lustre-v6
Name: lustre-v6
Version: 1.70
2
Version: 1.70
3
Synopsis: The Lustre V6 Verimag compiler
Synopsis: The Lustre V6 Verimag compiler
Description: This package contains:
Description: This package contains:
(1) lus2lic: the (current) name of the compiler (and interpreter via -exec).
(1) lus2lic: the (current) name of the compiler (and interpreter via -exec).
...
...
This diff is collapsed.
Click to expand it.
src/l2lExpandEnum.ml
+
14
−
11
View file @
14a42a03
(* Time-stamp: <modified the 05/07/2017 (at 1
0:20
) by Erwan Jahier> *)
(* Time-stamp: <modified the 05/07/2017 (at 1
5:31
) by Erwan Jahier> *)
open
Lxm
open
Lxm
...
@@ -137,20 +137,23 @@ let rec (doit : target -> LicPrg.t -> LicPrg.t) =
...
@@ -137,20 +137,23 @@ let rec (doit : target -> LicPrg.t -> LicPrg.t) =
{
ve_f
with
it
=
ve
}
{
ve_f
with
it
=
ve
}
and
(
do_node
:
Lic
.
node_exp
->
Lic
.
node_exp
)
=
and
(
do_node
:
Lic
.
node_exp
->
Lic
.
node_exp
)
=
fun
n
->
fun
n
->
let
def_eff
=
match
n
.
def_eff
with
match
n
.
def_eff
with
|
ExternLic
|
MetaOpLic
|
AbstractLic
_
->
n
|
ExternLic
|
MetaOpLic
|
AbstractLic
_
->
n
.
def_eff
|
BodyLic
b
->
|
BodyLic
b
->
let
eqs
=
List
.
map
(
fun
eq
->
do_eq
eq
)
b
.
eqs_eff
in
let
eqs
=
List
.
map
(
fun
eq
->
do_eq
eq
)
b
.
eqs_eff
in
let
ass
=
List
.
map
(
fun
ve
->
do_val_exp_flag
ve
)
b
.
asserts_eff
in
let
ass
=
List
.
map
(
fun
ve
->
do_val_exp_flag
ve
)
b
.
asserts_eff
in
{
n
with
BodyLic
{
asserts_eff
=
ass
;
eqs_eff
=
eqs
}
inlist_eff
=
List
.
map
do_var_info
n
.
inlist_eff
;
in
outlist_eff
=
List
.
map
do_var_info
n
.
outlist_eff
;
{
n
with
loclist_eff
=
(
match
n
.
loclist_eff
with
inlist_eff
=
List
.
map
do_var_info
n
.
inlist_eff
;
|
None
->
None
outlist_eff
=
List
.
map
do_var_info
n
.
outlist_eff
;
|
Some
l
->
Some
(
List
.
map
do_var_info
l
));
loclist_eff
=
(
match
n
.
loclist_eff
with
def_eff
=
BodyLic
{
asserts_eff
=
ass
;
eqs_eff
=
eqs
};
|
None
->
None
}
|
Some
l
->
Some
(
List
.
map
do_var_info
l
));
def_eff
=
def_eff
;
}
in
(* back to doit *)
in
(* back to doit *)
let
outprg
=
LicPrg
.
empty
in
let
outprg
=
LicPrg
.
empty
in
...
...
This diff is collapsed.
Click to expand it.
src/lv6MainArgs.ml
+
5
−
2
View file @
14a42a03
(* Time-stamp: <modified the
28
/0
6
/2017 (at 1
6:44
) by Erwan Jahier> *)
(* Time-stamp: <modified the
05
/0
7
/2017 (at 1
5:37
) by Erwan Jahier> *)
(*
(*
Le manager d'argument adapt de celui de lutin, plus joli
Le manager d'argument adapt de celui de lutin, plus joli
N.B. solution un peu batarde : les options sont stockes, comme avant, dans Global,
N.B. solution un peu batarde : les options sont stockes, comme avant, dans Global,
...
@@ -245,6 +245,9 @@ let set_v4_options opt =
...
@@ -245,6 +245,9 @@ let set_v4_options opt =
opt
.
expand_arrays
<-
true
opt
.
expand_arrays
<-
true
let
set_ec_options
opt
=
let
set_ec_options
opt
=
(
match
global_opt
.
expand_enums
with
|
AsEnum
->
global_opt
.
expand_enums
<-
AsBool
;
(* only override the default *)
|
AsInt
|
AsConst
|
AsBool
->
()
);
set_v4_options
opt
;
set_v4_options
opt
;
global_opt
.
ec
<-
true
;
global_opt
.
ec
<-
true
;
global_opt
.
no_when_not
<-
true
;
global_opt
.
no_when_not
<-
true
;
...
@@ -393,7 +396,7 @@ let mkoptab (opt:t) : unit = (
...
@@ -393,7 +396,7 @@ let mkoptab (opt:t) : unit = (
mkopt
opt
mkopt
opt
[
"-ec"
;
"--expanded-code"
]
[
"-ec"
;
"--expanded-code"
]
(
Arg
.
Unit
(
fun
_
->
set_ec_options
opt
))
(
Arg
.
Unit
(
fun
_
->
set_ec_options
opt
))
[
"Generate ec programs (
actually just an alias for '-en -l
v4 --no-prefix
--no-whe-not
')"
]
[
"Generate ec programs (
set the following options: '--expand-nodes --no-when-not --expand-enums-as-bool --lustre-
v4 --no-prefix')"
]
;
;
mkopt
opt
~
doc_level
:
Advanced
mkopt
opt
~
doc_level
:
Advanced
[
"-np"
;
"--no-prefix"
]
[
"-np"
;
"--no-prefix"
]
...
...
This diff is collapsed.
Click to expand it.
src/lv6version.ml
+
2
−
2
View file @
14a42a03
(** Automatically generated from Makefile *)
(** Automatically generated from Makefile *)
let
tool
=
"lus2lic"
let
tool
=
"lus2lic"
let
branch
=
"master"
let
branch
=
"master"
let
commit
=
"70
2
"
let
commit
=
"70
3
"
let
sha_1
=
"
a
6f
ab49ad78a8446078f410e07c79e7d47bd8e0a
"
let
sha_1
=
"6f
975e9bc4d6dfff63fcf0ab056956d1bbb018ad
"
let
str
=
(
branch
^
"."
^
commit
^
" ("
^
sha_1
^
")"
)
let
str
=
(
branch
^
"."
^
commit
^
" ("
^
sha_1
^
")"
)
let
maintainer
=
"jahier@imag.fr"
let
maintainer
=
"jahier@imag.fr"
This diff is collapsed.
Click to expand it.
test/lus2lic.sum
+
12
−
12
View file @
14a42a03
==> lus2lic0.sum <==
==> lus2lic0.sum <==
Test Run By jahier on Wed Jul 5 1
1:16:43
Test Run By jahier on Wed Jul 5 1
5:35:50
Native configuration is x86_64-unknown-linux-gnu
Native configuration is x86_64-unknown-linux-gnu
=== lus2lic0 tests ===
=== lus2lic0 tests ===
...
@@ -64,7 +64,7 @@ XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/lecte
...
@@ -64,7 +64,7 @@ XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/lecte
XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/s.lus
XFAIL: Test bad programs (assert): test_lus2lic_no_node should_fail/assert/s.lus
==> lus2lic1.sum <==
==> lus2lic1.sum <==
Test Run By jahier on Wed Jul 5 1
1:16:44
Test Run By jahier on Wed Jul 5 1
5:35:51
Native configuration is x86_64-unknown-linux-gnu
Native configuration is x86_64-unknown-linux-gnu
=== lus2lic1 tests ===
=== lus2lic1 tests ===
...
@@ -403,7 +403,7 @@ PASS: sh multipar.sh
...
@@ -403,7 +403,7 @@ PASS: sh multipar.sh
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c multipar.lus {}
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c multipar.lus {}
==> lus2lic2.sum <==
==> lus2lic2.sum <==
Test Run By jahier on Wed Jul 5 1
1:17
:4
0
Test Run By jahier on Wed Jul 5 1
5:36
:4
6
Native configuration is x86_64-unknown-linux-gnu
Native configuration is x86_64-unknown-linux-gnu
=== lus2lic2 tests ===
=== lus2lic2 tests ===
...
@@ -743,7 +743,7 @@ PASS: sh zzz2.sh
...
@@ -743,7 +743,7 @@ PASS: sh zzz2.sh
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c zzz2.lus {}
PASS: /home/jahier/lus2lic/test/../utils/compare_exec_and_2c zzz2.lus {}
==> lus2lic3.sum <==
==> lus2lic3.sum <==
Test Run By jahier on Wed Jul 5 1
1:18:55
Test Run By jahier on Wed Jul 5 1
5:38:02
Native configuration is x86_64-unknown-linux-gnu
Native configuration is x86_64-unknown-linux-gnu
=== lus2lic3 tests ===
=== lus2lic3 tests ===
...
@@ -1253,7 +1253,7 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node multipar.lus {}
...
@@ -1253,7 +1253,7 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node multipar.lus {}
==> lus2lic4.sum <==
==> lus2lic4.sum <==
Test Run By jahier on Wed Jul 5 1
1:21:14
Test Run By jahier on Wed Jul 5 1
5:40:21
Native configuration is x86_64-unknown-linux-gnu
Native configuration is x86_64-unknown-linux-gnu
=== lus2lic4 tests ===
=== lus2lic4 tests ===
...
@@ -1771,13 +1771,13 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {}
...
@@ -1771,13 +1771,13 @@ PASS: /home/jahier/lus2lic/test/../utils/test_lus2lic_no_node zzz2.lus {}
===============================
===============================
# Total number of failures: 22
# Total number of failures: 22
lus2lic0.log:testcase ./lus2lic.tests/test0.exp completed in 1 seconds
lus2lic0.log:testcase ./lus2lic.tests/test0.exp completed in 1 seconds
lus2lic1.log:testcase ./lus2lic.tests/test1.exp completed in 5
6
seconds
lus2lic1.log:testcase ./lus2lic.tests/test1.exp completed in 5
5
seconds
lus2lic2.log:testcase ./lus2lic.tests/test2.exp completed in 7
4
seconds
lus2lic2.log:testcase ./lus2lic.tests/test2.exp completed in 7
5
seconds
lus2lic3.log:testcase ./lus2lic.tests/test3.exp completed in 13
8
seconds
lus2lic3.log:testcase ./lus2lic.tests/test3.exp completed in 13
9
seconds
lus2lic4.log:testcase ./lus2lic.tests/test4.exp completed in 67 seconds
lus2lic4.log:testcase ./lus2lic.tests/test4.exp completed in 67 seconds
* Ref time:
* Ref time:
0.0
5
user 0.0
2
system 5:38.
5
6elapsed 0%CPU (0avgtext+0avgdata 56
16
maxresident)k
0.0
4
user 0.0
3
system 5:38.6
0
elapsed 0%CPU (0avgtext+0avgdata 56
84
maxresident)k
128
inputs+0outputs (0major+6
179
minor)pagefaults 0swaps
64
inputs+0outputs (0major+6
208
minor)pagefaults 0swaps
* Quick time (-j 4):
* Quick time (-j 4):
0.0
5
user 0.0
2
system 2:
39.72
elapsed 0%CPU (0avgtext+0avgdata 5
708
maxresident)k
0.0
4
user 0.0
3
system 2:
43.10
elapsed 0%CPU (0avgtext+0avgdata 5
564
maxresident)k
32
inputs+0outputs (0major+61
9
8minor)pagefaults 0swaps
64
inputs+0outputs (0major+618
5
minor)pagefaults 0swaps
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