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
d96fdd14
Commit
d96fdd14
authored
2 years ago
by
invite
Browse files
Options
Downloads
Patches
Plain Diff
fix links
parent
25e05a65
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/Makefile.inc
+1
-2
1 addition, 2 deletions
test/Makefile.inc
test/kclustering/Makefile
+2
-2
2 additions, 2 deletions
test/kclustering/Makefile
test/kclustering/verify.lus
+6
-6
6 additions, 6 deletions
test/kclustering/verify.lus
with
9 additions
and
10 deletions
test/Makefile.inc
+
1
−
2
View file @
d96fdd14
...
@@ -78,8 +78,7 @@ endif
...
@@ -78,8 +78,7 @@ endif
sed
-i
-e
"s/tel/--%MAIN ;
\n
--%PROPERTY ok;
\n
tel/"
$@
sed
-i
-e
"s/tel/--%MAIN ;
\n
--%PROPERTY ok;
\n
tel/"
$@
# Do not expand nodes
# Do not expand nodes
%_verify.noexpand.lv4
:
verify.lus
%_verify.noexpand.lv4
:
verify.lus %_const.lus
make
$*
_const.lus
lv6
$*
.lus
$^
$*
_const.lus
-n
$(
prop
)
-rnc
--lustre-v4
-o
$@
lv6
$*
.lus
$^
$*
_const.lus
-n
$(
prop
)
-rnc
--lustre-v4
-o
$@
tac
$@
|
sed
-z
"s/tel/tel
\n
--%MAIN ;
\n
--%PROPERTY ok;/"
|
tac
>
$@
.tmp
tac
$@
|
sed
-z
"s/tel/tel
\n
--%MAIN ;
\n
--%PROPERTY ok;/"
|
tac
>
$@
.tmp
mv
$@
.tmp
$@
mv
$@
.tmp
$@
...
...
This diff is collapsed.
Click to expand it.
test/kclustering/Makefile
+
2
−
2
View file @
d96fdd14
...
@@ -4,8 +4,8 @@ SASA_ALGOS := p.ml
...
@@ -4,8 +4,8 @@ SASA_ALGOS := p.ml
DECO_PATTERN
=
"0-:p.ml"
DECO_PATTERN
=
"0-:p.ml"
include
~/sasa/salut/test
/Makefile.inc
include
..
/Makefile.inc
-include
~/sasa/salut/test
/Makefile.dot
-include
..
/Makefile.dot
clean
:
genclean
clean
:
genclean
rm
-f
tree
*
.
*
rm
-f
tree
*
.
*
...
...
This diff is collapsed.
Click to expand it.
test/kclustering/verify.lus
+
6
−
6
View file @
d96fdd14
include
"../../
sasa/salut/
lib/sas.lus"
include
"../../lib/sas.lus"
include
"../../
sasa/salut/
lib/utils.lus"
include
"../../lib/utils.lus"
include
"cost.lus"
include
"cost.lus"
const
worst_case
=
3
*
card
*
(
card
-
1
)
/
2
-
card
-
1
;
const
worst_case
=
3
*
card
*
(
card
-
1
)
/
2
-
card
-
1
;
...
@@ -12,7 +12,7 @@ returns (ok : bool);
...
@@ -12,7 +12,7 @@ returns (ok : bool);
var
var
config
:
state
^
card
;
config
:
state
^
card
;
enabled
:
bool
^
actions_number
^
card
;
enabled
:
bool
^
actions_number
^
card
;
legitimate
,
closure
:
bool
;
legitimate
,
closure
,
converge
:
bool
;
steps
,
cost
:
int
;
steps
,
cost
:
int
;
let
let
assert
(
true
->
daemon_is_distributed
<<
actions_number
,
card
>>
(
active
,
pre
enabled
));
assert
(
true
->
daemon_is_distributed
<<
actions_number
,
card
>>
(
active
,
pre
enabled
));
...
@@ -22,15 +22,15 @@ let
...
@@ -22,15 +22,15 @@ let
config
,
enabled
=
topology
(
active
,
init_config
);
config
,
enabled
=
topology
(
active
,
init_config
);
assert
(
config
=
init_config
->
true
);
assert
(
config
=
init_config
->
true
);
-- stability in this algo means mutual exclusion: exactly 1 node is enabled at a time
legitimate
=
silent
<<
actions_number
,
card
>>
(
enabled
);
legitimate
=
n_xor
<<
card
>>
(
map
<<
n_or
<<
actions_number
>>,
card
>>
(
enabled
));
closure
=
true
->
(
pre
(
legitimate
)
=>
legitimate
);
closure
=
true
->
(
pre
(
legitimate
)
=>
legitimate
);
cost
=
cost
(
enabled
,
config
);
cost
=
cost
(
enabled
,
config
);
--
converge = (true -> legitimate or pre(cost)>cost);
converge
=
(
true
->
legitimate
or
pre
(
cost
)
>
cost
);
steps
=
0
->
(
pre
(
steps
)
+
1
);
steps
=
0
->
(
pre
(
steps
)
+
1
);
ok
=
closure
ok
=
closure
and
converge
-- and (steps > worst_case) => legitimate -- the worst-case stabilization
-- and (steps > worst_case) => legitimate -- the worst-case stabilization
-- and (steps > worst_case - 1) => legitimate -- is tigth!
-- and (steps > worst_case - 1) => legitimate -- is tigth!
...
...
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