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
cb7d354c
Commit
cb7d354c
authored
16 years ago
by
Erwan Jahier
Browse files
Options
Downloads
Patches
Plain Diff
Add support for clock checking structure.
parent
5dd64311
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/evalClock.ml
+12
-5
12 additions, 5 deletions
src/evalClock.ml
src/test/test.res.exp
+362
-33
362 additions, 33 deletions
src/test/test.res.exp
with
374 additions
and
38 deletions
src/evalClock.ml
+
12
−
5
View file @
cb7d354c
(** Time-stamp: <modified the 26/06/2008 (at 16:
00
) by Erwan Jahier> *)
(** Time-stamp: <modified the 26/06/2008 (at 16:
24
) by Erwan Jahier> *)
open
Predef
open
Predef
...
@@ -352,9 +352,16 @@ and (eval_by_pos_clock : id_solver -> by_pos_op_eff -> Lxm.t -> val_exp_eff list
...
@@ -352,9 +352,16 @@ and (eval_by_pos_clock : id_solver -> by_pos_op_eff -> Lxm.t -> val_exp_eff list
and
(
eval_by_name_clock
:
id_solver
->
by_name_op_eff
->
Lxm
.
t
->
and
(
eval_by_name_clock
:
id_solver
->
by_name_op_eff
->
Lxm
.
t
->
(
Ident
.
t
Lxm
.
srcflagged
*
val_exp_eff
)
list
->
subst
->
(
Ident
.
t
Lxm
.
srcflagged
*
val_exp_eff
)
list
->
subst
->
clock_info
list
*
subst
)
=
clock_info
list
*
subst
)
=
fun
id_solver
namop
lxm
namargs
->
fun
id_solver
namop
lxm
namargs
s
->
match
namop
with
match
namop
with
|
STRUCT_anonymous_eff
->
assert
false
(* cf EvalClock.f *)
|
STRUCT_anonymous_eff
->
assert
false
(* cf EvalType.f *)
|
STRUCT_eff
opid
->
assert
false
|
STRUCT_eff
opid
->
(* [id_solver.id2clock opid lxm] *)
let
args
=
List
.
map
(
fun
(
id
,
ve
)
->
ve
)
namargs
in
(* XXX The 3 following lines duplicates the code of TUPLE_eff and co *)
let
clk_args
,
s
=
f_list
id_solver
s
args
in
let
flat_clk_args
=
List
.
flatten
clk_args
in
(* => mono-clock! *)
let
clk
,
s
=
UnifyClock
.
list
lxm
flat_clk_args
s
in
let
clk_list
=
List
.
map
(
apply_subst
s
)
(
List
.
hd
clk_args
)
in
clk_list
,
s
This diff is collapsed.
Click to expand it.
src/test/test.res.exp
+
362
−
33
View file @
cb7d354c
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