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
ecc8a594
Commit
ecc8a594
authored
10 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
Soc2c : soc ctx were still not in the good order. Sigh.
test: 203->198 failures
parent
ad005c3c
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
src/soc2c.ml
+5
-2
5 additions, 2 deletions
src/soc2c.ml
test/lus2lic.sum
+9
-9
9 additions, 9 deletions
test/lus2lic.sum
test/lus2lic.time
+1
-1
1 addition, 1 deletion
test/lus2lic.time
todo.org
+4
-0
4 additions, 0 deletions
todo.org
with
19 additions
and
12 deletions
src/soc2c.ml
+
5
−
2
View file @
ecc8a594
(* Time-stamp: <modified the 13/06/2014 (at 16:
23
) by Erwan Jahier> *)
(* Time-stamp: <modified the 13/06/2014 (at 16:
55
) by Erwan Jahier> *)
(* let put (os: out_channel) (fmt:('a, unit, string, unit) format4) : 'a = *)
...
...
@@ -317,13 +317,16 @@ let (typedef : LicPrg.t -> Soc.tbl -> Soc.t -> string) =
fun
(
acc
,
visited
)
soc
->
if
KeySet
.
mem
soc
.
key
visited
then
(
acc
,
visited
)
else
let
visited
=
KeySet
.
add
soc
.
key
visited
in
let
acc
=
(
typedef_of_soc
soc
)
^
acc
in
let
acc
,
visited
=
List
.
fold_left
(
fun
(
acc
,
visited
)
(
iname
,
sk
)
->
let
soc
=
SocUtils
.
find_no_exc
sk
soc_tbl
in
soc_with_mem
(
acc
,
visited
)
soc
)
(
acc
,
visited
)
soc
.
instances
in
let
acc
=
acc
^
(
typedef_of_soc
soc
)
in
acc
,
visited
in
let
soc_ctx_typedef_with
=
if
is_memory_less
main_soc
then
""
else
fst
(
soc_with_mem
(
""
,
visited
)
main_soc
)
...
...
This diff is collapsed.
Click to expand it.
test/lus2lic.sum
+
9
−
9
View file @
ecc8a594
Test Run By jahier on Fri Jun 13 1
6:25:1
2 2014
Test Run By jahier on Fri Jun 13 1
7:01:2
2 2014
Native configuration is i686-pc-linux-gnu
=== lus2lic tests ===
...
...
@@ -100,7 +100,7 @@ PASS: ./lus2lic {-ec -o /tmp/lucky.ec should_work/lucky.lus}
PASS: ./myec2c {-o /tmp/lucky.c /tmp/lucky.ec}
PASS: ../utils/test_lus2lic_no_node should_work/lucky.lus
PASS: ./lus2lic {-2c should_work/lucky.lus -n lucky}
FAIL: Check that the generated C code compiles
: gcc lucky_lucky.c lucky_lucky_loop.c
PASS
: gcc lucky_lucky.c lucky_lucky_loop.c
PASS: ./lus2lic {-o /tmp/heater_control.lic should_work/heater_control.lus}
PASS: ./lus2lic {-ec -o /tmp/heater_control.ec should_work/heater_control.lus}
PASS: ./myec2c {-o /tmp/heater_control.c /tmp/heater_control.ec}
...
...
@@ -118,7 +118,7 @@ PASS: ./lus2lic {-ec -o /tmp/cminus.ec should_work/cminus.lus}
PASS: ./myec2c {-o /tmp/cminus.c /tmp/cminus.ec}
PASS: ../utils/test_lus2lic_no_node should_work/cminus.lus
PASS: ./lus2lic {-2c should_work/cminus.lus -n cminus}
FAIL: Check that the generated C code compiles
: gcc cminus_cminus.c cminus_cminus_loop.c
PASS
: gcc cminus_cminus.c cminus_cminus_loop.c
PASS: ./lus2lic {-o /tmp/rs.lic should_work/rs.lus}
PASS: ./lus2lic {-ec -o /tmp/rs.ec should_work/rs.lus}
PASS: ./myec2c {-o /tmp/rs.c /tmp/rs.ec}
...
...
@@ -608,7 +608,7 @@ PASS: ./lus2lic {-ec -o /tmp/mouse.ec should_work/mouse.lus}
PASS: ./myec2c {-o /tmp/mouse.c /tmp/mouse.ec}
PASS: ../utils/test_lus2lic_no_node should_work/mouse.lus
PASS: ./lus2lic {-2c should_work/mouse.lus -n mouse}
FAIL: Check that the generated C code compiles
: gcc mouse_mouse.c mouse_mouse_loop.c
PASS
: gcc mouse_mouse.c mouse_mouse_loop.c
PASS: ./lus2lic {-o /tmp/param_node3.lic should_work/param_node3.lus}
PASS: ./lus2lic {-ec -o /tmp/param_node3.ec should_work/param_node3.lus}
PASS: ./myec2c {-o /tmp/param_node3.c /tmp/param_node3.ec}
...
...
@@ -932,7 +932,7 @@ PASS: ./lus2lic {-ec -o /tmp/stopwatch.ec should_work/stopwatch.lus}
PASS: ./myec2c {-o /tmp/stopwatch.c /tmp/stopwatch.ec}
PASS: ../utils/test_lus2lic_no_node should_work/stopwatch.lus
PASS: ./lus2lic {-2c should_work/stopwatch.lus -n stopwatch}
FAIL: Check that the generated C code compiles
: gcc stopwatch_stopwatch.c stopwatch_stopwatch_loop.c
PASS
: gcc stopwatch_stopwatch.c stopwatch_stopwatch_loop.c
PASS: ./lus2lic {-o /tmp/test_condact.lic should_work/test_condact.lus}
PASS: ./lus2lic {-ec -o /tmp/test_condact.ec should_work/test_condact.lus}
PASS: ./myec2c {-o /tmp/test_condact.c /tmp/test_condact.ec}
...
...
@@ -1350,7 +1350,7 @@ PASS: ./lus2lic {-ec -o /tmp/poussoir.ec should_work/poussoir.lus}
PASS: ./myec2c {-o /tmp/poussoir.c /tmp/poussoir.ec}
PASS: ../utils/test_lus2lic_no_node should_work/poussoir.lus
PASS: ./lus2lic {-2c should_work/poussoir.lus -n poussoir}
FAIL: Check that the generated C code compiles
: gcc poussoir_poussoir.c poussoir_poussoir_loop.c
PASS
: gcc poussoir_poussoir.c poussoir_poussoir_loop.c
PASS: ./lus2lic {-o /tmp/SWITCH1.lic should_work/SWITCH1.lus}
PASS: ./lus2lic {-ec -o /tmp/SWITCH1.ec should_work/SWITCH1.lus}
PASS: ./myec2c {-o /tmp/SWITCH1.c /tmp/SWITCH1.ec}
...
...
@@ -1479,9 +1479,9 @@ XPASS: Test bad programs (semantics): lus2lic {-o /tmp/bug.lic should_fail/seman
=== lus2lic Summary ===
# of expected passes 12
06
# of unexpected failures
203
# of expected passes 12
11
# of unexpected failures
198
# of unexpected successes 21
# of expected failures 37
testcase ./lus2lic.tests/non-reg.exp completed in 1
2
1 seconds
testcase ./lus2lic.tests/non-reg.exp completed in 11
8
seconds
testcase ./lus2lic.tests/progression.exp completed in 0 seconds
This diff is collapsed.
Click to expand it.
test/lus2lic.time
+
1
−
1
View file @
ecc8a594
testcase ./lus2lic.tests/non-reg.exp completed in 1
2
1 seconds
testcase ./lus2lic.tests/non-reg.exp completed in 11
8
seconds
testcase ./lus2lic.tests/progression.exp completed in 0 seconds
This diff is collapsed.
Click to expand it.
todo.org
+
4
−
0
View file @
ecc8a594
...
...
@@ -39,6 +39,10 @@ oops: lus2lic internal error
when compiling lustre program should_work/simple.lus
* lus2lic -2C
** TODO Ca plante si un identificateur lustre se nomme double...
- State "TODO" from "" [2014-06-13 Fri 16:59]
* Packages, modeles, etc.
** STARTED Il ne detecte plus les erreurs de type lors d'instanciation de noeuds
- State "STARTED" from "TODO" [2013-01-28 Mon 17:02]
...
...
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