Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
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
sasa
Commits
cfd42140
Commit
cfd42140
authored
11 months ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
test: add a debug version of the oracle
parent
2e07089f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
salut/test/dijkstra-ring/dijkstra_ring_oracle.lus
+32
-0
32 additions, 0 deletions
salut/test/dijkstra-ring/dijkstra_ring_oracle.lus
with
32 additions
and
0 deletions
salut/test/dijkstra-ring/dijkstra_ring_oracle.lus
+
32
−
0
View file @
cfd42140
...
...
@@ -37,6 +37,38 @@ let
;
-- compare the cost functions
tel
node
dijkstra_ring_oracle_debug
<<
const
actions_number
:
int
;
const
card
:
int
>>
(
legitimate
:
bool
;
ocaml_cost
:
real
;
ocaml_enabled
:
bool
^
actions_number
^
card
;
active
:
bool
^
actions_number
^
card
;
ocaml_config
:
state
^
card
;
round
:
bool
;
round_nb
:
int
;
)
returns
(
ok
:
bool
;
lustre_config
:
state
^
card
;
lustre_enabled
:
bool
^
actions_number
^
card
;
lustre_round
:
bool
;
lustre_round_nb
:
int
);
var
lustre_cost
:
int
;
let
lustre_config
,
lustre_enabled
,
lustre_round
,
lustre_round_nb
=
topology
(
active
->
pre
active
,
-- ignored at the first step
ocaml_config
-- used at the first step only
);
lustre_cost
=
cost
(
lustre_enabled
,
lustre_config
);
ok
=
lustre_enabled
=
ocaml_enabled
-- compare the sasa dot interpretation and the salut dot to lustre compilation
and
lustre_config
=
ocaml_config
-- compare the lustre and the ocaml version of the processes
and
Lustre
::
real2int
(
ocaml_cost
)
=
lustre_cost
and
round
=
lustre_round
and
round_nb
=
lustre_round_nb
;
-- compare the cost functions
tel
node
_dijkstra_ring_oracle
<<
const
actions_number
:
int
;
const
card
:
int
>>
(
legitimate
:
bool
;
...
...
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